source: ThirdParty/Metis/stable/1.2/configure @ 2065

Last change on this file since 2065 was 2065, checked in by stefan, 9 years ago

sync with trunk rev2060

  • Property svn:executable set to *
File size: 702.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMetis 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMetis'
431PACKAGE_TARNAME='thirdpartymetis'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyMetis 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="metis-4.0/Lib/balance.c"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion METIS_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyMetis 1.2 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyMetis 1.2:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062  --enable-debug-metis compile this project (Metis) with debug options
1063  --enable-doscompile     Under Cygwin, compile so that executables run under
1064                          DOS. Set to mingw to use gcc/g++/ld with
1065                          -mno-cygwin. Set to msvc to use cl/link (or
1066                          icl/link). Default when mentioned: mingw. Default
1067                          when not mentioned: disabled.
1068  --enable-pkg-config     use pkg-config if available (default is yes)
1069  --enable-static[=PKGS]
1070                          build static libraries [default=no]
1071  --disable-dependency-tracking  speeds up one-time build
1072  --enable-dependency-tracking   do not reject slow dependency extractors
1073  --enable-maintainer-mode  enable make rules and dependencies not useful
1074                          (and sometimes confusing) to the casual installer
1075  --enable-shared[=PKGS]
1076                          build shared libraries [default=yes]
1077  --enable-fast-install[=PKGS]
1078                          optimize for fast installation [default=yes]
1079  --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081Optional Packages:
1082  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084  --with-metis-verbosity specify the debug verbosity level for project Metis
1085  --with-metis-checklevel specify the sanity check level for project Metis
1086  --with-coin-instdir     prefix of installation directory for precompiled
1087                          COIN packages
1088  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1089  --with-pic              try to use only PIC/non-PIC objects [default=use
1090                          both]
1091  --with-tags[=TAGS]
1092                          include additional configurations [automatic]
1093
1094Some influential environment variables:
1095  CDEFS       Additional -D flags to be used when compiling C code.
1096  ADD_CFLAGS  Additional C compiler options
1097  DBG_CFLAGS  Debug C compiler options
1098  OPT_CFLAGS  Optimize C compiler options
1099  CC          C compiler command
1100  CFLAGS      C compiler flags
1101  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102              nonstandard directory <lib dir>
1103  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104              headers in a nonstandard directory <include dir>
1105  MPICC       C MPI Compiler
1106  PKG_CONFIG  path to pkg-config utility
1107  CPP         C preprocessor
1108  CXX         C++ compiler command
1109  CXXFLAGS    C++ compiler flags
1110  CXXCPP      C++ preprocessor
1111  F77         Fortran 77 compiler command
1112  FFLAGS      Fortran 77 compiler flags
1113
1114Use these variables to override the choices made by `configure' or to help
1115it to find libraries and programs with nonstandard names/locations.
1116
1117Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1118_ACEOF
1119fi
1120
1121if test "$ac_init_help" = "recursive"; then
1122  # If there are subdirs, report their specific --help.
1123  ac_popdir=`pwd`
1124  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1125    test -d $ac_dir || continue
1126    ac_builddir=.
1127
1128if test "$ac_dir" != .; then
1129  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1130  # A "../" for each directory in $ac_dir_suffix.
1131  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1132else
1133  ac_dir_suffix= ac_top_builddir=
1134fi
1135
1136case $srcdir in
1137  .)  # No --srcdir option.  We are building in place.
1138    ac_srcdir=.
1139    if test -z "$ac_top_builddir"; then
1140       ac_top_srcdir=.
1141    else
1142       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1143    fi ;;
1144  [\\/]* | ?:[\\/]* )  # Absolute path.
1145    ac_srcdir=$srcdir$ac_dir_suffix;
1146    ac_top_srcdir=$srcdir ;;
1147  *) # Relative path.
1148    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1149    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1150esac
1151
1152# Do not use `cd foo && pwd` to compute absolute paths, because
1153# the directories may not exist.
1154case `pwd` in
1155.) ac_abs_builddir="$ac_dir";;
1156*)
1157  case "$ac_dir" in
1158  .) ac_abs_builddir=`pwd`;;
1159  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1160  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1161  esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_builddir=${ac_top_builddir}.;;
1165*)
1166  case ${ac_top_builddir}. in
1167  .) ac_abs_top_builddir=$ac_abs_builddir;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1169  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_srcdir=$ac_srcdir;;
1174*)
1175  case $ac_srcdir in
1176  .) ac_abs_srcdir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1178  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_srcdir=$ac_top_srcdir;;
1183*)
1184  case $ac_top_srcdir in
1185  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1187  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188  esac;;
1189esac
1190
1191    cd $ac_dir
1192    # Check for guested configure; otherwise get Cygnus style configure.
1193    if test -f $ac_srcdir/configure.gnu; then
1194      echo
1195      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1196    elif test -f $ac_srcdir/configure; then
1197      echo
1198      $SHELL $ac_srcdir/configure  --help=recursive
1199    elif test -f $ac_srcdir/configure.ac ||
1200           test -f $ac_srcdir/configure.in; then
1201      echo
1202      $ac_configure --help
1203    else
1204      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205    fi
1206    cd $ac_popdir
1207  done
1208fi
1209
1210test -n "$ac_init_help" && exit 0
1211if $ac_init_version; then
1212  cat <<\_ACEOF
1213ThirdPartyMetis configure 1.2
1214generated by GNU Autoconf 2.59
1215
1216Copyright (C) 2003 Free Software Foundation, Inc.
1217This configure script is free software; the Free Software Foundation
1218gives unlimited permission to copy, distribute and modify it.
1219
1220
1221Copyright 2009 International Business Machines and others.
1222All Rights Reserved.
1223This file is part of the open source package Coin which is distributed
1224under the Eclipse Public License.
1225_ACEOF
1226  exit 0
1227fi
1228exec 5>config.log
1229cat >&5 <<_ACEOF
1230This file contains any messages produced by compilers while
1231running configure, to aid debugging if configure makes a mistake.
1232
1233It was created by ThirdPartyMetis $as_me 1.2, which was
1234generated by GNU Autoconf 2.59.  Invocation command line was
1235
1236  $ $0 $@
1237
1238_ACEOF
1239{
1240cat <<_ASUNAME
1241## --------- ##
1242## Platform. ##
1243## --------- ##
1244
1245hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249uname -v = `(uname -v) 2>/dev/null || echo unknown`
1250
1251/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1253
1254/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1255/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1256/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1258/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1259/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1260/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
1262_ASUNAME
1263
1264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1265for as_dir in $PATH
1266do
1267  IFS=$as_save_IFS
1268  test -z "$as_dir" && as_dir=.
1269  echo "PATH: $as_dir"
1270done
1271
1272} >&5
1273
1274cat >&5 <<_ACEOF
1275
1276
1277## ----------- ##
1278## Core tests. ##
1279## ----------- ##
1280
1281_ACEOF
1282
1283
1284# Keep a trace of the command line.
1285# Strip out --no-create and --no-recursion so they do not pile up.
1286# Strip out --silent because we don't want to record it for future runs.
1287# Also quote any args containing shell meta-characters.
1288# Make two passes to allow for proper duplicate-argument suppression.
1289ac_configure_args=
1290ac_configure_args0=
1291ac_configure_args1=
1292ac_sep=
1293ac_must_keep_next=false
1294for ac_pass in 1 2
1295do
1296  for ac_arg
1297  do
1298    case $ac_arg in
1299    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301    | -silent | --silent | --silen | --sile | --sil)
1302      continue ;;
1303    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1305    esac
1306    case $ac_pass in
1307    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1308    2)
1309      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310      if test $ac_must_keep_next = true; then
1311        ac_must_keep_next=false # Got value, back to normal.
1312      else
1313        case $ac_arg in
1314          *=* | --config-cache | -C | -disable-* | --disable-* \
1315          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317          | -with-* | --with-* | -without-* | --without-* | --x)
1318            case "$ac_configure_args0 " in
1319              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320            esac
1321            ;;
1322          -* ) ac_must_keep_next=true ;;
1323        esac
1324      fi
1325      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326      # Get rid of the leading space.
1327      ac_sep=" "
1328      ;;
1329    esac
1330  done
1331done
1332$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1334
1335# When interrupted or exit'd, cleanup temporary files, and complete
1336# config.log.  We remove comments because anyway the quotes in there
1337# would cause problems or look ugly.
1338# WARNING: Be sure not to use single quotes in there, as some shells,
1339# such as our DU 5.0 friend, will then `close' the trap.
1340trap 'exit_status=$?
1341  # Save into config.log some information that might help in debugging.
1342  {
1343    echo
1344
1345    cat <<\_ASBOX
1346## ---------------- ##
1347## Cache variables. ##
1348## ---------------- ##
1349_ASBOX
1350    echo
1351    # The following way of writing the cache mishandles newlines in values,
1352{
1353  (set) 2>&1 |
1354    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355    *ac_space=\ *)
1356      sed -n \
1357        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359      ;;
1360    *)
1361      sed -n \
1362        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363      ;;
1364    esac;
1365}
1366    echo
1367
1368    cat <<\_ASBOX
1369## ----------------- ##
1370## Output variables. ##
1371## ----------------- ##
1372_ASBOX
1373    echo
1374    for ac_var in $ac_subst_vars
1375    do
1376      eval ac_val=$`echo $ac_var`
1377      echo "$ac_var='"'"'$ac_val'"'"'"
1378    done | sort
1379    echo
1380
1381    if test -n "$ac_subst_files"; then
1382      cat <<\_ASBOX
1383## ------------- ##
1384## Output files. ##
1385## ------------- ##
1386_ASBOX
1387      echo
1388      for ac_var in $ac_subst_files
1389      do
1390        eval ac_val=$`echo $ac_var`
1391        echo "$ac_var='"'"'$ac_val'"'"'"
1392      done | sort
1393      echo
1394    fi
1395
1396    if test -s confdefs.h; then
1397      cat <<\_ASBOX
1398## ----------- ##
1399## confdefs.h. ##
1400## ----------- ##
1401_ASBOX
1402      echo
1403      sed "/^$/d" confdefs.h | sort
1404      echo
1405    fi
1406    test "$ac_signal" != 0 &&
1407      echo "$as_me: caught signal $ac_signal"
1408    echo "$as_me: exit $exit_status"
1409  } >&5
1410  rm -f core *.core &&
1411  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1412    exit $exit_status
1413     ' 0
1414for ac_signal in 1 2 13 15; do
1415  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416done
1417ac_signal=0
1418
1419# confdefs.h avoids OS command line length limits that DEFS can exceed.
1420rm -rf conftest* confdefs.h
1421# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422echo >confdefs.h
1423
1424# Predefined preprocessor variables.
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_NAME "$PACKAGE_NAME"
1428_ACEOF
1429
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1433_ACEOF
1434
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_VERSION "$PACKAGE_VERSION"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_STRING "$PACKAGE_STRING"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1448_ACEOF
1449
1450
1451# Let the site file select an alternate cache file if it wants to.
1452# Prefer explicitly selected file to automatically selected ones.
1453if test -z "$CONFIG_SITE"; then
1454  if test "x$prefix" != xNONE; then
1455    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1456  else
1457    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458  fi
1459fi
1460for ac_site_file in $CONFIG_SITE; do
1461  if test -r "$ac_site_file"; then
1462    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463echo "$as_me: loading site script $ac_site_file" >&6;}
1464    sed 's/^/| /' "$ac_site_file" >&5
1465    . "$ac_site_file"
1466  fi
1467done
1468
1469if test -r "$cache_file"; then
1470  # Some versions of bash will fail to source /dev/null (special
1471  # files actually), so we avoid doing that.
1472  if test -f "$cache_file"; then
1473    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474echo "$as_me: loading cache $cache_file" >&6;}
1475    case $cache_file in
1476      [\\/]* | ?:[\\/]* ) . $cache_file;;
1477      *)                      . ./$cache_file;;
1478    esac
1479  fi
1480else
1481  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482echo "$as_me: creating cache $cache_file" >&6;}
1483  >$cache_file
1484fi
1485
1486# Check that the precious variables saved in the cache have kept the same
1487# value.
1488ac_cache_corrupted=false
1489for ac_var in `(set) 2>&1 |
1490               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492  eval ac_new_set=\$ac_env_${ac_var}_set
1493  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494  eval ac_new_val="\$ac_env_${ac_var}_value"
1495  case $ac_old_set,$ac_new_set in
1496    set,)
1497      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499      ac_cache_corrupted=: ;;
1500    ,set)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,);;
1505    *)
1506      if test "x$ac_old_val" != "x$ac_new_val"; then
1507        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1510echo "$as_me:   former value:  $ac_old_val" >&2;}
1511        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1512echo "$as_me:   current value: $ac_new_val" >&2;}
1513        ac_cache_corrupted=:
1514      fi;;
1515  esac
1516  # Pass precious variables to config.status.
1517  if test "$ac_new_set" = set; then
1518    case $ac_new_val in
1519    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521    *) ac_arg=$ac_var=$ac_new_val ;;
1522    esac
1523    case " $ac_configure_args " in
1524      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1525      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1526    esac
1527  fi
1528done
1529if $ac_cache_corrupted; then
1530  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536
1537ac_ext=c
1538ac_cpp='$CPP $CPPFLAGS'
1539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572# List one file in the package so that the configure script can test
1573# whether the package is actually there
1574
1575
1576# Where should everything be installed by default?  Here, we want it
1577# to be installed directly in 'bin', 'lib', 'include' subdirectories
1578# of the directory where configure is run.  The default would be
1579# /usr/local.
1580
1581
1582
1583# As backup, we make sure we don't loose an FLIBS if it has been set
1584# by the user
1585save_FLIBS="$FLIBS"
1586
1587# A useful makefile conditional that is always false
1588
1589
1590if false; then
1591  ALWAYS_FALSE_TRUE=
1592  ALWAYS_FALSE_FALSE='#'
1593else
1594  ALWAYS_FALSE_TRUE='#'
1595  ALWAYS_FALSE_FALSE=
1596fi
1597
1598
1599# We set the following variable so that we know later in AC_COIN_FINALIZE
1600# that we are in a project main directory
1601coin_projectdir=yes
1602
1603# Set the project's version number
1604if test "xMetis" != x; then
1605
1606cat >>confdefs.h <<_ACEOF
1607#define METIS_VERSION "$PACKAGE_VERSION"
1608_ACEOF
1609
1610fi
1611
1612# Set the project's SVN revision number. The complicated sed expression
1613# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1614# as a single number.
1615# Extract the first word of "svnversion", so it can be a program name with args.
1616set dummy svnversion; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_have_svnversion+set}" = set; then
1620  echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622  if test -n "$have_svnversion"; then
1623  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628  IFS=$as_save_IFS
1629  test -z "$as_dir" && as_dir=.
1630  for ac_exec_ext in '' $ac_executable_extensions; do
1631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632    ac_cv_prog_have_svnversion="yes"
1633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634    break 2
1635  fi
1636done
1637done
1638
1639  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1640fi
1641fi
1642have_svnversion=$ac_cv_prog_have_svnversion
1643if test -n "$have_svnversion"; then
1644  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1645echo "${ECHO_T}$have_svnversion" >&6
1646else
1647  echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651if test "x$have_svnversion" = xyes && test "xMetis" != x; then
1652
1653  svn_rev_tmp=`cd $srcdir/$coin_has_metis ; svnversion`
1654  METIS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1655  if test $METIS_SVN_REV != exported; then
1656
1657cat >>confdefs.h <<_ACEOF
1658#define METIS_SVN_REV $METIS_SVN_REV
1659_ACEOF
1660
1661  fi
1662fi
1663
1664# Capture libtool library version, if given.
1665
1666
1667
1668#############################################################################
1669#                         Standard build tool stuff                         #
1670#############################################################################
1671
1672# Get the system type
1673ac_aux_dir=
1674for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1675  if test -f $ac_dir/install-sh; then
1676    ac_aux_dir=$ac_dir
1677    ac_install_sh="$ac_aux_dir/install-sh -c"
1678    break
1679  elif test -f $ac_dir/install.sh; then
1680    ac_aux_dir=$ac_dir
1681    ac_install_sh="$ac_aux_dir/install.sh -c"
1682    break
1683  elif test -f $ac_dir/shtool; then
1684    ac_aux_dir=$ac_dir
1685    ac_install_sh="$ac_aux_dir/shtool install -c"
1686    break
1687  fi
1688done
1689if test -z "$ac_aux_dir"; then
1690  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1691echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1692   { (exit 1); exit 1; }; }
1693fi
1694ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1695ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1696ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1697
1698# Make sure we can run config.sub.
1699$ac_config_sub sun4 >/dev/null 2>&1 ||
1700  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1701echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1702   { (exit 1); exit 1; }; }
1703
1704echo "$as_me:$LINENO: checking build system type" >&5
1705echo $ECHO_N "checking build system type... $ECHO_C" >&6
1706if test "${ac_cv_build+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  ac_cv_build_alias=$build_alias
1710test -z "$ac_cv_build_alias" &&
1711  ac_cv_build_alias=`$ac_config_guess`
1712test -z "$ac_cv_build_alias" &&
1713  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1714echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1715   { (exit 1); exit 1; }; }
1716ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1717  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1718echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1719   { (exit 1); exit 1; }; }
1720
1721fi
1722echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1723echo "${ECHO_T}$ac_cv_build" >&6
1724build=$ac_cv_build
1725build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1728
1729
1730
1731#turn off warnings and pedantic mode since they could make trouble on some platforms,
1732#and we couldn't fix them anyway
1733coin_skip_warn_cflags=yes
1734coin_skip_warn_fflags=yes
1735
1736# Check if user wants to produce debugging code
1737
1738echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1739echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1740
1741# Check whether --enable-debug or --disable-debug was given.
1742if test "${enable_debug+set}" = set; then
1743  enableval="$enable_debug"
1744  case "${enableval}" in
1745   yes) coin_debug_compile=true
1746        if test "${enable_shared+set}" = set; then :; else
1747          enable_shared=no
1748        fi
1749        ;;
1750   no)  coin_debug_compile=false
1751        ;;
1752   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1753echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1754   { (exit 1); exit 1; }; }
1755        ;;
1756esac
1757else
1758  coin_debug_compile=false
1759fi;
1760
1761# Check whether --enable-debug-metis or --disable-debug-metis was given.
1762if test "${enable_debug_metis+set}" = set; then
1763  enableval="$enable_debug_metis"
1764  case "${enableval}" in
1765    yes) coin_debug_compile=true
1766         enable_shared=no
1767         ;;
1768    no)  coin_debug_compile=false
1769         ;;
1770    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-metis" >&5
1771echo "$as_me: error: bad value ${enableval} for --enable-debug-metis" >&2;}
1772   { (exit 1); exit 1; }; }
1773         ;;
1774 esac
1775else
1776  :
1777fi;
1778
1779 # m4_ifvaln([Metis],
1780
1781if test $coin_debug_compile = true; then
1782  echo "$as_me:$LINENO: result: yes" >&5
1783echo "${ECHO_T}yes" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789
1790# Check whether --with-metis-verbosity or --without-metis-verbosity was given.
1791if test "${with_metis_verbosity+set}" = set; then
1792  withval="$with_metis_verbosity"
1793  if test "$withval" = yes; then
1794                withval=1
1795              fi
1796              coin_metis_verbosity=$withval
1797else
1798  coin_metis_verbosity=0
1799fi;
1800
1801cat >>confdefs.h <<_ACEOF
1802#define COIN_METIS_VERBOSITY $coin_metis_verbosity
1803_ACEOF
1804
1805
1806
1807# Check whether --with-metis-checklevel or --without-metis-checklevel was given.
1808if test "${with_metis_checklevel+set}" = set; then
1809  withval="$with_metis_checklevel"
1810  if test "$withval" = yes; then
1811                withval=1
1812              fi
1813              coin_metis_checklevel=$withval
1814else
1815  coin_metis_checklevel=0
1816fi;
1817
1818cat >>confdefs.h <<_ACEOF
1819#define COIN_METIS_CHECKLEVEL $coin_metis_checklevel
1820_ACEOF
1821
1822
1823# We use the following variable to have a string with the upper case
1824# version of the project name
1825COIN_PRJCT=METIS
1826
1827
1828 # m4_ifvaln([Metis],
1829
1830
1831
1832# Get the name of the C compiler
1833case $build in
1834  *-mingw*)
1835    if test "${LD+set}" = set; then :; else
1836      LD=link
1837    fi
1838    ;;
1839 esac
1840 case $enable_doscompile in
1841   msvc)
1842     if test "x${LD+set}" = xset; then :; else
1843       LD=link
1844     fi
1845     ;;
1846 esac
1847
1848
1849 # Check whether --enable-doscompile or --disable-doscompile was given.
1850if test "${enable_doscompile+set}" = set; then
1851  enableval="$enable_doscompile"
1852  if test "$enable_doscompile" != no; then
1853     case $build in
1854       *-cygwin* | *-mingw*) ;;
1855       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1856echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1857   { (exit 1); exit 1; }; } ;;
1858     esac
1859   fi
1860else
1861  enable_doscompile=no
1862fi;
1863 case "$enable_doscompile" in
1864   mingw)
1865     case $build in
1866       *-mingw*) enable_doscompile=no ;;
1867     esac
1868     ;;
1869   msvc|no) ;;
1870   yes) enable_doscompile=mingw ;;
1871   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1872                    Try configure --help=recursive." >&5
1873echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1874                    Try configure --help=recursive." >&2;}
1875   { (exit 1); exit 1; }; }
1876      ;;
1877  esac
1878  if test "$enable_doscompile" != no ; then
1879    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1880echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1881  fi
1882
1883
1884
1885
1886ac_ext=c
1887ac_cpp='$CPP $CPPFLAGS'
1888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891
1892
1893# For consistency, we set the C compiler to the same value of the C++
1894# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1895if test x"$CXX" != x; then
1896  case "$CXX" in
1897    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1898      if test x"$CC" = x; then
1899        CC="$CXX"
1900        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1901echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1902      fi
1903      ;;
1904  esac
1905fi
1906
1907# add automake conditional so we can recognize cl compiler in makefile
1908coin_cc_is_cl=false
1909if test x"$CXX" != x; then
1910  case "$CXX" in
1911    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1912      coin_cc_is_cl=true
1913      ;;
1914  esac
1915fi
1916
1917
1918if test $coin_cc_is_cl = true; then
1919  COIN_CC_IS_CL_TRUE=
1920  COIN_CC_IS_CL_FALSE='#'
1921else
1922  COIN_CC_IS_CL_TRUE='#'
1923  COIN_CC_IS_CL_FALSE=
1924fi
1925
1926
1927
1928
1929
1930
1931
1932coin_has_cc=yes
1933
1934save_cflags="$CFLAGS"
1935
1936# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1937# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1938# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1939# compiler. In this case, put cc after gcc.
1940
1941case $build in
1942  *-cygwin* | *-mingw*)
1943             if test "$enable_doscompile" = msvc ; then
1944               comps="icl cl"
1945             else
1946               comps="gcc cl"
1947             fi ;;
1948  *-*-solaris*)
1949             # Extract the first word of "cc", so it can be a program name with args.
1950set dummy cc; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$sol_cc_compiler"; then
1957  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1958else
1959  ac_prog_rejected=no
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963  IFS=$as_save_IFS
1964  test -z "$as_dir" && as_dir=.
1965  for ac_exec_ext in '' $ac_executable_extensions; do
1966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1968       ac_prog_rejected=yes
1969       continue
1970     fi
1971    ac_cv_prog_sol_cc_compiler="cc"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978if test $ac_prog_rejected = yes; then
1979  # We found a bogon in the path, so make sure we never use it.
1980  set dummy $ac_cv_prog_sol_cc_compiler
1981  shift
1982  if test $# != 0; then
1983    # We chose a different compiler from the bogus one.
1984    # However, it has the same basename, so the bogon will be chosen
1985    # first if we set sol_cc_compiler to just the basename; use the full file name.
1986    shift
1987    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1988  fi
1989fi
1990fi
1991fi
1992sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1993if test -n "$sol_cc_compiler"; then
1994  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1995echo "${ECHO_T}$sol_cc_compiler" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001             if test "$sol_cc_compiler" = "cc" ; then
2002               comps="cc xlc gcc pgcc icc"
2003             else
2004               comps="xlc gcc pgcc icc cc"
2005             fi
2006             ;;
2007  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2008  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2009  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2010esac
2011
2012# We delete the cached value, since the test might not have been
2013# performed with our choice of compilers earlier
2014$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2015# AC_MSG_NOTICE([C compiler candidates: $comps])
2016ac_ext=c
2017ac_cpp='$CPP $CPPFLAGS'
2018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021if test -n "$ac_tool_prefix"; then
2022  for ac_prog in $comps
2023  do
2024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026echo "$as_me:$LINENO: checking for $ac_word" >&5
2027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028if test "${ac_cv_prog_CC+set}" = set; then
2029  echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031  if test -n "$CC"; then
2032  ac_cv_prog_CC="$CC" # Let the user override the test.
2033else
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037  IFS=$as_save_IFS
2038  test -z "$as_dir" && as_dir=.
2039  for ac_exec_ext in '' $ac_executable_extensions; do
2040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043    break 2
2044  fi
2045done
2046done
2047
2048fi
2049fi
2050CC=$ac_cv_prog_CC
2051if test -n "$CC"; then
2052  echo "$as_me:$LINENO: result: $CC" >&5
2053echo "${ECHO_T}$CC" >&6
2054else
2055  echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6
2057fi
2058
2059    test -n "$CC" && break
2060  done
2061fi
2062if test -z "$CC"; then
2063  ac_ct_CC=$CC
2064  for ac_prog in $comps
2065do
2066  # Extract the first word of "$ac_prog", so it can be a program name with args.
2067set dummy $ac_prog; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$ac_ct_CC"; then
2074  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083    ac_cv_prog_ac_ct_CC="$ac_prog"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089
2090fi
2091fi
2092ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093if test -n "$ac_ct_CC"; then
2094  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095echo "${ECHO_T}$ac_ct_CC" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101  test -n "$ac_ct_CC" && break
2102done
2103
2104  CC=$ac_ct_CC
2105fi
2106
2107
2108test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113
2114# Provide some information about the compiler.
2115echo "$as_me:$LINENO:" \
2116     "checking for C compiler version" >&5
2117ac_compiler=`set X $ac_compile; echo $2`
2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119  (eval $ac_compiler --version </dev/null >&5) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124  (eval $ac_compiler -v </dev/null >&5) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129  (eval $ac_compiler -V </dev/null >&5) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }
2133
2134cat >conftest.$ac_ext <<_ACEOF
2135/* confdefs.h.  */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h.  */
2140
2141int
2142main ()
2143{
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149ac_clean_files_save=$ac_clean_files
2150ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151# Try to create an executable without -o first, disregard a.out.
2152# It will help us diagnose broken compilers, and finding out an intuition
2153# of exeext.
2154echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2156ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158  (eval $ac_link_default) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; then
2162  # Find the output, starting from the most likely.  This scheme is
2163# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164# resort.
2165
2166# Be careful to initialize this variable, since it used to be cached.
2167# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168ac_cv_exeext=
2169# b.out is created by i960 compilers.
2170for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171do
2172  test -f "$ac_file" || continue
2173  case $ac_file in
2174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175        ;;
2176    conftest.$ac_ext )
2177        # This is the source file.
2178        ;;
2179    [ab].out )
2180        # We found the default executable, but exeext='' is most
2181        # certainly right.
2182        break;;
2183    *.* )
2184        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185        # FIXME: I believe we export ac_cv_exeext for Libtool,
2186        # but it would be cool to find out if it's true.  Does anybody
2187        # maintain Libtool? --akim.
2188        export ac_cv_exeext
2189        break;;
2190    * )
2191        break;;
2192  esac
2193done
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: C compiler cannot create executables
2201See \`config.log' for more details." >&2;}
2202   { (exit 77); exit 77; }; }
2203fi
2204
2205ac_exeext=$ac_cv_exeext
2206echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6
2208
2209# Check the compiler produces executables we can run.  If not, either
2210# the compiler is broken, or we cross compile.
2211echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216  if { ac_try='./$ac_file'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222    cross_compiling=no
2223  else
2224    if test "$cross_compiling" = maybe; then
2225        cross_compiling=yes
2226    else
2227        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2228If you meant to cross compile, use \`--host'.
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&2;}
2233   { (exit 1); exit 1; }; }
2234    fi
2235  fi
2236fi
2237echo "$as_me:$LINENO: result: yes" >&5
2238echo "${ECHO_T}yes" >&6
2239
2240rm -f a.out a.exe conftest$ac_cv_exeext b.out
2241ac_clean_files=$ac_clean_files_save
2242# Check the compiler produces executables we can run.  If not, either
2243# the compiler is broken, or we cross compile.
2244echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247echo "${ECHO_T}$cross_compiling" >&6
2248
2249echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252  (eval $ac_link) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
2260for ac_file in conftest.exe conftest conftest.*; do
2261  test -f "$ac_file" || continue
2262  case $ac_file in
2263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2264    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265          export ac_cv_exeext
2266          break;;
2267    * ) break;;
2268  esac
2269done
2270else
2271  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276fi
2277
2278rm -f conftest$ac_cv_exeext
2279echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280echo "${ECHO_T}$ac_cv_exeext" >&6
2281
2282rm -f conftest.$ac_ext
2283EXEEXT=$ac_cv_exeext
2284ac_exeext=$EXEEXT
2285echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287if test "${ac_cv_objext+set}" = set; then
2288  echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290  cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296
2297int
2298main ()
2299{
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305rm -f conftest.o conftest.obj
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307  (eval $ac_compile) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; then
2311  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312  case $ac_file in
2313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315       break;;
2316  esac
2317done
2318else
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325See \`config.log' for more details." >&2;}
2326   { (exit 1); exit 1; }; }
2327fi
2328
2329rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332echo "${ECHO_T}$ac_cv_objext" >&6
2333OBJEXT=$ac_cv_objext
2334ac_objext=$OBJEXT
2335echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338  echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340  cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346
2347int
2348main ()
2349{
2350#ifndef __GNUC__
2351       choke me
2352#endif
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.$ac_objext
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360  (eval $ac_compile) 2>conftest.er1
2361  ac_status=$?
2362  grep -v '^ *+' conftest.er1 >conftest.err
2363  rm -f conftest.er1
2364  cat conftest.err >&5
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); } &&
2367         { ac_try='test -z "$ac_c_werror_flag"
2368                         || test ! -s conftest.err'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; } &&
2374         { ac_try='test -s conftest.$ac_objext'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; }; then
2380  ac_compiler_gnu=yes
2381else
2382  echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385ac_compiler_gnu=no
2386fi
2387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388ac_cv_c_compiler_gnu=$ac_compiler_gnu
2389
2390fi
2391echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393GCC=`test $ac_compiler_gnu = yes && echo yes`
2394ac_test_CFLAGS=${CFLAGS+set}
2395ac_save_CFLAGS=$CFLAGS
2396CFLAGS="-g"
2397echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399if test "${ac_cv_prog_cc_g+set}" = set; then
2400  echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402  cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408
2409int
2410main ()
2411{
2412
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419  (eval $ac_compile) 2>conftest.er1
2420  ac_status=$?
2421  grep -v '^ *+' conftest.er1 >conftest.err
2422  rm -f conftest.er1
2423  cat conftest.err >&5
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); } &&
2426         { ac_try='test -z "$ac_c_werror_flag"
2427                         || test ! -s conftest.err'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; } &&
2433         { ac_try='test -s conftest.$ac_objext'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; }; then
2439  ac_cv_prog_cc_g=yes
2440else
2441  echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444ac_cv_prog_cc_g=no
2445fi
2446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450if test "$ac_test_CFLAGS" = set; then
2451  CFLAGS=$ac_save_CFLAGS
2452elif test $ac_cv_prog_cc_g = yes; then
2453  if test "$GCC" = yes; then
2454    CFLAGS="-g -O2"
2455  else
2456    CFLAGS="-g"
2457  fi
2458else
2459  if test "$GCC" = yes; then
2460    CFLAGS="-O2"
2461  else
2462    CFLAGS=
2463  fi
2464fi
2465echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  ac_cv_prog_cc_stdc=no
2471ac_save_CC=$CC
2472cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h.  */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h.  */
2478#include <stdarg.h>
2479#include <stdio.h>
2480#include <sys/types.h>
2481#include <sys/stat.h>
2482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2483struct buf { int x; };
2484FILE * (*rcsopen) (struct buf *, struct stat *, int);
2485static char *e (p, i)
2486     char **p;
2487     int i;
2488{
2489  return p[i];
2490}
2491static char *f (char * (*g) (char **, int), char **p, ...)
2492{
2493  char *s;
2494  va_list v;
2495  va_start (v,p);
2496  s = g (p, va_arg (v,int));
2497  va_end (v);
2498  return s;
2499}
2500
2501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2502   function prototypes and stuff, but not '\xHH' hex character constants.
2503   These don't provoke an error unfortunately, instead are silently treated
2504   as 'x'.  The following induces an error, until -std1 is added to get
2505   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2506   array size at least.  It's necessary to write '\x00'==0 to get something
2507   that's true only with -std1.  */
2508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509
2510int test (int i, double x);
2511struct s1 {int (*f) (int a);};
2512struct s2 {int (*f) (double a);};
2513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514int argc;
2515char **argv;
2516int
2517main ()
2518{
2519return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2520  ;
2521  return 0;
2522}
2523_ACEOF
2524# Don't try gcc -ansi; that turns off useful extensions and
2525# breaks some systems' header files.
2526# AIX                   -qlanglvl=ansi
2527# Ultrix and OSF/1      -std1
2528# HP-UX 10.20 and later -Ae
2529# HP-UX older versions  -Aa -D_HPUX_SOURCE
2530# SVR4                  -Xc -D__EXTENSIONS__
2531for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532do
2533  CC="$ac_save_CC $ac_arg"
2534  rm -f conftest.$ac_objext
2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536  (eval $ac_compile) 2>conftest.er1
2537  ac_status=$?
2538  grep -v '^ *+' conftest.er1 >conftest.err
2539  rm -f conftest.er1
2540  cat conftest.err >&5
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); } &&
2543         { ac_try='test -z "$ac_c_werror_flag"
2544                         || test ! -s conftest.err'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; } &&
2550         { ac_try='test -s conftest.$ac_objext'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; }; then
2556  ac_cv_prog_cc_stdc=$ac_arg
2557break
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext
2564done
2565rm -f conftest.$ac_ext conftest.$ac_objext
2566CC=$ac_save_CC
2567
2568fi
2569
2570case "x$ac_cv_prog_cc_stdc" in
2571  x|xno)
2572    echo "$as_me:$LINENO: result: none needed" >&5
2573echo "${ECHO_T}none needed" >&6 ;;
2574  *)
2575    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577    CC="$CC $ac_cv_prog_cc_stdc" ;;
2578esac
2579
2580# Some people use a C++ compiler to compile C.  Since we use `exit',
2581# in C++ we need to declare it.  In case someone uses the same compiler
2582# for both compiling C and C++ we need to have the C++ compiler decide
2583# the declaration of exit, since it's the most demanding environment.
2584cat >conftest.$ac_ext <<_ACEOF
2585#ifndef __cplusplus
2586  choke me
2587#endif
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -z "$ac_c_werror_flag"
2599                         || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  for ac_declaration in \
2612   '' \
2613   'extern "C" void std::exit (int) throw (); using std::exit;' \
2614   'extern "C" void std::exit (int); using std::exit;' \
2615   'extern "C" void exit (int) throw ();' \
2616   'extern "C" void exit (int);' \
2617   'void exit (int);'
2618do
2619  cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625$ac_declaration
2626#include <stdlib.h>
2627int
2628main ()
2629{
2630exit (42);
2631  ;
2632  return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644         { ac_try='test -z "$ac_c_werror_flag"
2645                         || test ! -s conftest.err'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; } &&
2651         { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  :
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662continue
2663fi
2664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665  cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h.  */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h.  */
2671$ac_declaration
2672int
2673main ()
2674{
2675exit (42);
2676  ;
2677  return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689         { ac_try='test -z "$ac_c_werror_flag"
2690                         || test ! -s conftest.err'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696         { ac_try='test -s conftest.$ac_objext'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; }; then
2702  break
2703else
2704  echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709done
2710rm -f conftest*
2711if test -n "$ac_declaration"; then
2712  echo '#ifdef __cplusplus' >>confdefs.h
2713  echo $ac_declaration      >>confdefs.h
2714  echo '#endif'             >>confdefs.h
2715fi
2716
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721fi
2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723ac_ext=c
2724ac_cpp='$CPP $CPPFLAGS'
2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729if test -z "$CC" ; then
2730  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2731echo "$as_me: error: Failed to find a C compiler!" >&2;}
2732   { (exit 1); exit 1; }; }
2733fi
2734# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2735case "$CC" in
2736  cl* | */cl* | CL* | */CL* )
2737    if test "$ac_cv_prog_cc_g" = yes ; then
2738      ac_cv_prog_cc_g=no
2739      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2740echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2741    fi ;;
2742esac
2743CFLAGS="$save_cflags"
2744
2745# Check if a project specific CFLAGS variable has been set
2746if test x$COIN_PRJCT != x; then
2747  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2748  if test x$coin_tmp = xset; then
2749    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2750  fi
2751fi
2752
2753if test x"$CFLAGS" = x; then
2754
2755  coin_add_cflags=
2756  coin_opt_cflags=
2757  coin_dbg_cflags=
2758  coin_warn_cflags=
2759
2760  if test "$GCC" = "yes"; then
2761    case "$CC" in
2762      icc* | */icc*)
2763        ;;
2764      *)
2765        coin_opt_cflags="-O3"
2766        coin_add_cflags="-pipe"
2767        coin_dbg_cflags="-g"
2768        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2769        case $build in
2770          *-darwin*)
2771            ;;
2772          *)
2773            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2774            ;;
2775        esac
2776        case $enable_doscompile in
2777          mingw)
2778            CFLAGS="-mno-cygwin"
2779            cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785
2786int
2787main ()
2788{
2789int i=0; i++;
2790  ;
2791  return 0;
2792}
2793_ACEOF
2794rm -f conftest.$ac_objext conftest$ac_exeext
2795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2796  (eval $ac_link) 2>conftest.er1
2797  ac_status=$?
2798  grep -v '^ *+' conftest.er1 >conftest.err
2799  rm -f conftest.er1
2800  cat conftest.err >&5
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); } &&
2803         { ac_try='test -z "$ac_c_werror_flag"
2804                         || test ! -s conftest.err'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; } &&
2810         { ac_try='test -s conftest$ac_exeext'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; }; then
2816  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
2822rm -f conftest.err conftest.$ac_objext \
2823      conftest$ac_exeext conftest.$ac_ext
2824            CFLAGS=
2825          ;;
2826        esac
2827    esac
2828  fi
2829  if test -z "$coin_opt_cflags"; then
2830    case $build in
2831      *-cygwin* | *-mingw*)
2832        case "$CC" in
2833          cl* | */cl* | CL* | */CL*)
2834            coin_opt_cflags='-MT -O2'
2835            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2836            coin_dbg_cflags='-MTd'
2837            ;;
2838          icl* | */icl* | ICL* | */ICL*)
2839            coin_opt_cflags='-MT -Ox'
2840            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2841            coin_dbg_cflags='-MTd -debug'
2842            ;;
2843        esac
2844        ;;
2845      *-linux-*)
2846        case "$CC" in
2847          icc* | */icc*)
2848            coin_opt_cflags="-O3 -ip -mp1"
2849            coin_add_cflags=""
2850            coin_dbg_cflags="-g"
2851            # Check if -i_dynamic is necessary (for new glibc library)
2852            CFLAGS=
2853            cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859
2860int
2861main ()
2862{
2863int i=0; i++;
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext conftest$ac_exeext
2869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870  (eval $ac_link) 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } &&
2877         { ac_try='test -z "$ac_c_werror_flag"
2878                         || test ! -s conftest.err'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; } &&
2884         { ac_try='test -s conftest$ac_exeext'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  :
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895coin_add_cflags="-i_dynamic $coin_add_cflags"
2896fi
2897rm -f conftest.err conftest.$ac_objext \
2898      conftest$ac_exeext conftest.$ac_ext
2899            ;;
2900          pgcc* | */pgcc*)
2901            coin_opt_cflags="-fast"
2902            coin_add_cflags="-Kieee -pc 64"
2903            coin_dbg_cflags="-g"
2904            ;;
2905        esac
2906        ;;
2907      *-ibm-*)
2908        case "$CC" in
2909          xlc* | */xlc* | mpxlc* | */mpxlc*)
2910            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2911            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2912            coin_dbg_cflags="-g"
2913          ;;
2914        esac
2915        ;;
2916      *-hp-*)
2917        coin_opt_cflags="-O"
2918        coin_add_cflags="-Ae"
2919        coin_dbg_cflags="-g"
2920        ;;
2921      *-*-solaris*)
2922        coin_opt_cflags="-xO4"
2923        coin_dbg_cflags="-g"
2924        ;;
2925      *-sgi-*)
2926        coin_opt_cflags="-O -OPT:Olimit=0"
2927        coin_dbg_cflags="-g"
2928        ;;
2929    esac
2930  fi
2931
2932  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2933    coin_dbg_cflags="-g"
2934  fi
2935
2936  if test -z "$coin_opt_cflags"; then
2937    # Try if -O option works if nothing else is set
2938    CFLAGS="-O"
2939    cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949int i=0; i++;
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext conftest$ac_exeext
2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956  (eval $ac_link) 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } &&
2963         { ac_try='test -z "$ac_c_werror_flag"
2964                         || test ! -s conftest.err'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; } &&
2970         { ac_try='test -s conftest$ac_exeext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  coin_opt_cflags="-O"
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984  fi
2985
2986  # if PM doesn't want the warning messages, take them out
2987  if test x"$coin_skip_warn_cflags" = xyes; then
2988    coin_warn_cflags=
2989  fi
2990
2991  if test x${DBG_CFLAGS+set} != xset; then
2992    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2993  fi
2994  if test x${OPT_CFLAGS+set} != xset; then
2995    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2996  fi
2997
2998  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2999  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3000
3001  if test "$coin_debug_compile" = "true"; then
3002    CFLAGS="$DBG_CFLAGS"
3003  else
3004    CFLAGS="$OPT_CFLAGS"
3005  fi
3006else
3007  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3008  if test x${DBG_CFLAGS+set} != xset; then
3009    DBG_CFLAGS="$CFLAGS"
3010  fi
3011  if test x${OPT_CFLAGS+set} != xset; then
3012    OPT_CFLAGS="$CFLAGS"
3013  fi
3014fi
3015
3016# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3017
3018case "$CFLAGS" in
3019  *-mno-cygwin*)
3020    if test x${CPPFLAGS+set} != xset ; then
3021      CPPFLAGS="-mno-cygwin"
3022    else
3023      case "$CPPFLAGS" in
3024        *-mno-cygwin*)
3025          ;;
3026        *)
3027          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3028          ;;
3029      esac
3030    fi ;;
3031esac
3032
3033# Try if CFLAGS works
3034save_CFLAGS="$CFLAGS"
3035cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h.  */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h.  */
3041
3042int
3043main ()
3044{
3045int i=0; i++;
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext conftest$ac_exeext
3051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052  (eval $ac_link) 2>conftest.er1
3053  ac_status=$?
3054  grep -v '^ *+' conftest.er1 >conftest.err
3055  rm -f conftest.er1
3056  cat conftest.err >&5
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); } &&
3059         { ac_try='test -z "$ac_c_werror_flag"
3060                         || test ! -s conftest.err'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; } &&
3066         { ac_try='test -s conftest$ac_exeext'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; }; then
3072  :
3073else
3074  echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077CFLAGS=
3078fi
3079rm -f conftest.err conftest.$ac_objext \
3080      conftest$ac_exeext conftest.$ac_ext
3081if test -z "$CFLAGS"; then
3082  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3083echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3084  CFLAGS='-O'
3085  cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h.  */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h.  */
3091
3092int
3093main ()
3094{
3095int i=0; i++;
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100rm -f conftest.$ac_objext conftest$ac_exeext
3101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102  (eval $ac_link) 2>conftest.er1
3103  ac_status=$?
3104  grep -v '^ *+' conftest.er1 >conftest.err
3105  rm -f conftest.er1
3106  cat conftest.err >&5
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); } &&
3109         { ac_try='test -z "$ac_c_werror_flag"
3110                         || test ! -s conftest.err'
3111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112  (eval $ac_try) 2>&5
3113  ac_status=$?
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }; } &&
3116         { ac_try='test -s conftest$ac_exeext'
3117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; }; then
3122  :
3123else
3124  echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127CFLAGS=
3128fi
3129rm -f conftest.err conftest.$ac_objext \
3130      conftest$ac_exeext conftest.$ac_ext
3131  if test -z "$CFLAGS"; then
3132    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3133echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3134  fi
3135fi
3136
3137{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3138echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3139
3140
3141if test x"$MPICC" = x; then :; else
3142  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3143echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3144  CC="$MPICC"
3145fi
3146
3147# Correct the LD variable if we are using the MS or Intel-windows compiler
3148case "$CC" in
3149  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3150    case $build in
3151  *-mingw*)
3152    if test "${LD+set}" = set; then :; else
3153      LD=link
3154    fi
3155    ;;
3156 esac
3157 case $enable_doscompile in
3158   msvc)
3159     if test "x${LD+set}" = xset; then :; else
3160       LD=link
3161     fi
3162     ;;
3163 esac
3164
3165    ;;
3166esac
3167
3168ac_ext=c
3169ac_cpp='$CPP $CPPFLAGS'
3170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173
3174
3175
3176# Check if pkg-config is available (to setup addlibs file)
3177
3178
3179# Check whether --enable-pkg-config or --disable-pkg-config was given.
3180if test "${enable_pkg_config+set}" = set; then
3181  enableval="$enable_pkg_config"
3182  use_pkgconfig="$enableval"
3183else
3184  use_pkgconfig=yes
3185fi;
3186
3187if test $use_pkgconfig = yes ; then
3188  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3189    if test -n "$ac_tool_prefix"; then
3190  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3191set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3192echo "$as_me:$LINENO: checking for $ac_word" >&5
3193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  case $PKG_CONFIG in
3198  [\\/]* | ?:[\\/]*)
3199  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3200  ;;
3201  *)
3202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216  ;;
3217esac
3218fi
3219PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3220
3221if test -n "$PKG_CONFIG"; then
3222  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3223echo "${ECHO_T}$PKG_CONFIG" >&6
3224else
3225  echo "$as_me:$LINENO: result: no" >&5
3226echo "${ECHO_T}no" >&6
3227fi
3228
3229fi
3230if test -z "$ac_cv_path_PKG_CONFIG"; then
3231  ac_pt_PKG_CONFIG=$PKG_CONFIG
3232  # Extract the first word of "pkg-config", so it can be a program name with args.
3233set dummy pkg-config; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  case $ac_pt_PKG_CONFIG in
3240  [\\/]* | ?:[\\/]*)
3241  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3242  ;;
3243  *)
3244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258  ;;
3259esac
3260fi
3261ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3262
3263if test -n "$ac_pt_PKG_CONFIG"; then
3264  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3265echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3266else
3267  echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
3269fi
3270
3271  PKG_CONFIG=$ac_pt_PKG_CONFIG
3272else
3273  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3274fi
3275
3276  fi
3277  if test -n "$PKG_CONFIG"; then
3278    _pkg_min_version=0.9.0
3279    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3280echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3281    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3282      echo "$as_me:$LINENO: result: yes" >&5
3283echo "${ECHO_T}yes" >&6
3284    else
3285      echo "$as_me:$LINENO: result: no" >&5
3286echo "${ECHO_T}no" >&6
3287      PKG_CONFIG=""
3288    fi
3289  fi
3290
3291  # check if pkg-config supports the short-errors flag
3292  if test -n "$PKG_CONFIG" && \
3293    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3294    pkg_short_errors=" --short-errors "
3295  else
3296    pkg_short_errors=""
3297  fi
3298fi
3299
3300
3301
3302if test -n "$PKG_CONFIG"; then
3303  COIN_HAS_PKGCONFIG_TRUE=
3304  COIN_HAS_PKGCONFIG_FALSE='#'
3305else
3306  COIN_HAS_PKGCONFIG_TRUE='#'
3307  COIN_HAS_PKGCONFIG_FALSE=
3308fi
3309
3310
3311
3312# assemble pkg-config search path for installed projects
3313COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3314
3315# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3316# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3317# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3318if test "x${prefix}" = xNONE ; then
3319  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3320else
3321  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3322fi
3323
3324
3325# Check whether --with-coin-instdir or --without-coin-instdir was given.
3326if test "${with_coin_instdir+set}" = set; then
3327  withval="$with_coin_instdir"
3328  if test -d "$withval"; then : ; else
3329     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3330echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3331   { (exit 1); exit 1; }; }
3332   fi
3333   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3334
3335fi;
3336
3337
3338
3339# assemble additional pkg-config search paths for uninstalled projects
3340if test x$coin_projectdir = xyes ; then
3341  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3342  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3343  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3344  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
3345  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3346  if test -e ../coin_subdirs.txt ; then
3347    for i in `cat ../coin_subdirs.txt` ; do
3348      if test -d ../$i ; then
3349        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3350      fi
3351      if test -d ../$i/pkgconfig ; then
3352        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3353      fi
3354    done
3355  fi
3356
3357  if test -e ../../coin_subdirs.txt ; then
3358    for i in `cat ../../coin_subdirs.txt` ; do
3359      if test -d ../../$i ; then
3360        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3361      fi
3362      if test -d ../../$i/pkgconfig ; then
3363        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3364      fi
3365    done
3366  fi
3367
3368
3369fi
3370
3371
3372
3373# Initialize automake
3374{
3375
3376
3377
3378# START
3379
3380# Test if force_shared has been set
3381if test "x" = xforce_shared; then
3382  if test x$enable_shared = xno; then
3383    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3384echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3385   { (exit 1); exit 1; }; }
3386  fi
3387  enable_shared=yes;
3388else
3389  # On Cygwin and AIX, building DLLs doesn't work
3390  case $build in
3391    *-cygwin*)
3392      coin_disable_shared=yes
3393      platform=Cygwin
3394    ;;
3395    *-aix*)
3396      coin_disable_shared=yes
3397      platform=AIX
3398    ;;
3399    *-mingw*)
3400      coin_disable_shared=yes
3401      platform="Msys"
3402#      case "$CXX" in
3403#        cl*)
3404#          coin_disable_shared=yes
3405#          platform="Msys with cl"
3406#      ;;
3407#      esac
3408    ;;
3409  esac
3410fi
3411if test x"$coin_disable_shared" = xyes; then
3412  if test x"$enable_shared" = xyes; then
3413    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3414echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3415  fi
3416  enable_shared=no
3417fi
3418# By default, we only want the shared objects to be compiled
3419# Check whether --enable-static or --disable-static was given.
3420if test "${enable_static+set}" = set; then
3421  enableval="$enable_static"
3422  p=${PACKAGE-default}
3423    case $enableval in
3424    yes) enable_static=yes ;;
3425    no) enable_static=no ;;
3426    *)
3427     enable_static=no
3428      # Look at the argument we got.  We use all the common list separators.
3429      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3430      for pkg in $enableval; do
3431        IFS="$lt_save_ifs"
3432        if test "X$pkg" = "X$p"; then
3433          enable_static=yes
3434        fi
3435      done
3436      IFS="$lt_save_ifs"
3437      ;;
3438    esac
3439else
3440  enable_static=no
3441fi;
3442
3443
3444
3445
3446# Initialize automake
3447echo "$as_me:$LINENO: checking for egrep" >&5
3448echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3449if test "${ac_cv_prog_egrep+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3453    then ac_cv_prog_egrep='grep -E'
3454    else ac_cv_prog_egrep='egrep'
3455    fi
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3458echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3459 EGREP=$ac_cv_prog_egrep
3460
3461
3462am__api_version="1.9"
3463# Find a good install program.  We prefer a C program (faster),
3464# so one script is as good as another.  But avoid the broken or
3465# incompatible versions:
3466# SysV /etc/install, /usr/sbin/install
3467# SunOS /usr/etc/install
3468# IRIX /sbin/install
3469# AIX /bin/install
3470# AmigaOS /C/install, which installs bootblocks on floppy discs
3471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3474# OS/2's system install, which has a completely different semantic
3475# ./install, which can be erroneously created by make from ./install.sh.
3476echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3477echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3478if test -z "$INSTALL"; then
3479if test "${ac_cv_path_install+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  test -z "$as_dir" && as_dir=.
3487  # Account for people who put trailing slashes in PATH elements.
3488case $as_dir/ in
3489  ./ | .// | /cC/* | \
3490  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3491  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3492  /usr/ucb/* ) ;;
3493  *)
3494    # OSF1 and SCO ODT 3.0 have their own names for install.
3495    # Don't use installbsd from OSF since it installs stuff as root
3496    # by default.
3497    for ac_prog in ginstall scoinst install; do
3498      for ac_exec_ext in '' $ac_executable_extensions; do
3499        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3500          if test $ac_prog = install &&
3501            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3502            # AIX install.  It has an incompatible calling convention.
3503            :
3504          elif test $ac_prog = install &&
3505            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3506            # program-specific install script used by HP pwplus--don't use.
3507            :
3508          else
3509            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3510            break 3
3511          fi
3512        fi
3513      done
3514    done
3515    ;;
3516esac
3517done
3518
3519
3520fi
3521  if test "${ac_cv_path_install+set}" = set; then
3522    INSTALL=$ac_cv_path_install
3523  else
3524    # As a last resort, use the slow shell script.  We don't cache a
3525    # path for INSTALL within a source directory, because that will
3526    # break other packages using the cache if that directory is
3527    # removed, or if the path is relative.
3528    INSTALL=$ac_install_sh
3529  fi
3530fi
3531echo "$as_me:$LINENO: result: $INSTALL" >&5
3532echo "${ECHO_T}$INSTALL" >&6
3533
3534# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3535# It thinks the first close brace ends the variable substitution.
3536test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3537
3538test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3539
3540test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3541
3542echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3543echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3544# Just in case
3545sleep 1
3546echo timestamp > conftest.file
3547# Do `set' in a subshell so we don't clobber the current shell's
3548# arguments.  Must try -L first in case configure is actually a
3549# symlink; some systems play weird games with the mod time of symlinks
3550# (eg FreeBSD returns the mod time of the symlink's containing
3551# directory).
3552if (
3553   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3554   if test "$*" = "X"; then
3555      # -L didn't work.
3556      set X `ls -t $srcdir/configure conftest.file`
3557   fi
3558   rm -f conftest.file
3559   if test "$*" != "X $srcdir/configure conftest.file" \
3560      && test "$*" != "X conftest.file $srcdir/configure"; then
3561
3562      # If neither matched, then we have a broken ls.  This can happen
3563      # if, for instance, CONFIG_SHELL is bash and it inherits a
3564      # broken ls alias from the environment.  This has actually
3565      # happened.  Such a system could not be considered "sane".
3566      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3567alias in your environment" >&5
3568echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3569alias in your environment" >&2;}
3570   { (exit 1); exit 1; }; }
3571   fi
3572
3573   test "$2" = conftest.file
3574   )
3575then
3576   # Ok.
3577   :
3578else
3579   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3580Check your system clock" >&5
3581echo "$as_me: error: newly created file is older than distributed files!
3582Check your system clock" >&2;}
3583   { (exit 1); exit 1; }; }
3584fi
3585echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587test "$program_prefix" != NONE &&
3588  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3589# Use a double $ so make ignores it.
3590test "$program_suffix" != NONE &&
3591  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3592# Double any \ or $.  echo might interpret backslashes.
3593# By default was `s,x,x', remove it if useless.
3594cat <<\_ACEOF >conftest.sed
3595s/[\\$]/&&/g;s/;s,x,x,$//
3596_ACEOF
3597program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3598rm conftest.sed
3599
3600# expand $ac_aux_dir to an absolute path
3601am_aux_dir=`cd $ac_aux_dir && pwd`
3602
3603test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3604# Use eval to expand $SHELL
3605if eval "$MISSING --run true"; then
3606  am_missing_run="$MISSING --run "
3607else
3608  am_missing_run=
3609  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3610echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3611fi
3612
3613if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3614  # We used to keeping the `.' as first argument, in order to
3615  # allow $(mkdir_p) to be used without argument.  As in
3616  #   $(mkdir_p) $(somedir)
3617  # where $(somedir) is conditionally defined.  However this is wrong
3618  # for two reasons:
3619  #  1. if the package is installed by a user who cannot write `.'
3620  #     make install will fail,
3621  #  2. the above comment should most certainly read
3622  #     $(mkdir_p) $(DESTDIR)$(somedir)
3623  #     so it does not work when $(somedir) is undefined and
3624  #     $(DESTDIR) is not.
3625  #  To support the latter case, we have to write
3626  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3627  #  so the `.' trick is pointless.
3628  mkdir_p='mkdir -p --'
3629else
3630  # On NextStep and OpenStep, the `mkdir' command does not
3631  # recognize any option.  It will interpret all options as
3632  # directories to create, and then abort because `.' already
3633  # exists.
3634  for d in ./-p ./--version;
3635  do
3636    test -d $d && rmdir $d
3637  done
3638  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3639  if test -f "$ac_aux_dir/mkinstalldirs"; then
3640    mkdir_p='$(mkinstalldirs)'
3641  else
3642    mkdir_p='$(install_sh) -d'
3643  fi
3644fi
3645
3646for ac_prog in gawk mawk nawk awk
3647do
3648  # Extract the first word of "$ac_prog", so it can be a program name with args.
3649set dummy $ac_prog; ac_word=$2
3650echo "$as_me:$LINENO: checking for $ac_word" >&5
3651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652if test "${ac_cv_prog_AWK+set}" = set; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  if test -n "$AWK"; then
3656  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  test -z "$as_dir" && as_dir=.
3663  for ac_exec_ext in '' $ac_executable_extensions; do
3664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665    ac_cv_prog_AWK="$ac_prog"
3666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670done
3671
3672fi
3673fi
3674AWK=$ac_cv_prog_AWK
3675if test -n "$AWK"; then
3676  echo "$as_me:$LINENO: result: $AWK" >&5
3677echo "${ECHO_T}$AWK" >&6
3678else
3679  echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
3681fi
3682
3683  test -n "$AWK" && break
3684done
3685
3686echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3687echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3688set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3689if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3690  echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692  cat >conftest.make <<\_ACEOF
3693all:
3694        @echo 'ac_maketemp="$(MAKE)"'
3695_ACEOF
3696# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3697eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3698if test -n "$ac_maketemp"; then
3699  eval ac_cv_prog_make_${ac_make}_set=yes
3700else
3701  eval ac_cv_prog_make_${ac_make}_set=no
3702fi
3703rm -f conftest.make
3704fi
3705if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3706  echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
3708  SET_MAKE=
3709else
3710  echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712  SET_MAKE="MAKE=${MAKE-make}"
3713fi
3714
3715rm -rf .tst 2>/dev/null
3716mkdir .tst 2>/dev/null
3717if test -d .tst; then
3718  am__leading_dot=.
3719else
3720  am__leading_dot=_
3721fi
3722rmdir .tst 2>/dev/null
3723
3724DEPDIR="${am__leading_dot}deps"
3725
3726          ac_config_commands="$ac_config_commands depfiles"
3727
3728
3729am_make=${MAKE-make}
3730cat > confinc << 'END'
3731am__doit:
3732        @echo done
3733.PHONY: am__doit
3734END
3735# If we don't find an include directive, just comment out the code.
3736echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3737echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3738am__include="#"
3739am__quote=
3740_am_result=none
3741# First try GNU make style include.
3742echo "include confinc" > confmf
3743# We grep out `Entering directory' and `Leaving directory'
3744# messages which can occur if `w' ends up in MAKEFLAGS.
3745# In particular we don't look at `^make:' because GNU make might
3746# be invoked under some other name (usually "gmake"), in which
3747# case it prints its new name instead of `make'.
3748if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3749   am__include=include
3750   am__quote=
3751   _am_result=GNU
3752fi
3753# Now try BSD make style include.
3754if test "$am__include" = "#"; then
3755   echo '.include "confinc"' > confmf
3756   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3757      am__include=.include
3758      am__quote="\""
3759      _am_result=BSD
3760   fi
3761fi
3762
3763
3764echo "$as_me:$LINENO: result: $_am_result" >&5
3765echo "${ECHO_T}$_am_result" >&6
3766rm -f confinc confmf
3767
3768# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3769if test "${enable_dependency_tracking+set}" = set; then
3770  enableval="$enable_dependency_tracking"
3771
3772fi;
3773if test "x$enable_dependency_tracking" != xno; then
3774  am_depcomp="$ac_aux_dir/depcomp"
3775  AMDEPBACKSLASH='\'
3776fi
3777
3778
3779if test "x$enable_dependency_tracking" != xno; then
3780  AMDEP_TRUE=
3781  AMDEP_FALSE='#'
3782else
3783  AMDEP_TRUE='#'
3784  AMDEP_FALSE=
3785fi
3786
3787
3788
3789
3790
3791# AC_MSG_NOTICE([Beginning automake initialisation.])
3792# Stuff for automake
3793# test to see if srcdir already configured
3794if test "`cd $srcdir && pwd`" != "`pwd`" &&
3795   test -f $srcdir/config.status; then
3796  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3797echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3798   { (exit 1); exit 1; }; }
3799fi
3800
3801# test whether we have cygpath
3802if test -z "$CYGPATH_W"; then
3803  if (cygpath --version) >/dev/null 2>/dev/null; then
3804    CYGPATH_W='cygpath -w'
3805  else
3806    CYGPATH_W=echo
3807  fi
3808fi
3809
3810
3811# Define the identity of the package.
3812 PACKAGE='thirdpartymetis'
3813 VERSION='1.2'
3814
3815
3816cat >>confdefs.h <<_ACEOF
3817#define PACKAGE "$PACKAGE"
3818_ACEOF
3819
3820
3821cat >>confdefs.h <<_ACEOF
3822#define VERSION "$VERSION"
3823_ACEOF
3824
3825# Some tools Automake needs.
3826
3827ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3828
3829
3830AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3831
3832
3833AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3834
3835
3836AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3837
3838
3839MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3840
3841install_sh=${install_sh-"$am_aux_dir/install-sh"}
3842
3843# Installed binaries are usually stripped using `strip' when the user
3844# run `make install-strip'.  However `strip' might not be the right
3845# tool to use in cross-compilation environments, therefore Automake
3846# will honor the `STRIP' environment variable to overrule this program.
3847if test "$cross_compiling" != no; then
3848  if test -n "$ac_tool_prefix"; then
3849  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}strip; ac_word=$2
3851echo "$as_me:$LINENO: checking for $ac_word" >&5
3852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853if test "${ac_cv_prog_STRIP+set}" = set; then
3854  echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856  if test -n "$STRIP"; then
3857  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862  IFS=$as_save_IFS
3863  test -z "$as_dir" && as_dir=.
3864  for ac_exec_ext in '' $ac_executable_extensions; do
3865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868    break 2
3869  fi
3870done
3871done
3872
3873fi
3874fi
3875STRIP=$ac_cv_prog_STRIP
3876if test -n "$STRIP"; then
3877  echo "$as_me:$LINENO: result: $STRIP" >&5
3878echo "${ECHO_T}$STRIP" >&6
3879else
3880  echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882fi
3883
3884fi
3885if test -z "$ac_cv_prog_STRIP"; then
3886  ac_ct_STRIP=$STRIP
3887  # Extract the first word of "strip", so it can be a program name with args.
3888set dummy strip; ac_word=$2
3889echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3892  echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894  if test -n "$ac_ct_STRIP"; then
3895  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902  for ac_exec_ext in '' $ac_executable_extensions; do
3903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904    ac_cv_prog_ac_ct_STRIP="strip"
3905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906    break 2
3907  fi
3908done
3909done
3910
3911  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3912fi
3913fi
3914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3915if test -n "$ac_ct_STRIP"; then
3916  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3917echo "${ECHO_T}$ac_ct_STRIP" >&6
3918else
3919  echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
3921fi
3922
3923  STRIP=$ac_ct_STRIP
3924else
3925  STRIP="$ac_cv_prog_STRIP"
3926fi
3927
3928fi
3929INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3930
3931# We need awk for the "check" target.  The system "awk" is bad on
3932# some platforms.
3933# Always define AMTAR for backward compatibility.
3934
3935AMTAR=${AMTAR-"${am_missing_run}tar"}
3936
3937am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3938
3939
3940
3941
3942depcc="$CC"   am_compiler_list=
3943
3944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3946if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3947  echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3950  # We make a subdir and do the tests there.  Otherwise we can end up
3951  # making bogus files that we don't know about and never remove.  For
3952  # instance it was reported that on HP-UX the gcc test will end up
3953  # making a dummy file named `D' -- because `-MD' means `put the output
3954  # in D'.
3955  mkdir conftest.dir
3956  # Copy depcomp to subdir because otherwise we won't find it if we're
3957  # using a relative directory.
3958  cp "$am_depcomp" conftest.dir
3959  cd conftest.dir
3960  # We will build objects and dependencies in a subdirectory because
3961  # it helps to detect inapplicable dependency modes.  For instance
3962  # both Tru64's cc and ICC support -MD to output dependencies as a
3963  # side effect of compilation, but ICC will put the dependencies in
3964  # the current directory while Tru64 will put them in the object
3965  # directory.
3966  mkdir sub
3967
3968  am_cv_CC_dependencies_compiler_type=none
3969  if test "$am_compiler_list" = ""; then
3970     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3971  fi
3972  for depmode in $am_compiler_list; do
3973    # Setup a source with many dependencies, because some compilers
3974    # like to wrap large dependency lists on column 80 (with \), and
3975    # we should not choose a depcomp mode which is confused by this.
3976    #
3977    # We need to recreate these files for each test, as the compiler may
3978    # overwrite some of them when testing with obscure command lines.
3979    # This happens at least with the AIX C compiler.
3980    : > sub/conftest.c
3981    for i in 1 2 3 4 5 6; do
3982      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3984      # Solaris 8's {/usr,}/bin/sh.
3985      touch sub/conftst$i.h
3986    done
3987    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988
3989    case $depmode in
3990    nosideeffect)
3991      # after this tag, mechanisms are not by side-effect, so they'll
3992      # only be used when explicitly requested
3993      if test "x$enable_dependency_tracking" = xyes; then
3994        continue
3995      else
3996        break
3997      fi
3998      ;;
3999    none) break ;;
4000    esac
4001    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4002    # mode.  It turns out that the SunPro C++ compiler does not properly
4003    # handle `-M -o', and we need to detect this.
4004    if depmode=$depmode \
4005       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4006       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4007       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4008         >/dev/null 2>conftest.err &&
4009       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4011       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012      # icc doesn't choke on unknown options, it will just issue warnings
4013      # or remarks (even with -Werror).  So we grep stderr for any message
4014      # that says an option was ignored or not supported.
4015      # When given -MP, icc 7.0 and 7.1 complain thusly:
4016      #   icc: Command line warning: ignoring option '-M'; no argument required
4017      # The diagnosis changed in icc 8.0:
4018      #   icc: Command line remark: option '-MP' not supported
4019      if (grep 'ignoring option' conftest.err ||
4020          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021        am_cv_CC_dependencies_compiler_type=$depmode
4022        break
4023      fi
4024    fi
4025  done
4026
4027  cd ..
4028  rm -rf conftest.dir
4029else
4030  am_cv_CC_dependencies_compiler_type=none
4031fi
4032
4033fi
4034echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4035echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4036CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037
4038
4039
4040if
4041  test "x$enable_dependency_tracking" != xno \
4042  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043  am__fastdepCC_TRUE=
4044  am__fastdepCC_FALSE='#'
4045else
4046  am__fastdepCC_TRUE='#'
4047  am__fastdepCC_FALSE=
4048fi
4049
4050
4051
4052echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4053echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4054    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4055if test "${enable_maintainer_mode+set}" = set; then
4056  enableval="$enable_maintainer_mode"
4057  USE_MAINTAINER_MODE=$enableval
4058else
4059  USE_MAINTAINER_MODE=no
4060fi;
4061  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4062echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4063
4064
4065if test $USE_MAINTAINER_MODE = yes; then
4066  MAINTAINER_MODE_TRUE=
4067  MAINTAINER_MODE_FALSE='#'
4068else
4069  MAINTAINER_MODE_TRUE='#'
4070  MAINTAINER_MODE_FALSE=
4071fi
4072
4073  MAINT=$MAINTAINER_MODE_TRUE
4074
4075
4076
4077coin_have_externals=no
4078if test "$enable_maintainer_mode" = yes; then
4079
4080  # If maintainer mode is chosen, we make sure that the correct versions
4081  # of the tools are used, and that we know where libtool.m4 is (to
4082  # recreate acinclude.m4)
4083
4084
4085  LIBTOOLM4=
4086  # Normally, $HOME
4087  AUTOTOOLS_DFLT=$HOME
4088
4089  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4090echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4091if test "${ac_cv_use_correct_autotools+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  ac_cv_use_correct_autotools=check
4095fi
4096echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4097echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4098
4099  if test $ac_cv_use_correct_autotools = check; then
4100    ac_cv_use_correct_autotools=yes
4101    # Check if we have autoconf
4102    # Extract the first word of "autoconf", so it can be a program name with args.
4103set dummy autoconf; ac_word=$2
4104echo "$as_me:$LINENO: checking for $ac_word" >&5
4105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4106if test "${ac_cv_prog_have_autoconf+set}" = set; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  if test -n "$have_autoconf"; then
4110  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117  for ac_exec_ext in '' $ac_executable_extensions; do
4118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119    ac_cv_prog_have_autoconf="yes"
4120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121    break 2
4122  fi
4123done
4124done
4125
4126  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4127fi
4128fi
4129have_autoconf=$ac_cv_prog_have_autoconf
4130if test -n "$have_autoconf"; then
4131  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4132echo "${ECHO_T}$have_autoconf" >&6
4133else
4134  echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6
4136fi
4137
4138    if test $have_autoconf = no; then
4139      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4140echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4141   { (exit 1); exit 1; }; }
4142    fi
4143
4144    # Check whether autoconf is the correct version
4145    correct_version='2.59'
4146    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4147    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4148echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4149    autoconf --version > confauto.out 2>&1
4150    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4151      echo "$as_me:$LINENO: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
4153    else
4154      rm -f confauto.out
4155      echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6
4157      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4158echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4159   { (exit 1); exit 1; }; }
4160    fi
4161    rm -f confauto.out
4162
4163    # Check if the executable autoconf is picked up from the correct location
4164    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4165echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4166    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4167    autoconf_dir=`cd $autoconf_dir; pwd`
4168    if test x$AUTOTOOLS_DIR = x; then
4169      want_dir=$AUTOTOOLS_DFLT/bin
4170    else
4171      want_dir=$AUTOTOOLS_DIR/bin
4172    fi
4173    if test $autoconf_dir = `cd $want_dir; pwd`; then
4174      echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176    else
4177      rm -f confauto.out
4178      echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4181echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4182   { (exit 1); exit 1; }; }
4183    fi
4184
4185    # Check if we have automake
4186    # Extract the first word of "automake", so it can be a program name with args.
4187set dummy automake; ac_word=$2
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190if test "${ac_cv_prog_have_automake+set}" = set; then
4191  echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193  if test -n "$have_automake"; then
4194  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199  IFS=$as_save_IFS
4200  test -z "$as_dir" && as_dir=.
4201  for ac_exec_ext in '' $ac_executable_extensions; do
4202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203    ac_cv_prog_have_automake="yes"
4204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205    break 2
4206  fi
4207done
4208done
4209
4210  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4211fi
4212fi
4213have_automake=$ac_cv_prog_have_automake
4214if test -n "$have_automake"; then
4215  echo "$as_me:$LINENO: result: $have_automake" >&5
4216echo "${ECHO_T}$have_automake" >&6
4217else
4218  echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
4220fi
4221
4222    if test $have_automake = no; then
4223      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4224echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4225   { (exit 1); exit 1; }; }
4226    fi
4227
4228    # Check whether automake is the correct version
4229    correct_version='1.9.6'
4230    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4231    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4232echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4233    automake --version > confauto.out 2>&1
4234    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4235      echo "$as_me:$LINENO: result: yes" >&5
4236echo "${ECHO_T}yes" >&6
4237    else
4238      rm -f confauto.out
4239      echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4242echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4243   { (exit 1); exit 1; }; }
4244    fi
4245    rm -f confauto.out
4246
4247    # Check if the executable automake is picked up from the correct location
4248    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4249echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4250    automake_dir=`which automake | sed -e 's=/automake=='`
4251    automake_dir=`cd $automake_dir; pwd`
4252    if test x$AUTOTOOLS_DIR = x; then
4253      want_dir=$AUTOTOOLS_DFLT/bin
4254    else
4255      want_dir=$AUTOTOOLS_DIR/bin
4256    fi
4257    if test $automake_dir = `cd $want_dir; pwd`; then
4258      echo "$as_me:$LINENO: result: yes" >&5
4259echo "${ECHO_T}yes" >&6
4260    else
4261      rm -f confauto.out
4262      echo "$as_me:$LINENO: result: no" >&5
4263echo "${ECHO_T}no" >&6
4264      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4265echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4266   { (exit 1); exit 1; }; }
4267    fi
4268
4269    # Check if this is the correct version of libtool (with escaped dots)
4270    if test x$AUTOTOOLS_DIR = x; then
4271      want_dir=$AUTOTOOLS_DFLT/share
4272    else
4273      want_dir=$AUTOTOOLS_DIR/share
4274    fi
4275    correct_version='1.5.22'
4276    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4277    if test -r $want_dir/libtool/ltmain.sh; then
4278  have_ltmain=yes
4279  :
4280else
4281  have_ltmain=no
4282  :
4283fi
4284
4285    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4286echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4287    if test $have_ltmain = yes; then
4288    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4289        echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291      else
4292        echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4295echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4296   { (exit 1); exit 1; }; }
4297      fi
4298    else
4299      echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
4301      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4302echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4303   { (exit 1); exit 1; }; }
4304    fi
4305  fi
4306
4307  # Check if we can find the libtool file
4308  if test x$AUTOTOOLS_DIR = x; then
4309    want_dir=$AUTOTOOLS_DFLT/share
4310  else
4311    want_dir=$AUTOTOOLS_DIR/share
4312  fi
4313  if test -r $want_dir/aclocal/libtool.m4; then
4314  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4315  :
4316else
4317  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4318echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4319   { (exit 1); exit 1; }; }
4320  :
4321fi
4322
4323
4324  # Check if we have an Externals file
4325  if test -r $srcdir/Externals; then
4326    coin_have_externals=yes
4327  fi
4328  # Check if subversion is installed and understands https
4329  # Extract the first word of "svn", so it can be a program name with args.
4330set dummy svn; ac_word=$2
4331echo "$as_me:$LINENO: checking for $ac_word" >&5
4332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333if test "${ac_cv_prog_have_svn+set}" = set; then
4334  echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336  if test -n "$have_svn"; then
4337  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342  IFS=$as_save_IFS
4343  test -z "$as_dir" && as_dir=.
4344  for ac_exec_ext in '' $ac_executable_extensions; do
4345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346    ac_cv_prog_have_svn="yes"
4347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348    break 2
4349  fi
4350done
4351done
4352
4353  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4354fi
4355fi
4356have_svn=$ac_cv_prog_have_svn
4357if test -n "$have_svn"; then
4358  echo "$as_me:$LINENO: result: $have_svn" >&5
4359echo "${ECHO_T}$have_svn" >&6
4360else
4361  echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363fi
4364
4365  if test x$have_svn = xyes; then
4366    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4367echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4368if test "${ac_cv_svn_understands_https+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  svn --version > confauto.out 2>&1
4372                    if $EGREP https confauto.out >/dev/null 2>&1; then
4373                      ac_cv_svn_understands_https=yes
4374                    else
4375                      ac_cv_svn_understands_https=no
4376                      have_svn=no
4377                      ac_cv_prog_have_svn=no
4378                    fi
4379                    rm -f confauto.out
4380fi
4381echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4382echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4383  fi
4384
4385  # Find the location of the BuildTools directory
4386  BUILDTOOLSDIR=
4387  if test -r $srcdir/BuildTools/coin.m4; then
4388    BUILDTOOLSDIR=$srcdir/BuildTools
4389  else
4390    if test -r $srcdir/../BuildTools/coin.m4; then
4391      BUILDTOOLSDIR=$srcdir/../BuildTools
4392    else
4393      if test -r $srcdir/../../BuildTools/coin.m4; then
4394        BUILDTOOLSDIR=$srcdir/../../BuildTools
4395      else
4396        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4397echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4398   { (exit 1); exit 1; }; }
4399      fi
4400    fi
4401  fi
4402
4403
4404  # The following variable is set to the name of the directory where
4405  # the autotool scripts are located
4406
4407  AUX_DIR=$ac_aux_dir
4408fi
4409
4410# helpful variable for the base directory of this package
4411abs_source_dir=`cd $srcdir; pwd`
4412
4413
4414# Stuff for example Makefiles
4415if test x$prefix = xNONE; then
4416  full_prefix=$ac_default_prefix
4417else
4418  full_prefix=$prefix
4419fi
4420full_prefix=`cd $full_prefix ; pwd`
4421
4422abs_lib_dir=$full_prefix/lib
4423
4424abs_include_dir=$full_prefix/include
4425
4426abs_bin_dir=$full_prefix/bin
4427
4428
4429
4430if test $coin_have_externals = yes && test x$have_svn = xyes; then
4431  HAVE_EXTERNALS_TRUE=
4432  HAVE_EXTERNALS_FALSE='#'
4433else
4434  HAVE_EXTERNALS_TRUE='#'
4435  HAVE_EXTERNALS_FALSE=
4436fi
4437
4438
4439# AC_MSG_NOTICE([End automake initialisation.])
4440
4441
4442
4443LIBTOOL=
4444if test -r ../libtool; then
4445  coin_config_dir=..
4446  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4447fi
4448if test "x$LIBTOOL" = x; then
4449  if test -r ../../libtool; then
4450    coin_config_dir=../..
4451    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4452  fi
4453fi
4454
4455if test "x$LIBTOOL" = x; then
4456# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4457  # Stuff for libtool
4458  # Check whether --enable-shared or --disable-shared was given.
4459if test "${enable_shared+set}" = set; then
4460  enableval="$enable_shared"
4461  p=${PACKAGE-default}
4462    case $enableval in
4463    yes) enable_shared=yes ;;
4464    no) enable_shared=no ;;
4465    *)
4466      enable_shared=no
4467      # Look at the argument we got.  We use all the common list separators.
4468      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4469      for pkg in $enableval; do
4470        IFS="$lt_save_ifs"
4471        if test "X$pkg" = "X$p"; then
4472          enable_shared=yes
4473        fi
4474      done
4475      IFS="$lt_save_ifs"
4476      ;;
4477    esac
4478else
4479  enable_shared=yes
4480fi;
4481
4482# Check whether --enable-fast-install or --disable-fast-install was given.
4483if test "${enable_fast_install+set}" = set; then
4484  enableval="$enable_fast_install"
4485  p=${PACKAGE-default}
4486    case $enableval in
4487    yes) enable_fast_install=yes ;;
4488    no) enable_fast_install=no ;;
4489    *)
4490      enable_fast_install=no
4491      # Look at the argument we got.  We use all the common list separators.
4492      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4493      for pkg in $enableval; do
4494        IFS="$lt_save_ifs"
4495        if test "X$pkg" = "X$p"; then
4496          enable_fast_install=yes
4497        fi
4498      done
4499      IFS="$lt_save_ifs"
4500      ;;
4501    esac
4502else
4503  enable_fast_install=yes
4504fi;
4505
4506echo "$as_me:$LINENO: checking host system type" >&5
4507echo $ECHO_N "checking host system type... $ECHO_C" >&6
4508if test "${ac_cv_host+set}" = set; then
4509  echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511  ac_cv_host_alias=$host_alias
4512test -z "$ac_cv_host_alias" &&
4513  ac_cv_host_alias=$ac_cv_build_alias
4514ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4515  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4516echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4517   { (exit 1); exit 1; }; }
4518
4519fi
4520echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4521echo "${ECHO_T}$ac_cv_host" >&6
4522host=$ac_cv_host
4523host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4524host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4525host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4526
4527
4528echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4529echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4530if test "${lt_cv_path_SED+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  # Loop through the user's path and test for sed and gsed.
4534# Then use that list of sed's as ones to test for truncation.
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538  IFS=$as_save_IFS
4539  test -z "$as_dir" && as_dir=.
4540  for lt_ac_prog in sed gsed; do
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4543        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4544      fi
4545    done
4546  done
4547done
4548lt_ac_max=0
4549lt_ac_count=0
4550# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4551# along with /bin/sed that truncates output.
4552for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4553  test ! -f $lt_ac_sed && continue
4554  cat /dev/null > conftest.in
4555  lt_ac_count=0
4556  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4557  # Check for GNU sed and select it if it is found.
4558  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4559    lt_cv_path_SED=$lt_ac_sed
4560    break
4561  fi
4562  while true; do
4563    cat conftest.in conftest.in >conftest.tmp
4564    mv conftest.tmp conftest.in
4565    cp conftest.in conftest.nl
4566    echo >>conftest.nl
4567    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4568    cmp -s conftest.out conftest.nl || break
4569    # 10000 chars as input seems more than enough
4570    test $lt_ac_count -gt 10 && break
4571    lt_ac_count=`expr $lt_ac_count + 1`
4572    if test $lt_ac_count -gt $lt_ac_max; then
4573      lt_ac_max=$lt_ac_count
4574      lt_cv_path_SED=$lt_ac_sed
4575    fi
4576  done
4577done
4578
4579fi
4580
4581SED=$lt_cv_path_SED
4582echo "$as_me:$LINENO: result: $SED" >&5
4583echo "${ECHO_T}$SED" >&6
4584
4585
4586# Check whether --with-gnu-ld or --without-gnu-ld was given.
4587if test "${with_gnu_ld+set}" = set; then
4588  withval="$with_gnu_ld"
4589  test "$withval" = no || with_gnu_ld=yes
4590else
4591  with_gnu_ld=no
4592fi;
4593ac_prog=ld
4594if test "$GCC" = yes; then
4595  # Check if gcc -print-prog-name=ld gives a path.
4596  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4597echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4598  case $host in
4599  *-*-mingw*)
4600    # gcc leaves a trailing carriage return which upsets mingw
4601    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4602  *)
4603    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4604  esac
4605  case $ac_prog in
4606    # Accept absolute paths.
4607    [\\/]* | ?:[\\/]*)
4608      re_direlt='/[^/][^/]*/\.\./'
4609      # Canonicalize the pathname of ld
4610      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4611      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4612        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4613      done
4614      test -z "$LD" && LD="$ac_prog"
4615      ;;
4616  "")
4617    # If it fails, then pretend we aren't using GCC.
4618    ac_prog=ld
4619    ;;
4620  *)
4621    # If it is relative, then search for the first ld in PATH.
4622    with_gnu_ld=unknown
4623    ;;
4624  esac
4625elif test "$with_gnu_ld" = yes; then
4626  echo "$as_me:$LINENO: checking for GNU ld" >&5
4627echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4628else
4629  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4630echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4631fi
4632if test "${lt_cv_path_LD+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  if test -z "$LD"; then
4636  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4637  for ac_dir in $PATH; do
4638    IFS="$lt_save_ifs"
4639    test -z "$ac_dir" && ac_dir=.
4640    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4641      lt_cv_path_LD="$ac_dir/$ac_prog"
4642      # Check to see if the program is GNU ld.  I'd rather use --version,
4643      # but apparently some variants of GNU ld only accept -v.
4644      # Break only if it was the GNU/non-GNU ld that we prefer.
4645      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4646      *GNU* | *'with BFD'*)
4647        test "$with_gnu_ld" != no && break
4648        ;;
4649      *)
4650        test "$with_gnu_ld" != yes && break
4651        ;;
4652      esac
4653    fi
4654  done
4655  IFS="$lt_save_ifs"
4656else
4657  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4658fi
4659fi
4660
4661LD="$lt_cv_path_LD"
4662if test -n "$LD"; then
4663  echo "$as_me:$LINENO: result: $LD" >&5
4664echo "${ECHO_T}$LD" >&6
4665else
4666  echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668fi
4669test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4670echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4671   { (exit 1); exit 1; }; }
4672echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4673echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4674if test "${lt_cv_prog_gnu_ld+set}" = set; then
4675  echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4678case `$LD -v 2>&1 </dev/null` in
4679*GNU* | *'with BFD'*)
4680  lt_cv_prog_gnu_ld=yes
4681  ;;
4682*)
4683  lt_cv_prog_gnu_ld=no
4684  ;;
4685esac
4686fi
4687echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4688echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4689with_gnu_ld=$lt_cv_prog_gnu_ld
4690
4691
4692echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4693echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4694if test "${lt_cv_ld_reload_flag+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  lt_cv_ld_reload_flag='-r'
4698fi
4699echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4700echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4701reload_flag=$lt_cv_ld_reload_flag
4702case $reload_flag in
4703"" | " "*) ;;
4704*) reload_flag=" $reload_flag" ;;
4705esac
4706reload_cmds='$LD$reload_flag -o $output$reload_objs'
4707case $host_os in
4708  darwin*)
4709    if test "$GCC" = yes; then
4710      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4711    else
4712      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4713    fi
4714    ;;
4715esac
4716
4717echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4718echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4719if test "${lt_cv_path_NM+set}" = set; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722  if test -n "$NM"; then
4723  # Let the user override the test.
4724  lt_cv_path_NM="$NM"
4725else
4726  lt_nm_to_check="${ac_tool_prefix}nm"
4727  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4728    lt_nm_to_check="$lt_nm_to_check nm"
4729  fi
4730  for lt_tmp_nm in $lt_nm_to_check; do
4731    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4732    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4733      IFS="$lt_save_ifs"
4734      test -z "$ac_dir" && ac_dir=.
4735      tmp_nm="$ac_dir/$lt_tmp_nm"
4736      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4737        # Check to see if the nm accepts a BSD-compat flag.
4738        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4739        #   nm: unknown option "B" ignored
4740        # Tru64's nm complains that /dev/null is an invalid object file
4741        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4742        */dev/null* | *'Invalid file or object type'*)
4743          lt_cv_path_NM="$tmp_nm -B"
4744          break
4745          ;;
4746        *)
4747          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4748          */dev/null*)
4749            lt_cv_path_NM="$tmp_nm -p"
4750            break
4751            ;;
4752          *)
4753            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4754            continue # so that we can try to find one that supports BSD flags
4755            ;;
4756          esac
4757          ;;
4758        esac
4759      fi
4760    done
4761    IFS="$lt_save_ifs"
4762  done
4763  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4764fi
4765fi
4766echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4767echo "${ECHO_T}$lt_cv_path_NM" >&6
4768NM="$lt_cv_path_NM"
4769
4770echo "$as_me:$LINENO: checking whether ln -s works" >&5
4771echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4772LN_S=$as_ln_s
4773if test "$LN_S" = "ln -s"; then
4774  echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776else
4777  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4778echo "${ECHO_T}no, using $LN_S" >&6
4779fi
4780
4781echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4782echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4783if test "${lt_cv_deplibs_check_method+set}" = set; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  lt_cv_file_magic_cmd='$MAGIC_CMD'
4787lt_cv_file_magic_test_file=
4788lt_cv_deplibs_check_method='unknown'
4789# Need to set the preceding variable on all platforms that support
4790# interlibrary dependencies.
4791# 'none' -- dependencies not supported.
4792# `unknown' -- same as none, but documents that we really don't know.
4793# 'pass_all' -- all dependencies passed with no checks.
4794# 'test_compile' -- check by making test program.
4795# 'file_magic [[regex]]' -- check by looking for files in library path
4796# which responds to the $file_magic_cmd with a given extended regex.
4797# If you have `file' or equivalent on your system and you're not sure
4798# whether `pass_all' will *always* work, you probably want this one.
4799
4800case $host_os in
4801aix4* | aix5*)
4802  lt_cv_deplibs_check_method=pass_all
4803  ;;
4804
4805beos*)
4806  lt_cv_deplibs_check_method=pass_all
4807  ;;
4808
4809bsdi[45]*)
4810  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4811  lt_cv_file_magic_cmd='/usr/bin/file -L'
4812  lt_cv_file_magic_test_file=/shlib/libc.so
4813  ;;
4814
4815cygwin*)
4816  # func_win32_libid is a shell function defined in ltmain.sh
4817  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4818  lt_cv_file_magic_cmd='func_win32_libid'
4819  ;;
4820
4821mingw* | pw32*)
4822  # Base MSYS/MinGW do not provide the 'file' command needed by
4823  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4824  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4825  lt_cv_file_magic_cmd='$OBJDUMP -f'
4826  ;;
4827
4828darwin* | rhapsody*)
4829  lt_cv_deplibs_check_method=pass_all
4830  ;;
4831
4832freebsd* | kfreebsd*-gnu | dragonfly*)
4833  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4834    case $host_cpu in
4835    i*86 )
4836      # Not sure whether the presence of OpenBSD here was a mistake.
4837      # Let's accept both of them until this is cleared up.
4838      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4839      lt_cv_file_magic_cmd=/usr/bin/file
4840      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4841      ;;
4842    esac
4843  else
4844    lt_cv_deplibs_check_method=pass_all
4845  fi
4846  ;;
4847
4848gnu*)
4849  lt_cv_deplibs_check_method=pass_all
4850  ;;
4851
4852hpux10.20* | hpux11*)
4853  lt_cv_file_magic_cmd=/usr/bin/file
4854  case $host_cpu in
4855  ia64*)
4856    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4857    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4858    ;;
4859  hppa*64*)
4860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4861    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4862    ;;
4863  *)
4864    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4865    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4866    ;;
4867  esac
4868  ;;
4869
4870interix3*)
4871  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4872  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4873  ;;
4874
4875irix5* | irix6* | nonstopux*)
4876  case $LD in
4877  *-32|*"-32 ") libmagic=32-bit;;
4878  *-n32|*"-n32 ") libmagic=N32;;
4879  *-64|*"-64 ") libmagic=64-bit;;
4880  *) libmagic=never-match;;
4881  esac
4882  lt_cv_deplibs_check_method=pass_all
4883  ;;
4884
4885# This must be Linux ELF.
4886linux*)
4887  lt_cv_deplibs_check_method=pass_all
4888  ;;
4889
4890netbsd*)
4891  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4893  else
4894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4895  fi
4896  ;;
4897
4898newos6*)
4899  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4900  lt_cv_file_magic_cmd=/usr/bin/file
4901  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4902  ;;
4903
4904nto-qnx*)
4905  lt_cv_deplibs_check_method=unknown
4906  ;;
4907
4908openbsd*)
4909  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4910    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4911  else
4912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4913  fi
4914  ;;
4915
4916osf3* | osf4* | osf5*)
4917  lt_cv_deplibs_check_method=pass_all
4918  ;;
4919
4920solaris*)
4921  lt_cv_deplibs_check_method=pass_all
4922  ;;
4923
4924sysv4 | sysv4.3*)
4925  case $host_vendor in
4926  motorola)
4927    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4928    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4929    ;;
4930  ncr)
4931    lt_cv_deplibs_check_method=pass_all
4932    ;;
4933  sequent)
4934    lt_cv_file_magic_cmd='/bin/file'
4935    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4936    ;;
4937  sni)
4938    lt_cv_file_magic_cmd='/bin/file'
4939    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4940    lt_cv_file_magic_test_file=/lib/libc.so
4941    ;;
4942  siemens)
4943    lt_cv_deplibs_check_method=pass_all
4944    ;;
4945  pc)
4946    lt_cv_deplibs_check_method=pass_all
4947    ;;
4948  esac
4949  ;;
4950
4951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4952  lt_cv_deplibs_check_method=pass_all
4953  ;;
4954esac
4955
4956fi
4957echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4958echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4959file_magic_cmd=$lt_cv_file_magic_cmd
4960deplibs_check_method=$lt_cv_deplibs_check_method
4961test -z "$deplibs_check_method" && deplibs_check_method=unknown
4962
4963
4964
4965
4966# If no C compiler was specified, use CC.
4967LTCC=${LTCC-"$CC"}
4968
4969# If no C compiler flags were specified, use CFLAGS.
4970LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4971
4972# Allow CC to be a program name with arguments.
4973compiler=$CC
4974
4975# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4976if test "${enable_libtool_lock+set}" = set; then
4977  enableval="$enable_libtool_lock"
4978
4979fi;
4980test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4981
4982# Some flags need to be propagated to the compiler or linker for good
4983# libtool support.
4984case $host in
4985ia64-*-hpux*)
4986  # Find out which ABI we are using.
4987  echo 'int i;' > conftest.$ac_ext
4988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989  (eval $ac_compile) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); }; then
4993    case `/usr/bin/file conftest.$ac_objext` in
4994    *ELF-32*)
4995      HPUX_IA64_MODE="32"
4996      ;;
4997    *ELF-64*)
4998      HPUX_IA64_MODE="64"
4999      ;;
5000    esac
5001  fi
5002  rm -rf conftest*
5003  ;;
5004*-*-irix6*)
5005  # Find out which ABI we are using.
5006  echo '#line 5006 "configure"' > conftest.$ac_ext
5007  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008  (eval $ac_compile) 2>&5
5009  ac_status=$?
5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011  (exit $ac_status); }; then
5012   if test "$lt_cv_prog_gnu_ld" = yes; then
5013    case `/usr/bin/file conftest.$ac_objext` in
5014    *32-bit*)
5015      LD="${LD-ld} -melf32bsmip"
5016      ;;
5017    *N32*)
5018      LD="${LD-ld} -melf32bmipn32"
5019      ;;
5020    *64-bit*)
5021      LD="${LD-ld} -melf64bmip"
5022      ;;
5023    esac
5024   else
5025    case `/usr/bin/file conftest.$ac_objext` in
5026    *32-bit*)
5027      LD="${LD-ld} -32"
5028      ;;
5029    *N32*)
5030      LD="${LD-ld} -n32"
5031      ;;
5032    *64-bit*)
5033      LD="${LD-ld} -64"
5034      ;;
5035    esac
5036   fi
5037  fi
5038  rm -rf conftest*
5039  ;;
5040
5041x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5042  # Find out which ABI we are using.
5043  echo 'int i;' > conftest.$ac_ext
5044  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045  (eval $ac_compile) 2>&5
5046  ac_status=$?
5047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); }; then
5049    case `/usr/bin/file conftest.o` in
5050    *32-bit*)
5051      case $host in
5052        x86_64-*linux*)
5053          LD="${LD-ld} -m elf_i386"
5054          ;;
5055        ppc64-*linux*|powerpc64-*linux*)
5056          LD="${LD-ld} -m elf32ppclinux"
5057          ;;
5058        s390x-*linux*)
5059          LD="${LD-ld} -m elf_s390"
5060          ;;
5061        sparc64-*linux*)
5062          LD="${LD-ld} -m elf32_sparc"
5063          ;;
5064      esac
5065      ;;
5066    *64-bit*)
5067      case $host in
5068        x86_64-*linux*)
5069          LD="${LD-ld} -m elf_x86_64"
5070          ;;
5071        ppc*-*linux*|powerpc*-*linux*)
5072          LD="${LD-ld} -m elf64ppc"
5073          ;;
5074        s390*-*linux*)
5075          LD="${LD-ld} -m elf64_s390"
5076          ;;
5077        sparc*-*linux*)
5078          LD="${LD-ld} -m elf64_sparc"
5079          ;;
5080      esac
5081      ;;
5082    esac
5083  fi
5084  rm -rf conftest*
5085  ;;
5086
5087*-*-sco3.2v5*)
5088  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5089  SAVE_CFLAGS="$CFLAGS"
5090  CFLAGS="$CFLAGS -belf"
5091  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5092echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5093if test "${lt_cv_cc_needs_belf+set}" = set; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  ac_ext=c
5097ac_cpp='$CPP $CPPFLAGS'
5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102     cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h.  */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h.  */
5108
5109int
5110main ()
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117rm -f conftest.$ac_objext conftest$ac_exeext
5118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119  (eval $ac_link) 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } &&
5126         { ac_try='test -z "$ac_c_werror_flag"
5127                         || test ! -s conftest.err'
5128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129  (eval $ac_try) 2>&5
5130  ac_status=$?
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); }; } &&
5133         { ac_try='test -s conftest$ac_exeext'
5134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135  (eval $ac_try) 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; }; then
5139  lt_cv_cc_needs_belf=yes
5140else
5141  echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144lt_cv_cc_needs_belf=no
5145fi
5146rm -f conftest.err conftest.$ac_objext \
5147      conftest$ac_exeext conftest.$ac_ext
5148     ac_ext=c
5149ac_cpp='$CPP $CPPFLAGS'
5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154fi
5155echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5156echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5157  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5158    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5159    CFLAGS="$SAVE_CFLAGS"
5160  fi
5161  ;;
5162sparc*-*solaris*)
5163  # Find out which ABI we are using.
5164  echo 'int i;' > conftest.$ac_ext
5165  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166  (eval $ac_compile) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; then
5170    case `/usr/bin/file conftest.o` in
5171    *64-bit*)
5172      case $lt_cv_prog_gnu_ld in
5173      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5174      *)    LD="${LD-ld} -64" ;;
5175      esac
5176      ;;
5177    esac
5178  fi
5179  rm -rf conftest*
5180  ;;
5181
5182
5183esac
5184
5185need_locks="$enable_libtool_lock"
5186
5187
5188ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5194echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5195# On Suns, sometimes $CPP names a directory.
5196if test -n "$CPP" && test -d "$CPP"; then
5197  CPP=
5198fi
5199if test -z "$CPP"; then
5200  if test "${ac_cv_prog_CPP+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203      # Double quotes because CPP needs to be expanded
5204    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5205    do
5206      ac_preproc_ok=false
5207for ac_c_preproc_warn_flag in '' yes
5208do
5209  # Use a header file that comes with gcc, so configuring glibc
5210  # with a fresh cross-compiler works.
5211  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212  # <limits.h> exists even on freestanding compilers.
5213  # On the NeXT, cc -E runs the code through the compiler's parser,
5214  # not just through cpp. "Syntax error" is here to catch this case.
5215  cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#ifdef __STDC__
5222# include <limits.h>
5223#else
5224# include <assert.h>
5225#endif
5226                     Syntax error
5227_ACEOF
5228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5230  ac_status=$?
5231  grep -v '^ *+' conftest.er1 >conftest.err
5232  rm -f conftest.er1
5233  cat conftest.err >&5
5234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235  (exit $ac_status); } >/dev/null; then
5236  if test -s conftest.err; then
5237    ac_cpp_err=$ac_c_preproc_warn_flag
5238    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5239  else
5240    ac_cpp_err=
5241  fi
5242else
5243  ac_cpp_err=yes
5244fi
5245if test -z "$ac_cpp_err"; then
5246  :
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251  # Broken: fails on valid input.
5252continue
5253fi
5254rm -f conftest.err conftest.$ac_ext
5255
5256  # OK, works on sane cases.  Now check whether non-existent headers
5257  # can be detected and how.
5258  cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264#include <ac_nonexistent.h>
5265_ACEOF
5266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5267  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5268  ac_status=$?
5269  grep -v '^ *+' conftest.er1 >conftest.err
5270  rm -f conftest.er1
5271  cat conftest.err >&5
5272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273  (exit $ac_status); } >/dev/null; then
5274  if test -s conftest.err; then
5275    ac_cpp_err=$ac_c_preproc_warn_flag
5276    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5277  else
5278    ac_cpp_err=
5279  fi
5280else
5281  ac_cpp_err=yes
5282fi
5283if test -z "$ac_cpp_err"; then
5284  # Broken: success on invalid input.
5285continue
5286else
5287  echo "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290  # Passes both tests.
5291ac_preproc_ok=:
5292break
5293fi
5294rm -f conftest.err conftest.$ac_ext
5295
5296done
5297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5298rm -f conftest.err conftest.$ac_ext
5299if $ac_preproc_ok; then
5300  break
5301fi
5302
5303    done
5304    ac_cv_prog_CPP=$CPP
5305
5306fi
5307  CPP=$ac_cv_prog_CPP
5308else
5309  ac_cv_prog_CPP=$CPP
5310fi
5311echo "$as_me:$LINENO: result: $CPP" >&5
5312echo "${ECHO_T}$CPP" >&6
5313ac_preproc_ok=false
5314for ac_c_preproc_warn_flag in '' yes
5315do
5316  # Use a header file that comes with gcc, so configuring glibc
5317  # with a fresh cross-compiler works.
5318  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319  # <limits.h> exists even on freestanding compilers.
5320  # On the NeXT, cc -E runs the code through the compiler's parser,
5321  # not just through cpp. "Syntax error" is here to catch this case.
5322  cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h.  */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h.  */
5328#ifdef __STDC__
5329# include <limits.h>
5330#else
5331# include <assert.h>
5332#endif
5333                     Syntax error
5334_ACEOF
5335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5336  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5337  ac_status=$?
5338  grep -v '^ *+' conftest.er1 >conftest.err
5339  rm -f conftest.er1
5340  cat conftest.err >&5
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); } >/dev/null; then
5343  if test -s conftest.err; then
5344    ac_cpp_err=$ac_c_preproc_warn_flag
5345    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5346  else
5347    ac_cpp_err=
5348  fi
5349else
5350  ac_cpp_err=yes
5351fi
5352if test -z "$ac_cpp_err"; then
5353  :
5354else
5355  echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358  # Broken: fails on valid input.
5359continue
5360fi
5361rm -f conftest.err conftest.$ac_ext
5362
5363  # OK, works on sane cases.  Now check whether non-existent headers
5364  # can be detected and how.
5365  cat >conftest.$ac_ext <<_ACEOF
5366/* confdefs.h.  */
5367_ACEOF
5368cat confdefs.h >>conftest.$ac_ext
5369cat >>conftest.$ac_ext <<_ACEOF
5370/* end confdefs.h.  */
5371#include <ac_nonexistent.h>
5372_ACEOF
5373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375  ac_status=$?
5376  grep -v '^ *+' conftest.er1 >conftest.err
5377  rm -f conftest.er1
5378  cat conftest.err >&5
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } >/dev/null; then
5381  if test -s conftest.err; then
5382    ac_cpp_err=$ac_c_preproc_warn_flag
5383    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5384  else
5385    ac_cpp_err=
5386  fi
5387else
5388  ac_cpp_err=yes
5389fi
5390if test -z "$ac_cpp_err"; then
5391  # Broken: success on invalid input.
5392continue
5393else
5394  echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397  # Passes both tests.
5398ac_preproc_ok=:
5399break
5400fi
5401rm -f conftest.err conftest.$ac_ext
5402
5403done
5404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5405rm -f conftest.err conftest.$ac_ext
5406if $ac_preproc_ok; then
5407  :
5408else
5409  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5410See \`config.log' for more details." >&5
5411echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5412See \`config.log' for more details." >&2;}
5413   { (exit 1); exit 1; }; }
5414fi
5415
5416ac_ext=c
5417ac_cpp='$CPP $CPPFLAGS'
5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422
5423echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5424echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5425if test "${ac_cv_header_stdc+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h.  */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h.  */
5434#include <stdlib.h>
5435#include <stdarg.h>
5436#include <string.h>
5437#include <float.h>
5438
5439int
5440main ()
5441{
5442
5443  ;
5444  return 0;
5445}
5446_ACEOF
5447rm -f conftest.$ac_objext
5448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449  (eval $ac_compile) 2>conftest.er1
5450  ac_status=$?
5451  grep -v '^ *+' conftest.er1 >conftest.err
5452  rm -f conftest.er1
5453  cat conftest.err >&5
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); } &&
5456         { ac_try='test -z "$ac_c_werror_flag"
5457                         || test ! -s conftest.err'
5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459  (eval $ac_try) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; } &&
5463         { ac_try='test -s conftest.$ac_objext'
5464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465  (eval $ac_try) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); }; }; then
5469  ac_cv_header_stdc=yes
5470else
5471  echo "$as_me: failed program was:" >&5
5472sed 's/^/| /' conftest.$ac_ext >&5
5473
5474ac_cv_header_stdc=no
5475fi
5476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477
5478if test $ac_cv_header_stdc = yes; then
5479  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5480  cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h.  */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h.  */
5486#include <string.h>
5487
5488_ACEOF
5489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490  $EGREP "memchr" >/dev/null 2>&1; then
5491  :
5492else
5493  ac_cv_header_stdc=no
5494fi
5495rm -f conftest*
5496
5497fi
5498
5499if test $ac_cv_header_stdc = yes; then
5500  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5501  cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h.  */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h.  */
5507#include <stdlib.h>
5508
5509_ACEOF
5510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511  $EGREP "free" >/dev/null 2>&1; then
5512  :
5513else
5514  ac_cv_header_stdc=no
5515fi
5516rm -f conftest*
5517
5518fi
5519
5520if test $ac_cv_header_stdc = yes; then
5521  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5522  if test "$cross_compiling" = yes; then
5523  :
5524else
5525  cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531#include <ctype.h>
5532#if ((' ' & 0x0FF) == 0x020)
5533# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5534# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5535#else
5536# define ISLOWER(c) \
5537                   (('a' <= (c) && (c) <= 'i') \
5538                     || ('j' <= (c) && (c) <= 'r') \
5539                     || ('s' <= (c) && (c) <= 'z'))
5540# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5541#endif
5542
5543#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5544int
5545main ()
5546{
5547  int i;
5548  for (i = 0; i < 256; i++)
5549    if (XOR (islower (i), ISLOWER (i))
5550        || toupper (i) != TOUPPER (i))
5551      exit(2);
5552  exit (0);
5553}
5554_ACEOF
5555rm -f conftest$ac_exeext
5556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557  (eval $ac_link) 2>&5
5558  ac_status=$?
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562  (eval $ac_try) 2>&5
5563  ac_status=$?
5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565  (exit $ac_status); }; }; then
5566  :
5567else
5568  echo "$as_me: program exited with status $ac_status" >&5
5569echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572( exit $ac_status )
5573ac_cv_header_stdc=no
5574fi
5575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5576fi
5577fi
5578fi
5579echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5580echo "${ECHO_T}$ac_cv_header_stdc" >&6
5581if test $ac_cv_header_stdc = yes; then
5582
5583cat >>confdefs.h <<\_ACEOF
5584#define STDC_HEADERS 1
5585_ACEOF
5586
5587fi
5588
5589# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5600                  inttypes.h stdint.h unistd.h
5601do
5602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603echo "$as_me:$LINENO: checking for $ac_header" >&5
5604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h.  */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h.  */
5614$ac_includes_default
5615
5616#include <$ac_header>
5617_ACEOF
5618rm -f conftest.$ac_objext
5619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620  (eval $ac_compile) 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } &&
5627         { ac_try='test -z "$ac_c_werror_flag"
5628                         || test ! -s conftest.err'
5629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630  (eval $ac_try) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); }; } &&
5634         { ac_try='test -s conftest.$ac_objext'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640  eval "$as_ac_Header=yes"
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645eval "$as_ac_Header=no"
5646fi
5647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648fi
5649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5651if test `eval echo '${'$as_ac_Header'}'` = yes; then
5652  cat >>confdefs.h <<_ACEOF
5653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5654_ACEOF
5655
5656fi
5657
5658done
5659
5660
5661
5662for ac_header in dlfcn.h
5663do
5664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666  echo "$as_me:$LINENO: checking for $ac_header" >&5
5667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5668if eval "test \"\${$as_ac_Header+set}\" = set"; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670fi
5671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673else
5674  # Is the header compilable?
5675echo "$as_me:$LINENO: checking $ac_header usability" >&5
5676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5677cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683$ac_includes_default
5684#include <$ac_header>
5685_ACEOF
5686rm -f conftest.$ac_objext
5687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688  (eval $ac_compile) 2>conftest.er1
5689  ac_status=$?
5690  grep -v '^ *+' conftest.er1 >conftest.err
5691  rm -f conftest.er1
5692  cat conftest.err >&5
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); } &&
5695         { ac_try='test -z "$ac_c_werror_flag"
5696                         || test ! -s conftest.err'
5697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698  (eval $ac_try) 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }; } &&
5702         { ac_try='test -s conftest.$ac_objext'
5703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704  (eval $ac_try) 2>&5
5705  ac_status=$?
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); }; }; then
5708  ac_header_compiler=yes
5709else
5710  echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713ac_header_compiler=no
5714fi
5715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717echo "${ECHO_T}$ac_header_compiler" >&6
5718
5719# Is the header present?
5720echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5722cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h.  */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h.  */
5728#include <$ac_header>
5729_ACEOF
5730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5731  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5732  ac_status=$?
5733  grep -v '^ *+' conftest.er1 >conftest.err
5734  rm -f conftest.er1
5735  cat conftest.err >&5
5736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737  (exit $ac_status); } >/dev/null; then
5738  if test -s conftest.err; then
5739    ac_cpp_err=$ac_c_preproc_warn_flag
5740    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5741  else
5742    ac_cpp_err=
5743  fi
5744else
5745  ac_cpp_err=yes
5746fi
5747if test -z "$ac_cpp_err"; then
5748  ac_header_preproc=yes
5749else
5750  echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753  ac_header_preproc=no
5754fi
5755rm -f conftest.err conftest.$ac_ext
5756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5757echo "${ECHO_T}$ac_header_preproc" >&6
5758
5759# So?  What about this header?
5760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5761  yes:no: )
5762    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5764    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5766    ac_header_preproc=yes
5767    ;;
5768  no:yes:* )
5769    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5771    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5772echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5776echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5779    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5781    (
5782      cat <<\_ASBOX
5783## --------------------------------------------------------------- ##
5784## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5785## --------------------------------------------------------------- ##
5786_ASBOX
5787    ) |
5788      sed "s/^/$as_me: WARNING:     /" >&2
5789    ;;
5790esac
5791echo "$as_me:$LINENO: checking for $ac_header" >&5
5792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794  echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796  eval "$as_ac_Header=\$ac_header_preproc"
5797fi
5798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5800
5801fi
5802if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803  cat >>confdefs.h <<_ACEOF
5804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805_ACEOF
5806
5807fi
5808
5809done
5810
5811ac_ext=cc
5812ac_cpp='$CXXCPP $CPPFLAGS'
5813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816if test -n "$ac_tool_prefix"; then
5817  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5818  do
5819    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_CXX+set}" = set; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  if test -n "$CXX"; then
5827  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834  for ac_exec_ext in '' $ac_executable_extensions; do
5835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841done
5842
5843fi
5844fi
5845CXX=$ac_cv_prog_CXX
5846if test -n "$CXX"; then
5847  echo "$as_me:$LINENO: result: $CXX" >&5
5848echo "${ECHO_T}$CXX" >&6
5849else
5850  echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852fi
5853
5854    test -n "$CXX" && break
5855  done
5856fi
5857if test -z "$CXX"; then
5858  ac_ct_CXX=$CXX
5859  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5860do
5861  # Extract the first word of "$ac_prog", so it can be a program name with args.
5862set dummy $ac_prog; ac_word=$2
5863echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  if test -n "$ac_ct_CXX"; then
5869  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878    ac_cv_prog_ac_ct_CXX="$ac_prog"
5879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884
5885fi
5886fi
5887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5888if test -n "$ac_ct_CXX"; then
5889  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5890echo "${ECHO_T}$ac_ct_CXX" >&6
5891else
5892  echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894fi
5895
5896  test -n "$ac_ct_CXX" && break
5897done
5898test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5899
5900  CXX=$ac_ct_CXX
5901fi
5902
5903
5904# Provide some information about the compiler.
5905echo "$as_me:$LINENO:" \
5906     "checking for C++ compiler version" >&5
5907ac_compiler=`set X $ac_compile; echo $2`
5908{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5909  (eval $ac_compiler --version </dev/null >&5) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }
5913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5914  (eval $ac_compiler -v </dev/null >&5) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }
5918{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5919  (eval $ac_compiler -V </dev/null >&5) 2>&5
5920  ac_status=$?
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); }
5923
5924echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5925echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5926if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h.  */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h.  */
5935
5936int
5937main ()
5938{
5939#ifndef __GNUC__
5940       choke me
5941#endif
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947rm -f conftest.$ac_objext
5948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949  (eval $ac_compile) 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } &&
5956         { ac_try='test -z "$ac_cxx_werror_flag"
5957                         || test ! -s conftest.err'
5958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959  (eval $ac_try) 2>&5
5960  ac_status=$?
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); }; } &&
5963         { ac_try='test -s conftest.$ac_objext'
5964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965  (eval $ac_try) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; }; then
5969  ac_compiler_gnu=yes
5970else
5971  echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974ac_compiler_gnu=no
5975fi
5976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5978
5979fi
5980echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5981echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5982GXX=`test $ac_compiler_gnu = yes && echo yes`
5983ac_test_CXXFLAGS=${CXXFLAGS+set}
5984ac_save_CXXFLAGS=$CXXFLAGS
5985CXXFLAGS="-g"
5986echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5988if test "${ac_cv_prog_cxx_g+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008  (eval $ac_compile) 2>conftest.er1
6009  ac_status=$?
6010  grep -v '^ *+' conftest.er1 >conftest.err
6011  rm -f conftest.er1
6012  cat conftest.err >&5
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); } &&
6015         { ac_try='test -z "$ac_cxx_werror_flag"
6016                         || test ! -s conftest.err'
6017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018  (eval $ac_try) 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }; } &&
6022         { ac_try='test -s conftest.$ac_objext'
6023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024  (eval $ac_try) 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }; }; then
6028  ac_cv_prog_cxx_g=yes
6029else
6030  echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033ac_cv_prog_cxx_g=no
6034fi
6035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
6037echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6038echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6039if test "$ac_test_CXXFLAGS" = set; then
6040  CXXFLAGS=$ac_save_CXXFLAGS
6041elif test $ac_cv_prog_cxx_g = yes; then
6042  if test "$GXX" = yes; then
6043    CXXFLAGS="-g -O2"
6044  else
6045    CXXFLAGS="-g"
6046  fi
6047else
6048  if test "$GXX" = yes; then
6049    CXXFLAGS="-O2"
6050  else
6051    CXXFLAGS=
6052  fi
6053fi
6054for ac_declaration in \
6055   '' \
6056   'extern "C" void std::exit (int) throw (); using std::exit;' \
6057   'extern "C" void std::exit (int); using std::exit;' \
6058   'extern "C" void exit (int) throw ();' \
6059   'extern "C" void exit (int);' \
6060   'void exit (int);'
6061do
6062  cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h.  */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h.  */
6068$ac_declaration
6069#include <stdlib.h>
6070int
6071main ()
6072{
6073exit (42);
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080  (eval $ac_compile) 2>conftest.er1
6081  ac_status=$?
6082  grep -v '^ *+' conftest.er1 >conftest.err
6083  rm -f conftest.er1
6084  cat conftest.err >&5
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); } &&
6087         { ac_try='test -z "$ac_cxx_werror_flag"
6088                         || test ! -s conftest.err'
6089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090  (eval $ac_try) 2>&5
6091  ac_status=$?
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); }; } &&
6094         { ac_try='test -s conftest.$ac_objext'
6095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096  (eval $ac_try) 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }; }; then
6100  :
6101else
6102  echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105continue
6106fi
6107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108  cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h.  */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h.  */
6114$ac_declaration
6115int
6116main ()
6117{
6118exit (42);
6119  ;
6120  return 0;
6121}
6122_ACEOF
6123rm -f conftest.$ac_objext
6124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125  (eval $ac_compile) 2>conftest.er1
6126  ac_status=$?
6127  grep -v '^ *+' conftest.er1 >conftest.err
6128  rm -f conftest.er1
6129  cat conftest.err >&5
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); } &&
6132         { ac_try='test -z "$ac_cxx_werror_flag"
6133                         || test ! -s conftest.err'
6134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135  (eval $ac_try) 2>&5
6136  ac_status=$?
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); }; } &&
6139         { ac_try='test -s conftest.$ac_objext'
6140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141  (eval $ac_try) 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); }; }; then
6145  break
6146else
6147  echo "$as_me: failed program was:" >&5
6148sed 's/^/| /' conftest.$ac_ext >&5
6149
6150fi
6151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6152done
6153rm -f conftest*
6154if test -n "$ac_declaration"; then
6155  echo '#ifdef __cplusplus' >>confdefs.h
6156  echo $ac_declaration      >>confdefs.h
6157  echo '#endif'             >>confdefs.h
6158fi
6159
6160ac_ext=cc
6161ac_cpp='$CXXCPP $CPPFLAGS'
6162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6165
6166depcc="$CXX"  am_compiler_list=
6167
6168echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6169echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6170if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6174  # We make a subdir and do the tests there.  Otherwise we can end up
6175  # making bogus files that we don't know about and never remove.  For
6176  # instance it was reported that on HP-UX the gcc test will end up
6177  # making a dummy file named `D' -- because `-MD' means `put the output
6178  # in D'.
6179  mkdir conftest.dir
6180  # Copy depcomp to subdir because otherwise we won't find it if we're
6181  # using a relative directory.
6182  cp "$am_depcomp" conftest.dir
6183  cd conftest.dir
6184  # We will build objects and dependencies in a subdirectory because
6185  # it helps to detect inapplicable dependency modes.  For instance
6186  # both Tru64's cc and ICC support -MD to output dependencies as a
6187  # side effect of compilation, but ICC will put the dependencies in
6188  # the current directory while Tru64 will put them in the object
6189  # directory.
6190  mkdir sub
6191
6192  am_cv_CXX_dependencies_compiler_type=none
6193  if test "$am_compiler_list" = ""; then
6194     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6195  fi
6196  for depmode in $am_compiler_list; do
6197    # Setup a source with many dependencies, because some compilers
6198    # like to wrap large dependency lists on column 80 (with \), and
6199    # we should not choose a depcomp mode which is confused by this.
6200    #
6201    # We need to recreate these files for each test, as the compiler may
6202    # overwrite some of them when testing with obscure command lines.
6203    # This happens at least with the AIX C compiler.
6204    : > sub/conftest.c
6205    for i in 1 2 3 4 5 6; do
6206      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6207      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6208      # Solaris 8's {/usr,}/bin/sh.
6209      touch sub/conftst$i.h
6210    done
6211    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6212
6213    case $depmode in
6214    nosideeffect)
6215      # after this tag, mechanisms are not by side-effect, so they'll
6216      # only be used when explicitly requested
6217      if test "x$enable_dependency_tracking" = xyes; then
6218        continue
6219      else
6220        break
6221      fi
6222      ;;
6223    none) break ;;
6224    esac
6225    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226    # mode.  It turns out that the SunPro C++ compiler does not properly
6227    # handle `-M -o', and we need to detect this.
6228    if depmode=$depmode \
6229       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6230       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6231       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6232         >/dev/null 2>conftest.err &&
6233       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6234       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6235       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6236      # icc doesn't choke on unknown options, it will just issue warnings
6237      # or remarks (even with -Werror).  So we grep stderr for any message
6238      # that says an option was ignored or not supported.
6239      # When given -MP, icc 7.0 and 7.1 complain thusly:
6240      #   icc: Command line warning: ignoring option '-M'; no argument required
6241      # The diagnosis changed in icc 8.0:
6242      #   icc: Command line remark: option '-MP' not supported
6243      if (grep 'ignoring option' conftest.err ||
6244          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6245        am_cv_CXX_dependencies_compiler_type=$depmode
6246        break
6247      fi
6248    fi
6249  done
6250
6251  cd ..
6252  rm -rf conftest.dir
6253else
6254  am_cv_CXX_dependencies_compiler_type=none
6255fi
6256
6257fi
6258echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6259echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6260CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6261
6262
6263
6264if
6265  test "x$enable_dependency_tracking" != xno \
6266  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6267  am__fastdepCXX_TRUE=
6268  am__fastdepCXX_FALSE='#'
6269else
6270  am__fastdepCXX_TRUE='#'
6271  am__fastdepCXX_FALSE=
6272fi
6273
6274
6275
6276
6277if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6278    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6279    (test "X$CXX" != "Xg++"))) ; then
6280  ac_ext=cc
6281ac_cpp='$CXXCPP $CPPFLAGS'
6282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6285echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6286echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6287if test -z "$CXXCPP"; then
6288  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6289  echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291      # Double quotes because CXXCPP needs to be expanded
6292    for CXXCPP in "$CXX -E" "/lib/cpp"
6293    do
6294      ac_preproc_ok=false
6295for ac_cxx_preproc_warn_flag in '' yes
6296do
6297  # Use a header file that comes with gcc, so configuring glibc
6298  # with a fresh cross-compiler works.
6299  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6300  # <limits.h> exists even on freestanding compilers.
6301  # On the NeXT, cc -E runs the code through the compiler's parser,
6302  # not just through cpp. "Syntax error" is here to catch this case.
6303  cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h.  */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h.  */
6309#ifdef __STDC__
6310# include <limits.h>
6311#else
6312# include <assert.h>
6313#endif
6314                     Syntax error
6315_ACEOF
6316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6318  ac_status=$?
6319  grep -v '^ *+' conftest.er1 >conftest.err
6320  rm -f conftest.er1
6321  cat conftest.err >&5
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } >/dev/null; then
6324  if test -s conftest.err; then
6325    ac_cpp_err=$ac_cxx_preproc_warn_flag
6326    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6327  else
6328    ac_cpp_err=
6329  fi
6330else
6331  ac_cpp_err=yes
6332fi
6333if test -z "$ac_cpp_err"; then
6334  :
6335else
6336  echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339  # Broken: fails on valid input.
6340continue
6341fi
6342rm -f conftest.err conftest.$ac_ext
6343
6344  # OK, works on sane cases.  Now check whether non-existent headers
6345  # can be detected and how.
6346  cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h.  */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h.  */
6352#include <ac_nonexistent.h>
6353_ACEOF
6354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } >/dev/null; then
6362  if test -s conftest.err; then
6363    ac_cpp_err=$ac_cxx_preproc_warn_flag
6364    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6365  else
6366    ac_cpp_err=
6367  fi
6368else
6369  ac_cpp_err=yes
6370fi
6371if test -z "$ac_cpp_err"; then
6372  # Broken: success on invalid input.
6373continue
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378  # Passes both tests.
6379ac_preproc_ok=:
6380break
6381fi
6382rm -f conftest.err conftest.$ac_ext
6383
6384done
6385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6386rm -f conftest.err conftest.$ac_ext
6387if $ac_preproc_ok; then
6388  break
6389fi
6390
6391    done
6392    ac_cv_prog_CXXCPP=$CXXCPP
6393
6394fi
6395  CXXCPP=$ac_cv_prog_CXXCPP
6396else
6397  ac_cv_prog_CXXCPP=$CXXCPP
6398fi
6399echo "$as_me:$LINENO: result: $CXXCPP" >&5
6400echo "${ECHO_T}$CXXCPP" >&6
6401ac_preproc_ok=false
6402for ac_cxx_preproc_warn_flag in '' yes
6403do
6404  # Use a header file that comes with gcc, so configuring glibc
6405  # with a fresh cross-compiler works.
6406  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6407  # <limits.h> exists even on freestanding compilers.
6408  # On the NeXT, cc -E runs the code through the compiler's parser,
6409  # not just through cpp. "Syntax error" is here to catch this case.
6410  cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h.  */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h.  */
6416#ifdef __STDC__
6417# include <limits.h>
6418#else
6419# include <assert.h>
6420#endif
6421                     Syntax error
6422_ACEOF
6423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6424  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6425  ac_status=$?
6426  grep -v '^ *+' conftest.er1 >conftest.err
6427  rm -f conftest.er1
6428  cat conftest.err >&5
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); } >/dev/null; then
6431  if test -s conftest.err; then
6432    ac_cpp_err=$ac_cxx_preproc_warn_flag
6433    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6434  else
6435    ac_cpp_err=
6436  fi
6437else
6438  ac_cpp_err=yes
6439fi
6440if test -z "$ac_cpp_err"; then
6441  :
6442else
6443  echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446  # Broken: fails on valid input.
6447continue
6448fi
6449rm -f conftest.err conftest.$ac_ext
6450
6451  # OK, works on sane cases.  Now check whether non-existent headers
6452  # can be detected and how.
6453  cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h.  */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h.  */
6459#include <ac_nonexistent.h>
6460_ACEOF
6461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463  ac_status=$?
6464  grep -v '^ *+' conftest.er1 >conftest.err
6465  rm -f conftest.er1
6466  cat conftest.err >&5
6467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468  (exit $ac_status); } >/dev/null; then
6469  if test -s conftest.err; then
6470    ac_cpp_err=$ac_cxx_preproc_warn_flag
6471    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6472  else
6473    ac_cpp_err=
6474  fi
6475else
6476  ac_cpp_err=yes
6477fi
6478if test -z "$ac_cpp_err"; then
6479  # Broken: success on invalid input.
6480continue
6481else
6482  echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485  # Passes both tests.
6486ac_preproc_ok=:
6487break
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490
6491done
6492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6493rm -f conftest.err conftest.$ac_ext
6494if $ac_preproc_ok; then
6495  :
6496else
6497  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6498See \`config.log' for more details." >&5
6499echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6500See \`config.log' for more details." >&2;}
6501   { (exit 1); exit 1; }; }
6502fi
6503
6504ac_ext=cc
6505ac_cpp='$CXXCPP $CPPFLAGS'
6506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6509
6510fi
6511
6512
6513ac_ext=f
6514ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6515ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6517if test -n "$ac_tool_prefix"; then
6518  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6519  do
6520    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6522echo "$as_me:$LINENO: checking for $ac_word" >&5
6523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524if test "${ac_cv_prog_F77+set}" = set; then
6525  echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527  if test -n "$F77"; then
6528  ac_cv_prog_F77="$F77" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535  for ac_exec_ext in '' $ac_executable_extensions; do
6536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542done
6543
6544fi
6545fi
6546F77=$ac_cv_prog_F77
6547if test -n "$F77"; then
6548  echo "$as_me:$LINENO: result: $F77" >&5
6549echo "${ECHO_T}$F77" >&6
6550else
6551  echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6
6553fi
6554
6555    test -n "$F77" && break
6556  done
6557fi
6558if test -z "$F77"; then
6559  ac_ct_F77=$F77
6560  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6561do
6562  # Extract the first word of "$ac_prog", so it can be a program name with args.
6563set dummy $ac_prog; ac_word=$2
6564echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569  if test -n "$ac_ct_F77"; then
6570  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575  IFS=$as_save_IFS
6576  test -z "$as_dir" && as_dir=.
6577  for ac_exec_ext in '' $ac_executable_extensions; do
6578  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579    ac_cv_prog_ac_ct_F77="$ac_prog"
6580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584done
6585
6586fi
6587fi
6588ac_ct_F77=$ac_cv_prog_ac_ct_F77
6589if test -n "$ac_ct_F77"; then
6590  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6591echo "${ECHO_T}$ac_ct_F77" >&6
6592else
6593  echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595fi
6596
6597  test -n "$ac_ct_F77" && break
6598done
6599
6600  F77=$ac_ct_F77
6601fi
6602
6603
6604# Provide some information about the compiler.
6605echo "$as_me:6605:" \
6606     "checking for Fortran 77 compiler version" >&5
6607ac_compiler=`set X $ac_compile; echo $2`
6608{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6609  (eval $ac_compiler --version </dev/null >&5) 2>&5
6610  ac_status=$?
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); }
6613{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6614  (eval $ac_compiler -v </dev/null >&5) 2>&5
6615  ac_status=$?
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); }
6618{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6619  (eval $ac_compiler -V </dev/null >&5) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }
6623rm -f a.out
6624
6625# If we don't use `.F' as extension, the preprocessor is not run on the
6626# input file.  (Note that this only needs to work for GNU compilers.)
6627ac_save_ext=$ac_ext
6628ac_ext=F
6629echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6630echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6631if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  cat >conftest.$ac_ext <<_ACEOF
6635      program main
6636#ifndef __GNUC__
6637       choke me
6638#endif
6639
6640      end
6641_ACEOF
6642rm -f conftest.$ac_objext
6643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644  (eval $ac_compile) 2>conftest.er1
6645  ac_status=$?
6646  grep -v '^ *+' conftest.er1 >conftest.err
6647  rm -f conftest.er1
6648  cat conftest.err >&5
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); } &&
6651         { ac_try='test -z "$ac_f77_werror_flag"
6652                         || test ! -s conftest.err'
6653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654  (eval $ac_try) 2>&5
6655  ac_status=$?
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); }; } &&
6658         { ac_try='test -s conftest.$ac_objext'
6659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660  (eval $ac_try) 2>&5
6661  ac_status=$?
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); }; }; then
6664  ac_compiler_gnu=yes
6665else
6666  echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669ac_compiler_gnu=no
6670fi
6671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6673
6674fi
6675echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6676echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6677ac_ext=$ac_save_ext
6678ac_test_FFLAGS=${FFLAGS+set}
6679ac_save_FFLAGS=$FFLAGS
6680FFLAGS=
6681echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6682echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6683if test "${ac_cv_prog_f77_g+set}" = set; then
6684  echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686  FFLAGS=-g
6687cat >conftest.$ac_ext <<_ACEOF
6688      program main
6689
6690      end
6691_ACEOF
6692rm -f conftest.$ac_objext
6693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694  (eval $ac_compile) 2>conftest.er1
6695  ac_status=$?
6696  grep -v '^ *+' conftest.er1 >conftest.err
6697  rm -f conftest.er1
6698  cat conftest.err >&5
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); } &&
6701         { ac_try='test -z "$ac_f77_werror_flag"
6702                         || test ! -s conftest.err'
6703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704  (eval $ac_try) 2>&5
6705  ac_status=$?
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); }; } &&
6708         { ac_try='test -s conftest.$ac_objext'
6709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710  (eval $ac_try) 2>&5
6711  ac_status=$?
6712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713  (exit $ac_status); }; }; then
6714  ac_cv_prog_f77_g=yes
6715else
6716  echo "$as_me: failed program was:" >&5
6717sed 's/^/| /' conftest.$ac_ext >&5
6718
6719ac_cv_prog_f77_g=no
6720fi
6721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722
6723fi
6724echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6725echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6726if test "$ac_test_FFLAGS" = set; then
6727  FFLAGS=$ac_save_FFLAGS
6728elif test $ac_cv_prog_f77_g = yes; then
6729  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6730    FFLAGS="-g -O2"
6731  else
6732    FFLAGS="-g"
6733  fi
6734else
6735  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6736    FFLAGS="-O2"
6737  else
6738    FFLAGS=
6739  fi
6740fi
6741
6742G77=`test $ac_compiler_gnu = yes && echo yes`
6743ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749
6750
6751# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6752
6753# find the maximum length of command line arguments
6754echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6755echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6756if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759    i=0
6760  teststring="ABCD"
6761
6762  case $build_os in
6763  msdosdjgpp*)
6764    # On DJGPP, this test can blow up pretty badly due to problems in libc
6765    # (any single argument exceeding 2000 bytes causes a buffer overrun
6766    # during glob expansion).  Even if it were fixed, the result of this
6767    # check would be larger than it should be.
6768    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6769    ;;
6770
6771  gnu*)
6772    # Under GNU Hurd, this test is not required because there is
6773    # no limit to the length of command line arguments.
6774    # Libtool will interpret -1 as no limit whatsoever
6775    lt_cv_sys_max_cmd_len=-1;
6776    ;;
6777
6778  cygwin* | mingw*)
6779    # On Win9x/ME, this test blows up -- it succeeds, but takes
6780    # about 5 minutes as the teststring grows exponentially.
6781    # Worse, since 9x/ME are not pre-emptively multitasking,
6782    # you end up with a "frozen" computer, even though with patience
6783    # the test eventually succeeds (with a max line length of 256k).
6784    # Instead, let's just punt: use the minimum linelength reported by
6785    # all of the supported platforms: 8192 (on NT/2K/XP).
6786    lt_cv_sys_max_cmd_len=8192;
6787    ;;
6788
6789  amigaos*)
6790    # On AmigaOS with pdksh, this test takes hours, literally.
6791    # So we just punt and use a minimum line length of 8192.
6792    lt_cv_sys_max_cmd_len=8192;
6793    ;;
6794
6795  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6796    # This has been around since 386BSD, at least.  Likely further.
6797    if test -x /sbin/sysctl; then
6798      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6799    elif test -x /usr/sbin/sysctl; then
6800      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6801    else
6802      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6803    fi
6804    # And add a safety zone
6805    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6806    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6807    ;;
6808
6809  interix*)
6810    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6811    lt_cv_sys_max_cmd_len=196608
6812    ;;
6813
6814  osf*)
6815    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6816    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6817    # nice to cause kernel panics so lets avoid the loop below.
6818    # First set a reasonable default.
6819    lt_cv_sys_max_cmd_len=16384
6820    #
6821    if test -x /sbin/sysconfig; then
6822      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6823        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6824      esac
6825    fi
6826    ;;
6827  sco3.2v5*)
6828    lt_cv_sys_max_cmd_len=102400
6829    ;;
6830  sysv5* | sco5v6* | sysv4.2uw2*)
6831    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6832    if test -n "$kargmax"; then
6833      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6834    else
6835      lt_cv_sys_max_cmd_len=32768
6836    fi
6837    ;;
6838  *)
6839    # If test is not a shell built-in, we'll probably end up computing a
6840    # maximum length that is only half of the actual maximum length, but
6841    # we can't tell.
6842    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6843    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6844               = "XX$teststring") >/dev/null 2>&1 &&
6845            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6846            lt_cv_sys_max_cmd_len=$new_result &&
6847            test $i != 17 # 1/2 MB should be enough
6848    do
6849      i=`expr $i + 1`
6850      teststring=$teststring$teststring
6851    done
6852    teststring=
6853    # Add a significant safety factor because C++ compilers can tack on massive
6854    # amounts of additional arguments before passing them to the linker.
6855    # It appears as though 1/2 is a usable value.
6856    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6857    ;;
6858  esac
6859
6860fi
6861
6862if test -n $lt_cv_sys_max_cmd_len ; then
6863  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6864echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6865else
6866  echo "$as_me:$LINENO: result: none" >&5
6867echo "${ECHO_T}none" >&6
6868fi
6869
6870
6871
6872
6873# Check for command to grab the raw symbol name followed by C symbol from nm.
6874echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6875echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6876if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6877  echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879
6880# These are sane defaults that work on at least a few old systems.
6881# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6882
6883# Character class describing NM global symbol codes.
6884symcode='[BCDEGRST]'
6885
6886# Regexp to match symbols that can be accessed directly from C.
6887sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6888
6889# Transform an extracted symbol line into a proper C declaration
6890lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6891
6892# Transform an extracted symbol line into symbol name and symbol address
6893lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6894
6895# Define system-specific variables.
6896case $host_os in
6897aix*)
6898  symcode='[BCDT]'
6899  ;;
6900cygwin* | mingw* | pw32*)
6901  symcode='[ABCDGISTW]'
6902  ;;
6903hpux*) # Its linker distinguishes data from code symbols
6904  if test "$host_cpu" = ia64; then
6905    symcode='[ABCDEGRST]'
6906  fi
6907  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6908  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6909  ;;
6910linux*)
6911  if test "$host_cpu" = ia64; then
6912    symcode='[ABCDGIRSTW]'
6913    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6914    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6915  fi
6916  ;;
6917irix* | nonstopux*)
6918  symcode='[BCDEGRST]'
6919  ;;
6920osf*)
6921  symcode='[BCDEGQRST]'
6922  ;;
6923solaris*)
6924  symcode='[BDRT]'
6925  ;;
6926sco3.2v5*)
6927  symcode='[DT]'
6928  ;;
6929sysv4.2uw2*)
6930  symcode='[DT]'
6931  ;;
6932sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933  symcode='[ABDT]'
6934  ;;
6935sysv4)
6936  symcode='[DFNSTU]'
6937  ;;
6938esac
6939
6940# Handle CRLF in mingw tool chain
6941opt_cr=
6942case $build_os in
6943mingw*)
6944  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6945  ;;
6946esac
6947
6948# If we're using GNU nm, then use its standard symbol codes.
6949case `$NM -V 2>&1` in
6950*GNU* | *'with BFD'*)
6951  symcode='[ABCDGIRSTW]' ;;
6952esac
6953
6954# Try without a prefix undercore, then with it.
6955for ac_symprfx in "" "_"; do
6956
6957  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6958  symxfrm="\\1 $ac_symprfx\\2 \\2"
6959
6960  # Write the raw and C identifiers.
6961  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6962
6963  # Check to see that the pipe works correctly.
6964  pipe_works=no
6965
6966  rm -f conftest*
6967  cat > conftest.$ac_ext <<EOF
6968#ifdef __cplusplus
6969extern "C" {
6970#endif
6971char nm_test_var;
6972void nm_test_func(){}
6973#ifdef __cplusplus
6974}
6975#endif
6976int main(){nm_test_var='a';nm_test_func();return(0);}
6977EOF
6978
6979  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980  (eval $ac_compile) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; then
6984    # Now try to grab the symbols.
6985    nlist=conftest.nm
6986    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6987  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6988  ac_status=$?
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } && test -s "$nlist"; then
6991      # Try sorting and uniquifying the output.
6992      if sort "$nlist" | uniq > "$nlist"T; then
6993        mv -f "$nlist"T "$nlist"
6994      else
6995        rm -f "$nlist"T
6996      fi
6997
6998      # Make sure that we snagged all the symbols we need.
6999      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7000        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7001          cat <<EOF > conftest.$ac_ext
7002#ifdef __cplusplus
7003extern "C" {
7004#endif
7005
7006EOF
7007          # Now generate the symbol file.
7008          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7009
7010          cat <<EOF >> conftest.$ac_ext
7011#if defined (__STDC__) && __STDC__
7012# define lt_ptr_t void *
7013#else
7014# define lt_ptr_t char *
7015# define const
7016#endif
7017
7018/* The mapping between symbol names and symbols. */
7019const struct {
7020  const char *name;
7021  lt_ptr_t address;
7022}
7023lt_preloaded_symbols[] =
7024{
7025EOF
7026          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7027          cat <<\EOF >> conftest.$ac_ext
7028  {0, (lt_ptr_t) 0}
7029};
7030
7031#ifdef __cplusplus
7032}
7033#endif
7034EOF
7035          # Now try linking the two files.
7036          mv conftest.$ac_objext conftstm.$ac_objext
7037          lt_save_LIBS="$LIBS"
7038          lt_save_CFLAGS="$CFLAGS"
7039          LIBS="conftstm.$ac_objext"
7040          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7041          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042  (eval $ac_link) 2>&5
7043  ac_status=$?
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7046            pipe_works=yes
7047          fi
7048          LIBS="$lt_save_LIBS"
7049          CFLAGS="$lt_save_CFLAGS"
7050        else
7051          echo "cannot find nm_test_func in $nlist" >&5
7052        fi
7053      else
7054        echo "cannot find nm_test_var in $nlist" >&5
7055      fi
7056    else
7057      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7058    fi
7059  else
7060    echo "$progname: failed program was:" >&5
7061    cat conftest.$ac_ext >&5
7062  fi
7063  rm -f conftest* conftst*
7064
7065  # Do not use the global_symbol_pipe unless it works.
7066  if test "$pipe_works" = yes; then
7067    break
7068  else
7069    lt_cv_sys_global_symbol_pipe=
7070  fi
7071done
7072
7073fi
7074
7075if test -z "$lt_cv_sys_global_symbol_pipe"; then
7076  lt_cv_sys_global_symbol_to_cdecl=
7077fi
7078if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7079  echo "$as_me:$LINENO: result: failed" >&5
7080echo "${ECHO_T}failed" >&6
7081else
7082  echo "$as_me:$LINENO: result: ok" >&5
7083echo "${ECHO_T}ok" >&6
7084fi
7085
7086echo "$as_me:$LINENO: checking for objdir" >&5
7087echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7088if test "${lt_cv_objdir+set}" = set; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091  rm -f .libs 2>/dev/null
7092mkdir .libs 2>/dev/null
7093if test -d .libs; then
7094  lt_cv_objdir=.libs
7095else
7096  # MS-DOS does not allow filenames that begin with a dot.
7097  lt_cv_objdir=_libs
7098fi
7099rmdir .libs 2>/dev/null
7100fi
7101echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7102echo "${ECHO_T}$lt_cv_objdir" >&6
7103objdir=$lt_cv_objdir
7104
7105
7106
7107
7108
7109case $host_os in
7110aix3*)
7111  # AIX sometimes has problems with the GCC collect2 program.  For some
7112  # reason, if we set the COLLECT_NAMES environment variable, the problems
7113  # vanish in a puff of smoke.
7114  if test "X${COLLECT_NAMES+set}" != Xset; then
7115    COLLECT_NAMES=
7116    export COLLECT_NAMES
7117  fi
7118  ;;
7119esac
7120
7121# Sed substitution that helps us do robust quoting.  It backslashifies
7122# metacharacters that are still active within double-quoted strings.
7123Xsed='sed -e 1s/^X//'
7124sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7125
7126# Same as above, but do not quote variable references.
7127double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7128
7129# Sed substitution to delay expansion of an escaped shell variable in a
7130# double_quote_subst'ed string.
7131delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7132
7133# Sed substitution to avoid accidental globbing in evaled expressions
7134no_glob_subst='s/\*/\\\*/g'
7135
7136# Constants:
7137rm="rm -f"
7138
7139# Global variables:
7140default_ofile=libtool
7141can_build_shared=yes
7142
7143# All known linkers require a `.a' archive for static linking (except MSVC,
7144# which needs '.lib').
7145libext=a
7146ltmain="$ac_aux_dir/ltmain.sh"
7147ofile="$default_ofile"
7148with_gnu_ld="$lt_cv_prog_gnu_ld"
7149
7150if test -n "$ac_tool_prefix"; then
7151  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}ar; ac_word=$2
7153echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7155if test "${ac_cv_prog_AR+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158  if test -n "$AR"; then
7159  ac_cv_prog_AR="$AR" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164  IFS=$as_save_IFS
7165  test -z "$as_dir" && as_dir=.
7166  for ac_exec_ext in '' $ac_executable_extensions; do
7167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168    ac_cv_prog_AR="${ac_tool_prefix}ar"
7169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170    break 2
7171  fi
7172done
7173done
7174
7175fi
7176fi
7177AR=$ac_cv_prog_AR
7178if test -n "$AR"; then
7179  echo "$as_me:$LINENO: result: $AR" >&5
7180echo "${ECHO_T}$AR" >&6
7181else
7182  echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
7184fi
7185
7186fi
7187if test -z "$ac_cv_prog_AR"; then
7188  ac_ct_AR=$AR
7189  # Extract the first word of "ar", so it can be a program name with args.
7190set dummy ar; ac_word=$2
7191echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7193if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  if test -n "$ac_ct_AR"; then
7197  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204  for ac_exec_ext in '' $ac_executable_extensions; do
7205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_ac_ct_AR="ar"
7207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211done
7212
7213  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7214fi
7215fi
7216ac_ct_AR=$ac_cv_prog_ac_ct_AR
7217if test -n "$ac_ct_AR"; then
7218  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7219echo "${ECHO_T}$ac_ct_AR" >&6
7220else
7221  echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6
7223fi
7224
7225  AR=$ac_ct_AR
7226else
7227  AR="$ac_cv_prog_AR"
7228fi
7229
7230if test -n "$ac_tool_prefix"; then
7231  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7235if test "${ac_cv_prog_RANLIB+set}" = set; then
7236  echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238  if test -n "$RANLIB"; then
7239  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244  IFS=$as_save_IFS
7245  test -z "$as_dir" && as_dir=.
7246  for ac_exec_ext in '' $ac_executable_extensions; do
7247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253done
7254
7255fi
7256fi
7257RANLIB=$ac_cv_prog_RANLIB
7258if test -n "$RANLIB"; then
7259  echo "$as_me:$LINENO: result: $RANLIB" >&5
7260echo "${ECHO_T}$RANLIB" >&6
7261else
7262  echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6
7264fi
7265
7266fi
7267if test -z "$ac_cv_prog_RANLIB"; then
7268  ac_ct_RANLIB=$RANLIB
7269  # Extract the first word of "ranlib", so it can be a program name with args.
7270set dummy ranlib; ac_word=$2
7271echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7274  echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276  if test -n "$ac_ct_RANLIB"; then
7277  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284  for ac_exec_ext in '' $ac_executable_extensions; do
7285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286    ac_cv_prog_ac_ct_RANLIB="ranlib"
7287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291done
7292
7293  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7294fi
7295fi
7296ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7297if test -n "$ac_ct_RANLIB"; then
7298  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7299echo "${ECHO_T}$ac_ct_RANLIB" >&6
7300else
7301  echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303fi
7304
7305  RANLIB=$ac_ct_RANLIB
7306else
7307  RANLIB="$ac_cv_prog_RANLIB"
7308fi
7309
7310if test -n "$ac_tool_prefix"; then
7311  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7312set dummy ${ac_tool_prefix}strip; ac_word=$2
7313echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7315if test "${ac_cv_prog_STRIP+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  if test -n "$STRIP"; then
7319  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326  for ac_exec_ext in '' $ac_executable_extensions; do
7327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333done
7334
7335fi
7336fi
7337STRIP=$ac_cv_prog_STRIP
7338if test -n "$STRIP"; then
7339  echo "$as_me:$LINENO: result: $STRIP" >&5
7340echo "${ECHO_T}$STRIP" >&6
7341else
7342  echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344fi
7345
7346fi
7347if test -z "$ac_cv_prog_STRIP"; then
7348  ac_ct_STRIP=$STRIP
7349  # Extract the first word of "strip", so it can be a program name with args.
7350set dummy strip; ac_word=$2
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7354  echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356  if test -n "$ac_ct_STRIP"; then
7357  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364  for ac_exec_ext in '' $ac_executable_extensions; do
7365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_ac_ct_STRIP="strip"
7367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371done
7372
7373  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7374fi
7375fi
7376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7377if test -n "$ac_ct_STRIP"; then
7378  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7379echo "${ECHO_T}$ac_ct_STRIP" >&6
7380else
7381  echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6
7383fi
7384
7385  STRIP=$ac_ct_STRIP
7386else
7387  STRIP="$ac_cv_prog_STRIP"
7388fi
7389
7390
7391old_CC="$CC"
7392old_CFLAGS="$CFLAGS"
7393
7394# Set sane defaults for various variables
7395test -z "$AR" && AR=ar
7396test -z "$AR_FLAGS" && AR_FLAGS=cru
7397test -z "$AS" && AS=as
7398test -z "$CC" && CC=cc
7399test -z "$LTCC" && LTCC=$CC
7400test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7401test -z "$DLLTOOL" && DLLTOOL=dlltool
7402test -z "$LD" && LD=ld
7403test -z "$LN_S" && LN_S="ln -s"
7404test -z "$MAGIC_CMD" && MAGIC_CMD=file
7405test -z "$NM" && NM=nm
7406test -z "$SED" && SED=sed
7407test -z "$OBJDUMP" && OBJDUMP=objdump
7408test -z "$RANLIB" && RANLIB=:
7409test -z "$STRIP" && STRIP=:
7410test -z "$ac_objext" && ac_objext=o
7411
7412# Determine commands to create old-style static archives.
7413old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7414old_postinstall_cmds='chmod 644 $oldlib'
7415old_postuninstall_cmds=
7416
7417if test -n "$RANLIB"; then
7418  case $host_os in
7419  openbsd*)
7420    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7421    ;;
7422  *)
7423    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7424    ;;
7425  esac
7426  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427fi
7428
7429for cc_temp in $compiler""; do
7430  case $cc_temp in
7431    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7432    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7433    \-*) ;;
7434    *) break;;
7435  esac
7436done
7437cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7438
7439
7440# Only perform the check for file, if the check method requires it
7441case $deplibs_check_method in
7442file_magic*)
7443  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7444    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7445echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7446if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449  case $MAGIC_CMD in
7450[\\/*] |  ?:[\\/]*)
7451  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452  ;;
7453*)
7454  lt_save_MAGIC_CMD="$MAGIC_CMD"
7455  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457  for ac_dir in $ac_dummy; do
7458    IFS="$lt_save_ifs"
7459    test -z "$ac_dir" && ac_dir=.
7460    if test -f $ac_dir/${ac_tool_prefix}file; then
7461      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7462      if test -n "$file_magic_test_file"; then
7463        case $deplibs_check_method in
7464        "file_magic "*)
7465          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468            $EGREP "$file_magic_regex" > /dev/null; then
7469            :
7470          else
7471            cat <<EOF 1>&2
7472
7473*** Warning: the command libtool uses to detect shared libraries,
7474*** $file_magic_cmd, produces output that libtool cannot recognize.
7475*** The result is that libtool may fail to recognize shared libraries
7476*** as such.  This will affect the creation of libtool libraries that
7477*** depend on shared libraries, but programs linked with such libtool
7478*** libraries will work regardless of this problem.  Nevertheless, you
7479*** may want to report the problem to your system manager and/or to
7480*** bug-libtool@gnu.org
7481
7482EOF
7483          fi ;;
7484        esac
7485      fi
7486      break
7487    fi
7488  done
7489  IFS="$lt_save_ifs"
7490  MAGIC_CMD="$lt_save_MAGIC_CMD"
7491  ;;
7492esac
7493fi
7494
7495MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496if test -n "$MAGIC_CMD"; then
7497  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7498echo "${ECHO_T}$MAGIC_CMD" >&6
7499else
7500  echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6
7502fi
7503
7504if test -z "$lt_cv_path_MAGIC_CMD"; then
7505  if test -n "$ac_tool_prefix"; then
7506    echo "$as_me:$LINENO: checking for file" >&5
7507echo $ECHO_N "checking for file... $ECHO_C" >&6
7508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  case $MAGIC_CMD in
7512[\\/*] |  ?:[\\/]*)
7513  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7514  ;;
7515*)
7516  lt_save_MAGIC_CMD="$MAGIC_CMD"
7517  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7518  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7519  for ac_dir in $ac_dummy; do
7520    IFS="$lt_save_ifs"
7521    test -z "$ac_dir" && ac_dir=.
7522    if test -f $ac_dir/file; then
7523      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7524      if test -n "$file_magic_test_file"; then
7525        case $deplibs_check_method in
7526        "file_magic "*)
7527          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7528          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7529          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7530            $EGREP "$file_magic_regex" > /dev/null; then
7531            :
7532          else
7533            cat <<EOF 1>&2
7534
7535*** Warning: the command libtool uses to detect shared libraries,
7536*** $file_magic_cmd, produces output that libtool cannot recognize.
7537*** The result is that libtool may fail to recognize shared libraries
7538*** as such.  This will affect the creation of libtool libraries that
7539*** depend on shared libraries, but programs linked with such libtool
7540*** libraries will work regardless of this problem.  Nevertheless, you
7541*** may want to report the problem to your system manager and/or to
7542*** bug-libtool@gnu.org
7543
7544EOF
7545          fi ;;
7546        esac
7547      fi
7548      break
7549    fi
7550  done
7551  IFS="$lt_save_ifs"
7552  MAGIC_CMD="$lt_save_MAGIC_CMD"
7553  ;;
7554esac
7555fi
7556
7557MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7558if test -n "$MAGIC_CMD"; then
7559  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7560echo "${ECHO_T}$MAGIC_CMD" >&6
7561else
7562  echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6
7564fi
7565
7566  else
7567    MAGIC_CMD=:
7568  fi
7569fi
7570
7571  fi
7572  ;;
7573esac
7574
7575enable_dlopen=no
7576enable_win32_dll=no
7577
7578# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7579if test "${enable_libtool_lock+set}" = set; then
7580  enableval="$enable_libtool_lock"
7581
7582fi;
7583test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584
7585
7586# Check whether --with-pic or --without-pic was given.
7587if test "${with_pic+set}" = set; then
7588  withval="$with_pic"
7589  pic_mode="$withval"
7590else
7591  pic_mode=default
7592fi;
7593test -z "$pic_mode" && pic_mode=default
7594
7595# Use C for the default configuration in the libtool script
7596tagname=
7597lt_save_CC="$CC"
7598ac_ext=c
7599ac_cpp='$CPP $CPPFLAGS'
7600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605# Source file extension for C test sources.
7606ac_ext=c
7607
7608# Object file extension for compiled C test sources.
7609objext=o
7610objext=$objext
7611
7612# Code to be used in simple compile tests
7613lt_simple_compile_test_code="int some_variable = 0;\n"
7614
7615# Code to be used in simple link tests
7616lt_simple_link_test_code='int main(){return(0);}\n'
7617
7618
7619# If no C compiler was specified, use CC.
7620LTCC=${LTCC-"$CC"}
7621
7622# If no C compiler flags were specified, use CFLAGS.
7623LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7624
7625# Allow CC to be a program name with arguments.
7626compiler=$CC
7627
7628
7629# save warnings/boilerplate of simple test code
7630ac_outfile=conftest.$ac_objext
7631printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633_lt_compiler_boilerplate=`cat conftest.err`
7634$rm conftest*
7635
7636ac_outfile=conftest.$ac_objext
7637printf "$lt_simple_link_test_code" >conftest.$ac_ext
7638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7639_lt_linker_boilerplate=`cat conftest.err`
7640$rm conftest*
7641
7642
7643## CAVEAT EMPTOR:
7644## There is no encapsulation within the following macros, do not change
7645## the running order or otherwise move them around unless you know exactly
7646## what you are doing...
7647
7648lt_prog_compiler_no_builtin_flag=
7649
7650if test "$GCC" = yes; then
7651  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7652
7653
7654echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  lt_cv_prog_compiler_rtti_exceptions=no
7660  ac_outfile=conftest.$ac_objext
7661   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7662   lt_compiler_flag="-fno-rtti -fno-exceptions"
7663   # Insert the option either (1) after the last *FLAGS variable, or
7664   # (2) before a word containing "conftest.", or (3) at the end.
7665   # Note that $ac_compile itself does not contain backslashes and begins
7666   # with a dollar sign (not a hyphen), so the echo should work correctly.
7667   # The option is referenced via a variable to avoid confusing sed.
7668   lt_compile=`echo "$ac_compile" | $SED \
7669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671   -e 's:$: $lt_compiler_flag:'`
7672   (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673   (eval "$lt_compile" 2>conftest.err)
7674   ac_status=$?
7675   cat conftest.err >&5
7676   echo "$as_me:7676: \$? = $ac_status" >&5
7677   if (exit $ac_status) && test -s "$ac_outfile"; then
7678     # The compiler can only warn and ignore the option if not recognized
7679     # So say no if there are warnings other than the usual output.
7680     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683       lt_cv_prog_compiler_rtti_exceptions=yes
7684     fi
7685   fi
7686   $rm conftest*
7687
7688fi
7689echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7691
7692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694else
7695    :
7696fi
7697
7698fi
7699
7700lt_prog_compiler_wl=
7701lt_prog_compiler_pic=
7702lt_prog_compiler_static=
7703
7704echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7705echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7706
7707  if test "$GCC" = yes; then
7708    lt_prog_compiler_wl='-Wl,'
7709    lt_prog_compiler_static='-static'
7710
7711    case $host_os in
7712      aix*)
7713      # All AIX code is PIC.
7714      if test "$host_cpu" = ia64; then
7715        # AIX 5 now supports IA64 processor
7716        lt_prog_compiler_static='-Bstatic'
7717      fi
7718      ;;
7719
7720    amigaos*)
7721      # FIXME: we need at least 68020 code to build shared libraries, but
7722      # adding the `-m68020' flag to GCC prevents building anything better,
7723      # like `-m68040'.
7724      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725      ;;
7726
7727    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728      # PIC is the default for these OSes.
7729      ;;
7730
7731    mingw* | pw32* | os2*)
7732      # This hack is so that the source file can tell whether it is being
7733      # built for inclusion in a dll (and should export symbols for example).
7734      lt_prog_compiler_pic='-DDLL_EXPORT'
7735      ;;
7736
7737    darwin* | rhapsody*)
7738      # PIC is the default on this platform
7739      # Common symbols not allowed in MH_DYLIB files
7740      lt_prog_compiler_pic='-fno-common'
7741      ;;
7742
7743    interix3*)
7744      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7745      # Instead, we relocate shared libraries at runtime.
7746      ;;
7747
7748    msdosdjgpp*)
7749      # Just because we use GCC doesn't mean we suddenly get shared libraries
7750      # on systems that don't support them.
7751      lt_prog_compiler_can_build_shared=no
7752      enable_shared=no
7753      ;;
7754
7755    sysv4*MP*)
7756      if test -d /usr/nec; then
7757        lt_prog_compiler_pic=-Kconform_pic
7758      fi
7759      ;;
7760
7761    hpux*)
7762      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763      # not for PA HP-UX.
7764      case $host_cpu in
7765      hppa*64*|ia64*)
7766        # +Z the default
7767        ;;
7768      *)
7769        lt_prog_compiler_pic='-fPIC'
7770        ;;
7771      esac
7772      ;;
7773
7774    *)
7775      lt_prog_compiler_pic='-fPIC'
7776      ;;
7777    esac
7778  else
7779    # PORTME Check for flag to pass linker flags through the system compiler.
7780    case $host_os in
7781    aix*)
7782      lt_prog_compiler_wl='-Wl,'
7783      if test "$host_cpu" = ia64; then
7784        # AIX 5 now supports IA64 processor
7785        lt_prog_compiler_static='-Bstatic'
7786      else
7787        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7788      fi
7789      ;;
7790      darwin*)
7791        # PIC is the default on this platform
7792        # Common symbols not allowed in MH_DYLIB files
7793       case $cc_basename in
7794         xlc*)
7795         lt_prog_compiler_pic='-qnocommon'
7796         lt_prog_compiler_wl='-Wl,'
7797         ;;
7798       esac
7799       ;;
7800
7801    mingw* | pw32* | os2*)
7802      # This hack is so that the source file can tell whether it is being
7803      # built for inclusion in a dll (and should export symbols for example).
7804      lt_prog_compiler_pic='-DDLL_EXPORT'
7805      ;;
7806
7807    hpux9* | hpux10* | hpux11*)
7808      lt_prog_compiler_wl='-Wl,'
7809      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7810      # not for PA HP-UX.
7811      case $host_cpu in
7812      hppa*64*|ia64*)
7813        # +Z the default
7814        ;;
7815      *)
7816        lt_prog_compiler_pic='+Z'
7817        ;;
7818      esac
7819      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7820      lt_prog_compiler_static='${wl}-a ${wl}archive'
7821      ;;
7822
7823    irix5* | irix6* | nonstopux*)
7824      lt_prog_compiler_wl='-Wl,'
7825      # PIC (with -KPIC) is the default.
7826      lt_prog_compiler_static='-non_shared'
7827      ;;
7828
7829    newsos6)
7830      lt_prog_compiler_pic='-KPIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    linux*)
7835      case $cc_basename in
7836      icc* | ecc*)
7837        lt_prog_compiler_wl='-Wl,'
7838        lt_prog_compiler_pic='-KPIC'
7839        lt_prog_compiler_static='-static'
7840        ;;
7841      pgcc* | pgf77* | pgf90* | pgf95*)
7842        # Portland Group compilers (*not* the Pentium gcc compiler,
7843        # which looks to be a dead project)
7844        lt_prog_compiler_wl='-Wl,'
7845        lt_prog_compiler_pic='-fpic'
7846        lt_prog_compiler_static='-Bstatic'
7847        ;;
7848      ccc*)
7849        lt_prog_compiler_wl='-Wl,'
7850        # All Alpha code is PIC.
7851        lt_prog_compiler_static='-non_shared'
7852        ;;
7853      esac
7854      ;;
7855
7856    osf3* | osf4* | osf5*)
7857      lt_prog_compiler_wl='-Wl,'
7858      # All OSF/1 code is PIC.
7859      lt_prog_compiler_static='-non_shared'
7860      ;;
7861
7862    solaris*)
7863      lt_prog_compiler_pic='-KPIC'
7864      lt_prog_compiler_static='-Bstatic'
7865      case $cc_basename in
7866      f77* | f90* | f95*)
7867        lt_prog_compiler_wl='-Qoption ld ';;
7868      *)
7869        lt_prog_compiler_wl='-Wl,';;
7870      esac
7871      ;;
7872
7873    sunos4*)
7874      lt_prog_compiler_wl='-Qoption ld '
7875      lt_prog_compiler_pic='-PIC'
7876      lt_prog_compiler_static='-Bstatic'
7877      ;;
7878
7879    sysv4 | sysv4.2uw2* | sysv4.3*)
7880      lt_prog_compiler_wl='-Wl,'
7881      lt_prog_compiler_pic='-KPIC'
7882      lt_prog_compiler_static='-Bstatic'
7883      ;;
7884
7885    sysv4*MP*)
7886      if test -d /usr/nec ;then
7887        lt_prog_compiler_pic='-Kconform_pic'
7888        lt_prog_compiler_static='-Bstatic'
7889      fi
7890      ;;
7891
7892    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7893      lt_prog_compiler_wl='-Wl,'
7894      lt_prog_compiler_pic='-KPIC'
7895      lt_prog_compiler_static='-Bstatic'
7896      ;;
7897
7898    unicos*)
7899      lt_prog_compiler_wl='-Wl,'
7900      lt_prog_compiler_can_build_shared=no
7901      ;;
7902
7903    uts4*)
7904      lt_prog_compiler_pic='-pic'
7905      lt_prog_compiler_static='-Bstatic'
7906      ;;
7907
7908    *)
7909      lt_prog_compiler_can_build_shared=no
7910      ;;
7911    esac
7912  fi
7913
7914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7915echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7916
7917#
7918# Check to make sure the PIC flag actually works.
7919#
7920if test -n "$lt_prog_compiler_pic"; then
7921
7922echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7923echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7924if test "${lt_prog_compiler_pic_works+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  lt_prog_compiler_pic_works=no
7928  ac_outfile=conftest.$ac_objext
7929   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7930   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7931   # Insert the option either (1) after the last *FLAGS variable, or
7932   # (2) before a word containing "conftest.", or (3) at the end.
7933   # Note that $ac_compile itself does not contain backslashes and begins
7934   # with a dollar sign (not a hyphen), so the echo should work correctly.
7935   # The option is referenced via a variable to avoid confusing sed.
7936   lt_compile=`echo "$ac_compile" | $SED \
7937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7939   -e 's:$: $lt_compiler_flag:'`
7940   (eval echo "\"\$as_me:7940: $lt_compile\"" >&5)
7941   (eval "$lt_compile" 2>conftest.err)
7942   ac_status=$?
7943   cat conftest.err >&5
7944   echo "$as_me:7944: \$? = $ac_status" >&5
7945   if (exit $ac_status) && test -s "$ac_outfile"; then
7946     # The compiler can only warn and ignore the option if not recognized
7947     # So say no if there are warnings other than the usual output.
7948     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7951       lt_prog_compiler_pic_works=yes
7952     fi
7953   fi
7954   $rm conftest*
7955
7956fi
7957echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7958echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7959
7960if test x"$lt_prog_compiler_pic_works" = xyes; then
7961    case $lt_prog_compiler_pic in
7962     "" | " "*) ;;
7963     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7964     esac
7965else
7966    lt_prog_compiler_pic=
7967     lt_prog_compiler_can_build_shared=no
7968fi
7969
7970fi
7971case $host_os in
7972  # For platforms which do not support PIC, -DPIC is meaningless:
7973  *djgpp*)
7974    lt_prog_compiler_pic=
7975    ;;
7976  *)
7977    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7978    ;;
7979esac
7980
7981#
7982# Check to make sure the static flag actually works.
7983#
7984wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7985echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7986echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7987if test "${lt_prog_compiler_static_works+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  lt_prog_compiler_static_works=no
7991   save_LDFLAGS="$LDFLAGS"
7992   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7993   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7994   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7995     # The linker can only warn and ignore the option if not recognized
7996     # So say no if there are warnings
7997     if test -s conftest.err; then
7998       # Append any errors to the config.log.
7999       cat conftest.err 1>&5
8000       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8001       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002       if diff conftest.exp conftest.er2 >/dev/null; then
8003         lt_prog_compiler_static_works=yes
8004       fi
8005     else
8006       lt_prog_compiler_static_works=yes
8007     fi
8008   fi
8009   $rm conftest*
8010   LDFLAGS="$save_LDFLAGS"
8011
8012fi
8013echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8014echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8015
8016if test x"$lt_prog_compiler_static_works" = xyes; then
8017    :
8018else
8019    lt_prog_compiler_static=
8020fi
8021
8022
8023echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8024echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8025if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  lt_cv_prog_compiler_c_o=no
8029   $rm -r conftest 2>/dev/null
8030   mkdir conftest
8031   cd conftest
8032   mkdir out
8033   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8034
8035   lt_compiler_flag="-o out/conftest2.$ac_objext"
8036   # Insert the option either (1) after the last *FLAGS variable, or
8037   # (2) before a word containing "conftest.", or (3) at the end.
8038   # Note that $ac_compile itself does not contain backslashes and begins
8039   # with a dollar sign (not a hyphen), so the echo should work correctly.
8040   lt_compile=`echo "$ac_compile" | $SED \
8041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8043   -e 's:$: $lt_compiler_flag:'`
8044   (eval echo "\"\$as_me:8044: $lt_compile\"" >&5)
8045   (eval "$lt_compile" 2>out/conftest.err)
8046   ac_status=$?
8047   cat out/conftest.err >&5
8048   echo "$as_me:8048: \$? = $ac_status" >&5
8049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8050   then
8051     # The compiler can only warn and ignore the option if not recognized
8052     # So say no if there are warnings
8053     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8056       lt_cv_prog_compiler_c_o=yes
8057     fi
8058   fi
8059   chmod u+w . 2>&5
8060   $rm conftest*
8061   # SGI C++ compiler will create directory out/ii_files/ for
8062   # template instantiation
8063   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8064   $rm out/* && rmdir out
8065   cd ..
8066   rmdir conftest
8067   $rm conftest*
8068
8069fi
8070echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8071echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8072
8073
8074hard_links="nottested"
8075if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8076  # do not overwrite the value of need_locks provided by the user
8077  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8078echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8079  hard_links=yes
8080  $rm conftest*
8081  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8082  touch conftest.a
8083  ln conftest.a conftest.b 2>&5 || hard_links=no
8084  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085  echo "$as_me:$LINENO: result: $hard_links" >&5
8086echo "${ECHO_T}$hard_links" >&6
8087  if test "$hard_links" = no; then
8088    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8089echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8090    need_locks=warn
8091  fi
8092else
8093  need_locks=no
8094fi
8095
8096echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8098
8099  runpath_var=
8100  allow_undefined_flag=
8101  enable_shared_with_static_runtimes=no
8102  archive_cmds=
8103  archive_expsym_cmds=
8104  old_archive_From_new_cmds=
8105  old_archive_from_expsyms_cmds=
8106  export_dynamic_flag_spec=
8107  whole_archive_flag_spec=
8108  thread_safe_flag_spec=
8109  hardcode_libdir_flag_spec=
8110  hardcode_libdir_flag_spec_ld=
8111  hardcode_libdir_separator=
8112  hardcode_direct=no
8113  hardcode_minus_L=no
8114  hardcode_shlibpath_var=unsupported
8115  link_all_deplibs=unknown
8116  hardcode_automatic=no
8117  module_cmds=
8118  module_expsym_cmds=
8119  always_export_symbols=no
8120  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8121  # include_expsyms should be a list of space-separated symbols to be *always*
8122  # included in the symbol list
8123  include_expsyms=
8124  # exclude_expsyms can be an extended regexp of symbols to exclude
8125  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8126  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8127  # as well as any symbol that contains `d'.
8128  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8129  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8130  # platforms (ab)use it in PIC code, but their linkers get confused if
8131  # the symbol is explicitly referenced.  Since portable code cannot
8132  # rely on this symbol name, it's probably fine to never include it in
8133  # preloaded symbol tables.
8134  extract_expsyms_cmds=
8135  # Just being paranoid about ensuring that cc_basename is set.
8136  for cc_temp in $compiler""; do
8137  case $cc_temp in
8138    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8139    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8140    \-*) ;;
8141    *) break;;
8142  esac
8143done
8144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8145
8146  case $host_os in
8147  cygwin* | mingw* | pw32*)
8148    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8149    # When not using gcc, we currently assume that we are using
8150    # Microsoft Visual C++.
8151    if test "$GCC" != yes; then
8152      with_gnu_ld=no
8153    fi
8154    ;;
8155  interix*)
8156    # we just hope/assume this is gcc and not c89 (= MSVC++)
8157    with_gnu_ld=yes
8158    ;;
8159  openbsd*)
8160    with_gnu_ld=no
8161    ;;
8162  esac
8163
8164  ld_shlibs=yes
8165  if test "$with_gnu_ld" = yes; then
8166    # If archive_cmds runs LD, not CC, wlarc should be empty
8167    wlarc='${wl}'
8168
8169    # Set some defaults for GNU ld with shared library support. These
8170    # are reset later if shared libraries are not supported. Putting them
8171    # here allows them to be overridden if necessary.
8172    runpath_var=LD_RUN_PATH
8173    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8174    export_dynamic_flag_spec='${wl}--export-dynamic'
8175    # ancient GNU ld didn't support --whole-archive et. al.
8176    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8177        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8178      else
8179        whole_archive_flag_spec=
8180    fi
8181    supports_anon_versioning=no
8182    case `$LD -v 2>/dev/null` in
8183      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8184      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8185      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8186      *\ 2.11.*) ;; # other 2.11 versions
8187      *) supports_anon_versioning=yes ;;
8188    esac
8189
8190    # See if GNU ld supports shared libraries.
8191    case $host_os in
8192    aix3* | aix4* | aix5*)
8193      # On AIX/PPC, the GNU linker is very broken
8194      if test "$host_cpu" != ia64; then
8195        ld_shlibs=no
8196        cat <<EOF 1>&2
8197
8198*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8199*** to be unable to reliably create shared libraries on AIX.
8200*** Therefore, libtool is disabling shared libraries support.  If you
8201*** really care for shared libraries, you may want to modify your PATH
8202*** so that a non-GNU linker is found, and then restart.
8203
8204EOF
8205      fi
8206      ;;
8207
8208    amigaos*)
8209      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8210      hardcode_libdir_flag_spec='-L$libdir'
8211      hardcode_minus_L=yes
8212
8213      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8214      # that the semantics of dynamic libraries on AmigaOS, at least up
8215      # to version 4, is to share data among multiple programs linked
8216      # with the same dynamic library.  Since this doesn't match the
8217      # behavior of shared libraries on other platforms, we can't use
8218      # them.
8219      ld_shlibs=no
8220      ;;
8221
8222    beos*)
8223      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8224        allow_undefined_flag=unsupported
8225        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8226        # support --undefined.  This deserves some investigation.  FIXME
8227        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228      else
8229        ld_shlibs=no
8230      fi
8231      ;;
8232
8233    cygwin* | mingw* | pw32*)
8234      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8235      # as there is no search path for DLLs.
8236      hardcode_libdir_flag_spec='-L$libdir'
8237      allow_undefined_flag=unsupported
8238      always_export_symbols=no
8239      enable_shared_with_static_runtimes=yes
8240      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8241
8242      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8243        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8244        # If the export-symbols file already is a .def file (1st line
8245        # is EXPORTS), use it as is; otherwise, prepend...
8246        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8247          cp $export_symbols $output_objdir/$soname.def;
8248        else
8249          echo EXPORTS > $output_objdir/$soname.def;
8250          cat $export_symbols >> $output_objdir/$soname.def;
8251        fi~
8252        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8253      else
8254        ld_shlibs=no
8255      fi
8256      ;;
8257
8258    interix3*)
8259      hardcode_direct=no
8260      hardcode_shlibpath_var=no
8261      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8262      export_dynamic_flag_spec='${wl}-E'
8263      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8264      # Instead, shared libraries are loaded at an image base (0x10000000 by
8265      # default) and relocated if they conflict, which is a slow very memory
8266      # consuming and fragmenting process.  To avoid this, we pick a random,
8267      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8268      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8269      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8270      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8271      ;;
8272
8273    linux*)
8274      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275        tmp_addflag=
8276        case $cc_basename,$host_cpu in
8277        pgcc*)                          # Portland Group C compiler
8278          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8279          tmp_addflag=' $pic_flag'
8280          ;;
8281        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8282          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8283          tmp_addflag=' $pic_flag -Mnomain' ;;
8284        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8285          tmp_addflag=' -i_dynamic' ;;
8286        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8287          tmp_addflag=' -i_dynamic -nofor_main' ;;
8288        ifc* | ifort*)                  # Intel Fortran compiler
8289          tmp_addflag=' -nofor_main' ;;
8290        esac
8291        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292
8293        if test $supports_anon_versioning = yes; then
8294          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8295  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8296  $echo "local: *; };" >> $output_objdir/$libname.ver~
8297          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8298        fi
8299      else
8300        ld_shlibs=no
8301      fi
8302      ;;
8303
8304    netbsd*)
8305      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8306        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8307        wlarc=
8308      else
8309        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311      fi
8312      ;;
8313
8314    solaris*)
8315      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8316        ld_shlibs=no
8317        cat <<EOF 1>&2
8318
8319*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8320*** create shared libraries on Solaris systems.  Therefore, libtool
8321*** is disabling shared libraries support.  We urge you to upgrade GNU
8322*** binutils to release 2.9.1 or newer.  Another option is to modify
8323*** your PATH or compiler configuration so that the native linker is
8324*** used, and then restart.
8325
8326EOF
8327      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8330      else
8331        ld_shlibs=no
8332      fi
8333      ;;
8334
8335    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8336      case `$LD -v 2>&1` in
8337        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8338        ld_shlibs=no
8339        cat <<_LT_EOF 1>&2
8340
8341*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8342*** reliably create shared libraries on SCO systems.  Therefore, libtool
8343*** is disabling shared libraries support.  We urge you to upgrade GNU
8344*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8345*** your PATH or compiler configuration so that the native linker is
8346*** used, and then restart.
8347
8348_LT_EOF
8349        ;;
8350        *)
8351          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8353            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8354            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8355          else
8356            ld_shlibs=no
8357          fi
8358        ;;
8359      esac
8360      ;;
8361
8362    sunos4*)
8363      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8364      wlarc=
8365      hardcode_direct=yes
8366      hardcode_shlibpath_var=no
8367      ;;
8368
8369    *)
8370      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8371        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373      else
8374        ld_shlibs=no
8375      fi
8376      ;;
8377    esac
8378
8379    if test "$ld_shlibs" = no; then
8380      runpath_var=
8381      hardcode_libdir_flag_spec=
8382      export_dynamic_flag_spec=
8383      whole_archive_flag_spec=
8384    fi
8385  else
8386    # PORTME fill in a description of your system's linker (not GNU ld)
8387    case $host_os in
8388    aix3*)
8389      allow_undefined_flag=unsupported
8390      always_export_symbols=yes
8391      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8392      # Note: this linker hardcodes the directories in LIBPATH if there
8393      # are no directories specified by -L.
8394      hardcode_minus_L=yes
8395      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8396        # Neither direct hardcoding nor static linking is supported with a
8397        # broken collect2.
8398        hardcode_direct=unsupported
8399      fi
8400      ;;
8401
8402    aix4* | aix5*)
8403      if test "$host_cpu" = ia64; then
8404        # On IA64, the linker does run time linking by default, so we don't
8405        # have to do anything special.
8406        aix_use_runtimelinking=no
8407        exp_sym_flag='-Bexport'
8408        no_entry_flag=""
8409      else
8410        # If we're using GNU nm, then we don't want the "-C" option.
8411        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8412        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8413          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8414        else
8415          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8416        fi
8417        aix_use_runtimelinking=no
8418
8419        # Test if we are trying to use run time linking or normal
8420        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8421        # need to do runtime linking.
8422        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8423          for ld_flag in $LDFLAGS; do
8424          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8425            aix_use_runtimelinking=yes
8426            break
8427          fi
8428          done
8429          ;;
8430        esac
8431
8432        exp_sym_flag='-bexport'
8433        no_entry_flag='-bnoentry'
8434      fi
8435
8436      # When large executables or shared objects are built, AIX ld can
8437      # have problems creating the table of contents.  If linking a library
8438      # or program results in "error TOC overflow" add -mminimal-toc to
8439      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8440      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8441
8442      archive_cmds=''
8443      hardcode_direct=yes
8444      hardcode_libdir_separator=':'
8445      link_all_deplibs=yes
8446
8447      if test "$GCC" = yes; then
8448        case $host_os in aix4.[012]|aix4.[012].*)
8449        # We only want to do this on AIX 4.2 and lower, the check
8450        # below for broken collect2 doesn't work under 4.3+
8451          collect2name=`${CC} -print-prog-name=collect2`
8452          if test -f "$collect2name" && \
8453           strings "$collect2name" | grep resolve_lib_name >/dev/null
8454          then
8455          # We have reworked collect2
8456          hardcode_direct=yes
8457          else
8458          # We have old collect2
8459          hardcode_direct=unsupported
8460          # It fails to find uninstalled libraries when the uninstalled
8461          # path is not listed in the libpath.  Setting hardcode_minus_L
8462          # to unsupported forces relinking
8463          hardcode_minus_L=yes
8464          hardcode_libdir_flag_spec='-L$libdir'
8465          hardcode_libdir_separator=
8466          fi
8467          ;;
8468        esac
8469        shared_flag='-shared'
8470        if test "$aix_use_runtimelinking" = yes; then
8471          shared_flag="$shared_flag "'${wl}-G'
8472        fi
8473      else
8474        # not using gcc
8475        if test "$host_cpu" = ia64; then
8476        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8477        # chokes on -Wl,-G. The following line is correct:
8478          shared_flag='-G'
8479        else
8480          if test "$aix_use_runtimelinking" = yes; then
8481            shared_flag='${wl}-G'
8482          else
8483            shared_flag='${wl}-bM:SRE'
8484          fi
8485        fi
8486      fi
8487
8488      # It seems that -bexpall does not export symbols beginning with
8489      # underscore (_), so it is better to generate a list of symbols to export.
8490      always_export_symbols=yes
8491      if test "$aix_use_runtimelinking" = yes; then
8492        # Warning - without using the other runtime loading flags (-brtl),
8493        # -berok will link without error, but may produce a broken library.
8494        allow_undefined_flag='-berok'
8495       # Determine the default libpath from the value encoded in an empty executable.
8496       cat >conftest.$ac_ext <<_ACEOF
8497/* confdefs.h.  */
8498_ACEOF
8499cat confdefs.h >>conftest.$ac_ext
8500cat >>conftest.$ac_ext <<_ACEOF
8501/* end confdefs.h.  */
8502
8503int
8504main ()
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513  (eval $ac_link) 2>conftest.er1
8514  ac_status=$?
8515  grep -v '^ *+' conftest.er1 >conftest.err
8516  rm -f conftest.er1
8517  cat conftest.err >&5
8518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519  (exit $ac_status); } &&
8520         { ac_try='test -z "$ac_c_werror_flag"
8521                         || test ! -s conftest.err'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; } &&
8527         { ac_try='test -s conftest$ac_exeext'
8528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529  (eval $ac_try) 2>&5
8530  ac_status=$?
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); }; }; then
8533
8534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8535}'`
8536# Check for a 64-bit object if we didn't find anything.
8537if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8538}'`; fi
8539else
8540  echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
8543fi
8544rm -f conftest.err conftest.$ac_objext \
8545      conftest$ac_exeext conftest.$ac_ext
8546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8547
8548       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8549        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8550       else
8551        if test "$host_cpu" = ia64; then
8552          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8553          allow_undefined_flag="-z nodefs"
8554          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8555        else
8556         # Determine the default libpath from the value encoded in an empty executable.
8557         cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h.  */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h.  */
8563
8564int
8565main ()
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext conftest$ac_exeext
8573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574  (eval $ac_link) 2>conftest.er1
8575  ac_status=$?
8576  grep -v '^ *+' conftest.er1 >conftest.err
8577  rm -f conftest.er1
8578  cat conftest.err >&5
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); } &&
8581         { ac_try='test -z "$ac_c_werror_flag"
8582                         || test ! -s conftest.err'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; } &&
8588         { ac_try='test -s conftest$ac_exeext'
8589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590  (eval $ac_try) 2>&5
8591  ac_status=$?
8592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593  (exit $ac_status); }; }; then
8594
8595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8596}'`
8597# Check for a 64-bit object if we didn't find anything.
8598if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8599}'`; fi
8600else
8601  echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604fi
8605rm -f conftest.err conftest.$ac_objext \
8606      conftest$ac_exeext conftest.$ac_ext
8607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608
8609         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8610          # Warning - without using the other run time loading flags,
8611          # -berok will link without error, but may produce a broken library.
8612          no_undefined_flag=' ${wl}-bernotok'
8613          allow_undefined_flag=' ${wl}-berok'
8614          # Exported symbols can be pulled into shared objects from archives
8615          whole_archive_flag_spec='$convenience'
8616          archive_cmds_need_lc=yes
8617          # This is similar to how AIX traditionally builds its shared libraries.
8618          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8619        fi
8620      fi
8621      ;;
8622
8623    amigaos*)
8624      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8625      hardcode_libdir_flag_spec='-L$libdir'
8626      hardcode_minus_L=yes
8627      # see comment about different semantics on the GNU ld section
8628      ld_shlibs=no
8629      ;;
8630
8631    bsdi[45]*)
8632      export_dynamic_flag_spec=-rdynamic
8633      ;;
8634
8635    cygwin* | mingw* | pw32*)
8636      # When not using gcc, we currently assume that we are using
8637      # Microsoft Visual C++.
8638      # hardcode_libdir_flag_spec is actually meaningless, as there is
8639      # no search path for DLLs.
8640      hardcode_libdir_flag_spec=' '
8641      allow_undefined_flag=unsupported
8642      # Tell ltmain to make .lib files, not .a files.
8643      libext=lib
8644      # Tell ltmain to make .dll files, not .so files.
8645      shrext_cmds=".dll"
8646      # FIXME: Setting linknames here is a bad hack.
8647      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8648      # The linker will automatically build a .lib file if we build a DLL.
8649      old_archive_From_new_cmds='true'
8650      # FIXME: Should let the user specify the lib program.
8651      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8652      fix_srcfile_path='`cygpath -w "$srcfile"`'
8653      enable_shared_with_static_runtimes=yes
8654      ;;
8655
8656    darwin* | rhapsody*)
8657      case $host_os in
8658        rhapsody* | darwin1.[012])
8659         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8660         ;;
8661       *) # Darwin 1.3 on
8662         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8663           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8664         else
8665           case ${MACOSX_DEPLOYMENT_TARGET} in
8666             10.[012])
8667               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8668               ;;
8669             10.*)
8670               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8671               ;;
8672           esac
8673         fi
8674         ;;
8675      esac
8676      archive_cmds_need_lc=no
8677      hardcode_direct=no
8678      hardcode_automatic=yes
8679      hardcode_shlibpath_var=unsupported
8680      whole_archive_flag_spec=''
8681      link_all_deplibs=yes
8682    if test "$GCC" = yes ; then
8683        output_verbose_link_cmd='echo'
8684        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8685      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8686      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8687      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8688      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8689    else
8690      case $cc_basename in
8691        xlc*)
8692         output_verbose_link_cmd='echo'
8693         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8694         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8695          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8696         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8697          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8698          ;;
8699       *)
8700         ld_shlibs=no
8701          ;;
8702      esac
8703    fi
8704      ;;
8705
8706    dgux*)
8707      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708      hardcode_libdir_flag_spec='-L$libdir'
8709      hardcode_shlibpath_var=no
8710      ;;
8711
8712    freebsd1*)
8713      ld_shlibs=no
8714      ;;
8715
8716    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8717    # support.  Future versions do this automatically, but an explicit c++rt0.o
8718    # does not break anything, and helps significantly (at the cost of a little
8719    # extra space).
8720    freebsd2.2*)
8721      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8722      hardcode_libdir_flag_spec='-R$libdir'
8723      hardcode_direct=yes
8724      hardcode_shlibpath_var=no
8725      ;;
8726
8727    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8728    freebsd2*)
8729      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8730      hardcode_direct=yes
8731      hardcode_minus_L=yes
8732      hardcode_shlibpath_var=no
8733      ;;
8734
8735    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8736    freebsd* | kfreebsd*-gnu | dragonfly*)
8737      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8738      hardcode_libdir_flag_spec='-R$libdir'
8739      hardcode_direct=yes
8740      hardcode_shlibpath_var=no
8741      ;;
8742
8743    hpux9*)
8744      if test "$GCC" = yes; then
8745        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8746      else
8747        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8748      fi
8749      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750      hardcode_libdir_separator=:
8751      hardcode_direct=yes
8752
8753      # hardcode_minus_L: Not really in the search PATH,
8754      # but as the default location of the library.
8755      hardcode_minus_L=yes
8756      export_dynamic_flag_spec='${wl}-E'
8757      ;;
8758
8759    hpux10*)
8760      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8761        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8762      else
8763        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8764      fi
8765      if test "$with_gnu_ld" = no; then
8766        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8767        hardcode_libdir_separator=:
8768
8769        hardcode_direct=yes
8770        export_dynamic_flag_spec='${wl}-E'
8771
8772        # hardcode_minus_L: Not really in the search PATH,
8773        # but as the default location of the library.
8774        hardcode_minus_L=yes
8775      fi
8776      ;;
8777
8778    hpux11*)
8779      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8780        case $host_cpu in
8781        hppa*64*)
8782          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783          ;;
8784        ia64*)
8785          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8786          ;;
8787        *)
8788          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789          ;;
8790        esac
8791      else
8792        case $host_cpu in
8793        hppa*64*)
8794          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795          ;;
8796        ia64*)
8797          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8798          ;;
8799        *)
8800          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8801          ;;
8802        esac
8803      fi
8804      if test "$with_gnu_ld" = no; then
8805        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8806        hardcode_libdir_separator=:
8807
8808        case $host_cpu in
8809        hppa*64*|ia64*)
8810          hardcode_libdir_flag_spec_ld='+b $libdir'
8811          hardcode_direct=no
8812          hardcode_shlibpath_var=no
8813          ;;
8814        *)
8815          hardcode_direct=yes
8816          export_dynamic_flag_spec='${wl}-E'
8817
8818          # hardcode_minus_L: Not really in the search PATH,
8819          # but as the default location of the library.
8820          hardcode_minus_L=yes
8821          ;;
8822        esac
8823      fi
8824      ;;
8825
8826    irix5* | irix6* | nonstopux*)
8827      if test "$GCC" = yes; then
8828        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8829      else
8830        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8831        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8832      fi
8833      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834      hardcode_libdir_separator=:
8835      link_all_deplibs=yes
8836      ;;
8837
8838    netbsd*)
8839      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8840        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8841      else
8842        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8843      fi
8844      hardcode_libdir_flag_spec='-R$libdir'
8845      hardcode_direct=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    newsos6)
8850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851      hardcode_direct=yes
8852      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853      hardcode_libdir_separator=:
8854      hardcode_shlibpath_var=no
8855      ;;
8856
8857    openbsd*)
8858      hardcode_direct=yes
8859      hardcode_shlibpath_var=no
8860      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8861        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8863        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8864        export_dynamic_flag_spec='${wl}-E'
8865      else
8866       case $host_os in
8867         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8868           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869           hardcode_libdir_flag_spec='-R$libdir'
8870           ;;
8871         *)
8872           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874           ;;
8875       esac
8876      fi
8877      ;;
8878
8879    os2*)
8880      hardcode_libdir_flag_spec='-L$libdir'
8881      hardcode_minus_L=yes
8882      allow_undefined_flag=unsupported
8883      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8884      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8885      ;;
8886
8887    osf3*)
8888      if test "$GCC" = yes; then
8889        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8890        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8891      else
8892        allow_undefined_flag=' -expect_unresolved \*'
8893        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8894      fi
8895      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896      hardcode_libdir_separator=:
8897      ;;
8898
8899    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8900      if test "$GCC" = yes; then
8901        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8902        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8903        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904      else
8905        allow_undefined_flag=' -expect_unresolved \*'
8906        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8907        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8908        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8909
8910        # Both c and cxx compiler support -rpath directly
8911        hardcode_libdir_flag_spec='-rpath $libdir'
8912      fi
8913      hardcode_libdir_separator=:
8914      ;;
8915
8916    solaris*)
8917      no_undefined_flag=' -z text'
8918      if test "$GCC" = yes; then
8919        wlarc='${wl}'
8920        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8921        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8922          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8923      else
8924        wlarc=''
8925        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8928      fi
8929      hardcode_libdir_flag_spec='-R$libdir'
8930      hardcode_shlibpath_var=no
8931      case $host_os in
8932      solaris2.[0-5] | solaris2.[0-5].*) ;;
8933      *)
8934        # The compiler driver will combine linker options so we
8935        # cannot just pass the convience library names through
8936        # without $wl, iff we do not link with $LD.
8937        # Luckily, gcc supports the same syntax we need for Sun Studio.
8938        # Supported since Solaris 2.6 (maybe 2.5.1?)
8939        case $wlarc in
8940        '')
8941          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8942        *)
8943          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8944        esac ;;
8945      esac
8946      link_all_deplibs=yes
8947      ;;
8948
8949    sunos4*)
8950      if test "x$host_vendor" = xsequent; then
8951        # Use $CC to link under sequent, because it throws in some extra .o
8952        # files that make .init and .fini sections work.
8953        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954      else
8955        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8956      fi
8957      hardcode_libdir_flag_spec='-L$libdir'
8958      hardcode_direct=yes
8959      hardcode_minus_L=yes
8960      hardcode_shlibpath_var=no
8961      ;;
8962
8963    sysv4)
8964      case $host_vendor in
8965        sni)
8966          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967          hardcode_direct=yes # is this really true???
8968        ;;
8969        siemens)
8970          ## LD is ld it makes a PLAMLIB
8971          ## CC just makes a GrossModule.
8972          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8973          reload_cmds='$CC -r -o $output$reload_objs'
8974          hardcode_direct=no
8975        ;;
8976        motorola)
8977          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8979        ;;
8980      esac
8981      runpath_var='LD_RUN_PATH'
8982      hardcode_shlibpath_var=no
8983      ;;
8984
8985    sysv4.3*)
8986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987      hardcode_shlibpath_var=no
8988      export_dynamic_flag_spec='-Bexport'
8989      ;;
8990
8991    sysv4*MP*)
8992      if test -d /usr/nec; then
8993        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994        hardcode_shlibpath_var=no
8995        runpath_var=LD_RUN_PATH
8996        hardcode_runpath_var=yes
8997        ld_shlibs=yes
8998      fi
8999      ;;
9000
9001    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9002      no_undefined_flag='${wl}-z,text'
9003      archive_cmds_need_lc=no
9004      hardcode_shlibpath_var=no
9005      runpath_var='LD_RUN_PATH'
9006
9007      if test "$GCC" = yes; then
9008        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010      else
9011        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013      fi
9014      ;;
9015
9016    sysv5* | sco3.2v5* | sco5v6*)
9017      # Note: We can NOT use -z defs as we might desire, because we do not
9018      # link with -lc, and that would cause any symbols used from libc to
9019      # always be unresolved, which means just about no library would
9020      # ever link correctly.  If we're not using GNU ld we use -z text
9021      # though, which does catch some bad symbols but isn't as heavy-handed
9022      # as -z defs.
9023      no_undefined_flag='${wl}-z,text'
9024      allow_undefined_flag='${wl}-z,nodefs'
9025      archive_cmds_need_lc=no
9026      hardcode_shlibpath_var=no
9027      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9028      hardcode_libdir_separator=':'
9029      link_all_deplibs=yes
9030      export_dynamic_flag_spec='${wl}-Bexport'
9031      runpath_var='LD_RUN_PATH'
9032
9033      if test "$GCC" = yes; then
9034        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036      else
9037        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039      fi
9040      ;;
9041
9042    uts4*)
9043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044      hardcode_libdir_flag_spec='-L$libdir'
9045      hardcode_shlibpath_var=no
9046      ;;
9047
9048    *)
9049      ld_shlibs=no
9050      ;;
9051    esac
9052  fi
9053
9054echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9055echo "${ECHO_T}$ld_shlibs" >&6
9056test "$ld_shlibs" = no && can_build_shared=no
9057
9058#
9059# Do we need to explicitly link libc?
9060#
9061case "x$archive_cmds_need_lc" in
9062x|xyes)
9063  # Assume -lc should be added
9064  archive_cmds_need_lc=yes
9065
9066  if test "$enable_shared" = yes && test "$GCC" = yes; then
9067    case $archive_cmds in
9068    *'~'*)
9069      # FIXME: we may have to deal with multi-command sequences.
9070      ;;
9071    '$CC '*)
9072      # Test whether the compiler implicitly links with -lc since on some
9073      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9074      # to ld, don't add -lc before -lgcc.
9075      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9077      $rm conftest*
9078      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9079
9080      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081  (eval $ac_compile) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } 2>conftest.err; then
9085        soname=conftest
9086        lib=conftest
9087        libobjs=conftest.$ac_objext
9088        deplibs=
9089        wl=$lt_prog_compiler_wl
9090        pic_flag=$lt_prog_compiler_pic
9091        compiler_flags=-v
9092        linker_flags=-v
9093        verstring=
9094        output_objdir=.
9095        libname=conftest
9096        lt_save_allow_undefined_flag=$allow_undefined_flag
9097        allow_undefined_flag=
9098        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9099  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }
9103        then
9104          archive_cmds_need_lc=no
9105        else
9106          archive_cmds_need_lc=yes
9107        fi
9108        allow_undefined_flag=$lt_save_allow_undefined_flag
9109      else
9110        cat conftest.err 1>&5
9111      fi
9112      $rm conftest*
9113      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9114echo "${ECHO_T}$archive_cmds_need_lc" >&6
9115      ;;
9116    esac
9117  fi
9118  ;;
9119esac
9120
9121echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9122echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9123library_names_spec=
9124libname_spec='lib$name'
9125soname_spec=
9126shrext_cmds=".so"
9127postinstall_cmds=
9128postuninstall_cmds=
9129finish_cmds=
9130finish_eval=
9131shlibpath_var=
9132shlibpath_overrides_runpath=unknown
9133version_type=none
9134dynamic_linker="$host_os ld.so"
9135sys_lib_dlsearch_path_spec="/lib /usr/lib"
9136if test "$GCC" = yes; then
9137  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9138  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9139    # if the path contains ";" then we assume it to be the separator
9140    # otherwise default to the standard path separator (i.e. ":") - it is
9141    # assumed that no part of a normal pathname contains ";" but that should
9142    # okay in the real world where ";" in dirpaths is itself problematic.
9143    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144  else
9145    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9146  fi
9147else
9148  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9149fi
9150need_lib_prefix=unknown
9151hardcode_into_libs=no
9152
9153# when you set need_version to no, make sure it does not cause -set_version
9154# flags to be left without arguments
9155need_version=unknown
9156
9157case $host_os in
9158aix3*)
9159  version_type=linux
9160  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9161  shlibpath_var=LIBPATH
9162
9163  # AIX 3 has no versioning support, so we append a major version to the name.
9164  soname_spec='${libname}${release}${shared_ext}$major'
9165  ;;
9166
9167aix4* | aix5*)
9168  version_type=linux
9169  need_lib_prefix=no
9170  need_version=no
9171  hardcode_into_libs=yes
9172  if test "$host_cpu" = ia64; then
9173    # AIX 5 supports IA64
9174    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9175    shlibpath_var=LD_LIBRARY_PATH
9176  else
9177    # With GCC up to 2.95.x, collect2 would create an import file
9178    # for dependence libraries.  The import file would start with
9179    # the line `#! .'.  This would cause the generated library to
9180    # depend on `.', always an invalid library.  This was fixed in
9181    # development snapshots of GCC prior to 3.0.
9182    case $host_os in
9183      aix4 | aix4.[01] | aix4.[01].*)
9184      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9185           echo ' yes '
9186           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9187        :
9188      else
9189        can_build_shared=no
9190      fi
9191      ;;
9192    esac
9193    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9194    # soname into executable. Probably we can add versioning support to
9195    # collect2, so additional links can be useful in future.
9196    if test "$aix_use_runtimelinking" = yes; then
9197      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9198      # instead of lib<name>.a to let people know that these are not
9199      # typical AIX shared libraries.
9200      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201    else
9202      # We preserve .a as extension for shared libraries through AIX4.2
9203      # and later when we are not doing run time linking.
9204      library_names_spec='${libname}${release}.a $libname.a'
9205      soname_spec='${libname}${release}${shared_ext}$major'
9206    fi
9207    shlibpath_var=LIBPATH
9208  fi
9209  ;;
9210
9211amigaos*)
9212  library_names_spec='$libname.ixlibrary $libname.a'
9213  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9214  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9215  ;;
9216
9217beos*)
9218  library_names_spec='${libname}${shared_ext}'
9219  dynamic_linker="$host_os ld.so"
9220  shlibpath_var=LIBRARY_PATH
9221  ;;
9222
9223bsdi[45]*)
9224  version_type=linux
9225  need_version=no
9226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9229  shlibpath_var=LD_LIBRARY_PATH
9230  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9231  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9232  # the default ld.so.conf also contains /usr/contrib/lib and
9233  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9234  # libtool to hard-code these into programs
9235  ;;
9236
9237cygwin* | mingw* | pw32*)
9238  version_type=windows
9239  shrext_cmds=".dll"
9240  need_version=no
9241  need_lib_prefix=no
9242
9243  case $GCC,$host_os in
9244  yes,cygwin* | yes,mingw* | yes,pw32*)
9245    library_names_spec='$libname.dll.a'
9246    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9247    postinstall_cmds='base_file=`basename \${file}`~
9248      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9249      dldir=$destdir/`dirname \$dlpath`~
9250      test -d \$dldir || mkdir -p \$dldir~
9251      $install_prog $dir/$dlname \$dldir/$dlname~
9252      chmod a+x \$dldir/$dlname'
9253    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9254      dlpath=$dir/\$dldll~
9255       $rm \$dlpath'
9256    shlibpath_overrides_runpath=yes
9257
9258    case $host_os in
9259    cygwin*)
9260      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9261      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9262      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9263      ;;
9264    mingw*)
9265      # MinGW DLLs use traditional 'lib' prefix
9266      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9267      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9268      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9269        # It is most probably a Windows format PATH printed by
9270        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9271        # path with ; separators, and with drive letters. We can handle the
9272        # drive letters (cygwin fileutils understands them), so leave them,
9273        # especially as we might pass files found there to a mingw objdump,
9274        # which wouldn't understand a cygwinified path. Ahh.
9275        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9276      else
9277        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9278      fi
9279      ;;
9280    pw32*)
9281      # pw32 DLLs use 'pw' prefix rather than 'lib'
9282      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9283      ;;
9284    esac
9285    ;;
9286
9287  *)
9288    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9289    ;;
9290  esac
9291  dynamic_linker='Win32 ld.exe'
9292  # FIXME: first we should search . and the directory the executable is in
9293  shlibpath_var=PATH
9294  ;;
9295
9296darwin* | rhapsody*)
9297  dynamic_linker="$host_os dyld"
9298  version_type=darwin
9299  need_lib_prefix=no
9300  need_version=no
9301  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9302  soname_spec='${libname}${release}${major}$shared_ext'
9303  shlibpath_overrides_runpath=yes
9304  shlibpath_var=DYLD_LIBRARY_PATH
9305  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9306  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9307  if test "$GCC" = yes; then
9308    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9309  else
9310    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9311  fi
9312  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313  ;;
9314
9315dgux*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  ;;
9323
9324freebsd1*)
9325  dynamic_linker=no
9326  ;;
9327
9328kfreebsd*-gnu)
9329  version_type=linux
9330  need_lib_prefix=no
9331  need_version=no
9332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9333  soname_spec='${libname}${release}${shared_ext}$major'
9334  shlibpath_var=LD_LIBRARY_PATH
9335  shlibpath_overrides_runpath=no
9336  hardcode_into_libs=yes
9337  dynamic_linker='GNU ld.so'
9338  ;;
9339
9340freebsd* | dragonfly*)
9341  # DragonFly does not have aout.  When/if they implement a new
9342  # versioning mechanism, adjust this.
9343  if test -x /usr/bin/objformat; then
9344    objformat=`/usr/bin/objformat`
9345  else
9346    case $host_os in
9347    freebsd[123]*) objformat=aout ;;
9348    *) objformat=elf ;;
9349    esac
9350  fi
9351  version_type=freebsd-$objformat
9352  case $version_type in
9353    freebsd-elf*)
9354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9355      need_version=no
9356      need_lib_prefix=no
9357      ;;
9358    freebsd-*)
9359      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9360      need_version=yes
9361      ;;
9362  esac
9363  shlibpath_var=LD_LIBRARY_PATH
9364  case $host_os in
9365  freebsd2*)
9366    shlibpath_overrides_runpath=yes
9367    ;;
9368  freebsd3.[01]* | freebsdelf3.[01]*)
9369    shlibpath_overrides_runpath=yes
9370    hardcode_into_libs=yes
9371    ;;
9372  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9373  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9374    shlibpath_overrides_runpath=no
9375    hardcode_into_libs=yes
9376    ;;
9377  freebsd*) # from 4.6 on
9378    shlibpath_overrides_runpath=yes
9379    hardcode_into_libs=yes
9380    ;;
9381  esac
9382  ;;
9383
9384gnu*)
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  hardcode_into_libs=yes
9392  ;;
9393
9394hpux9* | hpux10* | hpux11*)
9395  # Give a soname corresponding to the major version so that dld.sl refuses to
9396  # link against other versions.
9397  version_type=sunos
9398  need_lib_prefix=no
9399  need_version=no
9400  case $host_cpu in
9401  ia64*)
9402    shrext_cmds='.so'
9403    hardcode_into_libs=yes
9404    dynamic_linker="$host_os dld.so"
9405    shlibpath_var=LD_LIBRARY_PATH
9406    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408    soname_spec='${libname}${release}${shared_ext}$major'
9409    if test "X$HPUX_IA64_MODE" = X32; then
9410      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9411    else
9412      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9413    fi
9414    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9415    ;;
9416   hppa*64*)
9417     shrext_cmds='.sl'
9418     hardcode_into_libs=yes
9419     dynamic_linker="$host_os dld.sl"
9420     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423     soname_spec='${libname}${release}${shared_ext}$major'
9424     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9425     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426     ;;
9427   *)
9428    shrext_cmds='.sl'
9429    dynamic_linker="$host_os dld.sl"
9430    shlibpath_var=SHLIB_PATH
9431    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433    soname_spec='${libname}${release}${shared_ext}$major'
9434    ;;
9435  esac
9436  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9437  postinstall_cmds='chmod 555 $lib'
9438  ;;
9439
9440interix3*)
9441  version_type=linux
9442  need_lib_prefix=no
9443  need_version=no
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445  soname_spec='${libname}${release}${shared_ext}$major'
9446  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  shlibpath_overrides_runpath=no
9449  hardcode_into_libs=yes
9450  ;;
9451
9452irix5* | irix6* | nonstopux*)
9453  case $host_os in
9454    nonstopux*) version_type=nonstopux ;;
9455    *)
9456        if test "$lt_cv_prog_gnu_ld" = yes; then
9457                version_type=linux
9458        else
9459                version_type=irix
9460        fi ;;
9461  esac
9462  need_lib_prefix=no
9463  need_version=no
9464  soname_spec='${libname}${release}${shared_ext}$major'
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9466  case $host_os in
9467  irix5* | nonstopux*)
9468    libsuff= shlibsuff=
9469    ;;
9470  *)
9471    case $LD in # libtool.m4 will add one of these switches to LD
9472    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9473      libsuff= shlibsuff= libmagic=32-bit;;
9474    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9475      libsuff=32 shlibsuff=N32 libmagic=N32;;
9476    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9477      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9478    *) libsuff= shlibsuff= libmagic=never-match;;
9479    esac
9480    ;;
9481  esac
9482  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9483  shlibpath_overrides_runpath=no
9484  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9485  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9486  hardcode_into_libs=yes
9487  ;;
9488
9489# No shared lib support for Linux oldld, aout, or coff.
9490linux*oldld* | linux*aout* | linux*coff*)
9491  dynamic_linker=no
9492  ;;
9493
9494# This must be Linux ELF.
9495linux*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9502  shlibpath_var=LD_LIBRARY_PATH
9503  shlibpath_overrides_runpath=no
9504  # This implies no fast_install, which is unacceptable.
9505  # Some rework will be needed to allow for fast_install
9506  # before this can be enabled.
9507  hardcode_into_libs=yes
9508
9509  # Append ld.so.conf contents to the search path
9510  if test -f /etc/ld.so.conf; then
9511    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9512    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9513  fi
9514
9515  # We used to test for /lib/ld.so.1 and disable shared libraries on
9516  # powerpc, because MkLinux only supported shared libraries with the
9517  # GNU dynamic linker.  Since this was broken with cross compilers,
9518  # most powerpc-linux boxes support dynamic linking these days and
9519  # people can always --disable-shared, the test was removed, and we
9520  # assume the GNU/Linux dynamic linker is in use.
9521  dynamic_linker='GNU/Linux ld.so'
9522  ;;
9523
9524knetbsd*-gnu)
9525  version_type=linux
9526  need_lib_prefix=no
9527  need_version=no
9528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9529  soname_spec='${libname}${release}${shared_ext}$major'
9530  shlibpath_var=LD_LIBRARY_PATH
9531  shlibpath_overrides_runpath=no
9532  hardcode_into_libs=yes
9533  dynamic_linker='GNU ld.so'
9534  ;;
9535
9536netbsd*)
9537  version_type=sunos
9538  need_lib_prefix=no
9539  need_version=no
9540  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9542    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9543    dynamic_linker='NetBSD (a.out) ld.so'
9544  else
9545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9546    soname_spec='${libname}${release}${shared_ext}$major'
9547    dynamic_linker='NetBSD ld.elf_so'
9548  fi
9549  shlibpath_var=LD_LIBRARY_PATH
9550  shlibpath_overrides_runpath=yes
9551  hardcode_into_libs=yes
9552  ;;
9553
9554newsos6)
9555  version_type=linux
9556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  shlibpath_overrides_runpath=yes
9559  ;;
9560
9561nto-qnx*)
9562  version_type=linux
9563  need_lib_prefix=no
9564  need_version=no
9565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566  soname_spec='${libname}${release}${shared_ext}$major'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  shlibpath_overrides_runpath=yes
9569  ;;
9570
9571openbsd*)
9572  version_type=sunos
9573  sys_lib_dlsearch_path_spec="/usr/lib"
9574  need_lib_prefix=no
9575  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9576  case $host_os in
9577    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9578    *)                         need_version=no  ;;
9579  esac
9580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9581  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9582  shlibpath_var=LD_LIBRARY_PATH
9583  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584    case $host_os in
9585      openbsd2.[89] | openbsd2.[89].*)
9586        shlibpath_overrides_runpath=no
9587        ;;
9588      *)
9589        shlibpath_overrides_runpath=yes
9590        ;;
9591      esac
9592  else
9593    shlibpath_overrides_runpath=yes
9594  fi
9595  ;;
9596
9597os2*)
9598  libname_spec='$name'
9599  shrext_cmds=".dll"
9600  need_lib_prefix=no
9601  library_names_spec='$libname${shared_ext} $libname.a'
9602  dynamic_linker='OS/2 ld.exe'
9603  shlibpath_var=LIBPATH
9604  ;;
9605
9606osf3* | osf4* | osf5*)
9607  version_type=osf
9608  need_lib_prefix=no
9609  need_version=no
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9614  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9615  ;;
9616
9617solaris*)
9618  version_type=linux
9619  need_lib_prefix=no
9620  need_version=no
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  soname_spec='${libname}${release}${shared_ext}$major'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  shlibpath_overrides_runpath=yes
9625  hardcode_into_libs=yes
9626  # ldd complains unless libraries are executable
9627  postinstall_cmds='chmod +x $lib'
9628  ;;
9629
9630sunos4*)
9631  version_type=sunos
9632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9633  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9634  shlibpath_var=LD_LIBRARY_PATH
9635  shlibpath_overrides_runpath=yes
9636  if test "$with_gnu_ld" = yes; then
9637    need_lib_prefix=no
9638  fi
9639  need_version=yes
9640  ;;
9641
9642sysv4 | sysv4.3*)
9643  version_type=linux
9644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645  soname_spec='${libname}${release}${shared_ext}$major'
9646  shlibpath_var=LD_LIBRARY_PATH
9647  case $host_vendor in
9648    sni)
9649      shlibpath_overrides_runpath=no
9650      need_lib_prefix=no
9651      export_dynamic_flag_spec='${wl}-Blargedynsym'
9652      runpath_var=LD_RUN_PATH
9653      ;;
9654    siemens)
9655      need_lib_prefix=no
9656      ;;
9657    motorola)
9658      need_lib_prefix=no
9659      need_version=no
9660      shlibpath_overrides_runpath=no
9661      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9662      ;;
9663  esac
9664  ;;
9665
9666sysv4*MP*)
9667  if test -d /usr/nec ;then
9668    version_type=linux
9669    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9670    soname_spec='$libname${shared_ext}.$major'
9671    shlibpath_var=LD_LIBRARY_PATH
9672  fi
9673  ;;
9674
9675sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9676  version_type=freebsd-elf
9677  need_lib_prefix=no
9678  need_version=no
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9680  soname_spec='${libname}${release}${shared_ext}$major'
9681  shlibpath_var=LD_LIBRARY_PATH
9682  hardcode_into_libs=yes
9683  if test "$with_gnu_ld" = yes; then
9684    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9685    shlibpath_overrides_runpath=no
9686  else
9687    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9688    shlibpath_overrides_runpath=yes
9689    case $host_os in
9690      sco3.2v5*)
9691        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9692        ;;
9693    esac
9694  fi
9695  sys_lib_dlsearch_path_spec='/usr/lib'
9696  ;;
9697
9698uts4*)
9699  version_type=linux
9700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701  soname_spec='${libname}${release}${shared_ext}$major'
9702  shlibpath_var=LD_LIBRARY_PATH
9703  ;;
9704
9705*)
9706  dynamic_linker=no
9707  ;;
9708esac
9709echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9710echo "${ECHO_T}$dynamic_linker" >&6
9711test "$dynamic_linker" = no && can_build_shared=no
9712
9713variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9714if test "$GCC" = yes; then
9715  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9716fi
9717
9718echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9719echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9720hardcode_action=
9721if test -n "$hardcode_libdir_flag_spec" || \
9722   test -n "$runpath_var" || \
9723   test "X$hardcode_automatic" = "Xyes" ; then
9724
9725  # We can hardcode non-existant directories.
9726  if test "$hardcode_direct" != no &&
9727     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9728     # have to relink, otherwise we might link with an installed library
9729     # when we should be linking with a yet-to-be-installed one
9730     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9731     test "$hardcode_minus_L" != no; then
9732    # Linking always hardcodes the temporary library directory.
9733    hardcode_action=relink
9734  else
9735    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9736    hardcode_action=immediate
9737  fi
9738else
9739  # We cannot hardcode anything, or else we can only hardcode existing
9740  # directories.
9741  hardcode_action=unsupported
9742fi
9743echo "$as_me:$LINENO: result: $hardcode_action" >&5
9744echo "${ECHO_T}$hardcode_action" >&6
9745
9746if test "$hardcode_action" = relink; then
9747  # Fast installation is not supported
9748  enable_fast_install=no
9749elif test "$shlibpath_overrides_runpath" = yes ||
9750     test "$enable_shared" = no; then
9751  # Fast installation is not necessary
9752  enable_fast_install=needless
9753fi
9754
9755striplib=
9756old_striplib=
9757echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9758echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9759if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9760  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9761  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9762  echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764else
9765# FIXME - insert some real tests, host_os isn't really good enough
9766  case $host_os in
9767   darwin*)
9768       if test -n "$STRIP" ; then
9769         striplib="$STRIP -x"
9770         echo "$as_me:$LINENO: result: yes" >&5
9771echo "${ECHO_T}yes" >&6
9772       else
9773  echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775fi
9776       ;;
9777   *)
9778  echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
9780    ;;
9781  esac
9782fi
9783
9784if test "x$enable_dlopen" != xyes; then
9785  enable_dlopen=unknown
9786  enable_dlopen_self=unknown
9787  enable_dlopen_self_static=unknown
9788else
9789  lt_cv_dlopen=no
9790  lt_cv_dlopen_libs=
9791
9792  case $host_os in
9793  beos*)
9794    lt_cv_dlopen="load_add_on"
9795    lt_cv_dlopen_libs=
9796    lt_cv_dlopen_self=yes
9797    ;;
9798
9799  mingw* | pw32*)
9800    lt_cv_dlopen="LoadLibrary"
9801    lt_cv_dlopen_libs=
9802   ;;
9803
9804  cygwin*)
9805    lt_cv_dlopen="dlopen"
9806    lt_cv_dlopen_libs=
9807   ;;
9808
9809  darwin*)
9810  # if libdl is installed we need to link against it
9811    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9812echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9813if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  ac_check_lib_save_LIBS=$LIBS
9817LIBS="-ldl  $LIBS"
9818cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h.  */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h.  */
9824
9825/* Override any gcc2 internal prototype to avoid an error.  */
9826#ifdef __cplusplus
9827extern "C"
9828#endif
9829/* We use char because int might match the return type of a gcc2
9830   builtin and then its argument prototype would still apply.  */
9831char dlopen ();
9832int
9833main ()
9834{
9835dlopen ();
9836  ;
9837  return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext conftest$ac_exeext
9841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842  (eval $ac_link) 2>conftest.er1
9843  ac_status=$?
9844  grep -v '^ *+' conftest.er1 >conftest.err
9845  rm -f conftest.er1
9846  cat conftest.err >&5
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); } &&
9849         { ac_try='test -z "$ac_c_werror_flag"
9850                         || test ! -s conftest.err'
9851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852  (eval $ac_try) 2>&5
9853  ac_status=$?
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); }; } &&
9856         { ac_try='test -s conftest$ac_exeext'
9857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858  (eval $ac_try) 2>&5
9859  ac_status=$?
9860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); }; }; then
9862  ac_cv_lib_dl_dlopen=yes
9863else
9864  echo "$as_me: failed program was:" >&5
9865sed 's/^/| /' conftest.$ac_ext >&5
9866
9867ac_cv_lib_dl_dlopen=no
9868fi
9869rm -f conftest.err conftest.$ac_objext \
9870      conftest$ac_exeext conftest.$ac_ext
9871LIBS=$ac_check_lib_save_LIBS
9872fi
9873echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9874echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9875if test $ac_cv_lib_dl_dlopen = yes; then
9876  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9877else
9878
9879    lt_cv_dlopen="dyld"
9880    lt_cv_dlopen_libs=
9881    lt_cv_dlopen_self=yes
9882
9883fi
9884
9885   ;;
9886
9887  *)
9888    echo "$as_me:$LINENO: checking for shl_load" >&5
9889echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9890if test "${ac_cv_func_shl_load+set}" = set; then
9891  echo $ECHO_N "(cached) $ECHO_C" >&6
9892else
9893  cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h.  */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h.  */
9899/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9901#define shl_load innocuous_shl_load
9902
9903/* System header to define __stub macros and hopefully few prototypes,
9904    which can conflict with char shl_load (); below.
9905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906    <limits.h> exists even on freestanding compilers.  */
9907
9908#ifdef __STDC__
9909# include <limits.h>
9910#else
9911# include <assert.h>
9912#endif
9913
9914#undef shl_load
9915
9916/* Override any gcc2 internal prototype to avoid an error.  */
9917#ifdef __cplusplus
9918extern "C"
9919{
9920#endif
9921/* We use char because int might match the return type of a gcc2
9922   builtin and then its argument prototype would still apply.  */
9923char shl_load ();
9924/* The GNU C library defines this for functions which it implements
9925    to always fail with ENOSYS.  Some functions are actually named
9926    something starting with __ and the normal name is an alias.  */
9927#if defined (__stub_shl_load) || defined (__stub___shl_load)
9928choke me
9929#else
9930char (*f) () = shl_load;
9931#endif
9932#ifdef __cplusplus
9933}
9934#endif
9935
9936int
9937main ()
9938{
9939return f != shl_load;
9940  ;
9941  return 0;
9942}
9943_ACEOF
9944rm -f conftest.$ac_objext conftest$ac_exeext
9945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946  (eval $ac_link) 2>conftest.er1
9947  ac_status=$?
9948  grep -v '^ *+' conftest.er1 >conftest.err
9949  rm -f conftest.er1
9950  cat conftest.err >&5
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); } &&
9953         { ac_try='test -z "$ac_c_werror_flag"
9954                         || test ! -s conftest.err'
9955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956  (eval $ac_try) 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; } &&
9960         { ac_try='test -s conftest$ac_exeext'
9961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962  (eval $ac_try) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; }; then
9966  ac_cv_func_shl_load=yes
9967else
9968  echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971ac_cv_func_shl_load=no
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974      conftest$ac_exeext conftest.$ac_ext
9975fi
9976echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9977echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9978if test $ac_cv_func_shl_load = yes; then
9979  lt_cv_dlopen="shl_load"
9980else
9981  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9982echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9983if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  ac_check_lib_save_LIBS=$LIBS
9987LIBS="-ldld  $LIBS"
9988cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h.  */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h.  */
9994
9995/* Override any gcc2 internal prototype to avoid an error.  */
9996#ifdef __cplusplus
9997extern "C"
9998#endif
9999/* We use char because int might match the return type of a gcc2
10000   builtin and then its argument prototype would still apply.  */
10001char shl_load ();
10002int
10003main ()
10004{
10005shl_load ();
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012  (eval $ac_link) 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } &&
10019         { ac_try='test -z "$ac_c_werror_flag"
10020                         || test ! -s conftest.err'
10021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022  (eval $ac_try) 2>&5
10023  ac_status=$?
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); }; } &&
10026         { ac_try='test -s conftest$ac_exeext'
10027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028  (eval $ac_try) 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; }; then
10032  ac_cv_lib_dld_shl_load=yes
10033else
10034  echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037ac_cv_lib_dld_shl_load=no
10038fi
10039rm -f conftest.err conftest.$ac_objext \
10040      conftest$ac_exeext conftest.$ac_ext
10041LIBS=$ac_check_lib_save_LIBS
10042fi
10043echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10044echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10045if test $ac_cv_lib_dld_shl_load = yes; then
10046  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10047else
10048  echo "$as_me:$LINENO: checking for dlopen" >&5
10049echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10050if test "${ac_cv_func_dlopen+set}" = set; then
10051  echo $ECHO_N "(cached) $ECHO_C" >&6
10052else
10053  cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h.  */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h.  */
10059/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10061#define dlopen innocuous_dlopen
10062
10063/* System header to define __stub macros and hopefully few prototypes,
10064    which can conflict with char dlopen (); below.
10065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066    <limits.h> exists even on freestanding compilers.  */
10067
10068#ifdef __STDC__
10069# include <limits.h>
10070#else
10071# include <assert.h>
10072#endif
10073
10074#undef dlopen
10075
10076/* Override any gcc2 internal prototype to avoid an error.  */
10077#ifdef __cplusplus
10078extern "C"
10079{
10080#endif
10081/* We use char because int might match the return type of a gcc2
10082   builtin and then its argument prototype would still apply.  */
10083char dlopen ();
10084/* The GNU C library defines this for functions which it implements
10085    to always fail with ENOSYS.  Some functions are actually named
10086    something starting with __ and the normal name is an alias.  */
10087#if defined (__stub_dlopen) || defined (__stub___dlopen)
10088choke me
10089#else
10090char (*f) () = dlopen;
10091#endif
10092#ifdef __cplusplus
10093}
10094#endif
10095
10096int
10097main ()
10098{
10099return f != dlopen;
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104rm -f conftest.$ac_objext conftest$ac_exeext
10105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106  (eval $ac_link) 2>conftest.er1
10107  ac_status=$?
10108  grep -v '^ *+' conftest.er1 >conftest.err
10109  rm -f conftest.er1
10110  cat conftest.err >&5
10111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); } &&
10113         { ac_try='test -z "$ac_c_werror_flag"
10114                         || test ! -s conftest.err'
10115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116  (eval $ac_try) 2>&5
10117  ac_status=$?
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); }; } &&
10120         { ac_try='test -s conftest$ac_exeext'
10121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122  (eval $ac_try) 2>&5
10123  ac_status=$?
10124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125  (exit $ac_status); }; }; then
10126  ac_cv_func_dlopen=yes
10127else
10128  echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
10131ac_cv_func_dlopen=no
10132fi
10133rm -f conftest.err conftest.$ac_objext \
10134      conftest$ac_exeext conftest.$ac_ext
10135fi
10136echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10137echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10138if test $ac_cv_func_dlopen = yes; then
10139  lt_cv_dlopen="dlopen"
10140else
10141  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10142echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10143if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10144  echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146  ac_check_lib_save_LIBS=$LIBS
10147LIBS="-ldl  $LIBS"
10148cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h.  */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h.  */
10154
10155/* Override any gcc2 internal prototype to avoid an error.  */
10156#ifdef __cplusplus
10157extern "C"
10158#endif
10159/* We use char because int might match the return type of a gcc2
10160   builtin and then its argument prototype would still apply.  */
10161char dlopen ();
10162int
10163main ()
10164{
10165dlopen ();
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172  (eval $ac_link) 2>conftest.er1
10173  ac_status=$?
10174  grep -v '^ *+' conftest.er1 >conftest.err
10175  rm -f conftest.er1
10176  cat conftest.err >&5
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); } &&
10179         { ac_try='test -z "$ac_c_werror_flag"
10180                         || test ! -s conftest.err'
10181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182  (eval $ac_try) 2>&5
10183  ac_status=$?
10184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185  (exit $ac_status); }; } &&
10186         { ac_try='test -s conftest$ac_exeext'
10187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188  (eval $ac_try) 2>&5
10189  ac_status=$?
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); }; }; then
10192  ac_cv_lib_dl_dlopen=yes
10193else
10194  echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197ac_cv_lib_dl_dlopen=no
10198fi
10199rm -f conftest.err conftest.$ac_objext \
10200      conftest$ac_exeext conftest.$ac_ext
10201LIBS=$ac_check_lib_save_LIBS
10202fi
10203echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10204echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10205if test $ac_cv_lib_dl_dlopen = yes; then
10206  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207else
10208  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10209echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10210if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10211  echo $ECHO_N "(cached) $ECHO_C" >&6
10212else
10213  ac_check_lib_save_LIBS=$LIBS
10214LIBS="-lsvld  $LIBS"
10215cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h.  */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h.  */
10221
10222/* Override any gcc2 internal prototype to avoid an error.  */
10223#ifdef __cplusplus
10224extern "C"
10225#endif
10226/* We use char because int might match the return type of a gcc2
10227   builtin and then its argument prototype would still apply.  */
10228char dlopen ();
10229int
10230main ()
10231{
10232dlopen ();
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext conftest$ac_exeext
10238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239  (eval $ac_link) 2>conftest.er1
10240  ac_status=$?
10241  grep -v '^ *+' conftest.er1 >conftest.err
10242  rm -f conftest.er1
10243  cat conftest.err >&5
10244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245  (exit $ac_status); } &&
10246         { ac_try='test -z "$ac_c_werror_flag"
10247                         || test ! -s conftest.err'
10248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249  (eval $ac_try) 2>&5
10250  ac_status=$?
10251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252  (exit $ac_status); }; } &&
10253         { ac_try='test -s conftest$ac_exeext'
10254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255  (eval $ac_try) 2>&5
10256  ac_status=$?
10257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); }; }; then
10259  ac_cv_lib_svld_dlopen=yes
10260else
10261  echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264ac_cv_lib_svld_dlopen=no
10265fi
10266rm -f conftest.err conftest.$ac_objext \
10267      conftest$ac_exeext conftest.$ac_ext
10268LIBS=$ac_check_lib_save_LIBS
10269fi
10270echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10271echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10272if test $ac_cv_lib_svld_dlopen = yes; then
10273  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10274else
10275  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10276echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10277if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10278  echo $ECHO_N "(cached) $ECHO_C" >&6
10279else
10280  ac_check_lib_save_LIBS=$LIBS
10281LIBS="-ldld  $LIBS"
10282cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h.  */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h.  */
10288
10289/* Override any gcc2 internal prototype to avoid an error.  */
10290#ifdef __cplusplus
10291extern "C"
10292#endif
10293/* We use char because int might match the return type of a gcc2
10294   builtin and then its argument prototype would still apply.  */
10295char dld_link ();
10296int
10297main ()
10298{
10299dld_link ();
10300  ;
10301  return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
10305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306  (eval $ac_link) 2>conftest.er1
10307  ac_status=$?
10308  grep -v '^ *+' conftest.er1 >conftest.err
10309  rm -f conftest.er1
10310  cat conftest.err >&5
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); } &&
10313         { ac_try='test -z "$ac_c_werror_flag"
10314                         || test ! -s conftest.err'
10315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316  (eval $ac_try) 2>&5
10317  ac_status=$?
10318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); }; } &&
10320         { ac_try='test -s conftest$ac_exeext'
10321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322  (eval $ac_try) 2>&5
10323  ac_status=$?
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); }; }; then
10326  ac_cv_lib_dld_dld_link=yes
10327else
10328  echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331ac_cv_lib_dld_dld_link=no
10332fi
10333rm -f conftest.err conftest.$ac_objext \
10334      conftest$ac_exeext conftest.$ac_ext
10335LIBS=$ac_check_lib_save_LIBS
10336fi
10337echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10338echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10339if test $ac_cv_lib_dld_dld_link = yes; then
10340  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10341fi
10342
10343
10344fi
10345
10346
10347fi
10348
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358    ;;
10359  esac
10360
10361  if test "x$lt_cv_dlopen" != xno; then
10362    enable_dlopen=yes
10363  else
10364    enable_dlopen=no
10365  fi
10366
10367  case $lt_cv_dlopen in
10368  dlopen)
10369    save_CPPFLAGS="$CPPFLAGS"
10370    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10371
10372    save_LDFLAGS="$LDFLAGS"
10373    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10374
10375    save_LIBS="$LIBS"
10376    LIBS="$lt_cv_dlopen_libs $LIBS"
10377
10378    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10379echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10380if test "${lt_cv_dlopen_self+set}" = set; then
10381  echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383          if test "$cross_compiling" = yes; then :
10384  lt_cv_dlopen_self=cross
10385else
10386  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387  lt_status=$lt_dlunknown
10388  cat > conftest.$ac_ext <<EOF
10389#line 10389 "configure"
10390#include "confdefs.h"
10391
10392#if HAVE_DLFCN_H
10393#include <dlfcn.h>
10394#endif
10395
10396#include <stdio.h>
10397
10398#ifdef RTLD_GLOBAL
10399#  define LT_DLGLOBAL           RTLD_GLOBAL
10400#else
10401#  ifdef DL_GLOBAL
10402#    define LT_DLGLOBAL         DL_GLOBAL
10403#  else
10404#    define LT_DLGLOBAL         0
10405#  endif
10406#endif
10407
10408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409   find out it does not work in some platform. */
10410#ifndef LT_DLLAZY_OR_NOW
10411#  ifdef RTLD_LAZY
10412#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10413#  else
10414#    ifdef DL_LAZY
10415#      define LT_DLLAZY_OR_NOW          DL_LAZY
10416#    else
10417#      ifdef RTLD_NOW
10418#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10419#      else
10420#        ifdef DL_NOW
10421#          define LT_DLLAZY_OR_NOW      DL_NOW
10422#        else
10423#          define LT_DLLAZY_OR_NOW      0
10424#        endif
10425#      endif
10426#    endif
10427#  endif
10428#endif
10429
10430#ifdef __cplusplus
10431extern "C" void exit (int);
10432#endif
10433
10434void fnord() { int i=42;}
10435int main ()
10436{
10437  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10438  int status = $lt_dlunknown;
10439
10440  if (self)
10441    {
10442      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10443      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10444      /* dlclose (self); */
10445    }
10446  else
10447    puts (dlerror ());
10448
10449    exit (status);
10450}
10451EOF
10452  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453  (eval $ac_link) 2>&5
10454  ac_status=$?
10455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10457    (./conftest; exit; ) >&5 2>/dev/null
10458    lt_status=$?
10459    case x$lt_status in
10460      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10461      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10462      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10463    esac
10464  else :
10465    # compilation failed
10466    lt_cv_dlopen_self=no
10467  fi
10468fi
10469rm -fr conftest*
10470
10471
10472fi
10473echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10474echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10475
10476    if test "x$lt_cv_dlopen_self" = xyes; then
10477      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10478      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10479echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10480if test "${lt_cv_dlopen_self_static+set}" = set; then
10481  echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483          if test "$cross_compiling" = yes; then :
10484  lt_cv_dlopen_self_static=cross
10485else
10486  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10487  lt_status=$lt_dlunknown
10488  cat > conftest.$ac_ext <<EOF
10489#line 10489 "configure"
10490#include "confdefs.h"
10491
10492#if HAVE_DLFCN_H
10493#include <dlfcn.h>
10494#endif
10495
10496#include <stdio.h>
10497
10498#ifdef RTLD_GLOBAL
10499#  define LT_DLGLOBAL           RTLD_GLOBAL
10500#else
10501#  ifdef DL_GLOBAL
10502#    define LT_DLGLOBAL         DL_GLOBAL
10503#  else
10504#    define LT_DLGLOBAL         0
10505#  endif
10506#endif
10507
10508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10509   find out it does not work in some platform. */
10510#ifndef LT_DLLAZY_OR_NOW
10511#  ifdef RTLD_LAZY
10512#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10513#  else
10514#    ifdef DL_LAZY
10515#      define LT_DLLAZY_OR_NOW          DL_LAZY
10516#    else
10517#      ifdef RTLD_NOW
10518#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10519#      else
10520#        ifdef DL_NOW
10521#          define LT_DLLAZY_OR_NOW      DL_NOW
10522#        else
10523#          define LT_DLLAZY_OR_NOW      0
10524#        endif
10525#      endif
10526#    endif
10527#  endif
10528#endif
10529
10530#ifdef __cplusplus
10531extern "C" void exit (int);
10532#endif
10533
10534void fnord() { int i=42;}
10535int main ()
10536{
10537  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10538  int status = $lt_dlunknown;
10539
10540  if (self)
10541    {
10542      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10543      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10544      /* dlclose (self); */
10545    }
10546  else
10547    puts (dlerror ());
10548
10549    exit (status);
10550}
10551EOF
10552  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553  (eval $ac_link) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10557    (./conftest; exit; ) >&5 2>/dev/null
10558    lt_status=$?
10559    case x$lt_status in
10560      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10561      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10562      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10563    esac
10564  else :
10565    # compilation failed
10566    lt_cv_dlopen_self_static=no
10567  fi
10568fi
10569rm -fr conftest*
10570
10571
10572fi
10573echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10574echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10575    fi
10576
10577    CPPFLAGS="$save_CPPFLAGS"
10578    LDFLAGS="$save_LDFLAGS"
10579    LIBS="$save_LIBS"
10580    ;;
10581  esac
10582
10583  case $lt_cv_dlopen_self in
10584  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10585  *) enable_dlopen_self=unknown ;;
10586  esac
10587
10588  case $lt_cv_dlopen_self_static in
10589  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10590  *) enable_dlopen_self_static=unknown ;;
10591  esac
10592fi
10593
10594
10595# Report which library types will actually be built
10596echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10597echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10598echo "$as_me:$LINENO: result: $can_build_shared" >&5
10599echo "${ECHO_T}$can_build_shared" >&6
10600
10601echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10602echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10603test "$can_build_shared" = "no" && enable_shared=no
10604
10605# On AIX, shared libraries and static libraries use the same namespace, and
10606# are all built from PIC.
10607case $host_os in
10608aix3*)
10609  test "$enable_shared" = yes && enable_static=no
10610  if test -n "$RANLIB"; then
10611    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10612    postinstall_cmds='$RANLIB $lib'
10613  fi
10614  ;;
10615
10616aix4* | aix5*)
10617  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10618    test "$enable_shared" = yes && enable_static=no
10619  fi
10620    ;;
10621esac
10622echo "$as_me:$LINENO: result: $enable_shared" >&5
10623echo "${ECHO_T}$enable_shared" >&6
10624
10625echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10626echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10627# Make sure either enable_shared or enable_static is yes.
10628test "$enable_shared" = yes || enable_static=yes
10629echo "$as_me:$LINENO: result: $enable_static" >&5
10630echo "${ECHO_T}$enable_static" >&6
10631
10632# The else clause should only fire when bootstrapping the
10633# libtool distribution, otherwise you forgot to ship ltmain.sh
10634# with your package, and you will get complaints that there are
10635# no rules to generate ltmain.sh.
10636if test -f "$ltmain"; then
10637  # See if we are running on zsh, and set the options which allow our commands through
10638  # without removal of \ escapes.
10639  if test -n "${ZSH_VERSION+set}" ; then
10640    setopt NO_GLOB_SUBST
10641  fi
10642  # Now quote all the things that may contain metacharacters while being
10643  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10644  # variables and quote the copies for generation of the libtool script.
10645  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10646    SED SHELL STRIP \
10647    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10648    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10649    deplibs_check_method reload_flag reload_cmds need_locks \
10650    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10651    lt_cv_sys_global_symbol_to_c_name_address \
10652    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10653    old_postinstall_cmds old_postuninstall_cmds \
10654    compiler \
10655    CC \
10656    LD \
10657    lt_prog_compiler_wl \
10658    lt_prog_compiler_pic \
10659    lt_prog_compiler_static \
10660    lt_prog_compiler_no_builtin_flag \
10661    export_dynamic_flag_spec \
10662    thread_safe_flag_spec \
10663    whole_archive_flag_spec \
10664    enable_shared_with_static_runtimes \
10665    old_archive_cmds \
10666    old_archive_from_new_cmds \
10667    predep_objects \
10668    postdep_objects \
10669    predeps \
10670    postdeps \
10671    compiler_lib_search_path \
10672    archive_cmds \
10673    archive_expsym_cmds \
10674    postinstall_cmds \
10675    postuninstall_cmds \
10676    old_archive_from_expsyms_cmds \
10677    allow_undefined_flag \
10678    no_undefined_flag \
10679    export_symbols_cmds \
10680    hardcode_libdir_flag_spec \
10681    hardcode_libdir_flag_spec_ld \
10682    hardcode_libdir_separator \
10683    hardcode_automatic \
10684    module_cmds \
10685    module_expsym_cmds \
10686    lt_cv_prog_compiler_c_o \
10687    exclude_expsyms \
10688    include_expsyms; do
10689
10690    case $var in
10691    old_archive_cmds | \
10692    old_archive_from_new_cmds | \
10693    archive_cmds | \
10694    archive_expsym_cmds | \
10695    module_cmds | \
10696    module_expsym_cmds | \
10697    old_archive_from_expsyms_cmds | \
10698    export_symbols_cmds | \
10699    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10700    postinstall_cmds | postuninstall_cmds | \
10701    old_postinstall_cmds | old_postuninstall_cmds | \
10702    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10703      # Double-quote double-evaled strings.
10704      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10705      ;;
10706    *)
10707      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10708      ;;
10709    esac
10710  done
10711
10712  case $lt_echo in
10713  *'\$0 --fallback-echo"')
10714    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10715    ;;
10716  esac
10717
10718cfgfile="${ofile}T"
10719  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10720  $rm -f "$cfgfile"
10721  { echo "$as_me:$LINENO: creating $ofile" >&5
10722echo "$as_me: creating $ofile" >&6;}
10723
10724  cat <<__EOF__ >> "$cfgfile"
10725#! $SHELL
10726
10727# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10728# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10729# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10730#
10731# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10732# Free Software Foundation, Inc.
10733#
10734# This file is part of GNU Libtool:
10735# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10736#
10737# This program is free software; you can redistribute it and/or modify
10738# it under the terms of the GNU General Public License as published by
10739# the Free Software Foundation; either version 2 of the License, or
10740# (at your option) any later version.
10741#
10742# This program is distributed in the hope that it will be useful, but
10743# WITHOUT ANY WARRANTY; without even the implied warranty of
10744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10745# General Public License for more details.
10746#
10747# You should have received a copy of the GNU General Public License
10748# along with this program; if not, write to the Free Software
10749# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10750#
10751# As a special exception to the GNU General Public License, if you
10752# distribute this file as part of a program that contains a
10753# configuration script generated by Autoconf, you may include it under
10754# the same distribution terms that you use for the rest of that program.
10755
10756# A sed program that does not truncate output.
10757SED=$lt_SED
10758
10759# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10760Xsed="$SED -e 1s/^X//"
10761
10762# The HP-UX ksh and POSIX shell print the target directory to stdout
10763# if CDPATH is set.
10764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10765
10766# The names of the tagged configurations supported by this script.
10767available_tags=
10768
10769# ### BEGIN LIBTOOL CONFIG
10770
10771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10772
10773# Shell to use when invoking shell scripts.
10774SHELL=$lt_SHELL
10775
10776# Whether or not to build shared libraries.
10777build_libtool_libs=$enable_shared
10778
10779# Whether or not to build static libraries.
10780build_old_libs=$enable_static