Resolution to PR451.
[oota-llvm.git] / configure_am
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""lib/VMCore/Module.cpp""
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subdirs_all="$ac_subdirs_all projects/sample"
469 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
470 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
471 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
472 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
473 ac_subdirs_all="$ac_subdirs_all projects/Java"
474 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
475 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
476 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 LLVMGCCDIR ENABLE_OPTIMIZED ENABLE_OPTIMIZED_TRUE ENABLE_OPTIMIZED_FALSE ENABLE_PROFILED ENABLE_PROFILED_TRUE ENABLE_PROFILED_FALSE JIT OS ARCH_X86_TRUE ARCH_X86_FALSE ARCH_SPARC_TRUE ARCH_SPARC_FALSE ARCH_PPC_TRUE ARCH_PPC_FALSE ARCH_UNKNOWN_TRUE ARCH_UNKNOWN_FALSE ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ifGNUmake LLVMCC1 LLVMCC1PLUS ETAGSFLAGS ALLOCA MMAP_FILE HAVE_ZLIB HAVE_BZIP2 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME subdirs LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CC_set=${CC+set}
918 ac_env_CC_value=$CC
919 ac_cv_env_CC_set=${CC+set}
920 ac_cv_env_CC_value=$CC
921 ac_env_CFLAGS_set=${CFLAGS+set}
922 ac_env_CFLAGS_value=$CFLAGS
923 ac_cv_env_CFLAGS_set=${CFLAGS+set}
924 ac_cv_env_CFLAGS_value=$CFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 Program names:
1019   --program-prefix=PREFIX            prepend PREFIX to installed program names
1020   --program-suffix=SUFFIX            append SUFFIX to installed program names
1021   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1022
1023 System types:
1024   --build=BUILD     configure for building on BUILD [guessed]
1025   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1026   --target=TARGET   configure for building compilers for TARGET [HOST]
1027 _ACEOF
1028 fi
1029
1030 if test -n "$ac_init_help"; then
1031   case $ac_init_help in
1032      short | recursive ) echo "Configuration of LLVM 1.4:";;
1033    esac
1034   cat <<\_ACEOF
1035
1036 Optional Features:
1037   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1038   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1039   --enable-optimized      Build an optimized version of LLVM (default=no)
1040   --enable-profiled       Build a profiled version of LLVM (default=no)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042   --disable-dependency-tracking  speeds up one-time build
1043   --enable-dependency-tracking   do not reject slow dependency extractors
1044   --enable-shared[=PKGS]
1045                           build shared libraries [default=yes]
1046   --enable-static[=PKGS]
1047                           build static libraries [default=yes]
1048   --enable-fast-install[=PKGS]
1049                           optimize for fast installation [default=yes]
1050   --disable-libtool-lock  avoid locking (might break parallel builds)
1051
1052 Optional Packages:
1053   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1054   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1055   --with-llvmgccdir       Location of LLVM GCC front-end
1056   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-tags[=TAGS]
1060                           include additional configurations [automatic]
1061
1062 Some influential environment variables:
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1066               nonstandard directory <lib dir>
1067   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068               headers in a nonstandard directory <include dir>
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CPP         C preprocessor
1072   CXXCPP      C++ preprocessor
1073   F77         Fortran 77 compiler command
1074   FFLAGS      Fortran 77 compiler flags
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 _ACEOF
1081 fi
1082
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   ac_popdir=`pwd`
1086   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087     test -d $ac_dir || continue
1088     ac_builddir=.
1089
1090 if test "$ac_dir" != .; then
1091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092   # A "../" for each directory in $ac_dir_suffix.
1093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 else
1095   ac_dir_suffix= ac_top_builddir=
1096 fi
1097
1098 case $srcdir in
1099   .)  # No --srcdir option.  We are building in place.
1100     ac_srcdir=.
1101     if test -z "$ac_top_builddir"; then
1102        ac_top_srcdir=.
1103     else
1104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105     fi ;;
1106   [\\/]* | ?:[\\/]* )  # Absolute path.
1107     ac_srcdir=$srcdir$ac_dir_suffix;
1108     ac_top_srcdir=$srcdir ;;
1109   *) # Relative path.
1110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 esac
1113
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1116 case `pwd` in
1117 .) ac_abs_builddir="$ac_dir";;
1118 *)
1119   case "$ac_dir" in
1120   .) ac_abs_builddir=`pwd`;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *)
1128   case ${ac_top_builddir}. in
1129   .) ac_abs_top_builddir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1136 *)
1137   case $ac_srcdir in
1138   .) ac_abs_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141   esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *)
1146   case $ac_top_srcdir in
1147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150   esac;;
1151 esac
1152
1153     cd $ac_dir
1154     # Check for guested configure; otherwise get Cygnus style configure.
1155     if test -f $ac_srcdir/configure.gnu; then
1156       echo
1157       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1158     elif test -f $ac_srcdir/configure; then
1159       echo
1160       $SHELL $ac_srcdir/configure  --help=recursive
1161     elif test -f $ac_srcdir/configure.ac ||
1162            test -f $ac_srcdir/configure.in; then
1163       echo
1164       $ac_configure --help
1165     else
1166       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167     fi
1168     cd $ac_popdir
1169   done
1170 fi
1171
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1174   cat <<\_ACEOF
1175 LLVM configure 1.4
1176 generated by GNU Autoconf 2.59
1177
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1181 _ACEOF
1182   exit 0
1183 fi
1184 exec 5>config.log
1185 cat >&5 <<_ACEOF
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1188
1189 It was created by LLVM $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192   $ $0 $@
1193
1194 _ACEOF
1195 {
1196 cat <<_ASUNAME
1197 ## --------- ##
1198 ## Platform. ##
1199 ## --------- ##
1200
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218 _ASUNAME
1219
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 for as_dir in $PATH
1222 do
1223   IFS=$as_save_IFS
1224   test -z "$as_dir" && as_dir=.
1225   echo "PATH: $as_dir"
1226 done
1227
1228 } >&5
1229
1230 cat >&5 <<_ACEOF
1231
1232
1233 ## ----------- ##
1234 ## Core tests. ##
1235 ## ----------- ##
1236
1237 _ACEOF
1238
1239
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1245 ac_configure_args=
1246 ac_configure_args0=
1247 ac_configure_args1=
1248 ac_sep=
1249 ac_must_keep_next=false
1250 for ac_pass in 1 2
1251 do
1252   for ac_arg
1253   do
1254     case $ac_arg in
1255     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257     | -silent | --silent | --silen | --sile | --sil)
1258       continue ;;
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     esac
1262     case $ac_pass in
1263     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264     2)
1265       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266       if test $ac_must_keep_next = true; then
1267         ac_must_keep_next=false # Got value, back to normal.
1268       else
1269         case $ac_arg in
1270           *=* | --config-cache | -C | -disable-* | --disable-* \
1271           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273           | -with-* | --with-* | -without-* | --without-* | --x)
1274             case "$ac_configure_args0 " in
1275               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276             esac
1277             ;;
1278           -* ) ac_must_keep_next=true ;;
1279         esac
1280       fi
1281       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282       # Get rid of the leading space.
1283       ac_sep=" "
1284       ;;
1285     esac
1286   done
1287 done
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log.  We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297   # Save into config.log some information that might help in debugging.
1298   {
1299     echo
1300
1301     cat <<\_ASBOX
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1305 _ASBOX
1306     echo
1307     # The following way of writing the cache mishandles newlines in values,
1308 {
1309   (set) 2>&1 |
1310     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311     *ac_space=\ *)
1312       sed -n \
1313         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315       ;;
1316     *)
1317       sed -n \
1318         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319       ;;
1320     esac;
1321 }
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1328 _ASBOX
1329     echo
1330     for ac_var in $ac_subst_vars
1331     do
1332       eval ac_val=$`echo $ac_var`
1333       echo "$ac_var='"'"'$ac_val'"'"'"
1334     done | sort
1335     echo
1336
1337     if test -n "$ac_subst_files"; then
1338       cat <<\_ASBOX
1339 ## ------------- ##
1340 ## Output files. ##
1341 ## ------------- ##
1342 _ASBOX
1343       echo
1344       for ac_var in $ac_subst_files
1345       do
1346         eval ac_val=$`echo $ac_var`
1347         echo "$ac_var='"'"'$ac_val'"'"'"
1348       done | sort
1349       echo
1350     fi
1351
1352     if test -s confdefs.h; then
1353       cat <<\_ASBOX
1354 ## ----------- ##
1355 ## confdefs.h. ##
1356 ## ----------- ##
1357 _ASBOX
1358       echo
1359       sed "/^$/d" confdefs.h | sort
1360       echo
1361     fi
1362     test "$ac_signal" != 0 &&
1363       echo "$as_me: caught signal $ac_signal"
1364     echo "$as_me: exit $exit_status"
1365   } >&5
1366   rm -f core *.core &&
1367   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368     exit $exit_status
1369      ' 0
1370 for ac_signal in 1 2 13 15; do
1371   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 done
1373 ac_signal=0
1374
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 echo >confdefs.h
1379
1380 # Predefined preprocessor variables.
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 _ACEOF
1405
1406
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410   if test "x$prefix" != xNONE; then
1411     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412   else
1413     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414   fi
1415 fi
1416 for ac_site_file in $CONFIG_SITE; do
1417   if test -r "$ac_site_file"; then
1418     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420     sed 's/^/| /' "$ac_site_file" >&5
1421     . "$ac_site_file"
1422   fi
1423 done
1424
1425 if test -r "$cache_file"; then
1426   # Some versions of bash will fail to source /dev/null (special
1427   # files actually), so we avoid doing that.
1428   if test -f "$cache_file"; then
1429     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1431     case $cache_file in
1432       [\\/]* | ?:[\\/]* ) . $cache_file;;
1433       *)                      . ./$cache_file;;
1434     esac
1435   fi
1436 else
1437   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1439   >$cache_file
1440 fi
1441
1442 # Check that the precious variables saved in the cache have kept the same
1443 # value.
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448   eval ac_new_set=\$ac_env_${ac_var}_set
1449   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450   eval ac_new_val="\$ac_env_${ac_var}_value"
1451   case $ac_old_set,$ac_new_set in
1452     set,)
1453       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455       ac_cache_corrupted=: ;;
1456     ,set)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,);;
1461     *)
1462       if test "x$ac_old_val" != "x$ac_new_val"; then
1463         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466 echo "$as_me:   former value:  $ac_old_val" >&2;}
1467         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468 echo "$as_me:   current value: $ac_new_val" >&2;}
1469         ac_cache_corrupted=:
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526 ac_aux_dir=
1527 for ac_dir in autoconf $srcdir/autoconf; do
1528   if test -f $ac_dir/install-sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install-sh -c"
1531     break
1532   elif test -f $ac_dir/install.sh; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/install.sh -c"
1535     break
1536   elif test -f $ac_dir/shtool; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/shtool install -c"
1539     break
1540   fi
1541 done
1542 if test -z "$ac_aux_dir"; then
1543   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1544 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1545    { (exit 1); exit 1; }; }
1546 fi
1547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551
1552
1553
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567   ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571    { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575    { (exit 1); exit 1; }; }
1576
1577 fi
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1580 build=$ac_cv_build
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593   ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 fi
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1602 host=$ac_cv_host
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615   ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633   test "$program_prefix$program_suffix$program_transform_name" = \
1634     NONENONEs,x,x, &&
1635   program_prefix=${target_alias}-
1636
1637 if test ${srcdir} != "." ; then
1638         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1639                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1640 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1641    { (exit 1); exit 1; }; }
1642         fi
1643 fi
1644
1645 am__api_version="1.9"
1646 # Find a good install program.  We prefer a C program (faster),
1647 # so one script is as good as another.  But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1652 # AIX /bin/install
1653 # AmigaOS /C/install, which installs bootblocks on floppy discs
1654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657 # OS/2's system install, which has a completely different semantic
1658 # ./install, which can be erroneously created by make from ./install.sh.
1659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661 if test -z "$INSTALL"; then
1662 if test "${ac_cv_path_install+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   # Account for people who put trailing slashes in PATH elements.
1671 case $as_dir/ in
1672   ./ | .// | /cC/* | \
1673   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675   /usr/ucb/* ) ;;
1676   *)
1677     # OSF1 and SCO ODT 3.0 have their own names for install.
1678     # Don't use installbsd from OSF since it installs stuff as root
1679     # by default.
1680     for ac_prog in ginstall scoinst install; do
1681       for ac_exec_ext in '' $ac_executable_extensions; do
1682         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683           if test $ac_prog = install &&
1684             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685             # AIX install.  It has an incompatible calling convention.
1686             :
1687           elif test $ac_prog = install &&
1688             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689             # program-specific install script used by HP pwplus--don't use.
1690             :
1691           else
1692             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693             break 3
1694           fi
1695         fi
1696       done
1697     done
1698     ;;
1699 esac
1700 done
1701
1702
1703 fi
1704   if test "${ac_cv_path_install+set}" = set; then
1705     INSTALL=$ac_cv_path_install
1706   else
1707     # As a last resort, use the slow shell script.  We don't cache a
1708     # path for INSTALL within a source directory, because that will
1709     # break other packages using the cache if that directory is
1710     # removed, or if the path is relative.
1711     INSTALL=$ac_install_sh
1712   fi
1713 fi
1714 echo "$as_me:$LINENO: result: $INSTALL" >&5
1715 echo "${ECHO_T}$INSTALL" >&6
1716
1717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718 # It thinks the first close brace ends the variable substitution.
1719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
1721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1722
1723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
1725 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1727 # Just in case
1728 sleep 1
1729 echo timestamp > conftest.file
1730 # Do `set' in a subshell so we don't clobber the current shell's
1731 # arguments.  Must try -L first in case configure is actually a
1732 # symlink; some systems play weird games with the mod time of symlinks
1733 # (eg FreeBSD returns the mod time of the symlink's containing
1734 # directory).
1735 if (
1736    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737    if test "$*" = "X"; then
1738       # -L didn't work.
1739       set X `ls -t $srcdir/configure conftest.file`
1740    fi
1741    rm -f conftest.file
1742    if test "$*" != "X $srcdir/configure conftest.file" \
1743       && test "$*" != "X conftest.file $srcdir/configure"; then
1744
1745       # If neither matched, then we have a broken ls.  This can happen
1746       # if, for instance, CONFIG_SHELL is bash and it inherits a
1747       # broken ls alias from the environment.  This has actually
1748       # happened.  Such a system could not be considered "sane".
1749       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1750 alias in your environment" >&5
1751 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1752 alias in your environment" >&2;}
1753    { (exit 1); exit 1; }; }
1754    fi
1755
1756    test "$2" = conftest.file
1757    )
1758 then
1759    # Ok.
1760    :
1761 else
1762    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763 Check your system clock" >&5
1764 echo "$as_me: error: newly created file is older than distributed files!
1765 Check your system clock" >&2;}
1766    { (exit 1); exit 1; }; }
1767 fi
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 test "$program_prefix" != NONE &&
1771   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772 # Use a double $ so make ignores it.
1773 test "$program_suffix" != NONE &&
1774   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775 # Double any \ or $.  echo might interpret backslashes.
1776 # By default was `s,x,x', remove it if useless.
1777 cat <<\_ACEOF >conftest.sed
1778 s/[\\$]/&&/g;s/;s,x,x,$//
1779 _ACEOF
1780 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1781 rm conftest.sed
1782
1783 # expand $ac_aux_dir to an absolute path
1784 am_aux_dir=`cd $ac_aux_dir && pwd`
1785
1786 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787 # Use eval to expand $SHELL
1788 if eval "$MISSING --run true"; then
1789   am_missing_run="$MISSING --run "
1790 else
1791   am_missing_run=
1792   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1794 fi
1795
1796 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797   # We used to keeping the `.' as first argument, in order to
1798   # allow $(mkdir_p) to be used without argument.  As in
1799   #   $(mkdir_p) $(somedir)
1800   # where $(somedir) is conditionally defined.  However this is wrong
1801   # for two reasons:
1802   #  1. if the package is installed by a user who cannot write `.'
1803   #     make install will fail,
1804   #  2. the above comment should most certainly read
1805   #     $(mkdir_p) $(DESTDIR)$(somedir)
1806   #     so it does not work when $(somedir) is undefined and
1807   #     $(DESTDIR) is not.
1808   #  To support the latter case, we have to write
1809   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810   #  so the `.' trick is pointless.
1811   mkdir_p='mkdir -p --'
1812 else
1813   # On NextStep and OpenStep, the `mkdir' command does not
1814   # recognize any option.  It will interpret all options as
1815   # directories to create, and then abort because `.' already
1816   # exists.
1817   for d in ./-p ./--version;
1818   do
1819     test -d $d && rmdir $d
1820   done
1821   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822   if test -f "$ac_aux_dir/mkinstalldirs"; then
1823     mkdir_p='$(mkinstalldirs)'
1824   else
1825     mkdir_p='$(install_sh) -d'
1826   fi
1827 fi
1828
1829 for ac_prog in gawk mawk nawk awk
1830 do
1831   # Extract the first word of "$ac_prog", so it can be a program name with args.
1832 set dummy $ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_AWK+set}" = set; then
1836   echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838   if test -n "$AWK"; then
1839   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844   IFS=$as_save_IFS
1845   test -z "$as_dir" && as_dir=.
1846   for ac_exec_ext in '' $ac_executable_extensions; do
1847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_AWK="$ac_prog"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851   fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 AWK=$ac_cv_prog_AWK
1858 if test -n "$AWK"; then
1859   echo "$as_me:$LINENO: result: $AWK" >&5
1860 echo "${ECHO_T}$AWK" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866   test -n "$AWK" && break
1867 done
1868
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   cat >conftest.make <<\_ACEOF
1876 all:
1877         @echo 'ac_maketemp="$(MAKE)"'
1878 _ACEOF
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882   eval ac_cv_prog_make_${ac_make}_set=yes
1883 else
1884   eval ac_cv_prog_make_${ac_make}_set=no
1885 fi
1886 rm -f conftest.make
1887 fi
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889   echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1891   SET_MAKE=
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895   SET_MAKE="MAKE=${MAKE-make}"
1896 fi
1897
1898 rm -rf .tst 2>/dev/null
1899 mkdir .tst 2>/dev/null
1900 if test -d .tst; then
1901   am__leading_dot=.
1902 else
1903   am__leading_dot=_
1904 fi
1905 rmdir .tst 2>/dev/null
1906
1907 # test to see if srcdir already configured
1908 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909    test -f $srcdir/config.status; then
1910   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915 # test whether we have cygpath
1916 if test -z "$CYGPATH_W"; then
1917   if (cygpath --version) >/dev/null 2>/dev/null; then
1918     CYGPATH_W='cygpath -w'
1919   else
1920     CYGPATH_W=echo
1921   fi
1922 fi
1923
1924
1925 # Define the identity of the package.
1926  PACKAGE='-llvm-'
1927  VERSION='1.4'
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE "$PACKAGE"
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define VERSION "$VERSION"
1937 _ACEOF
1938
1939 # Some tools Automake needs.
1940
1941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1942
1943
1944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1945
1946
1947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1948
1949
1950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1951
1952
1953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1954
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'.  However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962   if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$STRIP"; then
1971   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991   echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998 fi
1999 if test -z "$ac_cv_prog_STRIP"; then
2000   ac_ct_STRIP=$STRIP
2001   # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_STRIP"; then
2009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_STRIP="strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 fi
2027 fi
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037   STRIP=$ac_ct_STRIP
2038 else
2039   STRIP="$ac_cv_prog_STRIP"
2040 fi
2041
2042 fi
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044
2045 # We need awk for the "check" target.  The system "awk" is bad on
2046 # some platforms.
2047 # Always define AMTAR for backward compatibility.
2048
2049 AMTAR=${AMTAR-"${am_missing_run}tar"}
2050
2051 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2063 if test "${with_llvmgccdir+set}" = set; then
2064   withval="$with_llvmgccdir"
2065   case "${withval}" in
2066     /*|*/*) LLVMGCCDIR=$withval ;;
2067     *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-llvmgccdir" >&5
2068 echo "$as_me: error: bad value ${withval} for --with-llvmgccdir" >&2;}
2069    { (exit 1); exit 1; }; } ;;
2070   esac
2071 else
2072   LLVMGCCDIR=/usr/local/llvm-gcc
2073 fi;
2074
2075
2076 # Check whether --enable-optimized or --disable-optimized was given.
2077 if test "${enable_optimized+set}" = set; then
2078   enableval="$enable_optimized"
2079   case "${withval}" in
2080     yes) ENABLE_OPTIMIZED=1 ;;
2081     no)  ENABLE_OPTIMIZED=0 ;;
2082     "")  ENABLE_OPTIMIZED=0 ;;
2083     *)   { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-optimized" >&5
2084 echo "$as_me: error: bad value ${withval} for --enable-optimized" >&2;}
2085    { (exit 1); exit 1; }; } ;;
2086   esac
2087 else
2088   ENABLE_OPTIMIZED=0
2089 fi;
2090
2091
2092
2093 if test $ENABLE_OPTIMIZED = 1; then
2094   ENABLE_OPTIMIZED_TRUE=
2095   ENABLE_OPTIMIZED_FALSE='#'
2096 else
2097   ENABLE_OPTIMIZED_TRUE='#'
2098   ENABLE_OPTIMIZED_FALSE=
2099 fi
2100
2101
2102 # Check whether --enable-profiled or --disable-profiled was given.
2103 if test "${enable_profiled+set}" = set; then
2104   enableval="$enable_profiled"
2105   case "${withval}" in
2106     yes) ENABLE_PROFILED=1 ;;
2107     no)  ENABLE_PROFILED=0 ;;
2108     "")  ENABLE_PROFILED=0 ;;
2109     *)   { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2110 echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2111    { (exit 1); exit 1; }; } ;;
2112   esac
2113 else
2114   ENABLE_PROFILED=0
2115 fi;
2116 ENABLE_PROFILED=$ENABLE_PROFILED
2117
2118
2119
2120 if test $ENABLE_PROFILED = 1; then
2121   ENABLE_PROFILED_TRUE=
2122   ENABLE_PROFILED_FALSE='#'
2123 else
2124   ENABLE_PROFILED_TRUE='#'
2125   ENABLE_PROFILED_FALSE=
2126 fi
2127
2128
2129 # Check whether --enable-jit or --disable-jit was given.
2130 if test "${enable_jit+set}" = set; then
2131   enableval="$enable_jit"
2132
2133 else
2134   enableval=default
2135 fi;
2136
2137 if test ${enableval} = "no"
2138 then
2139   JIT=
2140
2141 else
2142   case $target in
2143     *i*86*) JIT=TARGET_HAS_JIT=1
2144  ;;
2145     *sparc*) JIT=TARGET_HAS_JIT=1
2146  ;;
2147           *) JIT=
2148  ;;
2149   esac
2150 fi
2151
2152
2153 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2154 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2155 case $build in
2156   *-*-aix*)      llvm_platform_type="AIX" ;;
2157   *-*-cygwin*)   llvm_platform_type="Cygwin" ;;
2158   *-*-darwin*)   llvm_platform_type="Darwin" ;;
2159   *-*-freebsd*)  llvm_platform_type="FreeBSD" ;;
2160   *-*-interix*)  llvm_platform_type="Interix" ;;
2161   *-*-linux*)    llvm_platform_type="Linux" ;;
2162   *-*-solaris*)  llvm_platform_type="SunOS" ;;
2163   *-*-win32*)    llvm_platform_type="Win32" ;;
2164   *-*-mingw*)    llvm_platform_type="Win32" ;;
2165   *)
2166     { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2167 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2168    { (exit 1); exit 1; }; }
2169     llvm_platform_type="Unknown"
2170     ;;
2171 esac
2172 OS=$llvm_platform_type
2173
2174 echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2175 echo "${ECHO_T}$llvm_platform_type" >&6
2176
2177 echo "$as_me:$LINENO: checking target architecture" >&5
2178 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2179 case $target in
2180   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
2181  ;;
2182 esac
2183
2184 case $target in
2185   i*86-*)      ARCH="x86" ;;
2186   sparc*-*)    ARCH="Sparc" ;;
2187   powerpc*-*)  ARCH="PowerPC" ;;
2188         *)     ARCH="Unknown";;
2189 esac
2190
2191
2192 if test $ARCH = "x86"; then
2193   ARCH_X86_TRUE=
2194   ARCH_X86_FALSE='#'
2195 else
2196   ARCH_X86_TRUE='#'
2197   ARCH_X86_FALSE=
2198 fi
2199
2200
2201
2202 if test $ARCH = "Sparc"; then
2203   ARCH_SPARC_TRUE=
2204   ARCH_SPARC_FALSE='#'
2205 else
2206   ARCH_SPARC_TRUE='#'
2207   ARCH_SPARC_FALSE=
2208 fi
2209
2210
2211
2212 if test $ARCH = "PowerPC"; then
2213   ARCH_PPC_TRUE=
2214   ARCH_PPC_FALSE='#'
2215 else
2216   ARCH_PPC_TRUE='#'
2217   ARCH_PPC_FALSE=
2218 fi
2219
2220
2221
2222 if test $ARCH = "Unknown"; then
2223   ARCH_UNKNOWN_TRUE=
2224   ARCH_UNKNOWN_FALSE='#'
2225 else
2226   ARCH_UNKNOWN_TRUE='#'
2227   ARCH_UNKNOWN_FALSE=
2228 fi
2229
2230 ARCH=$ARCH
2231
2232 echo "$as_me:$LINENO: result: $ARCH" >&5
2233 echo "${ECHO_T}$ARCH" >&6
2234
2235 DEPDIR="${am__leading_dot}deps"
2236
2237           ac_config_commands="$ac_config_commands depfiles"
2238
2239
2240 am_make=${MAKE-make}
2241 cat > confinc << 'END'
2242 am__doit:
2243         @echo done
2244 .PHONY: am__doit
2245 END
2246 # If we don't find an include directive, just comment out the code.
2247 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2248 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2249 am__include="#"
2250 am__quote=
2251 _am_result=none
2252 # First try GNU make style include.
2253 echo "include confinc" > confmf
2254 # We grep out `Entering directory' and `Leaving directory'
2255 # messages which can occur if `w' ends up in MAKEFLAGS.
2256 # In particular we don't look at `^make:' because GNU make might
2257 # be invoked under some other name (usually "gmake"), in which
2258 # case it prints its new name instead of `make'.
2259 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2260    am__include=include
2261    am__quote=
2262    _am_result=GNU
2263 fi
2264 # Now try BSD make style include.
2265 if test "$am__include" = "#"; then
2266    echo '.include "confinc"' > confmf
2267    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2268       am__include=.include
2269       am__quote="\""
2270       _am_result=BSD
2271    fi
2272 fi
2273
2274
2275 echo "$as_me:$LINENO: result: $_am_result" >&5
2276 echo "${ECHO_T}$_am_result" >&6
2277 rm -f confinc confmf
2278
2279 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2280 if test "${enable_dependency_tracking+set}" = set; then
2281   enableval="$enable_dependency_tracking"
2282
2283 fi;
2284 if test "x$enable_dependency_tracking" != xno; then
2285   am_depcomp="$ac_aux_dir/depcomp"
2286   AMDEPBACKSLASH='\'
2287 fi
2288
2289
2290 if test "x$enable_dependency_tracking" != xno; then
2291   AMDEP_TRUE=
2292   AMDEP_FALSE='#'
2293 else
2294   AMDEP_TRUE='#'
2295   AMDEP_FALSE=
2296 fi
2297
2298
2299
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 if test -n "$ac_tool_prefix"; then
2306   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$CC"; then
2314   ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329
2330 fi
2331 fi
2332 CC=$ac_cv_prog_CC
2333 if test -n "$CC"; then
2334   echo "$as_me:$LINENO: result: $CC" >&5
2335 echo "${ECHO_T}$CC" >&6
2336 else
2337   echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6
2339 fi
2340
2341 fi
2342 if test -z "$ac_cv_prog_CC"; then
2343   ac_ct_CC=$CC
2344   # Extract the first word of "gcc", so it can be a program name with args.
2345 set dummy gcc; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$ac_ct_CC"; then
2352   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_ac_ct_CC="gcc"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371 if test -n "$ac_ct_CC"; then
2372   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373 echo "${ECHO_T}$ac_ct_CC" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379   CC=$ac_ct_CC
2380 else
2381   CC="$ac_cv_prog_CC"
2382 fi
2383
2384 if test -z "$CC"; then
2385   if test -n "$ac_tool_prefix"; then
2386   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}cc; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$CC"; then
2394   ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_CC="${ac_tool_prefix}cc"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414   echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421 fi
2422 if test -z "$ac_cv_prog_CC"; then
2423   ac_ct_CC=$CC
2424   # Extract the first word of "cc", so it can be a program name with args.
2425 set dummy cc; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$ac_ct_CC"; then
2432   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441     ac_cv_prog_ac_ct_CC="cc"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447
2448 fi
2449 fi
2450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451 if test -n "$ac_ct_CC"; then
2452   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453 echo "${ECHO_T}$ac_ct_CC" >&6
2454 else
2455   echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2457 fi
2458
2459   CC=$ac_ct_CC
2460 else
2461   CC="$ac_cv_prog_CC"
2462 fi
2463
2464 fi
2465 if test -z "$CC"; then
2466   # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$CC"; then
2474   ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476   ac_prog_rejected=no
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480   IFS=$as_save_IFS
2481   test -z "$as_dir" && as_dir=.
2482   for ac_exec_ext in '' $ac_executable_extensions; do
2483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485        ac_prog_rejected=yes
2486        continue
2487      fi
2488     ac_cv_prog_CC="cc"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494
2495 if test $ac_prog_rejected = yes; then
2496   # We found a bogon in the path, so make sure we never use it.
2497   set dummy $ac_cv_prog_CC
2498   shift
2499   if test $# != 0; then
2500     # We chose a different compiler from the bogus one.
2501     # However, it has the same basename, so the bogon will be chosen
2502     # first if we set CC to just the basename; use the full file name.
2503     shift
2504     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505   fi
2506 fi
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518 fi
2519 if test -z "$CC"; then
2520   if test -n "$ac_tool_prefix"; then
2521   for ac_prog in cl
2522   do
2523     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546
2547 fi
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551   echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6
2553 else
2554   echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2556 fi
2557
2558     test -n "$CC" && break
2559   done
2560 fi
2561 if test -z "$CC"; then
2562   ac_ct_CC=$CC
2563   for ac_prog in cl
2564 do
2565   # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   if test -n "$ac_ct_CC"; then
2573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580   for ac_exec_ext in '' $ac_executable_extensions; do
2581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582     ac_cv_prog_ac_ct_CC="$ac_prog"
2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587 done
2588
2589 fi
2590 fi
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594 echo "${ECHO_T}$ac_ct_CC" >&6
2595 else
2596   echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2598 fi
2599
2600   test -n "$ac_ct_CC" && break
2601 done
2602
2603   CC=$ac_ct_CC
2604 fi
2605
2606 fi
2607
2608
2609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: no acceptable C compiler found in \$PATH
2612 See \`config.log' for more details." >&2;}
2613    { (exit 1); exit 1; }; }
2614
2615 # Provide some information about the compiler.
2616 echo "$as_me:$LINENO:" \
2617      "checking for C compiler version" >&5
2618 ac_compiler=`set X $ac_compile; echo $2`
2619 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2620   (eval $ac_compiler --version </dev/null >&5) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }
2624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2625   (eval $ac_compiler -v </dev/null >&5) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }
2629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2630   (eval $ac_compiler -V </dev/null >&5) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }
2634
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 ac_clean_files_save=$ac_clean_files
2651 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2652 # Try to create an executable without -o first, disregard a.out.
2653 # It will help us diagnose broken compilers, and finding out an intuition
2654 # of exeext.
2655 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2656 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2657 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2659   (eval $ac_link_default) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; then
2663   # Find the output, starting from the most likely.  This scheme is
2664 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2665 # resort.
2666
2667 # Be careful to initialize this variable, since it used to be cached.
2668 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2669 ac_cv_exeext=
2670 # b.out is created by i960 compilers.
2671 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2672 do
2673   test -f "$ac_file" || continue
2674   case $ac_file in
2675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2676         ;;
2677     conftest.$ac_ext )
2678         # This is the source file.
2679         ;;
2680     [ab].out )
2681         # We found the default executable, but exeext='' is most
2682         # certainly right.
2683         break;;
2684     *.* )
2685         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686         # FIXME: I believe we export ac_cv_exeext for Libtool,
2687         # but it would be cool to find out if it's true.  Does anybody
2688         # maintain Libtool? --akim.
2689         export ac_cv_exeext
2690         break;;
2691     * )
2692         break;;
2693   esac
2694 done
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&2;}
2703    { (exit 77); exit 77; }; }
2704 fi
2705
2706 ac_exeext=$ac_cv_exeext
2707 echo "$as_me:$LINENO: result: $ac_file" >&5
2708 echo "${ECHO_T}$ac_file" >&6
2709
2710 # Check the compiler produces executables we can run.  If not, either
2711 # the compiler is broken, or we cross compile.
2712 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715 # If not cross compiling, check that we can run a simple program.
2716 if test "$cross_compiling" != yes; then
2717   if { ac_try='./$ac_file'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723     cross_compiling=no
2724   else
2725     if test "$cross_compiling" = maybe; then
2726         cross_compiling=yes
2727     else
2728         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2729 If you meant to cross compile, use \`--host'.
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot run C compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details." >&2;}
2734    { (exit 1); exit 1; }; }
2735     fi
2736   fi
2737 fi
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740
2741 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2742 ac_clean_files=$ac_clean_files_save
2743 # Check the compiler produces executables we can run.  If not, either
2744 # the compiler is broken, or we cross compile.
2745 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2746 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2747 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2748 echo "${ECHO_T}$cross_compiling" >&6
2749
2750 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2751 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2753   (eval $ac_link) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; then
2757   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2758 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2759 # work properly (i.e., refer to `conftest.exe'), while it won't with
2760 # `rm'.
2761 for ac_file in conftest.exe conftest conftest.*; do
2762   test -f "$ac_file" || continue
2763   case $ac_file in
2764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2765     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766           export ac_cv_exeext
2767           break;;
2768     * ) break;;
2769   esac
2770 done
2771 else
2772   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2775 See \`config.log' for more details." >&2;}
2776    { (exit 1); exit 1; }; }
2777 fi
2778
2779 rm -f conftest$ac_cv_exeext
2780 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2781 echo "${ECHO_T}$ac_cv_exeext" >&6
2782
2783 rm -f conftest.$ac_ext
2784 EXEEXT=$ac_cv_exeext
2785 ac_exeext=$EXEEXT
2786 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2788 if test "${ac_cv_objext+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h.  */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h.  */
2797
2798 int
2799 main ()
2800 {
2801
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 rm -f conftest.o conftest.obj
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808   (eval $ac_compile) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; then
2812   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2813   case $ac_file in
2814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2815     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2816        break;;
2817   esac
2818 done
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828 fi
2829
2830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2831 fi
2832 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2833 echo "${ECHO_T}$ac_cv_objext" >&6
2834 OBJEXT=$ac_cv_objext
2835 ac_objext=$OBJEXT
2836 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847
2848 int
2849 main ()
2850 {
2851 #ifndef __GNUC__
2852        choke me
2853 #endif
2854
2855   ;
2856   return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861   (eval $ac_compile) 2>conftest.er1
2862   ac_status=$?
2863   grep -v '^ *+' conftest.er1 >conftest.err
2864   rm -f conftest.er1
2865   cat conftest.err >&5
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -z "$ac_c_werror_flag"
2869                          || test ! -s conftest.err'
2870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; } &&
2875          { ac_try='test -s conftest.$ac_objext'
2876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; }; then
2881   ac_compiler_gnu=yes
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 ac_compiler_gnu=no
2887 fi
2888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2890
2891 fi
2892 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2893 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2894 GCC=`test $ac_compiler_gnu = yes && echo yes`
2895 ac_test_CFLAGS=${CFLAGS+set}
2896 ac_save_CFLAGS=$CFLAGS
2897 CFLAGS="-g"
2898 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2899 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2900 if test "${ac_cv_prog_cc_g+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_cv_prog_cc_g=yes
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 ac_cv_prog_cc_g=no
2946 fi
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 fi
2949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2951 if test "$ac_test_CFLAGS" = set; then
2952   CFLAGS=$ac_save_CFLAGS
2953 elif test $ac_cv_prog_cc_g = yes; then
2954   if test "$GCC" = yes; then
2955     CFLAGS="-g -O2"
2956   else
2957     CFLAGS="-g"
2958   fi
2959 else
2960   if test "$GCC" = yes; then
2961     CFLAGS="-O2"
2962   else
2963     CFLAGS=
2964   fi
2965 fi
2966 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2967 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2968 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   ac_cv_prog_cc_stdc=no
2972 ac_save_CC=$CC
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #include <stdarg.h>
2980 #include <stdio.h>
2981 #include <sys/types.h>
2982 #include <sys/stat.h>
2983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2984 struct buf { int x; };
2985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2986 static char *e (p, i)
2987      char **p;
2988      int i;
2989 {
2990   return p[i];
2991 }
2992 static char *f (char * (*g) (char **, int), char **p, ...)
2993 {
2994   char *s;
2995   va_list v;
2996   va_start (v,p);
2997   s = g (p, va_arg (v,int));
2998   va_end (v);
2999   return s;
3000 }
3001
3002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3003    function prototypes and stuff, but not '\xHH' hex character constants.
3004    These don't provoke an error unfortunately, instead are silently treated
3005    as 'x'.  The following induces an error, until -std1 is added to get
3006    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3007    array size at least.  It's necessary to write '\x00'==0 to get something
3008    that's true only with -std1.  */
3009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3010
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3015 int argc;
3016 char **argv;
3017 int
3018 main ()
3019 {
3020 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 # Don't try gcc -ansi; that turns off useful extensions and
3026 # breaks some systems' header files.
3027 # AIX                   -qlanglvl=ansi
3028 # Ultrix and OSF/1      -std1
3029 # HP-UX 10.20 and later -Ae
3030 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3031 # SVR4                  -Xc -D__EXTENSIONS__
3032 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3033 do
3034   CC="$ac_save_CC $ac_arg"
3035   rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037   (eval $ac_compile) 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -z "$ac_c_werror_flag"
3045                          || test ! -s conftest.err'
3046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   ac_cv_prog_cc_stdc=$ac_arg
3058 break
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 fi
3064 rm -f conftest.err conftest.$ac_objext
3065 done
3066 rm -f conftest.$ac_ext conftest.$ac_objext
3067 CC=$ac_save_CC
3068
3069 fi
3070
3071 case "x$ac_cv_prog_cc_stdc" in
3072   x|xno)
3073     echo "$as_me:$LINENO: result: none needed" >&5
3074 echo "${ECHO_T}none needed" >&6 ;;
3075   *)
3076     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3077 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3078     CC="$CC $ac_cv_prog_cc_stdc" ;;
3079 esac
3080
3081 # Some people use a C++ compiler to compile C.  Since we use `exit',
3082 # in C++ we need to declare it.  In case someone uses the same compiler
3083 # for both compiling C and C++ we need to have the C++ compiler decide
3084 # the declaration of exit, since it's the most demanding environment.
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #ifndef __cplusplus
3087   choke me
3088 #endif
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092   (eval $ac_compile) 2>conftest.er1
3093   ac_status=$?
3094   grep -v '^ *+' conftest.er1 >conftest.err
3095   rm -f conftest.er1
3096   cat conftest.err >&5
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -z "$ac_c_werror_flag"
3100                          || test ! -s conftest.err'
3101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102   (eval $ac_try) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108   (eval $ac_try) 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; }; then
3112   for ac_declaration in \
3113    '' \
3114    'extern "C" void std::exit (int) throw (); using std::exit;' \
3115    'extern "C" void std::exit (int); using std::exit;' \
3116    'extern "C" void exit (int) throw ();' \
3117    'extern "C" void exit (int);' \
3118    'void exit (int);'
3119 do
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 $ac_declaration
3127 #include <stdlib.h>
3128 int
3129 main ()
3130 {
3131 exit (42);
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag"
3146                          || test ! -s conftest.err'
3147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148   (eval $ac_try) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; } &&
3152          { ac_try='test -s conftest.$ac_objext'
3153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154   (eval $ac_try) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   :
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 continue
3164 fi
3165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 $ac_declaration
3173 int
3174 main ()
3175 {
3176 exit (42);
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183   (eval $ac_compile) 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag"
3191                          || test ! -s conftest.err'
3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193   (eval $ac_try) 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; } &&
3197          { ac_try='test -s conftest.$ac_objext'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; }; then
3203   break
3204 else
3205   echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 fi
3209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210 done
3211 rm -f conftest*
3212 if test -n "$ac_declaration"; then
3213   echo '#ifdef __cplusplus' >>confdefs.h
3214   echo $ac_declaration      >>confdefs.h
3215   echo '#endif'             >>confdefs.h
3216 fi
3217
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 fi
3223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230 depcc="$CC"   am_compiler_list=
3231
3232 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3233 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3234 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3238   # We make a subdir and do the tests there.  Otherwise we can end up
3239   # making bogus files that we don't know about and never remove.  For
3240   # instance it was reported that on HP-UX the gcc test will end up
3241   # making a dummy file named `D' -- because `-MD' means `put the output
3242   # in D'.
3243   mkdir conftest.dir
3244   # Copy depcomp to subdir because otherwise we won't find it if we're
3245   # using a relative directory.
3246   cp "$am_depcomp" conftest.dir
3247   cd conftest.dir
3248   # We will build objects and dependencies in a subdirectory because
3249   # it helps to detect inapplicable dependency modes.  For instance
3250   # both Tru64's cc and ICC support -MD to output dependencies as a
3251   # side effect of compilation, but ICC will put the dependencies in
3252   # the current directory while Tru64 will put them in the object
3253   # directory.
3254   mkdir sub
3255
3256   am_cv_CC_dependencies_compiler_type=none
3257   if test "$am_compiler_list" = ""; then
3258      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3259   fi
3260   for depmode in $am_compiler_list; do
3261     # Setup a source with many dependencies, because some compilers
3262     # like to wrap large dependency lists on column 80 (with \), and
3263     # we should not choose a depcomp mode which is confused by this.
3264     #
3265     # We need to recreate these files for each test, as the compiler may
3266     # overwrite some of them when testing with obscure command lines.
3267     # This happens at least with the AIX C compiler.
3268     : > sub/conftest.c
3269     for i in 1 2 3 4 5 6; do
3270       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3271       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3272       # Solaris 8's {/usr,}/bin/sh.
3273       touch sub/conftst$i.h
3274     done
3275     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3276
3277     case $depmode in
3278     nosideeffect)
3279       # after this tag, mechanisms are not by side-effect, so they'll
3280       # only be used when explicitly requested
3281       if test "x$enable_dependency_tracking" = xyes; then
3282         continue
3283       else
3284         break
3285       fi
3286       ;;
3287     none) break ;;
3288     esac
3289     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3290     # mode.  It turns out that the SunPro C++ compiler does not properly
3291     # handle `-M -o', and we need to detect this.
3292     if depmode=$depmode \
3293        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3294        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3295        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3296          >/dev/null 2>conftest.err &&
3297        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3298        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3299        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3300       # icc doesn't choke on unknown options, it will just issue warnings
3301       # or remarks (even with -Werror).  So we grep stderr for any message
3302       # that says an option was ignored or not supported.
3303       # When given -MP, icc 7.0 and 7.1 complain thusly:
3304       #   icc: Command line warning: ignoring option '-M'; no argument required
3305       # The diagnosis changed in icc 8.0:
3306       #   icc: Command line remark: option '-MP' not supported
3307       if (grep 'ignoring option' conftest.err ||
3308           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3309         am_cv_CC_dependencies_compiler_type=$depmode
3310         break
3311       fi
3312     fi
3313   done
3314
3315   cd ..
3316   rm -rf conftest.dir
3317 else
3318   am_cv_CC_dependencies_compiler_type=none
3319 fi
3320
3321 fi
3322 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3323 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3325
3326
3327
3328 if
3329   test "x$enable_dependency_tracking" != xno \
3330   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3331   am__fastdepCC_TRUE=
3332   am__fastdepCC_FALSE='#'
3333 else
3334   am__fastdepCC_TRUE='#'
3335   am__fastdepCC_FALSE=
3336 fi
3337
3338
3339
3340 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3341 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3342 if test "${ac_cv_c_bigendian+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   # See if sys/param.h defines the BYTE_ORDER macro.
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352 #include <sys/types.h>
3353 #include <sys/param.h>
3354
3355 int
3356 main ()
3357 {
3358 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3359  bogus endian macros
3360 #endif
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368   (eval $ac_compile) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } &&
3375          { ac_try='test -z "$ac_c_werror_flag"
3376                          || test ! -s conftest.err'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; } &&
3382          { ac_try='test -s conftest.$ac_objext'
3383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384   (eval $ac_try) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; }; then
3388   # It does; now see whether it defined to BIG_ENDIAN or not.
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #include <sys/types.h>
3396 #include <sys/param.h>
3397
3398 int
3399 main ()
3400 {
3401 #if BYTE_ORDER != BIG_ENDIAN
3402  not big endian
3403 #endif
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411   (eval $ac_compile) 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } &&
3418          { ac_try='test -z "$ac_c_werror_flag"
3419                          || test ! -s conftest.err'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_cv_c_bigendian=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_cv_c_bigendian=no
3437 fi
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 # It does not; compile a test program.
3444 if test "$cross_compiling" = yes; then
3445   # try to guess the endianness by grepping values into an object file
3446   ac_cv_c_bigendian=unknown
3447   cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h.  */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h.  */
3453 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3454 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3455 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3456 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3457 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3458 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3459 int
3460 main ()
3461 {
3462  _ascii (); _ebcdic ();
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469   (eval $ac_compile) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -z "$ac_c_werror_flag"
3477                          || test ! -s conftest.err'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3490   ac_cv_c_bigendian=yes
3491 fi
3492 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3493   if test "$ac_cv_c_bigendian" = unknown; then
3494     ac_cv_c_bigendian=no
3495   else
3496     # finding both strings is unlikely to happen, but who knows?
3497     ac_cv_c_bigendian=unknown
3498   fi
3499 fi
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 fi
3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506 else
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 int
3514 main ()
3515 {
3516   /* Are we little or big endian?  From Harbison&Steele.  */
3517   union
3518   {
3519     long l;
3520     char c[sizeof (long)];
3521   } u;
3522   u.l = 1;
3523   exit (u.c[sizeof (long) - 1] == 1);
3524 }
3525 _ACEOF
3526 rm -f conftest$ac_exeext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528   (eval $ac_link) 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   ac_cv_c_bigendian=no
3538 else
3539   echo "$as_me: program exited with status $ac_status" >&5
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 ( exit $ac_status )
3544 ac_cv_c_bigendian=yes
3545 fi
3546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 fi
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3552 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3553 case $ac_cv_c_bigendian in
3554   yes)
3555     ENDIAN=big
3556  ;;
3557   no)
3558     ENDIAN=little
3559  ;;
3560   *)
3561     { { echo "$as_me:$LINENO: error: unknown endianness
3562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3563 echo "$as_me: error: unknown endianness
3564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3565    { (exit 1); exit 1; }; } ;;
3566 esac
3567
3568
3569
3570 # Find a good install program.  We prefer a C program (faster),
3571 # so one script is as good as another.  But avoid the broken or
3572 # incompatible versions:
3573 # SysV /etc/install, /usr/sbin/install
3574 # SunOS /usr/etc/install
3575 # IRIX /sbin/install
3576 # AIX /bin/install
3577 # AmigaOS /C/install, which installs bootblocks on floppy discs
3578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581 # OS/2's system install, which has a completely different semantic
3582 # ./install, which can be erroneously created by make from ./install.sh.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594   # Account for people who put trailing slashes in PATH elements.
3595 case $as_dir/ in
3596   ./ | .// | /cC/* | \
3597   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599   /usr/ucb/* ) ;;
3600   *)
3601     # OSF1 and SCO ODT 3.0 have their own names for install.
3602     # Don't use installbsd from OSF since it installs stuff as root
3603     # by default.
3604     for ac_prog in ginstall scoinst install; do
3605       for ac_exec_ext in '' $ac_executable_extensions; do
3606         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607           if test $ac_prog = install &&
3608             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609             # AIX install.  It has an incompatible calling convention.
3610             :
3611           elif test $ac_prog = install &&
3612             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613             # program-specific install script used by HP pwplus--don't use.
3614             :
3615           else
3616             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3617             break 3
3618           fi
3619         fi
3620       done
3621     done
3622     ;;
3623 esac
3624 done
3625
3626
3627 fi
3628   if test "${ac_cv_path_install+set}" = set; then
3629     INSTALL=$ac_cv_path_install
3630   else
3631     # As a last resort, use the slow shell script.  We don't cache a
3632     # path for INSTALL within a source directory, because that will
3633     # break other packages using the cache if that directory is
3634     # removed, or if the path is relative.
3635     INSTALL=$ac_install_sh
3636   fi
3637 fi
3638 echo "$as_me:$LINENO: result: $INSTALL" >&5
3639 echo "${ECHO_T}$INSTALL" >&6
3640
3641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642 # It thinks the first close brace ends the variable substitution.
3643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649
3650 ac_ext=cc
3651 ac_cpp='$CXXCPP $CPPFLAGS'
3652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3657   do
3658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_CXX+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   if test -n "$CXX"; then
3666   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681
3682 fi
3683 fi
3684 CXX=$ac_cv_prog_CXX
3685 if test -n "$CXX"; then
3686   echo "$as_me:$LINENO: result: $CXX" >&5
3687 echo "${ECHO_T}$CXX" >&6
3688 else
3689   echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3691 fi
3692
3693     test -n "$CXX" && break
3694   done
3695 fi
3696 if test -z "$CXX"; then
3697   ac_ct_CXX=$CXX
3698   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3699 do
3700   # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -n "$ac_ct_CXX"; then
3708   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_ac_ct_CXX="$ac_prog"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724 fi
3725 fi
3726 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3727 if test -n "$ac_ct_CXX"; then
3728   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3729 echo "${ECHO_T}$ac_ct_CXX" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735   test -n "$ac_ct_CXX" && break
3736 done
3737 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3738
3739   CXX=$ac_ct_CXX
3740 fi
3741
3742
3743 # Provide some information about the compiler.
3744 echo "$as_me:$LINENO:" \
3745      "checking for C++ compiler version" >&5
3746 ac_compiler=`set X $ac_compile; echo $2`
3747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3748   (eval $ac_compiler --version </dev/null >&5) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }
3752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3753   (eval $ac_compiler -v </dev/null >&5) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }
3757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3758   (eval $ac_compiler -V </dev/null >&5) 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }
3762
3763 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3764 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3765 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774
3775 int
3776 main ()
3777 {
3778 #ifndef __GNUC__
3779        choke me
3780 #endif
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788   (eval $ac_compile) 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_cxx_werror_flag"
3796                          || test ! -s conftest.err'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; } &&
3802          { ac_try='test -s conftest.$ac_objext'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; }; then
3808   ac_compiler_gnu=yes
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 ac_compiler_gnu=no
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3820 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3821 GXX=`test $ac_compiler_gnu = yes && echo yes`
3822 ac_test_CXXFLAGS=${CXXFLAGS+set}
3823 ac_save_CXXFLAGS=$CXXFLAGS
3824 CXXFLAGS="-g"
3825 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3826 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3827 if test "${ac_cv_prog_cxx_g+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847   (eval $ac_compile) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_cxx_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_prog_cxx_g=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_prog_cxx_g=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 fi
3876 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3877 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3878 if test "$ac_test_CXXFLAGS" = set; then
3879   CXXFLAGS=$ac_save_CXXFLAGS
3880 elif test $ac_cv_prog_cxx_g = yes; then
3881   if test "$GXX" = yes; then
3882     CXXFLAGS="-g -O2"
3883   else
3884     CXXFLAGS="-g"
3885   fi
3886 else
3887   if test "$GXX" = yes; then
3888     CXXFLAGS="-O2"
3889   else
3890     CXXFLAGS=
3891   fi
3892 fi
3893 for ac_declaration in \
3894    '' \
3895    'extern "C" void std::exit (int) throw (); using std::exit;' \
3896    'extern "C" void std::exit (int); using std::exit;' \
3897    'extern "C" void exit (int) throw ();' \
3898    'extern "C" void exit (int);' \
3899    'void exit (int);'
3900 do
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 $ac_declaration
3908 #include <stdlib.h>
3909 int
3910 main ()
3911 {
3912 exit (42);
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919   (eval $ac_compile) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -z "$ac_cxx_werror_flag"
3927                          || test ! -s conftest.err'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; } &&
3933          { ac_try='test -s conftest.$ac_objext'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; }; then
3939   :
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 continue
3945 fi
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 $ac_declaration
3954 int
3955 main ()
3956 {
3957 exit (42);
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964   (eval $ac_compile) 2>conftest.er1
3965   ac_status=$?
3966   grep -v '^ *+' conftest.er1 >conftest.err
3967   rm -f conftest.er1
3968   cat conftest.err >&5
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } &&
3971          { ac_try='test -z "$ac_cxx_werror_flag"
3972                          || test ! -s conftest.err'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; } &&
3978          { ac_try='test -s conftest.$ac_objext'
3979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980   (eval $ac_try) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984   break
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 fi
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 done
3992 rm -f conftest*
3993 if test -n "$ac_declaration"; then
3994   echo '#ifdef __cplusplus' >>confdefs.h
3995   echo $ac_declaration      >>confdefs.h
3996   echo '#endif'             >>confdefs.h
3997 fi
3998
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005 depcc="$CXX"  am_compiler_list=
4006
4007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4009 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013   # We make a subdir and do the tests there.  Otherwise we can end up
4014   # making bogus files that we don't know about and never remove.  For
4015   # instance it was reported that on HP-UX the gcc test will end up
4016   # making a dummy file named `D' -- because `-MD' means `put the output
4017   # in D'.
4018   mkdir conftest.dir
4019   # Copy depcomp to subdir because otherwise we won't find it if we're
4020   # using a relative directory.
4021   cp "$am_depcomp" conftest.dir
4022   cd conftest.dir
4023   # We will build objects and dependencies in a subdirectory because
4024   # it helps to detect inapplicable dependency modes.  For instance
4025   # both Tru64's cc and ICC support -MD to output dependencies as a
4026   # side effect of compilation, but ICC will put the dependencies in
4027   # the current directory while Tru64 will put them in the object
4028   # directory.
4029   mkdir sub
4030
4031   am_cv_CXX_dependencies_compiler_type=none
4032   if test "$am_compiler_list" = ""; then
4033      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4034   fi
4035   for depmode in $am_compiler_list; do
4036     # Setup a source with many dependencies, because some compilers
4037     # like to wrap large dependency lists on column 80 (with \), and
4038     # we should not choose a depcomp mode which is confused by this.
4039     #
4040     # We need to recreate these files for each test, as the compiler may
4041     # overwrite some of them when testing with obscure command lines.
4042     # This happens at least with the AIX C compiler.
4043     : > sub/conftest.c
4044     for i in 1 2 3 4 5 6; do
4045       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047       # Solaris 8's {/usr,}/bin/sh.
4048       touch sub/conftst$i.h
4049     done
4050     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052     case $depmode in
4053     nosideeffect)
4054       # after this tag, mechanisms are not by side-effect, so they'll
4055       # only be used when explicitly requested
4056       if test "x$enable_dependency_tracking" = xyes; then
4057         continue
4058       else
4059         break
4060       fi
4061       ;;
4062     none) break ;;
4063     esac
4064     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065     # mode.  It turns out that the SunPro C++ compiler does not properly
4066     # handle `-M -o', and we need to detect this.
4067     if depmode=$depmode \
4068        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4069        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4070        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4071          >/dev/null 2>conftest.err &&
4072        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4073        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4074        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4075       # icc doesn't choke on unknown options, it will just issue warnings
4076       # or remarks (even with -Werror).  So we grep stderr for any message
4077       # that says an option was ignored or not supported.
4078       # When given -MP, icc 7.0 and 7.1 complain thusly:
4079       #   icc: Command line warning: ignoring option '-M'; no argument required
4080       # The diagnosis changed in icc 8.0:
4081       #   icc: Command line remark: option '-MP' not supported
4082       if (grep 'ignoring option' conftest.err ||
4083           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4084         am_cv_CXX_dependencies_compiler_type=$depmode
4085         break
4086       fi
4087     fi
4088   done
4089
4090   cd ..
4091   rm -rf conftest.dir
4092 else
4093   am_cv_CXX_dependencies_compiler_type=none
4094 fi
4095
4096 fi
4097 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4098 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4099 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4100
4101
4102
4103 if
4104   test "x$enable_dependency_tracking" != xno \
4105   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4106   am__fastdepCXX_TRUE=
4107   am__fastdepCXX_FALSE='#'
4108 else
4109   am__fastdepCXX_TRUE='#'
4110   am__fastdepCXX_FALSE=
4111 fi
4112
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 if test -n "$ac_tool_prefix"; then
4120   for ac_prog in gcc
4121   do
4122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$CC"; then
4130   ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146 fi
4147 fi
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150   echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157     test -n "$CC" && break
4158   done
4159 fi
4160 if test -z "$CC"; then
4161   ac_ct_CC=$CC
4162   for ac_prog in gcc
4163 do
4164   # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   if test -n "$ac_ct_CC"; then
4172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179   for ac_exec_ext in '' $ac_executable_extensions; do
4180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181     ac_cv_prog_ac_ct_CC="$ac_prog"
4182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186 done
4187
4188 fi
4189 fi
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193 echo "${ECHO_T}$ac_ct_CC" >&6
4194 else
4195   echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4197 fi
4198
4199   test -n "$ac_ct_CC" && break
4200 done
4201
4202   CC=$ac_ct_CC
4203 fi
4204
4205
4206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4207 See \`config.log' for more details." >&5
4208 echo "$as_me: error: no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details." >&2;}
4210    { (exit 1); exit 1; }; }
4211
4212 # Provide some information about the compiler.
4213 echo "$as_me:$LINENO:" \
4214      "checking for C compiler version" >&5
4215 ac_compiler=`set X $ac_compile; echo $2`
4216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4217   (eval $ac_compiler --version </dev/null >&5) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }
4221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4222   (eval $ac_compiler -v </dev/null >&5) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }
4226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4227   (eval $ac_compiler -V </dev/null >&5) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }
4231
4232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h.  */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h.  */
4243
4244 int
4245 main ()
4246 {
4247 #ifndef __GNUC__
4248        choke me
4249 #endif
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"
4265                          || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   ac_compiler_gnu=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ac_compiler_gnu=no
4283 fi
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4286
4287 fi
4288 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4289 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4290 GCC=`test $ac_compiler_gnu = yes && echo yes`
4291 ac_test_CFLAGS=${CFLAGS+set}
4292 ac_save_CFLAGS=$CFLAGS
4293 CFLAGS="-g"
4294 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4295 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4296 if test "${ac_cv_prog_cc_g+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305
4306 int
4307 main ()
4308 {
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316   (eval $ac_compile) 2>conftest.er1
4317   ac_status=$?
4318   grep -v '^ *+' conftest.er1 >conftest.err
4319   rm -f conftest.er1
4320   cat conftest.err >&5
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } &&
4323          { ac_try='test -z "$ac_c_werror_flag"
4324                          || test ! -s conftest.err'
4325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326   (eval $ac_try) 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; } &&
4330          { ac_try='test -s conftest.$ac_objext'
4331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332   (eval $ac_try) 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); }; }; then
4336   ac_cv_prog_cc_g=yes
4337 else
4338   echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ac_cv_prog_cc_g=no
4342 fi
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4347 if test "$ac_test_CFLAGS" = set; then
4348   CFLAGS=$ac_save_CFLAGS
4349 elif test $ac_cv_prog_cc_g = yes; then
4350   if test "$GCC" = yes; then
4351     CFLAGS="-g -O2"
4352   else
4353     CFLAGS="-g"
4354   fi
4355 else
4356   if test "$GCC" = yes; then
4357     CFLAGS="-O2"
4358   else
4359     CFLAGS=
4360   fi
4361 fi
4362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   ac_cv_prog_cc_stdc=no
4368 ac_save_CC=$CC
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h.  */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h.  */
4375 #include <stdarg.h>
4376 #include <stdio.h>
4377 #include <sys/types.h>
4378 #include <sys/stat.h>
4379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4380 struct buf { int x; };
4381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4382 static char *e (p, i)
4383      char **p;
4384      int i;
4385 {
4386   return p[i];
4387 }
4388 static char *f (char * (*g) (char **, int), char **p, ...)
4389 {
4390   char *s;
4391   va_list v;
4392   va_start (v,p);
4393   s = g (p, va_arg (v,int));
4394   va_end (v);
4395   return s;
4396 }
4397
4398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4399    function prototypes and stuff, but not '\xHH' hex character constants.
4400    These don't provoke an error unfortunately, instead are silently treated
4401    as 'x'.  The following induces an error, until -std1 is added to get
4402    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4403    array size at least.  It's necessary to write '\x00'==0 to get something
4404    that's true only with -std1.  */
4405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4406
4407 int test (int i, double x);
4408 struct s1 {int (*f) (int a);};
4409 struct s2 {int (*f) (double a);};
4410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4411 int argc;
4412 char **argv;
4413 int
4414 main ()
4415 {
4416 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 # Don't try gcc -ansi; that turns off useful extensions and
4422 # breaks some systems' header files.
4423 # AIX                   -qlanglvl=ansi
4424 # Ultrix and OSF/1      -std1
4425 # HP-UX 10.20 and later -Ae
4426 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4427 # SVR4                  -Xc -D__EXTENSIONS__
4428 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4429 do
4430   CC="$ac_save_CC $ac_arg"
4431   rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433   (eval $ac_compile) 2>conftest.er1
4434   ac_status=$?
4435   grep -v '^ *+' conftest.er1 >conftest.err
4436   rm -f conftest.er1
4437   cat conftest.err >&5
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } &&
4440          { ac_try='test -z "$ac_c_werror_flag"
4441                          || test ! -s conftest.err'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   ac_cv_prog_cc_stdc=$ac_arg
4454 break
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 fi
4460 rm -f conftest.err conftest.$ac_objext
4461 done
4462 rm -f conftest.$ac_ext conftest.$ac_objext
4463 CC=$ac_save_CC
4464
4465 fi
4466
4467 case "x$ac_cv_prog_cc_stdc" in
4468   x|xno)
4469     echo "$as_me:$LINENO: result: none needed" >&5
4470 echo "${ECHO_T}none needed" >&6 ;;
4471   *)
4472     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4474     CC="$CC $ac_cv_prog_cc_stdc" ;;
4475 esac
4476
4477 # Some people use a C++ compiler to compile C.  Since we use `exit',
4478 # in C++ we need to declare it.  In case someone uses the same compiler
4479 # for both compiling C and C++ we need to have the C++ compiler decide
4480 # the declaration of exit, since it's the most demanding environment.
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #ifndef __cplusplus
4483   choke me
4484 #endif
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488   (eval $ac_compile) 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } &&
4495          { ac_try='test -z "$ac_c_werror_flag"
4496                          || test ! -s conftest.err'
4497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498   (eval $ac_try) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; } &&
4502          { ac_try='test -s conftest.$ac_objext'
4503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504   (eval $ac_try) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; }; then
4508   for ac_declaration in \
4509    '' \
4510    'extern "C" void std::exit (int) throw (); using std::exit;' \
4511    'extern "C" void std::exit (int); using std::exit;' \
4512    'extern "C" void exit (int) throw ();' \
4513    'extern "C" void exit (int);' \
4514    'void exit (int);'
4515 do
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522 $ac_declaration
4523 #include <stdlib.h>
4524 int
4525 main ()
4526 {
4527 exit (42);
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534   (eval $ac_compile) 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } &&
4541          { ac_try='test -z "$ac_c_werror_flag"
4542                          || test ! -s conftest.err'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; } &&
4548          { ac_try='test -s conftest.$ac_objext'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; }; then
4554   :
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 continue
4560 fi
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562   cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 $ac_declaration
4569 int
4570 main ()
4571 {
4572 exit (42);
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579   (eval $ac_compile) 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -z "$ac_c_werror_flag"
4587                          || test ! -s conftest.err'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   break
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 fi
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606 done
4607 rm -f conftest*
4608 if test -n "$ac_declaration"; then
4609   echo '#ifdef __cplusplus' >>confdefs.h
4610   echo $ac_declaration      >>confdefs.h
4611   echo '#endif'             >>confdefs.h
4612 fi
4613
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 fi
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625
4626 depcc="$CC"   am_compiler_list=
4627
4628 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4629 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4630 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4634   # We make a subdir and do the tests there.  Otherwise we can end up
4635   # making bogus files that we don't know about and never remove.  For
4636   # instance it was reported that on HP-UX the gcc test will end up
4637   # making a dummy file named `D' -- because `-MD' means `put the output
4638   # in D'.
4639   mkdir conftest.dir
4640   # Copy depcomp to subdir because otherwise we won't find it if we're
4641   # using a relative directory.
4642   cp "$am_depcomp" conftest.dir
4643   cd conftest.dir
4644   # We will build objects and dependencies in a subdirectory because
4645   # it helps to detect inapplicable dependency modes.  For instance
4646   # both Tru64's cc and ICC support -MD to output dependencies as a
4647   # side effect of compilation, but ICC will put the dependencies in
4648   # the current directory while Tru64 will put them in the object
4649   # directory.
4650   mkdir sub
4651
4652   am_cv_CC_dependencies_compiler_type=none
4653   if test "$am_compiler_list" = ""; then
4654      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4655   fi
4656   for depmode in $am_compiler_list; do
4657     # Setup a source with many dependencies, because some compilers
4658     # like to wrap large dependency lists on column 80 (with \), and
4659     # we should not choose a depcomp mode which is confused by this.
4660     #
4661     # We need to recreate these files for each test, as the compiler may
4662     # overwrite some of them when testing with obscure command lines.
4663     # This happens at least with the AIX C compiler.
4664     : > sub/conftest.c
4665     for i in 1 2 3 4 5 6; do
4666       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4667       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4668       # Solaris 8's {/usr,}/bin/sh.
4669       touch sub/conftst$i.h
4670     done
4671     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4672
4673     case $depmode in
4674     nosideeffect)
4675       # after this tag, mechanisms are not by side-effect, so they'll
4676       # only be used when explicitly requested
4677       if test "x$enable_dependency_tracking" = xyes; then
4678         continue
4679       else
4680         break
4681       fi
4682       ;;
4683     none) break ;;
4684     esac
4685     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4686     # mode.  It turns out that the SunPro C++ compiler does not properly
4687     # handle `-M -o', and we need to detect this.
4688     if depmode=$depmode \
4689        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4690        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4691        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4692          >/dev/null 2>conftest.err &&
4693        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4694        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4695        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4696       # icc doesn't choke on unknown options, it will just issue warnings
4697       # or remarks (even with -Werror).  So we grep stderr for any message
4698       # that says an option was ignored or not supported.
4699       # When given -MP, icc 7.0 and 7.1 complain thusly:
4700       #   icc: Command line warning: ignoring option '-M'; no argument required
4701       # The diagnosis changed in icc 8.0:
4702       #   icc: Command line remark: option '-MP' not supported
4703       if (grep 'ignoring option' conftest.err ||
4704           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4705         am_cv_CC_dependencies_compiler_type=$depmode
4706         break
4707       fi
4708     fi
4709   done
4710
4711   cd ..
4712   rm -rf conftest.dir
4713 else
4714   am_cv_CC_dependencies_compiler_type=none
4715 fi
4716
4717 fi
4718 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4719 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4720 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4721
4722
4723
4724 if
4725   test "x$enable_dependency_tracking" != xno \
4726   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4727   am__fastdepCC_TRUE=
4728   am__fastdepCC_FALSE='#'
4729 else
4730   am__fastdepCC_TRUE='#'
4731   am__fastdepCC_FALSE=
4732 fi
4733
4734
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4742 # On Suns, sometimes $CPP names a directory.
4743 if test -n "$CPP" && test -d "$CPP"; then
4744   CPP=
4745 fi
4746 if test -z "$CPP"; then
4747   if test "${ac_cv_prog_CPP+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750       # Double quotes because CPP needs to be expanded
4751     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4752     do
4753       ac_preproc_ok=false
4754 for ac_c_preproc_warn_flag in '' yes
4755 do
4756   # Use a header file that comes with gcc, so configuring glibc
4757   # with a fresh cross-compiler works.
4758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759   # <limits.h> exists even on freestanding compilers.
4760   # On the NeXT, cc -E runs the code through the compiler's parser,
4761   # not just through cpp. "Syntax error" is here to catch this case.
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4773                      Syntax error
4774 _ACEOF
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } >/dev/null; then
4783   if test -s conftest.err; then
4784     ac_cpp_err=$ac_c_preproc_warn_flag
4785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4786   else
4787     ac_cpp_err=
4788   fi
4789 else
4790   ac_cpp_err=yes
4791 fi
4792 if test -z "$ac_cpp_err"; then
4793   :
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798   # Broken: fails on valid input.
4799 continue
4800 fi
4801 rm -f conftest.err conftest.$ac_ext
4802
4803   # OK, works on sane cases.  Now check whether non-existent headers
4804   # can be detected and how.
4805   cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 #include <ac_nonexistent.h>
4812 _ACEOF
4813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } >/dev/null; then
4821   if test -s conftest.err; then
4822     ac_cpp_err=$ac_c_preproc_warn_flag
4823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4824   else
4825     ac_cpp_err=
4826   fi
4827 else
4828   ac_cpp_err=yes
4829 fi
4830 if test -z "$ac_cpp_err"; then
4831   # Broken: success on invalid input.
4832 continue
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837   # Passes both tests.
4838 ac_preproc_ok=:
4839 break
4840 fi
4841 rm -f conftest.err conftest.$ac_ext
4842
4843 done
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then
4847   break
4848 fi
4849
4850     done
4851     ac_cv_prog_CPP=$CPP
4852
4853 fi
4854   CPP=$ac_cv_prog_CPP
4855 else
4856   ac_cv_prog_CPP=$CPP
4857 fi
4858 echo "$as_me:$LINENO: result: $CPP" >&5
4859 echo "${ECHO_T}$CPP" >&6
4860 ac_preproc_ok=false
4861 for ac_c_preproc_warn_flag in '' yes
4862 do
4863   # Use a header file that comes with gcc, so configuring glibc
4864   # with a fresh cross-compiler works.
4865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866   # <limits.h> exists even on freestanding compilers.
4867   # On the NeXT, cc -E runs the code through the compiler's parser,
4868   # not just through cpp. "Syntax error" is here to catch this case.
4869   cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880                      Syntax error
4881 _ACEOF
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } >/dev/null; then
4890   if test -s conftest.err; then
4891     ac_cpp_err=$ac_c_preproc_warn_flag
4892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893   else
4894     ac_cpp_err=
4895   fi
4896 else
4897   ac_cpp_err=yes
4898 fi
4899 if test -z "$ac_cpp_err"; then
4900   :
4901 else
4902   echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905   # Broken: fails on valid input.
4906 continue
4907 fi
4908 rm -f conftest.err conftest.$ac_ext
4909
4910   # OK, works on sane cases.  Now check whether non-existent headers
4911   # can be detected and how.
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 #include <ac_nonexistent.h>
4919 _ACEOF
4920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4922   ac_status=$?
4923   grep -v '^ *+' conftest.er1 >conftest.err
4924   rm -f conftest.er1
4925   cat conftest.err >&5
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); } >/dev/null; then
4928   if test -s conftest.err; then
4929     ac_cpp_err=$ac_c_preproc_warn_flag
4930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4931   else
4932     ac_cpp_err=
4933   fi
4934 else
4935   ac_cpp_err=yes
4936 fi
4937 if test -z "$ac_cpp_err"; then
4938   # Broken: success on invalid input.
4939 continue
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944   # Passes both tests.
4945 ac_preproc_ok=:
4946 break
4947 fi
4948 rm -f conftest.err conftest.$ac_ext
4949
4950 done
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then
4954   :
4955 else
4956   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4957 See \`config.log' for more details." >&5
4958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&2;}
4960    { (exit 1); exit 1; }; }
4961 fi
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969
4970 echo "$as_me:$LINENO: checking " >&5
4971 echo $ECHO_N "checking ... $ECHO_C" >&6
4972 if test "${ac_cv_has_flex+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   for ac_prog in flex lex
4976 do
4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_prog_LEX+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -n "$LEX"; then
4985   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_prog_LEX="$ac_prog"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000
5001 fi
5002 fi
5003 LEX=$ac_cv_prog_LEX
5004 if test -n "$LEX"; then
5005   echo "$as_me:$LINENO: result: $LEX" >&5
5006 echo "${ECHO_T}$LEX" >&6
5007 else
5008   echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5010 fi
5011
5012   test -n "$LEX" && break
5013 done
5014 test -n "$LEX" || LEX=":"
5015
5016 if test -z "$LEXLIB"
5017 then
5018   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5019 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5020 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   ac_check_lib_save_LIBS=$LIBS
5024 LIBS="-lfl  $LIBS"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h.  */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h.  */
5031
5032 /* Override any gcc2 internal prototype to avoid an error.  */
5033 #ifdef __cplusplus
5034 extern "C"
5035 #endif
5036 /* We use char because int might match the return type of a gcc2
5037    builtin and then its argument prototype would still apply.  */
5038 char yywrap ();
5039 int
5040 main ()
5041 {
5042 yywrap ();
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049   (eval $ac_link) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -z "$ac_c_werror_flag"
5057                          || test ! -s conftest.err'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; } &&
5063          { ac_try='test -s conftest$ac_exeext'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   ac_cv_lib_fl_yywrap=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 ac_cv_lib_fl_yywrap=no
5075 fi
5076 rm -f conftest.err conftest.$ac_objext \
5077       conftest$ac_exeext conftest.$ac_ext
5078 LIBS=$ac_check_lib_save_LIBS
5079 fi
5080 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5081 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5082 if test $ac_cv_lib_fl_yywrap = yes; then
5083   LEXLIB="-lfl"
5084 else
5085   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5086 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5087 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   ac_check_lib_save_LIBS=$LIBS
5091 LIBS="-ll  $LIBS"
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098
5099 /* Override any gcc2 internal prototype to avoid an error.  */
5100 #ifdef __cplusplus
5101 extern "C"
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104    builtin and then its argument prototype would still apply.  */
5105 char yywrap ();
5106 int
5107 main ()
5108 {
5109 yywrap ();
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116   (eval $ac_link) 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } &&
5123          { ac_try='test -z "$ac_c_werror_flag"
5124                          || test ! -s conftest.err'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_lib_l_yywrap=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_lib_l_yywrap=no
5142 fi
5143 rm -f conftest.err conftest.$ac_objext \
5144       conftest$ac_exeext conftest.$ac_ext
5145 LIBS=$ac_check_lib_save_LIBS
5146 fi
5147 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5148 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5149 if test $ac_cv_lib_l_yywrap = yes; then
5150   LEXLIB="-ll"
5151 fi
5152
5153 fi
5154
5155 fi
5156
5157 if test "x$LEX" != "x:"; then
5158   echo "$as_me:$LINENO: checking lex output file root" >&5
5159 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5160 if test "${ac_cv_prog_lex_root+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   # The minimal lex program is just a single line: %%.  But some broken lexes
5164 # (Solaris, I think it was) want two %% lines, so accommodate them.
5165 cat >conftest.l <<_ACEOF
5166 %%
5167 %%
5168 _ACEOF
5169 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5170   (eval $LEX conftest.l) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }
5174 if test -f lex.yy.c; then
5175   ac_cv_prog_lex_root=lex.yy
5176 elif test -f lexyy.c; then
5177   ac_cv_prog_lex_root=lexyy
5178 else
5179   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5180 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5181    { (exit 1); exit 1; }; }
5182 fi
5183 fi
5184 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5185 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5186 rm -f conftest.l
5187 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5188
5189 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5190 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5191 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   # POSIX says lex can declare yytext either as a pointer or an array; the
5195 # default is implementation-dependent. Figure out which it is, since
5196 # not all implementations provide the %pointer and %array declarations.
5197 ac_cv_prog_lex_yytext_pointer=no
5198 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5199 ac_save_LIBS=$LIBS
5200 LIBS="$LIBS $LEXLIB"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 `cat $LEX_OUTPUT_ROOT.c`
5203 _ACEOF
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206   (eval $ac_link) 2>conftest.er1
5207   ac_status=$?
5208   grep -v '^ *+' conftest.er1 >conftest.err
5209   rm -f conftest.er1
5210   cat conftest.err >&5
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } &&
5213          { ac_try='test -z "$ac_c_werror_flag"
5214                          || test ! -s conftest.err'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_cv_prog_lex_yytext_pointer=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 fi
5232 rm -f conftest.err conftest.$ac_objext \
5233       conftest$ac_exeext conftest.$ac_ext
5234 LIBS=$ac_save_LIBS
5235 rm -f "${LEX_OUTPUT_ROOT}.c"
5236
5237 fi
5238 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5239 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5240 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5241
5242 cat >>confdefs.h <<\_ACEOF
5243 #define YYTEXT_POINTER 1
5244 _ACEOF
5245
5246 fi
5247
5248 fi
5249
5250 fi
5251 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5252 echo "${ECHO_T}$ac_cv_has_flex" >&6
5253 if test "$LEX" != "flex"; then
5254   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5255 echo "$as_me: error: flex not found but required" >&2;}
5256    { (exit 1); exit 1; }; }
5257 else
5258   FLEX=flex
5259
5260 fi
5261
5262 echo "$as_me:$LINENO: checking " >&5
5263 echo $ECHO_N "checking ... $ECHO_C" >&6
5264 if test "${ac_cv_has_bison+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   for ac_prog in 'bison -y' byacc
5268 do
5269   # Extract the first word of "$ac_prog", so it can be a program name with args.
5270 set dummy $ac_prog; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_prog_YACC+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   if test -n "$YACC"; then
5277   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284   for ac_exec_ext in '' $ac_executable_extensions; do
5285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286     ac_cv_prog_YACC="$ac_prog"
5287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288     break 2
5289   fi
5290 done
5291 done
5292
5293 fi
5294 fi
5295 YACC=$ac_cv_prog_YACC
5296 if test -n "$YACC"; then
5297   echo "$as_me:$LINENO: result: $YACC" >&5
5298 echo "${ECHO_T}$YACC" >&6
5299 else
5300   echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 fi
5303
5304   test -n "$YACC" && break
5305 done
5306 test -n "$YACC" || YACC="yacc"
5307
5308
5309 fi
5310 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5311 echo "${ECHO_T}$ac_cv_has_bison" >&6
5312 if test "$YACC" != "bison -y"; then
5313   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5314 echo "$as_me: error: bison not found but required" >&2;}
5315    { (exit 1); exit 1; }; }
5316 else
5317   BISON=bison
5318
5319 fi
5320
5321 # Check whether --enable-shared or --disable-shared was given.
5322 if test "${enable_shared+set}" = set; then
5323   enableval="$enable_shared"
5324   p=${PACKAGE-default}
5325     case $enableval in
5326     yes) enable_shared=yes ;;
5327     no) enable_shared=no ;;
5328     *)
5329       enable_shared=no
5330       # Look at the argument we got.  We use all the common list separators.
5331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5332       for pkg in $enableval; do
5333         IFS="$lt_save_ifs"
5334         if test "X$pkg" = "X$p"; then
5335           enable_shared=yes
5336         fi
5337       done
5338       IFS="$lt_save_ifs"
5339       ;;
5340     esac
5341 else
5342   enable_shared=yes
5343 fi;
5344
5345 # Check whether --enable-static or --disable-static was given.
5346 if test "${enable_static+set}" = set; then
5347   enableval="$enable_static"
5348   p=${PACKAGE-default}
5349     case $enableval in
5350     yes) enable_static=yes ;;
5351     no) enable_static=no ;;
5352     *)
5353      enable_static=no
5354       # Look at the argument we got.  We use all the common list separators.
5355       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5356       for pkg in $enableval; do
5357         IFS="$lt_save_ifs"
5358         if test "X$pkg" = "X$p"; then
5359           enable_static=yes
5360         fi
5361       done
5362       IFS="$lt_save_ifs"
5363       ;;
5364     esac
5365 else
5366   enable_static=yes
5367 fi;
5368
5369 # Check whether --enable-fast-install or --disable-fast-install was given.
5370 if test "${enable_fast_install+set}" = set; then
5371   enableval="$enable_fast_install"
5372   p=${PACKAGE-default}
5373     case $enableval in
5374     yes) enable_fast_install=yes ;;
5375     no) enable_fast_install=no ;;
5376     *)
5377       enable_fast_install=no
5378       # Look at the argument we got.  We use all the common list separators.
5379       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5380       for pkg in $enableval; do
5381         IFS="$lt_save_ifs"
5382         if test "X$pkg" = "X$p"; then
5383           enable_fast_install=yes
5384         fi
5385       done
5386       IFS="$lt_save_ifs"
5387       ;;
5388     esac
5389 else
5390   enable_fast_install=yes
5391 fi;
5392
5393 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5394 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5395 if test "${lt_cv_path_SED+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   # Loop through the user's path and test for sed and gsed.
5399 # Then use that list of sed's as ones to test for truncation.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for lt_ac_prog in sed gsed; do
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5408         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5409       fi
5410     done
5411   done
5412 done
5413 lt_ac_max=0
5414 lt_ac_count=0
5415 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5416 # along with /bin/sed that truncates output.
5417 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5418   test ! -f $lt_ac_sed && break
5419   cat /dev/null > conftest.in
5420   lt_ac_count=0
5421   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5422   # Check for GNU sed and select it if it is found.
5423   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5424     lt_cv_path_SED=$lt_ac_sed
5425     break
5426   fi
5427   while true; do
5428     cat conftest.in conftest.in >conftest.tmp
5429     mv conftest.tmp conftest.in
5430     cp conftest.in conftest.nl
5431     echo >>conftest.nl
5432     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5433     cmp -s conftest.out conftest.nl || break
5434     # 10000 chars as input seems more than enough
5435     test $lt_ac_count -gt 10 && break
5436     lt_ac_count=`expr $lt_ac_count + 1`
5437     if test $lt_ac_count -gt $lt_ac_max; then
5438       lt_ac_max=$lt_ac_count
5439       lt_cv_path_SED=$lt_ac_sed
5440     fi
5441   done
5442 done
5443
5444 fi
5445
5446 SED=$lt_cv_path_SED
5447 echo "$as_me:$LINENO: result: $SED" >&5
5448 echo "${ECHO_T}$SED" >&6
5449
5450 echo "$as_me:$LINENO: checking for egrep" >&5
5451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5452 if test "${ac_cv_prog_egrep+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5456     then ac_cv_prog_egrep='grep -E'
5457     else ac_cv_prog_egrep='egrep'
5458     fi
5459 fi
5460 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5461 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5462  EGREP=$ac_cv_prog_egrep
5463
5464
5465
5466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5467 if test "${with_gnu_ld+set}" = set; then
5468   withval="$with_gnu_ld"
5469   test "$withval" = no || with_gnu_ld=yes
5470 else
5471   with_gnu_ld=no
5472 fi;
5473 ac_prog=ld
5474 if test "$GCC" = yes; then
5475   # Check if gcc -print-prog-name=ld gives a path.
5476   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5477 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5478   case $host in
5479   *-*-mingw*)
5480     # gcc leaves a trailing carriage return which upsets mingw
5481     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5482   *)
5483     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5484   esac
5485   case $ac_prog in
5486     # Accept absolute paths.
5487     [\\/]* | ?:[\\/]*)
5488       re_direlt='/[^/][^/]*/\.\./'
5489       # Canonicalize the pathname of ld
5490       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5491       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5492         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5493       done
5494       test -z "$LD" && LD="$ac_prog"
5495       ;;
5496   "")
5497     # If it fails, then pretend we aren't using GCC.
5498     ac_prog=ld
5499     ;;
5500   *)
5501     # If it is relative, then search for the first ld in PATH.
5502     with_gnu_ld=unknown
5503     ;;
5504   esac
5505 elif test "$with_gnu_ld" = yes; then
5506   echo "$as_me:$LINENO: checking for GNU ld" >&5
5507 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5508 else
5509   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5510 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5511 fi
5512 if test "${lt_cv_path_LD+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   if test -z "$LD"; then
5516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517   for ac_dir in $PATH; do
5518     IFS="$lt_save_ifs"
5519     test -z "$ac_dir" && ac_dir=.
5520     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5521       lt_cv_path_LD="$ac_dir/$ac_prog"
5522       # Check to see if the program is GNU ld.  I'd rather use --version,
5523       # but apparently some GNU ld's only accept -v.
5524       # Break only if it was the GNU/non-GNU ld that we prefer.
5525       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5526       *GNU* | *'with BFD'*)
5527         test "$with_gnu_ld" != no && break
5528         ;;
5529       *)
5530         test "$with_gnu_ld" != yes && break
5531         ;;
5532       esac
5533     fi
5534   done
5535   IFS="$lt_save_ifs"
5536 else
5537   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5538 fi
5539 fi
5540
5541 LD="$lt_cv_path_LD"
5542 if test -n "$LD"; then
5543   echo "$as_me:$LINENO: result: $LD" >&5
5544 echo "${ECHO_T}$LD" >&6
5545 else
5546   echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5550 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5551    { (exit 1); exit 1; }; }
5552 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5553 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5554 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5558 case `$LD -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560   lt_cv_prog_gnu_ld=yes
5561   ;;
5562 *)
5563   lt_cv_prog_gnu_ld=no
5564   ;;
5565 esac
5566 fi
5567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5569 with_gnu_ld=$lt_cv_prog_gnu_ld
5570
5571
5572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5574 if test "${lt_cv_ld_reload_flag+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   lt_cv_ld_reload_flag='-r'
5578 fi
5579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5581 reload_flag=$lt_cv_ld_reload_flag
5582 case $reload_flag in
5583 "" | " "*) ;;
5584 *) reload_flag=" $reload_flag" ;;
5585 esac
5586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587 case $host_os in
5588   darwin*)
5589     if test "$GCC" = yes; then
5590       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5591     else
5592       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593     fi
5594     ;;
5595 esac
5596
5597 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5598 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5599 if test "${lt_cv_path_NM+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   if test -n "$NM"; then
5603   # Let the user override the test.
5604   lt_cv_path_NM="$NM"
5605 else
5606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5608     IFS="$lt_save_ifs"
5609     test -z "$ac_dir" && ac_dir=.
5610     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5611     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5612       # Check to see if the nm accepts a BSD-compat flag.
5613       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5614       #   nm: unknown option "B" ignored
5615       # Tru64's nm complains that /dev/null is an invalid object file
5616       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5617       */dev/null* | *'Invalid file or object type'*)
5618         lt_cv_path_NM="$tmp_nm -B"
5619         break
5620         ;;
5621       *)
5622         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5623         */dev/null*)
5624           lt_cv_path_NM="$tmp_nm -p"
5625           break
5626           ;;
5627         *)
5628           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5629           continue # so that we can try to find one that supports BSD flags
5630           ;;
5631         esac
5632       esac
5633     fi
5634   done
5635   IFS="$lt_save_ifs"
5636   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5637 fi
5638 fi
5639 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5640 echo "${ECHO_T}$lt_cv_path_NM" >&6
5641 NM="$lt_cv_path_NM"
5642
5643 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5645 LN_S=$as_ln_s
5646 if test "$LN_S" = "ln -s"; then
5647   echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6
5649 else
5650   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651 echo "${ECHO_T}no, using $LN_S" >&6
5652 fi
5653
5654 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5655 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5656 if test "${lt_cv_deplibs_check_method+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   lt_cv_file_magic_cmd='$MAGIC_CMD'
5660 lt_cv_file_magic_test_file=
5661 lt_cv_deplibs_check_method='unknown'
5662 # Need to set the preceding variable on all platforms that support
5663 # interlibrary dependencies.
5664 # 'none' -- dependencies not supported.
5665 # `unknown' -- same as none, but documents that we really don't know.
5666 # 'pass_all' -- all dependencies passed with no checks.
5667 # 'test_compile' -- check by making test program.
5668 # 'file_magic [[regex]]' -- check by looking for files in library path
5669 # which responds to the $file_magic_cmd with a given extended regex.
5670 # If you have `file' or equivalent on your system and you're not sure
5671 # whether `pass_all' will *always* work, you probably want this one.
5672
5673 case $host_os in
5674 aix4* | aix5*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 beos*)
5679   lt_cv_deplibs_check_method=pass_all
5680   ;;
5681
5682 bsdi[45]*)
5683   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5684   lt_cv_file_magic_cmd='/usr/bin/file -L'
5685   lt_cv_file_magic_test_file=/shlib/libc.so
5686   ;;
5687
5688 cygwin*)
5689   # func_win32_libid is a shell function defined in ltmain.sh
5690   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5691   lt_cv_file_magic_cmd='func_win32_libid'
5692   ;;
5693
5694 mingw* | pw32*)
5695   # Base MSYS/MinGW do not provide the 'file' command needed by
5696   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5697   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5698   lt_cv_file_magic_cmd='$OBJDUMP -f'
5699   ;;
5700
5701 darwin* | rhapsody*)
5702   lt_cv_deplibs_check_method=pass_all
5703   ;;
5704
5705 freebsd* | kfreebsd*-gnu)
5706   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5707     case $host_cpu in
5708     i*86 )
5709       # Not sure whether the presence of OpenBSD here was a mistake.
5710       # Let's accept both of them until this is cleared up.
5711       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5712       lt_cv_file_magic_cmd=/usr/bin/file
5713       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5714       ;;
5715     esac
5716   else
5717     lt_cv_deplibs_check_method=pass_all
5718   fi
5719   ;;
5720
5721 gnu*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724
5725 hpux10.20* | hpux11*)
5726   lt_cv_file_magic_cmd=/usr/bin/file
5727   case "$host_cpu" in
5728   ia64*)
5729     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5730     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5731     ;;
5732   hppa*64*)
5733     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]'
5734     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5735     ;;
5736   *)
5737     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5738     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5739     ;;
5740   esac
5741   ;;
5742
5743 irix5* | irix6* | nonstopux*)
5744   case $LD in
5745   *-32|*"-32 ") libmagic=32-bit;;
5746   *-n32|*"-n32 ") libmagic=N32;;
5747   *-64|*"-64 ") libmagic=64-bit;;
5748   *) libmagic=never-match;;
5749   esac
5750   lt_cv_deplibs_check_method=pass_all
5751   ;;
5752
5753 # This must be Linux ELF.
5754 linux*)
5755   lt_cv_deplibs_check_method=pass_all
5756   ;;
5757
5758 netbsd*)
5759   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761   else
5762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763   fi
5764   ;;
5765
5766 newos6*)
5767   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768   lt_cv_file_magic_cmd=/usr/bin/file
5769   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770   ;;
5771
5772 nto-qnx*)
5773   lt_cv_deplibs_check_method=unknown
5774   ;;
5775
5776 openbsd*)
5777   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779   else
5780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781   fi
5782   ;;
5783
5784 osf3* | osf4* | osf5*)
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 sco3.2v5*)
5789   lt_cv_deplibs_check_method=pass_all
5790   ;;
5791
5792 solaris*)
5793   lt_cv_deplibs_check_method=pass_all
5794   ;;
5795
5796 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5797   case $host_vendor in
5798   motorola)
5799     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]'
5800     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5801     ;;
5802   ncr)
5803     lt_cv_deplibs_check_method=pass_all
5804     ;;
5805   sequent)
5806     lt_cv_file_magic_cmd='/bin/file'
5807     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5808     ;;
5809   sni)
5810     lt_cv_file_magic_cmd='/bin/file'
5811     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812     lt_cv_file_magic_test_file=/lib/libc.so
5813     ;;
5814   siemens)
5815     lt_cv_deplibs_check_method=pass_all
5816     ;;
5817   esac
5818   ;;
5819
5820 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5821   lt_cv_deplibs_check_method=pass_all
5822   ;;
5823 esac
5824
5825 fi
5826 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5828 file_magic_cmd=$lt_cv_file_magic_cmd
5829 deplibs_check_method=$lt_cv_deplibs_check_method
5830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5831
5832
5833
5834
5835 # If no C compiler was specified, use CC.
5836 LTCC=${LTCC-"$CC"}
5837
5838 # Allow CC to be a program name with arguments.
5839 compiler=$CC
5840
5841 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5842 if test "${enable_libtool_lock+set}" = set; then
5843   enableval="$enable_libtool_lock"
5844
5845 fi;
5846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5847
5848 # Some flags need to be propagated to the compiler or linker for good
5849 # libtool support.
5850 case $host in
5851 ia64-*-hpux*)
5852   # Find out which ABI we are using.
5853   echo 'int i;' > conftest.$ac_ext
5854   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855   (eval $ac_compile) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; then
5859     case `/usr/bin/file conftest.$ac_objext` in
5860     *ELF-32*)
5861       HPUX_IA64_MODE="32"
5862       ;;
5863     *ELF-64*)
5864       HPUX_IA64_MODE="64"
5865       ;;
5866     esac
5867   fi
5868   rm -rf conftest*
5869   ;;
5870 *-*-irix6*)
5871   # Find out which ABI we are using.
5872   echo '#line 5872 "configure"' > conftest.$ac_ext
5873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; then
5878    if test "$lt_cv_prog_gnu_ld" = yes; then
5879     case `/usr/bin/file conftest.$ac_objext` in
5880     *32-bit*)
5881       LD="${LD-ld} -melf32bsmip"
5882       ;;
5883     *N32*)
5884       LD="${LD-ld} -melf32bmipn32"
5885       ;;
5886     *64-bit*)
5887       LD="${LD-ld} -melf64bmip"
5888       ;;
5889     esac
5890    else
5891     case `/usr/bin/file conftest.$ac_objext` in
5892     *32-bit*)
5893       LD="${LD-ld} -32"
5894       ;;
5895     *N32*)
5896       LD="${LD-ld} -n32"
5897       ;;
5898     *64-bit*)
5899       LD="${LD-ld} -64"
5900       ;;
5901     esac
5902    fi
5903   fi
5904   rm -rf conftest*
5905   ;;
5906
5907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5908   # Find out which ABI we are using.
5909   echo 'int i;' > conftest.$ac_ext
5910   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911   (eval $ac_compile) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; then
5915     case "`/usr/bin/file conftest.o`" in
5916     *32-bit*)
5917       case $host in
5918         x86_64-*linux*)
5919           LD="${LD-ld} -m elf_i386"
5920           ;;
5921         ppc64-*linux*|powerpc64-*linux*)
5922           LD="${LD-ld} -m elf32ppclinux"
5923           ;;
5924         s390x-*linux*)
5925           LD="${LD-ld} -m elf_s390"
5926           ;;
5927         sparc64-*linux*)
5928           LD="${LD-ld} -m elf32_sparc"
5929           ;;
5930       esac
5931       ;;
5932     *64-bit*)
5933       case $host in
5934         x86_64-*linux*)
5935           LD="${LD-ld} -m elf_x86_64"
5936           ;;
5937         ppc*-*linux*|powerpc*-*linux*)
5938           LD="${LD-ld} -m elf64ppc"
5939           ;;
5940         s390*-*linux*)
5941           LD="${LD-ld} -m elf64_s390"
5942           ;;
5943         sparc*-*linux*)
5944           LD="${LD-ld} -m elf64_sparc"
5945           ;;
5946       esac
5947       ;;
5948     esac
5949   fi
5950   rm -rf conftest*
5951   ;;
5952
5953 *-*-sco3.2v5*)
5954   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5955   SAVE_CFLAGS="$CFLAGS"
5956   CFLAGS="$CFLAGS -belf"
5957   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5958 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5959 if test "${lt_cv_cc_needs_belf+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   ac_ext=c
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968      cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974
5975 int
5976 main ()
5977 {
5978
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985   (eval $ac_link) 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_c_werror_flag"
5993                          || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest$ac_exeext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   lt_cv_cc_needs_belf=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 lt_cv_cc_needs_belf=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext \
6013       conftest$ac_exeext conftest.$ac_ext
6014      ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020 fi
6021 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6022 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6023   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6024     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6025     CFLAGS="$SAVE_CFLAGS"
6026   fi
6027   ;;
6028
6029 esac
6030
6031 need_locks="$enable_libtool_lock"
6032
6033
6034
6035 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6037 if test "${ac_cv_header_stdc+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 #include <stdlib.h>
6047 #include <stdarg.h>
6048 #include <string.h>
6049 #include <float.h>
6050
6051 int
6052 main ()
6053 {
6054
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061   (eval $ac_compile) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } &&
6068          { ac_try='test -z "$ac_c_werror_flag"
6069                          || test ! -s conftest.err'
6070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071   (eval $ac_try) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; } &&
6075          { ac_try='test -s conftest.$ac_objext'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; }; then
6081   ac_cv_header_stdc=yes
6082 else
6083   echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 ac_cv_header_stdc=no
6087 fi
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089
6090 if test $ac_cv_header_stdc = yes; then
6091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6092   cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h.  */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h.  */
6098 #include <string.h>
6099
6100 _ACEOF
6101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102   $EGREP "memchr" >/dev/null 2>&1; then
6103   :
6104 else
6105   ac_cv_header_stdc=no
6106 fi
6107 rm -f conftest*
6108
6109 fi
6110
6111 if test $ac_cv_header_stdc = yes; then
6112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6113   cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119 #include <stdlib.h>
6120
6121 _ACEOF
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123   $EGREP "free" >/dev/null 2>&1; then
6124   :
6125 else
6126   ac_cv_header_stdc=no
6127 fi
6128 rm -f conftest*
6129
6130 fi
6131
6132 if test $ac_cv_header_stdc = yes; then
6133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6134   if test "$cross_compiling" = yes; then
6135   :
6136 else
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <ctype.h>
6144 #if ((' ' & 0x0FF) == 0x020)
6145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6147 #else
6148 # define ISLOWER(c) \
6149                    (('a' <= (c) && (c) <= 'i') \
6150                      || ('j' <= (c) && (c) <= 'r') \
6151                      || ('s' <= (c) && (c) <= 'z'))
6152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6153 #endif
6154
6155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6156 int
6157 main ()
6158 {
6159   int i;
6160   for (i = 0; i < 256; i++)
6161     if (XOR (islower (i), ISLOWER (i))
6162         || toupper (i) != TOUPPER (i))
6163       exit(2);
6164   exit (0);
6165 }
6166 _ACEOF
6167 rm -f conftest$ac_exeext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169   (eval $ac_link) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174   (eval $ac_try) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; }; then
6178   :
6179 else
6180   echo "$as_me: program exited with status $ac_status" >&5
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ( exit $ac_status )
6185 ac_cv_header_stdc=no
6186 fi
6187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188 fi
6189 fi
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6193 if test $ac_cv_header_stdc = yes; then
6194
6195 cat >>confdefs.h <<\_ACEOF
6196 #define STDC_HEADERS 1
6197 _ACEOF
6198
6199 fi
6200
6201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6212                   inttypes.h stdint.h unistd.h
6213 do
6214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226 $ac_includes_default
6227
6228 #include <$ac_header>
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } &&
6239          { ac_try='test -z "$ac_c_werror_flag"
6240                          || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   eval "$as_ac_Header=yes"
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 eval "$as_ac_Header=no"
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264   cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6267
6268 fi
6269
6270 done
6271
6272
6273
6274 for ac_header in dlfcn.h
6275 do
6276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6278   echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 fi
6283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6285 else
6286   # Is the header compilable?
6287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 $ac_includes_default
6296 #include <$ac_header>
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300   (eval $ac_compile) 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -z "$ac_c_werror_flag"
6308                          || test ! -s conftest.err'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; } &&
6314          { ac_try='test -s conftest.$ac_objext'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; }; then
6320   ac_header_compiler=yes
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_header_compiler=no
6326 fi
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329 echo "${ECHO_T}$ac_header_compiler" >&6
6330
6331 # Is the header present?
6332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #include <$ac_header>
6341 _ACEOF
6342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } >/dev/null; then
6350   if test -s conftest.err; then
6351     ac_cpp_err=$ac_c_preproc_warn_flag
6352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6353   else
6354     ac_cpp_err=
6355   fi
6356 else
6357   ac_cpp_err=yes
6358 fi
6359 if test -z "$ac_cpp_err"; then
6360   ac_header_preproc=yes
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365   ac_header_preproc=no
6366 fi
6367 rm -f conftest.err conftest.$ac_ext
6368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6
6370
6371 # So?  What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373   yes:no: )
6374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378     ac_header_preproc=yes
6379     ;;
6380   no:yes:* )
6381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6393     (
6394       cat <<\_ASBOX
6395 ## ----------------------------------- ##
6396 ## Report this to llvmbugs@cs.uiuc.edu ##
6397 ## ----------------------------------- ##
6398 _ASBOX
6399     ) |
6400       sed "s/^/$as_me: WARNING:     /" >&2
6401     ;;
6402 esac
6403 echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   eval "$as_ac_Header=\$ac_header_preproc"
6409 fi
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412
6413 fi
6414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415   cat >>confdefs.h <<_ACEOF
6416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 _ACEOF
6418
6419 fi
6420
6421 done
6422
6423
6424
6425 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6426     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6427     (test "X$CXX" != "Xg++"))) ; then
6428   ac_ext=cc
6429 ac_cpp='$CXXCPP $CPPFLAGS'
6430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6433 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6434 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6435 if test -z "$CXXCPP"; then
6436   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439       # Double quotes because CXXCPP needs to be expanded
6440     for CXXCPP in "$CXX -E" "/lib/cpp"
6441     do
6442       ac_preproc_ok=false
6443 for ac_cxx_preproc_warn_flag in '' yes
6444 do
6445   # Use a header file that comes with gcc, so configuring glibc
6446   # with a fresh cross-compiler works.
6447   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448   # <limits.h> exists even on freestanding compilers.
6449   # On the NeXT, cc -E runs the code through the compiler's parser,
6450   # not just through cpp. "Syntax error" is here to catch this case.
6451   cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 #ifdef __STDC__
6458 # include <limits.h>
6459 #else
6460 # include <assert.h>
6461 #endif
6462                      Syntax error
6463 _ACEOF
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } >/dev/null; then
6472   if test -s conftest.err; then
6473     ac_cpp_err=$ac_cxx_preproc_warn_flag
6474     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6475   else
6476     ac_cpp_err=
6477   fi
6478 else
6479   ac_cpp_err=yes
6480 fi
6481 if test -z "$ac_cpp_err"; then
6482   :
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487   # Broken: fails on valid input.
6488 continue
6489 fi
6490 rm -f conftest.err conftest.$ac_ext
6491
6492   # OK, works on sane cases.  Now check whether non-existent headers
6493   # can be detected and how.
6494   cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <ac_nonexistent.h>
6501 _ACEOF
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } >/dev/null; then
6510   if test -s conftest.err; then
6511     ac_cpp_err=$ac_cxx_preproc_warn_flag
6512     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6513   else
6514     ac_cpp_err=
6515   fi
6516 else
6517   ac_cpp_err=yes
6518 fi
6519 if test -z "$ac_cpp_err"; then
6520   # Broken: success on invalid input.
6521 continue
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526   # Passes both tests.
6527 ac_preproc_ok=:
6528 break
6529 fi
6530 rm -f conftest.err conftest.$ac_ext
6531
6532 done
6533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534 rm -f conftest.err conftest.$ac_ext
6535 if $ac_preproc_ok; then
6536   break
6537 fi
6538
6539     done
6540     ac_cv_prog_CXXCPP=$CXXCPP
6541
6542 fi
6543   CXXCPP=$ac_cv_prog_CXXCPP
6544 else
6545   ac_cv_prog_CXXCPP=$CXXCPP
6546 fi
6547 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6548 echo "${ECHO_T}$CXXCPP" >&6
6549 ac_preproc_ok=false
6550 for ac_cxx_preproc_warn_flag in '' yes
6551 do
6552   # Use a header file that comes with gcc, so configuring glibc
6553   # with a fresh cross-compiler works.
6554   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555   # <limits.h> exists even on freestanding compilers.
6556   # On the NeXT, cc -E runs the code through the compiler's parser,
6557   # not just through cpp. "Syntax error" is here to catch this case.
6558   cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564 #ifdef __STDC__
6565 # include <limits.h>
6566 #else
6567 # include <assert.h>
6568 #endif
6569                      Syntax error
6570 _ACEOF
6571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } >/dev/null; then
6579   if test -s conftest.err; then
6580     ac_cpp_err=$ac_cxx_preproc_warn_flag
6581     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6582   else
6583     ac_cpp_err=
6584   fi
6585 else
6586   ac_cpp_err=yes
6587 fi
6588 if test -z "$ac_cpp_err"; then
6589   :
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594   # Broken: fails on valid input.
6595 continue
6596 fi
6597 rm -f conftest.err conftest.$ac_ext
6598
6599   # OK, works on sane cases.  Now check whether non-existent headers
6600   # can be detected and how.
6601   cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607 #include <ac_nonexistent.h>
6608 _ACEOF
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6611   ac_status=$?
6612   grep -v '^ *+' conftest.er1 >conftest.err
6613   rm -f conftest.er1
6614   cat conftest.err >&5
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } >/dev/null; then
6617   if test -s conftest.err; then
6618     ac_cpp_err=$ac_cxx_preproc_warn_flag
6619     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6620   else
6621     ac_cpp_err=
6622   fi
6623 else
6624   ac_cpp_err=yes
6625 fi
6626 if test -z "$ac_cpp_err"; then
6627   # Broken: success on invalid input.
6628 continue
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633   # Passes both tests.
6634 ac_preproc_ok=:
6635 break
6636 fi
6637 rm -f conftest.err conftest.$ac_ext
6638
6639 done
6640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6641 rm -f conftest.err conftest.$ac_ext
6642 if $ac_preproc_ok; then
6643   :
6644 else
6645   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6646 See \`config.log' for more details." >&5
6647 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6648 See \`config.log' for more details." >&2;}
6649    { (exit 1); exit 1; }; }
6650 fi
6651
6652 ac_ext=cc
6653 ac_cpp='$CXXCPP $CPPFLAGS'
6654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6657
6658 fi
6659
6660
6661 ac_ext=f
6662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6665 if test -n "$ac_tool_prefix"; then
6666   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6667   do
6668     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6670 echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672 if test "${ac_cv_prog_F77+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test -n "$F77"; then
6676   ac_cv_prog_F77="$F77" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691
6692 fi
6693 fi
6694 F77=$ac_cv_prog_F77
6695 if test -n "$F77"; then
6696   echo "$as_me:$LINENO: result: $F77" >&5
6697 echo "${ECHO_T}$F77" >&6
6698 else
6699   echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6
6701 fi
6702
6703     test -n "$F77" && break
6704   done
6705 fi
6706 if test -z "$F77"; then
6707   ac_ct_F77=$F77
6708   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6709 do
6710   # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   if test -n "$ac_ct_F77"; then
6718   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_ac_ct_F77="$ac_prog"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733
6734 fi
6735 fi
6736 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6737 if test -n "$ac_ct_F77"; then
6738   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6739 echo "${ECHO_T}$ac_ct_F77" >&6
6740 else
6741   echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6
6743 fi
6744
6745   test -n "$ac_ct_F77" && break
6746 done
6747
6748   F77=$ac_ct_F77
6749 fi
6750
6751
6752 # Provide some information about the compiler.
6753 echo "$as_me:6753:" \
6754      "checking for Fortran 77 compiler version" >&5
6755 ac_compiler=`set X $ac_compile; echo $2`
6756 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6757   (eval $ac_compiler --version </dev/null >&5) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }
6761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6762   (eval $ac_compiler -v </dev/null >&5) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }
6766 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6767   (eval $ac_compiler -V </dev/null >&5) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }
6771 rm -f a.out
6772
6773 # If we don't use `.F' as extension, the preprocessor is not run on the
6774 # input file.  (Note that this only needs to work for GNU compilers.)
6775 ac_save_ext=$ac_ext
6776 ac_ext=F
6777 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6778 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6779 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783       program main
6784 #ifndef __GNUC__
6785        choke me
6786 #endif
6787
6788       end
6789 _ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792   (eval $ac_compile) 2>conftest.er1
6793   ac_status=$?
6794   grep -v '^ *+' conftest.er1 >conftest.err
6795   rm -f conftest.er1
6796   cat conftest.err >&5
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -z "$ac_f77_werror_flag"
6800                          || test ! -s conftest.err'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; } &&
6806          { ac_try='test -s conftest.$ac_objext'
6807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808   (eval $ac_try) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); }; }; then
6812   ac_compiler_gnu=yes
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 ac_compiler_gnu=no
6818 fi
6819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6821
6822 fi
6823 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6824 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6825 ac_ext=$ac_save_ext
6826 ac_test_FFLAGS=${FFLAGS+set}
6827 ac_save_FFLAGS=$FFLAGS
6828 FFLAGS=
6829 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6830 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6831 if test "${ac_cv_prog_f77_g+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   FFLAGS=-g
6835 cat >conftest.$ac_ext <<_ACEOF
6836       program main
6837
6838       end
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842   (eval $ac_compile) 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -z "$ac_f77_werror_flag"
6850                          || test ! -s conftest.err'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; } &&
6856          { ac_try='test -s conftest.$ac_objext'
6857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858   (eval $ac_try) 2>&5
6859   ac_status=$?
6860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861   (exit $ac_status); }; }; then
6862   ac_cv_prog_f77_g=yes
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 ac_cv_prog_f77_g=no
6868 fi
6869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871 fi
6872 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6873 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6874 if test "$ac_test_FFLAGS" = set; then
6875   FFLAGS=$ac_save_FFLAGS
6876 elif test $ac_cv_prog_f77_g = yes; then
6877   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6878     FFLAGS="-g -O2"
6879   else
6880     FFLAGS="-g"
6881   fi
6882 else
6883   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6884     FFLAGS="-O2"
6885   else
6886     FFLAGS=
6887   fi
6888 fi
6889
6890 G77=`test $ac_compiler_gnu = yes && echo yes`
6891 ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897
6898
6899 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6900
6901 # find the maximum length of command line arguments
6902 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6903 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6904 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907     i=0
6908   teststring="ABCD"
6909
6910   case $build_os in
6911   msdosdjgpp*)
6912     # On DJGPP, this test can blow up pretty badly due to problems in libc
6913     # (any single argument exceeding 2000 bytes causes a buffer overrun
6914     # during glob expansion).  Even if it were fixed, the result of this
6915     # check would be larger than it should be.
6916     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6917     ;;
6918
6919   gnu*)
6920     # Under GNU Hurd, this test is not required because there is
6921     # no limit to the length of command line arguments.
6922     # Libtool will interpret -1 as no limit whatsoever
6923     lt_cv_sys_max_cmd_len=-1;
6924     ;;
6925
6926   cygwin* | mingw*)
6927     # On Win9x/ME, this test blows up -- it succeeds, but takes
6928     # about 5 minutes as the teststring grows exponentially.
6929     # Worse, since 9x/ME are not pre-emptively multitasking,
6930     # you end up with a "frozen" computer, even though with patience
6931     # the test eventually succeeds (with a max line length of 256k).
6932     # Instead, let's just punt: use the minimum linelength reported by
6933     # all of the supported platforms: 8192 (on NT/2K/XP).
6934     lt_cv_sys_max_cmd_len=8192;
6935     ;;
6936
6937   amigaos*)
6938     # On AmigaOS with pdksh, this test takes hours, literally.
6939     # So we just punt and use a minimum line length of 8192.
6940     lt_cv_sys_max_cmd_len=8192;
6941     ;;
6942
6943   netbsd* | freebsd* | openbsd* | darwin* )
6944     # This has been around since 386BSD, at least.  Likely further.
6945     if test -x /sbin/sysctl; then
6946       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6947     elif test -x /usr/sbin/sysctl; then
6948       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6949     else
6950       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6951     fi
6952     # And add a safety zone
6953     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6954     ;;
6955
6956  *)
6957     # If test is not a shell built-in, we'll probably end up computing a
6958     # maximum length that is only half of the actual maximum length, but
6959     # we can't tell.
6960     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6961     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6962                = "XX$teststring") >/dev/null 2>&1 &&
6963             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6964             lt_cv_sys_max_cmd_len=$new_result &&
6965             test $i != 17 # 1/2 MB should be enough
6966     do
6967       i=`expr $i + 1`
6968       teststring=$teststring$teststring
6969     done
6970     teststring=
6971     # Add a significant safety factor because C++ compilers can tack on massive
6972     # amounts of additional arguments before passing them to the linker.
6973     # It appears as though 1/2 is a usable value.
6974     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6975     ;;
6976   esac
6977
6978 fi
6979
6980 if test -n $lt_cv_sys_max_cmd_len ; then
6981   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6982 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6983 else
6984   echo "$as_me:$LINENO: result: none" >&5
6985 echo "${ECHO_T}none" >&6
6986 fi
6987
6988
6989
6990
6991 # Check for command to grab the raw symbol name followed by C symbol from nm.
6992 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6993 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6994 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997
6998 # These are sane defaults that work on at least a few old systems.
6999 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7000
7001 # Character class describing NM global symbol codes.
7002 symcode='[BCDEGRST]'
7003
7004 # Regexp to match symbols that can be accessed directly from C.
7005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7006
7007 # Transform the above into a raw symbol and a C symbol.
7008 symxfrm='\1 \2\3 \3'
7009
7010 # Transform an extracted symbol line into a proper C declaration
7011 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7012
7013 # Transform an extracted symbol line into symbol name and symbol address
7014 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'"
7015
7016 # Define system-specific variables.
7017 case $host_os in
7018 aix*)
7019   symcode='[BCDT]'
7020   ;;
7021 cygwin* | mingw* | pw32*)
7022   symcode='[ABCDGISTW]'
7023   ;;
7024 hpux*) # Its linker distinguishes data from code symbols
7025   if test "$host_cpu" = ia64; then
7026     symcode='[ABCDEGRST]'
7027   fi
7028   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7029   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'"
7030   ;;
7031 linux*)
7032   if test "$host_cpu" = ia64; then
7033     symcode='[ABCDGIRSTW]'
7034     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035     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'"
7036   fi
7037   ;;
7038 irix* | nonstopux*)
7039   symcode='[BCDEGRST]'
7040   ;;
7041 osf*)
7042   symcode='[BCDEGQRST]'
7043   ;;
7044 solaris* | sysv5*)
7045   symcode='[BDRT]'
7046   ;;
7047 sysv4)
7048   symcode='[DFNSTU]'
7049   ;;
7050 esac
7051
7052 # Handle CRLF in mingw tool chain
7053 opt_cr=
7054 case $build_os in
7055 mingw*)
7056   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7057   ;;
7058 esac
7059
7060 # If we're using GNU nm, then use its standard symbol codes.
7061 case `$NM -V 2>&1` in
7062 *GNU* | *'with BFD'*)
7063   symcode='[ABCDGIRSTW]' ;;
7064 esac
7065
7066 # Try without a prefix undercore, then with it.
7067 for ac_symprfx in "" "_"; do
7068
7069   # Write the raw and C identifiers.
7070   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7071
7072   # Check to see that the pipe works correctly.
7073   pipe_works=no
7074
7075   rm -f conftest*
7076   cat > conftest.$ac_ext <<EOF
7077 #ifdef __cplusplus
7078 extern "C" {
7079 #endif
7080 char nm_test_var;
7081 void nm_test_func(){}
7082 #ifdef __cplusplus
7083 }
7084 #endif
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7086 EOF
7087
7088   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089   (eval $ac_compile) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); }; then
7093     # Now try to grab the symbols.
7094     nlist=conftest.nm
7095     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7096   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } && test -s "$nlist"; then
7100       # Try sorting and uniquifying the output.
7101       if sort "$nlist" | uniq > "$nlist"T; then
7102         mv -f "$nlist"T "$nlist"
7103       else
7104         rm -f "$nlist"T
7105       fi
7106
7107       # Make sure that we snagged all the symbols we need.
7108       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7109         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7110           cat <<EOF > conftest.$ac_ext
7111 #ifdef __cplusplus
7112 extern "C" {
7113 #endif
7114
7115 EOF
7116           # Now generate the symbol file.
7117           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7118
7119           cat <<EOF >> conftest.$ac_ext
7120 #if defined (__STDC__) && __STDC__
7121 # define lt_ptr_t void *
7122 #else
7123 # define lt_ptr_t char *
7124 # define const
7125 #endif
7126
7127 /* The mapping between symbol names and symbols. */
7128 const struct {
7129   const char *name;
7130   lt_ptr_t address;
7131 }
7132 lt_preloaded_symbols[] =
7133 {
7134 EOF
7135           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7136           cat <<\EOF >> conftest.$ac_ext
7137   {0, (lt_ptr_t) 0}
7138 };
7139
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 EOF
7144           # Now try linking the two files.
7145           mv conftest.$ac_objext conftstm.$ac_objext
7146           lt_save_LIBS="$LIBS"
7147           lt_save_CFLAGS="$CFLAGS"
7148           LIBS="conftstm.$ac_objext"
7149           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7155             pipe_works=yes
7156           fi
7157           LIBS="$lt_save_LIBS"
7158           CFLAGS="$lt_save_CFLAGS"
7159         else
7160           echo "cannot find nm_test_func in $nlist" >&5
7161         fi
7162       else
7163         echo "cannot find nm_test_var in $nlist" >&5
7164       fi
7165     else
7166       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167     fi
7168   else
7169     echo "$progname: failed program was:" >&5
7170     cat conftest.$ac_ext >&5
7171   fi
7172   rm -f conftest* conftst*
7173
7174   # Do not use the global_symbol_pipe unless it works.
7175   if test "$pipe_works" = yes; then
7176     break
7177   else
7178     lt_cv_sys_global_symbol_pipe=
7179   fi
7180 done
7181
7182 fi
7183
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185   lt_cv_sys_global_symbol_to_cdecl=
7186 fi
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188   echo "$as_me:$LINENO: result: failed" >&5
7189 echo "${ECHO_T}failed" >&6
7190 else
7191   echo "$as_me:$LINENO: result: ok" >&5
7192 echo "${ECHO_T}ok" >&6
7193 fi
7194
7195 echo "$as_me:$LINENO: checking for objdir" >&5
7196 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7197 if test "${lt_cv_objdir+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   rm -f .libs 2>/dev/null
7201 mkdir .libs 2>/dev/null
7202 if test -d .libs; then
7203   lt_cv_objdir=.libs
7204 else
7205   # MS-DOS does not allow filenames that begin with a dot.
7206   lt_cv_objdir=_libs
7207 fi
7208 rmdir .libs 2>/dev/null
7209 fi
7210 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7211 echo "${ECHO_T}$lt_cv_objdir" >&6
7212 objdir=$lt_cv_objdir
7213
7214
7215
7216
7217
7218 case $host_os in
7219 aix3*)
7220   # AIX sometimes has problems with the GCC collect2 program.  For some
7221   # reason, if we set the COLLECT_NAMES environment variable, the problems
7222   # vanish in a puff of smoke.
7223   if test "X${COLLECT_NAMES+set}" != Xset; then
7224     COLLECT_NAMES=
7225     export COLLECT_NAMES
7226   fi
7227   ;;
7228 esac
7229
7230 # Sed substitution that helps us do robust quoting.  It backslashifies
7231 # metacharacters that are still active within double-quoted strings.
7232 Xsed='sed -e s/^X//'
7233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7234
7235 # Same as above, but do not quote variable references.
7236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7237
7238 # Sed substitution to delay expansion of an escaped shell variable in a
7239 # double_quote_subst'ed string.
7240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7241
7242 # Sed substitution to avoid accidental globbing in evaled expressions
7243 no_glob_subst='s/\*/\\\*/g'
7244
7245 # Constants:
7246 rm="rm -f"
7247
7248 # Global variables:
7249 default_ofile=mklib
7250 can_build_shared=yes
7251
7252 # All known linkers require a `.a' archive for static linking (except M$VC,
7253 # which needs '.lib').
7254 libext=a
7255 ltmain="$ac_aux_dir/ltmain.sh"
7256 ofile="$default_ofile"
7257 with_gnu_ld="$lt_cv_prog_gnu_ld"
7258
7259 if test -n "$ac_tool_prefix"; then
7260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}ar; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_AR+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   if test -n "$AR"; then
7268   ac_cv_prog_AR="$AR" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275   for ac_exec_ext in '' $ac_executable_extensions; do
7276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_prog_AR="${ac_tool_prefix}ar"
7278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282 done
7283
7284 fi
7285 fi
7286 AR=$ac_cv_prog_AR
7287 if test -n "$AR"; then
7288   echo "$as_me:$LINENO: result: $AR" >&5
7289 echo "${ECHO_T}$AR" >&6
7290 else
7291   echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295 fi
7296 if test -z "$ac_cv_prog_AR"; then
7297   ac_ct_AR=$AR
7298   # Extract the first word of "ar", so it can be a program name with args.
7299 set dummy ar; ac_word=$2
7300 echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   if test -n "$ac_ct_AR"; then
7306   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313   for ac_exec_ext in '' $ac_executable_extensions; do
7314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_ac_ct_AR="ar"
7316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320 done
7321
7322   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7323 fi
7324 fi
7325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7326 if test -n "$ac_ct_AR"; then
7327   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7328 echo "${ECHO_T}$ac_ct_AR" >&6
7329 else
7330   echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6
7332 fi
7333
7334   AR=$ac_ct_AR
7335 else
7336   AR="$ac_cv_prog_AR"
7337 fi
7338
7339 if test -n "$ac_tool_prefix"; then
7340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342 echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344 if test "${ac_cv_prog_RANLIB+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   if test -n "$RANLIB"; then
7348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363
7364 fi
7365 fi
7366 RANLIB=$ac_cv_prog_RANLIB
7367 if test -n "$RANLIB"; then
7368   echo "$as_me:$LINENO: result: $RANLIB" >&5
7369 echo "${ECHO_T}$RANLIB" >&6
7370 else
7371   echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7373 fi
7374
7375 fi
7376 if test -z "$ac_cv_prog_RANLIB"; then
7377   ac_ct_RANLIB=$RANLIB
7378   # Extract the first word of "ranlib", so it can be a program name with args.
7379 set dummy ranlib; ac_word=$2
7380 echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   if test -n "$ac_ct_RANLIB"; then
7386   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   for ac_exec_ext in '' $ac_executable_extensions; do
7394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395     ac_cv_prog_ac_ct_RANLIB="ranlib"
7396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400 done
7401
7402   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7403 fi
7404 fi
7405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7406 if test -n "$ac_ct_RANLIB"; then
7407   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7409 else
7410   echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7412 fi
7413
7414   RANLIB=$ac_ct_RANLIB
7415 else
7416   RANLIB="$ac_cv_prog_RANLIB"
7417 fi
7418
7419 if test -n "$ac_tool_prefix"; then
7420   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}strip; ac_word=$2
7422 echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_STRIP+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   if test -n "$STRIP"; then
7428   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443
7444 fi
7445 fi
7446 STRIP=$ac_cv_prog_STRIP
7447 if test -n "$STRIP"; then
7448   echo "$as_me:$LINENO: result: $STRIP" >&5
7449 echo "${ECHO_T}$STRIP" >&6
7450 else
7451   echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453 fi
7454
7455 fi
7456 if test -z "$ac_cv_prog_STRIP"; then
7457   ac_ct_STRIP=$STRIP
7458   # Extract the first word of "strip", so it can be a program name with args.
7459 set dummy strip; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   if test -n "$ac_ct_STRIP"; then
7466   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_ac_ct_STRIP="strip"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481
7482   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7483 fi
7484 fi
7485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7486 if test -n "$ac_ct_STRIP"; then
7487   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7488 echo "${ECHO_T}$ac_ct_STRIP" >&6
7489 else
7490   echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494   STRIP=$ac_ct_STRIP
7495 else
7496   STRIP="$ac_cv_prog_STRIP"
7497 fi
7498
7499
7500 old_CC="$CC"
7501 old_CFLAGS="$CFLAGS"
7502
7503 # Set sane defaults for various variables
7504 test -z "$AR" && AR=ar
7505 test -z "$AR_FLAGS" && AR_FLAGS=cru
7506 test -z "$AS" && AS=as
7507 test -z "$CC" && CC=cc
7508 test -z "$LTCC" && LTCC=$CC
7509 test -z "$DLLTOOL" && DLLTOOL=dlltool
7510 test -z "$LD" && LD=ld
7511 test -z "$LN_S" && LN_S="ln -s"
7512 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7513 test -z "$NM" && NM=nm
7514 test -z "$SED" && SED=sed
7515 test -z "$OBJDUMP" && OBJDUMP=objdump
7516 test -z "$RANLIB" && RANLIB=:
7517 test -z "$STRIP" && STRIP=:
7518 test -z "$ac_objext" && ac_objext=o
7519
7520 # Determine commands to create old-style static archives.
7521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7522 old_postinstall_cmds='chmod 644 $oldlib'
7523 old_postuninstall_cmds=
7524
7525 if test -n "$RANLIB"; then
7526   case $host_os in
7527   openbsd*)
7528     old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
7529     ;;
7530   *)
7531     old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
7532     ;;
7533   esac
7534   old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
7535 fi
7536
7537 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7538
7539 # Only perform the check for file, if the check method requires it
7540 case $deplibs_check_method in
7541 file_magic*)
7542   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7543     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7544 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   case $MAGIC_CMD in
7549 [\\/*] |  ?:[\\/]*)
7550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7551   ;;
7552 *)
7553   lt_save_MAGIC_CMD="$MAGIC_CMD"
7554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7556   for ac_dir in $ac_dummy; do
7557     IFS="$lt_save_ifs"
7558     test -z "$ac_dir" && ac_dir=.
7559     if test -f $ac_dir/${ac_tool_prefix}file; then
7560       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7561       if test -n "$file_magic_test_file"; then
7562         case $deplibs_check_method in
7563         "file_magic "*)
7564           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7567             $EGREP "$file_magic_regex" > /dev/null; then
7568             :
7569           else
7570             cat <<EOF 1>&2
7571
7572 *** Warning: the command libtool uses to detect shared libraries,
7573 *** $file_magic_cmd, produces output that libtool cannot recognize.
7574 *** The result is that libtool may fail to recognize shared libraries
7575 *** as such.  This will affect the creation of libtool libraries that
7576 *** depend on shared libraries, but programs linked with such libtool
7577 *** libraries will work regardless of this problem.  Nevertheless, you
7578 *** may want to report the problem to your system manager and/or to
7579 *** bug-libtool@gnu.org
7580
7581 EOF
7582           fi ;;
7583         esac
7584       fi
7585       break
7586     fi
7587   done
7588   IFS="$lt_save_ifs"
7589   MAGIC_CMD="$lt_save_MAGIC_CMD"
7590   ;;
7591 esac
7592 fi
7593
7594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595 if test -n "$MAGIC_CMD"; then
7596   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7597 echo "${ECHO_T}$MAGIC_CMD" >&6
7598 else
7599   echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6
7601 fi
7602
7603 if test -z "$lt_cv_path_MAGIC_CMD"; then
7604   if test -n "$ac_tool_prefix"; then
7605     echo "$as_me:$LINENO: checking for file" >&5
7606 echo $ECHO_N "checking for file... $ECHO_C" >&6
7607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $MAGIC_CMD in
7611 [\\/*] |  ?:[\\/]*)
7612   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7613   ;;
7614 *)
7615   lt_save_MAGIC_CMD="$MAGIC_CMD"
7616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618   for ac_dir in $ac_dummy; do
7619     IFS="$lt_save_ifs"
7620     test -z "$ac_dir" && ac_dir=.
7621     if test -f $ac_dir/file; then
7622       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623       if test -n "$file_magic_test_file"; then
7624         case $deplibs_check_method in
7625         "file_magic "*)
7626           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7627           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629             $EGREP "$file_magic_regex" > /dev/null; then
7630             :
7631           else
7632             cat <<EOF 1>&2
7633
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such.  This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem.  Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7642
7643 EOF
7644           fi ;;
7645         esac
7646       fi
7647       break
7648     fi
7649   done
7650   IFS="$lt_save_ifs"
7651   MAGIC_CMD="$lt_save_MAGIC_CMD"
7652   ;;
7653 esac
7654 fi
7655
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7659 echo "${ECHO_T}$MAGIC_CMD" >&6
7660 else
7661   echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7663 fi
7664
7665   else
7666     MAGIC_CMD=:
7667   fi
7668 fi
7669
7670   fi
7671   ;;
7672 esac
7673
7674 enable_dlopen=no
7675 enable_win32_dll=no
7676
7677 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7678 if test "${enable_libtool_lock+set}" = set; then
7679   enableval="$enable_libtool_lock"
7680
7681 fi;
7682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7683
7684
7685 # Check whether --with-pic or --without-pic was given.
7686 if test "${with_pic+set}" = set; then
7687   withval="$with_pic"
7688   pic_mode="$withval"
7689 else
7690   pic_mode=default
7691 fi;
7692 test -z "$pic_mode" && pic_mode=default
7693
7694 # Use C for the default configuration in the libtool script
7695 tagname=
7696 lt_save_CC="$CC"
7697 ac_ext=c
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702
7703
7704 # Source file extension for C test sources.
7705 ac_ext=c
7706
7707 # Object file extension for compiled C test sources.
7708 objext=o
7709 objext=$objext
7710
7711 # Code to be used in simple compile tests
7712 lt_simple_compile_test_code="int some_variable = 0;\n"
7713
7714 # Code to be used in simple link tests
7715 lt_simple_link_test_code='int main(){return(0);}\n'
7716
7717
7718 # If no C compiler was specified, use CC.
7719 LTCC=${LTCC-"$CC"}
7720
7721 # Allow CC to be a program name with arguments.
7722 compiler=$CC
7723
7724
7725 #
7726 # Check for any special shared library compilation flags.
7727 #
7728 lt_prog_cc_shlib=
7729 if test "$GCC" = no; then
7730   case $host_os in
7731   sco3.2v5*)
7732     lt_prog_cc_shlib='-belf'
7733     ;;
7734   esac
7735 fi
7736 if test -n "$lt_prog_cc_shlib"; then
7737   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7738 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7739   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7740   else
7741     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7742 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7743     lt_cv_prog_cc_can_build_shared=no
7744   fi
7745 fi
7746
7747
7748 #
7749 # Check to make sure the static flag actually works.
7750 #
7751 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7752 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7753 if test "${lt_prog_compiler_static_works+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   lt_prog_compiler_static_works=no
7757    save_LDFLAGS="$LDFLAGS"
7758    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7759    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7760    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7761      # The compiler can only warn and ignore the option if not recognized
7762      # So say no if there are warnings
7763      if test -s conftest.err; then
7764        # Append any errors to the config.log.
7765        cat conftest.err 1>&5
7766      else
7767        lt_prog_compiler_static_works=yes
7768      fi
7769    fi
7770    $rm conftest*
7771    LDFLAGS="$save_LDFLAGS"
7772
7773 fi
7774 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7775 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7776
7777 if test x"$lt_prog_compiler_static_works" = xyes; then
7778     :
7779 else
7780     lt_prog_compiler_static=
7781 fi
7782
7783
7784
7785
7786 lt_prog_compiler_no_builtin_flag=
7787
7788 if test "$GCC" = yes; then
7789   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7790
7791
7792 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7793 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7794 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797   lt_cv_prog_compiler_rtti_exceptions=no
7798   ac_outfile=conftest.$ac_objext
7799    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7800    lt_compiler_flag="-fno-rtti -fno-exceptions"
7801    # Insert the option either (1) after the last *FLAGS variable, or
7802    # (2) before a word containing "conftest.", or (3) at the end.
7803    # Note that $ac_compile itself does not contain backslashes and begins
7804    # with a dollar sign (not a hyphen), so the echo should work correctly.
7805    # The option is referenced via a variable to avoid confusing sed.
7806    lt_compile=`echo "$ac_compile" | $SED \
7807    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7809    -e 's:$: $lt_compiler_flag:'`
7810    (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
7811    (eval "$lt_compile" 2>conftest.err)
7812    ac_status=$?
7813    cat conftest.err >&5
7814    echo "$as_me:7814: \$? = $ac_status" >&5
7815    if (exit $ac_status) && test -s "$ac_outfile"; then
7816      # The compiler can only warn and ignore the option if not recognized
7817      # So say no if there are warnings
7818      if test ! -s conftest.err; then
7819        lt_cv_prog_compiler_rtti_exceptions=yes
7820      fi
7821    fi
7822    $rm conftest*
7823
7824 fi
7825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7827
7828 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7829     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7830 else
7831     :
7832 fi
7833
7834 fi
7835
7836 lt_prog_compiler_wl=
7837 lt_prog_compiler_pic=
7838 lt_prog_compiler_static=
7839
7840 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7841 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7842
7843   if test "$GCC" = yes; then
7844     lt_prog_compiler_wl='-Wl,'
7845     lt_prog_compiler_static='-static'
7846
7847     case $host_os in
7848       aix*)
7849       # All AIX code is PIC.
7850       if test "$host_cpu" = ia64; then
7851         # AIX 5 now supports IA64 processor
7852         lt_prog_compiler_static='-Bstatic'
7853       fi
7854       ;;
7855
7856     amigaos*)
7857       # FIXME: we need at least 68020 code to build shared libraries, but
7858       # adding the `-m68020' flag to GCC prevents building anything better,
7859       # like `-m68040'.
7860       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7861       ;;
7862
7863     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7864       # PIC is the default for these OSes.
7865       ;;
7866
7867     mingw* | pw32* | os2*)
7868       # This hack is so that the source file can tell whether it is being
7869       # built for inclusion in a dll (and should export symbols for example).
7870       lt_prog_compiler_pic='-DDLL_EXPORT'
7871       ;;
7872
7873     darwin* | rhapsody*)
7874       # PIC is the default on this platform
7875       # Common symbols not allowed in MH_DYLIB files
7876       lt_prog_compiler_pic='-fno-common'
7877       ;;
7878
7879     msdosdjgpp*)
7880       # Just because we use GCC doesn't mean we suddenly get shared libraries
7881       # on systems that don't support them.
7882       lt_prog_compiler_can_build_shared=no
7883       enable_shared=no
7884       ;;
7885
7886     sysv4*MP*)
7887       if test -d /usr/nec; then
7888         lt_prog_compiler_pic=-Kconform_pic
7889       fi
7890       ;;
7891
7892     hpux*)
7893       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7894       # not for PA HP-UX.
7895       case "$host_cpu" in
7896       hppa*64*|ia64*)
7897         # +Z the default
7898         ;;
7899       *)
7900         lt_prog_compiler_pic='-fPIC'
7901         ;;
7902       esac
7903       ;;
7904
7905     *)
7906       lt_prog_compiler_pic='-fPIC'
7907       ;;
7908     esac
7909   else
7910     # PORTME Check for flag to pass linker flags through the system compiler.
7911     case $host_os in
7912     aix*)
7913       lt_prog_compiler_wl='-Wl,'
7914       if test "$host_cpu" = ia64; then
7915         # AIX 5 now supports IA64 processor
7916         lt_prog_compiler_static='-Bstatic'
7917       else
7918         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7919       fi
7920       ;;
7921       darwin*)
7922         # PIC is the default on this platform
7923         # Common symbols not allowed in MH_DYLIB files
7924        case "$cc_basename" in
7925          xlc*)
7926          lt_prog_compiler_pic='-qnocommon'
7927          lt_prog_compiler_wl='-Wl,'
7928          ;;
7929        esac
7930        ;;
7931
7932     mingw* | pw32* | os2*)
7933       # This hack is so that the source file can tell whether it is being
7934       # built for inclusion in a dll (and should export symbols for example).
7935       lt_prog_compiler_pic='-DDLL_EXPORT'
7936       ;;
7937
7938     hpux9* | hpux10* | hpux11*)
7939       lt_prog_compiler_wl='-Wl,'
7940       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7941       # not for PA HP-UX.
7942       case "$host_cpu" in
7943       hppa*64*|ia64*)
7944         # +Z the default
7945         ;;
7946       *)
7947         lt_prog_compiler_pic='+Z'
7948         ;;
7949       esac
7950       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951       lt_prog_compiler_static='${wl}-a ${wl}archive'
7952       ;;
7953
7954     irix5* | irix6* | nonstopux*)
7955       lt_prog_compiler_wl='-Wl,'
7956       # PIC (with -KPIC) is the default.
7957       lt_prog_compiler_static='-non_shared'
7958       ;;
7959
7960     newsos6)
7961       lt_prog_compiler_pic='-KPIC'
7962       lt_prog_compiler_static='-Bstatic'
7963       ;;
7964
7965     linux*)
7966       case $CC in
7967       icc* | ecc*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='-KPIC'
7970         lt_prog_compiler_static='-static'
7971         ;;
7972       ccc*)
7973         lt_prog_compiler_wl='-Wl,'
7974         # All Alpha code is PIC.
7975         lt_prog_compiler_static='-non_shared'
7976         ;;
7977       esac
7978       ;;
7979
7980     osf3* | osf4* | osf5*)
7981       lt_prog_compiler_wl='-Wl,'
7982       # All OSF/1 code is PIC.
7983       lt_prog_compiler_static='-non_shared'
7984       ;;
7985
7986     sco3.2v5*)
7987       lt_prog_compiler_pic='-Kpic'
7988       lt_prog_compiler_static='-dn'
7989       ;;
7990
7991     solaris*)
7992       lt_prog_compiler_wl='-Wl,'
7993       lt_prog_compiler_pic='-KPIC'
7994       lt_prog_compiler_static='-Bstatic'
7995       ;;
7996
7997     sunos4*)
7998       lt_prog_compiler_wl='-Qoption ld '
7999       lt_prog_compiler_pic='-PIC'
8000       lt_prog_compiler_static='-Bstatic'
8001       ;;
8002
8003     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8004       lt_prog_compiler_wl='-Wl,'
8005       lt_prog_compiler_pic='-KPIC'
8006       lt_prog_compiler_static='-Bstatic'
8007       ;;
8008
8009     sysv4*MP*)
8010       if test -d /usr/nec ;then
8011         lt_prog_compiler_pic='-Kconform_pic'
8012         lt_prog_compiler_static='-Bstatic'
8013       fi
8014       ;;
8015
8016     uts4*)
8017       lt_prog_compiler_pic='-pic'
8018       lt_prog_compiler_static='-Bstatic'
8019       ;;
8020
8021     *)
8022       lt_prog_compiler_can_build_shared=no
8023       ;;
8024     esac
8025   fi
8026
8027 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8029
8030 #
8031 # Check to make sure the PIC flag actually works.
8032 #
8033 if test -n "$lt_prog_compiler_pic"; then
8034
8035 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8037 if test "${lt_prog_compiler_pic_works+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_prog_compiler_pic_works=no
8041   ac_outfile=conftest.$ac_objext
8042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044    # Insert the option either (1) after the last *FLAGS variable, or
8045    # (2) before a word containing "conftest.", or (3) at the end.
8046    # Note that $ac_compile itself does not contain backslashes and begins
8047    # with a dollar sign (not a hyphen), so the echo should work correctly.
8048    # The option is referenced via a variable to avoid confusing sed.
8049    lt_compile=`echo "$ac_compile" | $SED \
8050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052    -e 's:$: $lt_compiler_flag:'`
8053    (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054    (eval "$lt_compile" 2>conftest.err)
8055    ac_status=$?
8056    cat conftest.err >&5
8057    echo "$as_me:8057: \$? = $ac_status" >&5
8058    if (exit $ac_status) && test -s "$ac_outfile"; then
8059      # The compiler can only warn and ignore the option if not recognized
8060      # So say no if there are warnings
8061      if test ! -s conftest.err; then
8062        lt_prog_compiler_pic_works=yes
8063      fi
8064    fi
8065    $rm conftest*
8066
8067 fi
8068 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8069 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8070
8071 if test x"$lt_prog_compiler_pic_works" = xyes; then
8072     case $lt_prog_compiler_pic in
8073      "" | " "*) ;;
8074      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8075      esac
8076 else
8077     lt_prog_compiler_pic=
8078      lt_prog_compiler_can_build_shared=no
8079 fi
8080
8081 fi
8082 case "$host_os" in
8083   # For platforms which do not support PIC, -DPIC is meaningless:
8084   *djgpp*)
8085     lt_prog_compiler_pic=
8086     ;;
8087   *)
8088     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089     ;;
8090 esac
8091
8092 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8094 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   lt_cv_prog_compiler_c_o=no
8098    $rm -r conftest 2>/dev/null
8099    mkdir conftest
8100    cd conftest
8101    mkdir out
8102    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8103
8104    lt_compiler_flag="-o out/conftest2.$ac_objext"
8105    # Insert the option either (1) after the last *FLAGS variable, or
8106    # (2) before a word containing "conftest.", or (3) at the end.
8107    # Note that $ac_compile itself does not contain backslashes and begins
8108    # with a dollar sign (not a hyphen), so the echo should work correctly.
8109    lt_compile=`echo "$ac_compile" | $SED \
8110    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112    -e 's:$: $lt_compiler_flag:'`
8113    (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114    (eval "$lt_compile" 2>out/conftest.err)
8115    ac_status=$?
8116    cat out/conftest.err >&5
8117    echo "$as_me:8117: \$? = $ac_status" >&5
8118    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8119    then
8120      # The compiler can only warn and ignore the option if not recognized
8121      # So say no if there are warnings
8122      if test ! -s out/conftest.err; then
8123        lt_cv_prog_compiler_c_o=yes
8124      fi
8125    fi
8126    chmod u+w .
8127    $rm conftest*
8128    # SGI C++ compiler will create directory out/ii_files/ for
8129    # template instantiation
8130    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8131    $rm out/* && rmdir out
8132    cd ..
8133    rmdir conftest
8134    $rm conftest*
8135
8136 fi
8137 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8138 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8139
8140
8141 hard_links="nottested"
8142 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143   # do not overwrite the value of need_locks provided by the user
8144   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8145 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8146   hard_links=yes
8147   $rm conftest*
8148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149   touch conftest.a
8150   ln conftest.a conftest.b 2>&5 || hard_links=no
8151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152   echo "$as_me:$LINENO: result: $hard_links" >&5
8153 echo "${ECHO_T}$hard_links" >&6
8154   if test "$hard_links" = no; then
8155     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157     need_locks=warn
8158   fi
8159 else
8160   need_locks=no
8161 fi
8162
8163 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8164 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8165
8166   runpath_var=
8167   allow_undefined_flag=
8168   enable_shared_with_static_runtimes=no
8169   archive_cmds=
8170   archive_expsym_cmds=
8171   old_archive_From_new_cmds=
8172   old_archive_from_expsyms_cmds=
8173   export_dynamic_flag_spec=
8174   whole_archive_flag_spec=
8175   thread_safe_flag_spec=
8176   hardcode_libdir_flag_spec=
8177   hardcode_libdir_flag_spec_ld=
8178   hardcode_libdir_separator=
8179   hardcode_direct=no
8180   hardcode_minus_L=no
8181   hardcode_shlibpath_var=unsupported
8182   link_all_deplibs=unknown
8183   hardcode_automatic=no
8184   module_cmds=
8185   module_expsym_cmds=
8186   always_export_symbols=no
8187   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188   # include_expsyms should be a list of space-separated symbols to be *always*
8189   # included in the symbol list
8190   include_expsyms=
8191   # exclude_expsyms can be an extended regexp of symbols to exclude
8192   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8193   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8194   # as well as any symbol that contains `d'.
8195   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8196   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8197   # platforms (ab)use it in PIC code, but their linkers get confused if
8198   # the symbol is explicitly referenced.  Since portable code cannot
8199   # rely on this symbol name, it's probably fine to never include it in
8200   # preloaded symbol tables.
8201   extract_expsyms_cmds=
8202
8203   case $host_os in
8204   cygwin* | mingw* | pw32*)
8205     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8206     # When not using gcc, we currently assume that we are using
8207     # Microsoft Visual C++.
8208     if test "$GCC" != yes; then
8209       with_gnu_ld=no
8210     fi
8211     ;;
8212   openbsd*)
8213     with_gnu_ld=no
8214     ;;
8215   esac
8216
8217   ld_shlibs=yes
8218   if test "$with_gnu_ld" = yes; then
8219     # If archive_cmds runs LD, not CC, wlarc should be empty
8220     wlarc='${wl}'
8221
8222     # See if GNU ld supports shared libraries.
8223     case $host_os in
8224     aix3* | aix4* | aix5*)
8225       # On AIX/PPC, the GNU linker is very broken
8226       if test "$host_cpu" != ia64; then
8227         ld_shlibs=no
8228         cat <<EOF 1>&2
8229
8230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support.  If you
8233 *** really care for shared libraries, you may want to modify your PATH
8234 *** so that a non-GNU linker is found, and then restart.
8235
8236 EOF
8237       fi
8238       ;;
8239
8240     amigaos*)
8241       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)'
8242       hardcode_libdir_flag_spec='-L$libdir'
8243       hardcode_minus_L=yes
8244
8245       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246       # that the semantics of dynamic libraries on AmigaOS, at least up
8247       # to version 4, is to share data among multiple programs linked
8248       # with the same dynamic library.  Since this doesn't match the
8249       # behavior of shared libraries on other platforms, we can't use
8250       # them.
8251       ld_shlibs=no
8252       ;;
8253
8254     beos*)
8255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256         allow_undefined_flag=unsupported
8257         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258         # support --undefined.  This deserves some investigation.  FIXME
8259         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     cygwin* | mingw* | pw32*)
8266       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267       # as there is no search path for DLLs.
8268       hardcode_libdir_flag_spec='-L$libdir'
8269       allow_undefined_flag=unsupported
8270       always_export_symbols=no
8271       enable_shared_with_static_runtimes=yes
8272       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8273
8274       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8276         # If the export-symbols file already is a .def file (1st line
8277         # is EXPORTS), use it as is; otherwise, prepend...
8278         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279           cp $export_symbols $output_objdir/$soname.def;
8280         else
8281           echo EXPORTS > $output_objdir/$soname.def;
8282           cat $export_symbols >> $output_objdir/$soname.def;
8283         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8284       else
8285         ld_shlibs=no
8286       fi
8287       ;;
8288
8289     netbsd*)
8290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8291         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8292         wlarc=
8293       else
8294         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296       fi
8297       ;;
8298
8299     solaris* | sysv5*)
8300       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8301         ld_shlibs=no
8302         cat <<EOF 1>&2
8303
8304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8305 *** create shared libraries on Solaris systems.  Therefore, libtool
8306 *** is disabling shared libraries support.  We urge you to upgrade GNU
8307 *** binutils to release 2.9.1 or newer.  Another option is to modify
8308 *** your PATH or compiler configuration so that the native linker is
8309 *** used, and then restart.
8310
8311 EOF
8312       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315       else
8316         ld_shlibs=no
8317       fi
8318       ;;
8319
8320     sunos4*)
8321       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322       wlarc=
8323       hardcode_direct=yes
8324       hardcode_shlibpath_var=no
8325       ;;
8326
8327   linux*)
8328     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8329         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330         archive_cmds="$tmp_archive_cmds"
8331       supports_anon_versioning=no
8332       case `$LD -v 2>/dev/null` in
8333         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8334         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8335         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8336         *\ 2.11.*) ;; # other 2.11 versions
8337         *) supports_anon_versioning=yes ;;
8338       esac
8339       if test $supports_anon_versioning = yes; then
8340         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
8341         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8342       else
8343         archive_expsym_cmds="$tmp_archive_cmds"
8344       fi
8345     else
8346       ld_shlibs=no
8347     fi
8348     ;;
8349
8350     *)
8351       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354       else
8355         ld_shlibs=no
8356       fi
8357       ;;
8358     esac
8359
8360     if test "$ld_shlibs" = yes; then
8361       runpath_var=LD_RUN_PATH
8362       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8363       export_dynamic_flag_spec='${wl}--export-dynamic'
8364       # ancient GNU ld didn't support --whole-archive et. al.
8365       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8366         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8367       else
8368         whole_archive_flag_spec=
8369       fi
8370     fi
8371   else
8372     # PORTME fill in a description of your system's linker (not GNU ld)
8373     case $host_os in
8374     aix3*)
8375       allow_undefined_flag=unsupported
8376       always_export_symbols=yes
8377       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'
8378       # Note: this linker hardcodes the directories in LIBPATH if there
8379       # are no directories specified by -L.
8380       hardcode_minus_L=yes
8381       if test "$GCC" = yes && test -z "$link_static_flag"; then
8382         # Neither direct hardcoding nor static linking is supported with a
8383         # broken collect2.
8384         hardcode_direct=unsupported
8385       fi
8386       ;;
8387
8388     aix4* | aix5*)
8389       if test "$host_cpu" = ia64; then
8390         # On IA64, the linker does run time linking by default, so we don't
8391         # have to do anything special.
8392         aix_use_runtimelinking=no
8393         exp_sym_flag='-Bexport'
8394         no_entry_flag=""
8395       else
8396         # If we're using GNU nm, then we don't want the "-C" option.
8397         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8398         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8399           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'
8400         else
8401           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'
8402         fi
8403         aix_use_runtimelinking=no
8404
8405         # Test if we are trying to use run time linking or normal
8406         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407         # need to do runtime linking.
8408         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8409           for ld_flag in $LDFLAGS; do
8410           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411             aix_use_runtimelinking=yes
8412             break
8413           fi
8414           done
8415         esac
8416
8417         exp_sym_flag='-bexport'
8418         no_entry_flag='-bnoentry'
8419       fi
8420
8421       # When large executables or shared objects are built, AIX ld can
8422       # have problems creating the table of contents.  If linking a library
8423       # or program results in "error TOC overflow" add -mminimal-toc to
8424       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8425       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8426
8427       archive_cmds=''
8428       hardcode_direct=yes
8429       hardcode_libdir_separator=':'
8430       link_all_deplibs=yes
8431
8432       if test "$GCC" = yes; then
8433         case $host_os in aix4.012|aix4.012.*)
8434         # We only want to do this on AIX 4.2 and lower, the check
8435         # below for broken collect2 doesn't work under 4.3+
8436           collect2name=`${CC} -print-prog-name=collect2`
8437           if test -f "$collect2name" && \
8438            strings "$collect2name" | grep resolve_lib_name >/dev/null
8439           then
8440           # We have reworked collect2
8441           hardcode_direct=yes
8442           else
8443           # We have old collect2
8444           hardcode_direct=unsupported
8445           # It fails to find uninstalled libraries when the uninstalled
8446           # path is not listed in the libpath.  Setting hardcode_minus_L
8447           # to unsupported forces relinking
8448           hardcode_minus_L=yes
8449           hardcode_libdir_flag_spec='-L$libdir'
8450           hardcode_libdir_separator=
8451           fi
8452         esac
8453         shared_flag='-shared'
8454       else
8455         # not using gcc
8456         if test "$host_cpu" = ia64; then
8457         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8458         # chokes on -Wl,-G. The following line is correct:
8459           shared_flag='-G'
8460         else
8461         if test "$aix_use_runtimelinking" = yes; then
8462             shared_flag='${wl}-G'
8463           else
8464             shared_flag='${wl}-bM:SRE'
8465         fi
8466         fi
8467       fi
8468
8469       # It seems that -bexpall does not export symbols beginning with
8470       # underscore (_), so it is better to generate a list of symbols to export.
8471       always_export_symbols=yes
8472       if test "$aix_use_runtimelinking" = yes; then
8473         # Warning - without using the other runtime loading flags (-brtl),
8474         # -berok will link without error, but may produce a broken library.
8475         allow_undefined_flag='-berok'
8476        # Determine the default libpath from the value encoded in an empty executable.
8477        cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483
8484 int
8485 main ()
8486 {
8487
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494   (eval $ac_link) 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -z "$ac_c_werror_flag"
8502                          || test ! -s conftest.err'
8503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504   (eval $ac_try) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; } &&
8508          { ac_try='test -s conftest$ac_exeext'
8509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514
8515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8516 }'`
8517 # Check for a 64-bit object if we didn't find anything.
8518 if 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; }
8519 }'`; fi
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 fi
8525 rm -f conftest.err conftest.$ac_objext \
8526       conftest$ac_exeext conftest.$ac_ext
8527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8528
8529        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8530         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8531        else
8532         if test "$host_cpu" = ia64; then
8533           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8534           allow_undefined_flag="-z nodefs"
8535           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8536         else
8537          # Determine the default libpath from the value encoded in an empty executable.
8538          cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555   (eval $ac_link) 2>conftest.er1
8556   ac_status=$?
8557   grep -v '^ *+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -z "$ac_c_werror_flag"
8563                          || test ! -s conftest.err'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; } &&
8569          { ac_try='test -s conftest$ac_exeext'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575
8576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8577 }'`
8578 # Check for a 64-bit object if we didn't find anything.
8579 if 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; }
8580 }'`; fi
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 fi
8586 rm -f conftest.err conftest.$ac_objext \
8587       conftest$ac_exeext conftest.$ac_ext
8588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591           # Warning - without using the other run time loading flags,
8592           # -berok will link without error, but may produce a broken library.
8593           no_undefined_flag=' ${wl}-bernotok'
8594           allow_undefined_flag=' ${wl}-berok'
8595           # -bexpall does not export symbols beginning with underscore (_)
8596           always_export_symbols=yes
8597           # Exported symbols can be pulled into shared objects from archives
8598           whole_archive_flag_spec=' '
8599           archive_cmds_need_lc=yes
8600           # This is similar to how AIX traditionally builds it's shared libraries.
8601           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8602         fi
8603       fi
8604       ;;
8605
8606     amigaos*)
8607       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)'
8608       hardcode_libdir_flag_spec='-L$libdir'
8609       hardcode_minus_L=yes
8610       # see comment about different semantics on the GNU ld section
8611       ld_shlibs=no
8612       ;;
8613
8614     bsdi[45]*)
8615       export_dynamic_flag_spec=-rdynamic
8616       ;;
8617
8618     cygwin* | mingw* | pw32*)
8619       # When not using gcc, we currently assume that we are using
8620       # Microsoft Visual C++.
8621       # hardcode_libdir_flag_spec is actually meaningless, as there is
8622       # no search path for DLLs.
8623       hardcode_libdir_flag_spec=' '
8624       allow_undefined_flag=unsupported
8625       # Tell ltmain to make .lib files, not .a files.
8626       libext=lib
8627       # Tell ltmain to make .dll files, not .so files.
8628       shrext_cmds=".dll"
8629       # FIXME: Setting linknames here is a bad hack.
8630       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
8631       # The linker will automatically build a .lib file if we build a DLL.
8632       old_archive_From_new_cmds='true'
8633       # FIXME: Should let the user specify the lib program.
8634       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8635       fix_srcfile_path='`cygpath -w "$srcfile"`'
8636       enable_shared_with_static_runtimes=yes
8637       ;;
8638
8639     darwin* | rhapsody*)
8640       case "$host_os" in
8641         rhapsody* | darwin1.[012])
8642          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8643          ;;
8644        *) # Darwin 1.3 on
8645          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8646            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8647          else
8648            case ${MACOSX_DEPLOYMENT_TARGET} in
8649              10.[012])
8650                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8651                ;;
8652              10.*)
8653                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8654                ;;
8655            esac
8656          fi
8657          ;;
8658       esac
8659       archive_cmds_need_lc=no
8660       hardcode_direct=no
8661       hardcode_automatic=yes
8662       hardcode_shlibpath_var=unsupported
8663       whole_archive_flag_spec=''
8664       link_all_deplibs=yes
8665     if test "$GCC" = yes ; then
8666         output_verbose_link_cmd='echo'
8667         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8668       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8669       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8670       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}'
8671       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}'
8672     else
8673       case "$cc_basename" in
8674         xlc*)
8675          output_verbose_link_cmd='echo'
8676          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8677          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8679          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}'
8680           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}'
8681           ;;
8682        *)
8683          ld_shlibs=no
8684           ;;
8685       esac
8686     fi
8687       ;;
8688
8689     dgux*)
8690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691       hardcode_libdir_flag_spec='-L$libdir'
8692       hardcode_shlibpath_var=no
8693       ;;
8694
8695     freebsd1*)
8696       ld_shlibs=no
8697       ;;
8698
8699     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700     # support.  Future versions do this automatically, but an explicit c++rt0.o
8701     # does not break anything, and helps significantly (at the cost of a little
8702     # extra space).
8703     freebsd2.2*)
8704       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705       hardcode_libdir_flag_spec='-R$libdir'
8706       hardcode_direct=yes
8707       hardcode_shlibpath_var=no
8708       ;;
8709
8710     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8711     freebsd2*)
8712       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713       hardcode_direct=yes
8714       hardcode_minus_L=yes
8715       hardcode_shlibpath_var=no
8716       ;;
8717
8718     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719     freebsd* | kfreebsd*-gnu)
8720       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721       hardcode_libdir_flag_spec='-R$libdir'
8722       hardcode_direct=yes
8723       hardcode_shlibpath_var=no
8724       ;;
8725
8726     hpux9*)
8727       if test "$GCC" = yes; then
8728         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'
8729       else
8730         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'
8731       fi
8732       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733       hardcode_libdir_separator=:
8734       hardcode_direct=yes
8735
8736       # hardcode_minus_L: Not really in the search PATH,
8737       # but as the default location of the library.
8738       hardcode_minus_L=yes
8739       export_dynamic_flag_spec='${wl}-E'
8740       ;;
8741
8742     hpux10* | hpux11*)
8743       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8744         case "$host_cpu" in
8745         hppa*64*|ia64*)
8746           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747           ;;
8748         *)
8749           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750           ;;
8751         esac
8752       else
8753         case "$host_cpu" in
8754         hppa*64*|ia64*)
8755           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8756           ;;
8757         *)
8758           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8759           ;;
8760         esac
8761       fi
8762       if test "$with_gnu_ld" = no; then
8763         case "$host_cpu" in
8764         hppa*64*)
8765           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766           hardcode_libdir_flag_spec_ld='+b $libdir'
8767           hardcode_libdir_separator=:
8768           hardcode_direct=no
8769           hardcode_shlibpath_var=no
8770           ;;
8771         ia64*)
8772           hardcode_libdir_flag_spec='-L$libdir'
8773           hardcode_direct=no
8774           hardcode_shlibpath_var=no
8775
8776           # hardcode_minus_L: Not really in the search PATH,
8777           # but as the default location of the library.
8778           hardcode_minus_L=yes
8779           ;;
8780         *)
8781           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782           hardcode_libdir_separator=:
8783           hardcode_direct=yes
8784           export_dynamic_flag_spec='${wl}-E'
8785
8786           # hardcode_minus_L: Not really in the search PATH,
8787           # but as the default location of the library.
8788           hardcode_minus_L=yes
8789           ;;
8790         esac
8791       fi
8792       ;;
8793
8794     irix5* | irix6* | nonstopux*)
8795       if test "$GCC" = yes; then
8796         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'
8797       else
8798         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'
8799         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8800       fi
8801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802       hardcode_libdir_separator=:
8803       link_all_deplibs=yes
8804       ;;
8805
8806     netbsd*)
8807       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8808         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8809       else
8810         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8811       fi
8812       hardcode_libdir_flag_spec='-R$libdir'
8813       hardcode_direct=yes
8814       hardcode_shlibpath_var=no
8815       ;;
8816
8817     newsos6)
8818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8819       hardcode_direct=yes
8820       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821       hardcode_libdir_separator=:
8822       hardcode_shlibpath_var=no
8823       ;;
8824
8825     openbsd*)
8826       hardcode_direct=yes
8827       hardcode_shlibpath_var=no
8828       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8829         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8831         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832         export_dynamic_flag_spec='${wl}-E'
8833       else
8834        case $host_os in
8835          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8836            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8837            hardcode_libdir_flag_spec='-R$libdir'
8838            ;;
8839          *)
8840            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8841            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8842            ;;
8843        esac
8844       fi
8845       ;;
8846
8847     os2*)
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       hardcode_minus_L=yes
8850       allow_undefined_flag=unsupported
8851       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'
8852       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8853       ;;
8854
8855     osf3*)
8856       if test "$GCC" = yes; then
8857         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858         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'
8859       else
8860         allow_undefined_flag=' -expect_unresolved \*'
8861         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'
8862       fi
8863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864       hardcode_libdir_separator=:
8865       ;;
8866
8867     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8868       if test "$GCC" = yes; then
8869         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8870         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'
8871         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872       else
8873         allow_undefined_flag=' -expect_unresolved \*'
8874         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'
8875         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
8876         # Both c and cxx compiler support -rpath directly
8877         hardcode_libdir_flag_spec='-rpath $libdir'
8878       fi
8879       hardcode_libdir_separator=:
8880       ;;
8881
8882     sco3.2v5*)
8883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884       hardcode_shlibpath_var=no
8885       export_dynamic_flag_spec='${wl}-Bexport'
8886       runpath_var=LD_RUN_PATH
8887       hardcode_runpath_var=yes
8888       ;;
8889
8890     solaris*)
8891       no_undefined_flag=' -z text'
8892       if test "$GCC" = yes; then
8893         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
8895       else
8896         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8898       fi
8899       hardcode_libdir_flag_spec='-R$libdir'
8900       hardcode_shlibpath_var=no
8901       case $host_os in
8902       solaris2.[0-5] | solaris2.[0-5].*) ;;
8903       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8904         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8905       esac
8906       link_all_deplibs=yes
8907       ;;
8908
8909     sunos4*)
8910       if test "x$host_vendor" = xsequent; then
8911         # Use $CC to link under sequent, because it throws in some extra .o
8912         # files that make .init and .fini sections work.
8913         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8914       else
8915         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8916       fi
8917       hardcode_libdir_flag_spec='-L$libdir'
8918       hardcode_direct=yes
8919       hardcode_minus_L=yes
8920       hardcode_shlibpath_var=no
8921       ;;
8922
8923     sysv4)
8924       case $host_vendor in
8925         sni)
8926           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927           hardcode_direct=yes # is this really true???
8928         ;;
8929         siemens)
8930           ## LD is ld it makes a PLAMLIB
8931           ## CC just makes a GrossModule.
8932           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8933           reload_cmds='$CC -r -o $output$reload_objs'
8934           hardcode_direct=no
8935         ;;
8936         motorola)
8937           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8939         ;;
8940       esac
8941       runpath_var='LD_RUN_PATH'
8942       hardcode_shlibpath_var=no
8943       ;;
8944
8945     sysv4.3*)
8946       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947       hardcode_shlibpath_var=no
8948       export_dynamic_flag_spec='-Bexport'
8949       ;;
8950
8951     sysv4*MP*)
8952       if test -d /usr/nec; then
8953         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954         hardcode_shlibpath_var=no
8955         runpath_var=LD_RUN_PATH
8956         hardcode_runpath_var=yes
8957         ld_shlibs=yes
8958       fi
8959       ;;
8960
8961     sysv4.2uw2*)
8962       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8963       hardcode_direct=yes
8964       hardcode_minus_L=no
8965       hardcode_shlibpath_var=no
8966       hardcode_runpath_var=yes
8967       runpath_var=LD_RUN_PATH
8968       ;;
8969
8970    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8971       no_undefined_flag='${wl}-z ${wl}text'
8972       if test "$GCC" = yes; then
8973         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974       else
8975         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976       fi
8977       runpath_var='LD_RUN_PATH'
8978       hardcode_shlibpath_var=no
8979       ;;
8980
8981     sysv5*)
8982       no_undefined_flag=' -z text'
8983       # $CC -shared without GNU ld will not create a library from C++
8984       # object files and a static libstdc++, better avoid it by now
8985       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986       archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8987       hardcode_libdir_flag_spec=
8988       hardcode_shlibpath_var=no
8989       runpath_var='LD_RUN_PATH'
8990       ;;
8991
8992     uts4*)
8993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994       hardcode_libdir_flag_spec='-L$libdir'
8995       hardcode_shlibpath_var=no
8996       ;;
8997
8998     *)
8999       ld_shlibs=no
9000       ;;
9001     esac
9002   fi
9003
9004 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9005 echo "${ECHO_T}$ld_shlibs" >&6
9006 test "$ld_shlibs" = no && can_build_shared=no
9007
9008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9009 if test "$GCC" = yes; then
9010   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9011 fi
9012
9013 #
9014 # Do we need to explicitly link libc?
9015 #
9016 case "x$archive_cmds_need_lc" in
9017 x|xyes)
9018   # Assume -lc should be added
9019   archive_cmds_need_lc=yes
9020
9021   if test "$enable_shared" = yes && test "$GCC" = yes; then
9022     case $archive_cmds in
9023     *'~'*)
9024       # FIXME: we may have to deal with multi-command sequences.
9025       ;;
9026     '$CC '*)
9027       # Test whether the compiler implicitly links with -lc since on some
9028       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029       # to ld, don't add -lc before -lgcc.
9030       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9032       $rm conftest*
9033       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036   (eval $ac_compile) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } 2>conftest.err; then
9040         soname=conftest
9041         lib=conftest
9042         libobjs=conftest.$ac_objext
9043         deplibs=
9044         wl=$lt_prog_compiler_wl
9045         compiler_flags=-v
9046         linker_flags=-v
9047         verstring=
9048         output_objdir=.
9049         libname=conftest
9050         lt_save_allow_undefined_flag=$allow_undefined_flag
9051         allow_undefined_flag=
9052         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9053   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }
9057         then
9058           archive_cmds_need_lc=no
9059         else
9060           archive_cmds_need_lc=yes
9061         fi
9062         allow_undefined_flag=$lt_save_allow_undefined_flag
9063       else
9064         cat conftest.err 1>&5
9065       fi
9066       $rm conftest*
9067       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9068 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9069       ;;
9070     esac
9071   fi
9072   ;;
9073 esac
9074
9075 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9076 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9077 library_names_spec=
9078 libname_spec='lib$name'
9079 soname_spec=
9080 shrext_cmds=".so"
9081 postinstall_cmds=
9082 postuninstall_cmds=
9083 finish_cmds=
9084 finish_eval=
9085 shlibpath_var=
9086 shlibpath_overrides_runpath=unknown
9087 version_type=none
9088 dynamic_linker="$host_os ld.so"
9089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9090 if test "$GCC" = yes; then
9091   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9092   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9093     # if the path contains ";" then we assume it to be the separator
9094     # otherwise default to the standard path separator (i.e. ":") - it is
9095     # assumed that no part of a normal pathname contains ";" but that should
9096     # okay in the real world where ";" in dirpaths is itself problematic.
9097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9098   else
9099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9100   fi
9101 else
9102   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9103 fi
9104 need_lib_prefix=unknown
9105 hardcode_into_libs=no
9106
9107 # when you set need_version to no, make sure it does not cause -set_version
9108 # flags to be left without arguments
9109 need_version=unknown
9110
9111 case $host_os in
9112 aix3*)
9113   version_type=linux
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9115   shlibpath_var=LIBPATH
9116
9117   # AIX 3 has no versioning support, so we append a major version to the name.
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   ;;
9120
9121 aix4* | aix5*)
9122   version_type=linux
9123   need_lib_prefix=no
9124   need_version=no
9125   hardcode_into_libs=yes
9126   if test "$host_cpu" = ia64; then
9127     # AIX 5 supports IA64
9128     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9129     shlibpath_var=LD_LIBRARY_PATH
9130   else
9131     # With GCC up to 2.95.x, collect2 would create an import file
9132     # for dependence libraries.  The import file would start with
9133     # the line `#! .'.  This would cause the generated library to
9134     # depend on `.', always an invalid library.  This was fixed in
9135     # development snapshots of GCC prior to 3.0.
9136     case $host_os in
9137       aix4 | aix4.[01] | aix4.[01].*)
9138       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9139            echo ' yes '
9140            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9141         :
9142       else
9143         can_build_shared=no
9144       fi
9145       ;;
9146     esac
9147     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9148     # soname into executable. Probably we can add versioning support to
9149     # collect2, so additional links can be useful in future.
9150     if test "$aix_use_runtimelinking" = yes; then
9151       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9152       # instead of lib<name>.a to let people know that these are not
9153       # typical AIX shared libraries.
9154       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155     else
9156       # We preserve .a as extension for shared libraries through AIX4.2
9157       # and later when we are not doing run time linking.
9158       library_names_spec='${libname}${release}.a $libname.a'
9159       soname_spec='${libname}${release}${shared_ext}$major'
9160     fi
9161     shlibpath_var=LIBPATH
9162   fi
9163   ;;
9164
9165 amigaos*)
9166   library_names_spec='$libname.ixlibrary $libname.a'
9167   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9168   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'
9169   ;;
9170
9171 beos*)
9172   library_names_spec='${libname}${shared_ext}'
9173   dynamic_linker="$host_os ld.so"
9174   shlibpath_var=LIBRARY_PATH
9175   ;;
9176
9177 bsdi[45]*)
9178   version_type=linux
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9185   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9186   # the default ld.so.conf also contains /usr/contrib/lib and
9187   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9188   # libtool to hard-code these into programs
9189   ;;
9190
9191 cygwin* | mingw* | pw32*)
9192   version_type=windows
9193   shrext_cmds=".dll"
9194   need_version=no
9195   need_lib_prefix=no
9196
9197   case $GCC,$host_os in
9198   yes,cygwin* | yes,mingw* | yes,pw32*)
9199     library_names_spec='$libname.dll.a'
9200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9201     postinstall_cmds='base_file=`basename \${file}`;
9202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
9203       dldir=$destdir/`dirname \$dlpath`;
9204       test -d \$dldir || mkdir -p \$dldir;
9205       $install_prog $dir/$dlname \$dldir/$dlname'
9206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
9207       dlpath=$dir/\$dldll;
9208        $rm \$dlpath'
9209     shlibpath_overrides_runpath=yes
9210
9211     case $host_os in
9212     cygwin*)
9213       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9214       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9216       ;;
9217     mingw*)
9218       # MinGW DLLs use traditional 'lib' prefix
9219       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9220       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9222         # It is most probably a Windows format PATH printed by
9223         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9224         # path with ; separators, and with drive letters. We can handle the
9225         # drive letters (cygwin fileutils understands them), so leave them,
9226         # especially as we might pass files found there to a mingw objdump,
9227         # which wouldn't understand a cygwinified path. Ahh.
9228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9229       else
9230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9231       fi
9232       ;;
9233     pw32*)
9234       # pw32 DLLs use 'pw' prefix rather than 'lib'
9235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9236       ;;
9237     esac
9238     ;;
9239
9240   *)
9241     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9242     ;;
9243   esac
9244   dynamic_linker='Win32 ld.exe'
9245   # FIXME: first we should search . and the directory the executable is in
9246   shlibpath_var=PATH
9247   ;;
9248
9249 darwin* | rhapsody*)
9250   dynamic_linker="$host_os dyld"
9251   version_type=darwin
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9255   soname_spec='${libname}${release}${major}$shared_ext'
9256   shlibpath_overrides_runpath=yes
9257   shlibpath_var=DYLD_LIBRARY_PATH
9258   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9259   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9260   if test "$GCC" = yes; then
9261     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"`
9262   else
9263     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9264   fi
9265   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9266   ;;
9267
9268 dgux*)
9269   version_type=linux
9270   need_lib_prefix=no
9271   need_version=no
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9273   soname_spec='${libname}${release}${shared_ext}$major'
9274   shlibpath_var=LD_LIBRARY_PATH
9275   ;;
9276
9277 freebsd1*)
9278   dynamic_linker=no
9279   ;;
9280
9281 kfreebsd*-gnu)
9282   version_type=linux
9283   need_lib_prefix=no
9284   need_version=no
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   shlibpath_var=LD_LIBRARY_PATH
9288   shlibpath_overrides_runpath=no
9289   hardcode_into_libs=yes
9290   dynamic_linker='GNU ld.so'
9291   ;;
9292
9293 freebsd*)
9294   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9295   version_type=freebsd-$objformat
9296   case $version_type in
9297     freebsd-elf*)
9298       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299       need_version=no
9300       need_lib_prefix=no
9301       ;;
9302     freebsd-*)
9303       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9304       need_version=yes
9305       ;;
9306   esac
9307   shlibpath_var=LD_LIBRARY_PATH
9308   case $host_os in
9309   freebsd2*)
9310     shlibpath_overrides_runpath=yes
9311     ;;
9312   freebsd3.01* | freebsdelf3.01*)
9313     shlibpath_overrides_runpath=yes
9314     hardcode_into_libs=yes
9315     ;;
9316   *) # from 3.2 on
9317     shlibpath_overrides_runpath=no
9318     hardcode_into_libs=yes
9319     ;;
9320   esac
9321   ;;
9322
9323 gnu*)
9324   version_type=linux
9325   need_lib_prefix=no
9326   need_version=no
9327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   hardcode_into_libs=yes
9331   ;;
9332
9333 hpux9* | hpux10* | hpux11*)
9334   # Give a soname corresponding to the major version so that dld.sl refuses to
9335   # link against other versions.
9336   version_type=sunos
9337   need_lib_prefix=no
9338   need_version=no
9339   case "$host_cpu" in
9340   ia64*)
9341     shrext_cmds='.so'
9342     hardcode_into_libs=yes
9343     dynamic_linker="$host_os dld.so"
9344     shlibpath_var=LD_LIBRARY_PATH
9345     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347     soname_spec='${libname}${release}${shared_ext}$major'
9348     if test "X$HPUX_IA64_MODE" = X32; then
9349       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9350     else
9351       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9352     fi
9353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354     ;;
9355    hppa*64*)
9356      shrext_cmds='.sl'
9357      hardcode_into_libs=yes
9358      dynamic_linker="$host_os dld.sl"
9359      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9360      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362      soname_spec='${libname}${release}${shared_ext}$major'
9363      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9364      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9365      ;;
9366    *)
9367     shrext_cmds='.sl'
9368     dynamic_linker="$host_os dld.sl"
9369     shlibpath_var=SHLIB_PATH
9370     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372     soname_spec='${libname}${release}${shared_ext}$major'
9373     ;;
9374   esac
9375   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9376   postinstall_cmds='chmod 555 $lib'
9377   ;;
9378
9379 irix5* | irix6* | nonstopux*)
9380   case $host_os in
9381     nonstopux*) version_type=nonstopux ;;
9382     *)
9383         if test "$lt_cv_prog_gnu_ld" = yes; then
9384                 version_type=linux
9385         else
9386                 version_type=irix
9387         fi ;;
9388   esac
9389   need_lib_prefix=no
9390   need_version=no
9391   soname_spec='${libname}${release}${shared_ext}$major'
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9393   case $host_os in
9394   irix5* | nonstopux*)
9395     libsuff= shlibsuff=
9396     ;;
9397   *)
9398     case $LD in # libtool.m4 will add one of these switches to LD
9399     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400       libsuff= shlibsuff= libmagic=32-bit;;
9401     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402       libsuff=32 shlibsuff=N32 libmagic=N32;;
9403     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405     *) libsuff= shlibsuff= libmagic=never-match;;
9406     esac
9407     ;;
9408   esac
9409   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410   shlibpath_overrides_runpath=no
9411   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413   hardcode_into_libs=yes
9414   ;;
9415
9416 # No shared lib support for Linux oldld, aout, or coff.
9417 linux*oldld* | linux*aout* | linux*coff*)
9418   dynamic_linker=no
9419   ;;
9420
9421 # This must be Linux ELF.
9422 linux*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   shlibpath_overrides_runpath=no
9431   # This implies no fast_install, which is unacceptable.
9432   # Some rework will be needed to allow for fast_install
9433   # before this can be enabled.
9434   hardcode_into_libs=yes
9435
9436   # Append ld.so.conf contents to the search path
9437   if test -f /etc/ld.so.conf; then
9438     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9439     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9440   fi
9441
9442   # We used to test for /lib/ld.so.1 and disable shared libraries on
9443   # powerpc, because MkLinux only supported shared libraries with the
9444   # GNU dynamic linker.  Since this was broken with cross compilers,
9445   # most powerpc-linux boxes support dynamic linking these days and
9446   # people can always --disable-shared, the test was removed, and we
9447   # assume the GNU/Linux dynamic linker is in use.
9448   dynamic_linker='GNU/Linux ld.so'
9449   ;;
9450
9451 knetbsd*-gnu)
9452   version_type=linux
9453   need_lib_prefix=no
9454   need_version=no
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   shlibpath_overrides_runpath=no
9459   hardcode_into_libs=yes
9460   dynamic_linker='GNU ld.so'
9461   ;;
9462
9463 netbsd*)
9464   version_type=sunos
9465   need_lib_prefix=no
9466   need_version=no
9467   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470     dynamic_linker='NetBSD (a.out) ld.so'
9471   else
9472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473     soname_spec='${libname}${release}${shared_ext}$major'
9474     dynamic_linker='NetBSD ld.elf_so'
9475   fi
9476   shlibpath_var=LD_LIBRARY_PATH
9477   shlibpath_overrides_runpath=yes
9478   hardcode_into_libs=yes
9479   ;;
9480
9481 newsos6)
9482   version_type=linux
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   ;;
9487
9488 nto-qnx*)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=yes
9496   ;;
9497
9498 openbsd*)
9499   version_type=sunos
9500   need_lib_prefix=no
9501   need_version=no
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506     case $host_os in
9507       openbsd2.[89] | openbsd2.[89].*)
9508         shlibpath_overrides_runpath=no
9509         ;;
9510       *)
9511         shlibpath_overrides_runpath=yes
9512         ;;
9513       esac
9514   else
9515     shlibpath_overrides_runpath=yes
9516   fi
9517   ;;
9518
9519 os2*)
9520   libname_spec='$name'
9521   shrext_cmds=".dll"
9522   need_lib_prefix=no
9523   library_names_spec='$libname${shared_ext} $libname.a'
9524   dynamic_linker='OS/2 ld.exe'
9525   shlibpath_var=LIBPATH
9526   ;;
9527
9528 osf3* | osf4* | osf5*)
9529   version_type=osf
9530   need_lib_prefix=no
9531   need_version=no
9532   soname_spec='${libname}${release}${shared_ext}$major'
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   shlibpath_var=LD_LIBRARY_PATH
9535   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9536   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9537   ;;
9538
9539 sco3.2v5*)
9540   version_type=osf
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   ;;
9545
9546 solaris*)
9547   version_type=linux
9548   need_lib_prefix=no
9549   need_version=no
9550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551   soname_spec='${libname}${release}${shared_ext}$major'
9552   shlibpath_var=LD_LIBRARY_PATH
9553   shlibpath_overrides_runpath=yes
9554   hardcode_into_libs=yes
9555   # ldd complains unless libraries are executable
9556   postinstall_cmds='chmod +x $lib'
9557   ;;
9558
9559 sunos4*)
9560   version_type=sunos
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9563   shlibpath_var=LD_LIBRARY_PATH
9564   shlibpath_overrides_runpath=yes
9565   if test "$with_gnu_ld" = yes; then
9566     need_lib_prefix=no
9567   fi
9568   need_version=yes
9569   ;;
9570
9571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9572   version_type=linux
9573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574   soname_spec='${libname}${release}${shared_ext}$major'
9575   shlibpath_var=LD_LIBRARY_PATH
9576   case $host_vendor in
9577     sni)
9578       shlibpath_overrides_runpath=no
9579       need_lib_prefix=no
9580       export_dynamic_flag_spec='${wl}-Blargedynsym'
9581       runpath_var=LD_RUN_PATH
9582       ;;
9583     siemens)
9584       need_lib_prefix=no
9585       ;;
9586     motorola)
9587       need_lib_prefix=no
9588       need_version=no
9589       shlibpath_overrides_runpath=no
9590       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9591       ;;
9592   esac
9593   ;;
9594
9595 sysv4*MP*)
9596   if test -d /usr/nec ;then
9597     version_type=linux
9598     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9599     soname_spec='$libname${shared_ext}.$major'
9600     shlibpath_var=LD_LIBRARY_PATH
9601   fi
9602   ;;
9603
9604 uts4*)
9605   version_type=linux
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   ;;
9610
9611 *)
9612   dynamic_linker=no
9613   ;;
9614 esac
9615 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9616 echo "${ECHO_T}$dynamic_linker" >&6
9617 test "$dynamic_linker" = no && can_build_shared=no
9618
9619 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9620 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9621 hardcode_action=
9622 if test -n "$hardcode_libdir_flag_spec" || \
9623    test -n "$runpath_var" || \
9624    test "X$hardcode_automatic" = "Xyes" ; then
9625
9626   # We can hardcode non-existant directories.
9627   if test "$hardcode_direct" != no &&
9628      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9629      # have to relink, otherwise we might link with an installed library
9630      # when we should be linking with a yet-to-be-installed one
9631      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9632      test "$hardcode_minus_L" != no; then
9633     # Linking always hardcodes the temporary library directory.
9634     hardcode_action=relink
9635   else
9636     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9637     hardcode_action=immediate
9638   fi
9639 else
9640   # We cannot hardcode anything, or else we can only hardcode existing
9641   # directories.
9642   hardcode_action=unsupported
9643 fi
9644 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9645 echo "${ECHO_T}$hardcode_action" >&6
9646
9647 if test "$hardcode_action" = relink; then
9648   # Fast installation is not supported
9649   enable_fast_install=no
9650 elif test "$shlibpath_overrides_runpath" = yes ||
9651      test "$enable_shared" = no; then
9652   # Fast installation is not necessary
9653   enable_fast_install=needless
9654 fi
9655
9656 striplib=
9657 old_striplib=
9658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9660 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9661   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9662   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9663   echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6
9665 else
9666 # FIXME - insert some real tests, host_os isn't really good enough
9667   case $host_os in
9668    darwin*)
9669        if test -n "$STRIP" ; then
9670          striplib="$STRIP -x"
9671          echo "$as_me:$LINENO: result: yes" >&5
9672 echo "${ECHO_T}yes" >&6
9673        else
9674   echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9676 fi
9677        ;;
9678    *)
9679   echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9681     ;;
9682   esac
9683 fi
9684
9685 if test "x$enable_dlopen" != xyes; then
9686   enable_dlopen=unknown
9687   enable_dlopen_self=unknown
9688   enable_dlopen_self_static=unknown
9689 else
9690   lt_cv_dlopen=no
9691   lt_cv_dlopen_libs=
9692
9693   case $host_os in
9694   beos*)
9695     lt_cv_dlopen="load_add_on"
9696     lt_cv_dlopen_libs=
9697     lt_cv_dlopen_self=yes
9698     ;;
9699
9700   mingw* | pw32*)
9701     lt_cv_dlopen="LoadLibrary"
9702     lt_cv_dlopen_libs=
9703    ;;
9704
9705   cygwin*)
9706     lt_cv_dlopen="dlopen"
9707     lt_cv_dlopen_libs=
9708    ;;
9709
9710   darwin*)
9711   # if libdl is installed we need to link against it
9712     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-ldl  $LIBS"
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725
9726 /* Override any gcc2 internal prototype to avoid an error.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 /* We use char because int might match the return type of a gcc2
9731    builtin and then its argument prototype would still apply.  */
9732 char dlopen ();
9733 int
9734 main ()
9735 {
9736 dlopen ();
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743   (eval $ac_link) 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } &&
9750          { ac_try='test -z "$ac_c_werror_flag"
9751                          || test ! -s conftest.err'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest$ac_exeext'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   ac_cv_lib_dl_dlopen=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ac_cv_lib_dl_dlopen=no
9769 fi
9770 rm -f conftest.err conftest.$ac_objext \
9771       conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9773 fi
9774 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9776 if test $ac_cv_lib_dl_dlopen = yes; then
9777   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9778 else
9779
9780     lt_cv_dlopen="dyld"
9781     lt_cv_dlopen_libs=
9782     lt_cv_dlopen_self=yes
9783
9784 fi
9785
9786    ;;
9787
9788   *)
9789     echo "$as_me:$LINENO: checking for shl_load" >&5
9790 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9791 if test "${ac_cv_func_shl_load+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9802 #define shl_load innocuous_shl_load
9803
9804 /* System header to define __stub macros and hopefully few prototypes,
9805     which can conflict with char shl_load (); below.
9806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807     <limits.h> exists even on freestanding compilers.  */
9808
9809 #ifdef __STDC__
9810 # include <limits.h>
9811 #else
9812 # include <assert.h>
9813 #endif
9814
9815 #undef shl_load
9816
9817 /* Override any gcc2 internal prototype to avoid an error.  */
9818 #ifdef __cplusplus
9819 extern "C"
9820 {
9821 #endif
9822 /* We use char because int might match the return type of a gcc2
9823    builtin and then its argument prototype would still apply.  */
9824 char shl_load ();
9825 /* The GNU C library defines this for functions which it implements
9826     to always fail with ENOSYS.  Some functions are actually named
9827     something starting with __ and the normal name is an alias.  */
9828 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9829 choke me
9830 #else
9831 char (*f) () = shl_load;
9832 #endif
9833 #ifdef __cplusplus
9834 }
9835 #endif
9836
9837 int
9838 main ()
9839 {
9840 return f != shl_load;
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847   (eval $ac_link) 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -z "$ac_c_werror_flag"
9855                          || test ! -s conftest.err'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   ac_cv_func_shl_load=yes
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ac_cv_func_shl_load=no
9873 fi
9874 rm -f conftest.err conftest.$ac_objext \
9875       conftest$ac_exeext conftest.$ac_ext
9876 fi
9877 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9878 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9879 if test $ac_cv_func_shl_load = yes; then
9880   lt_cv_dlopen="shl_load"
9881 else
9882   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9883 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9884 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   ac_check_lib_save_LIBS=$LIBS
9888 LIBS="-ldld  $LIBS"
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895
9896 /* Override any gcc2 internal prototype to avoid an error.  */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 /* We use char because int might match the return type of a gcc2
9901    builtin and then its argument prototype would still apply.  */
9902 char shl_load ();
9903 int
9904 main ()
9905 {
9906 shl_load ();
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag"
9921                          || test ! -s conftest.err'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_cv_lib_dld_shl_load=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_cv_lib_dld_shl_load=no
9939 fi
9940 rm -f conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9946 if test $ac_cv_lib_dld_shl_load = yes; then
9947   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9948 else
9949   echo "$as_me:$LINENO: checking for dlopen" >&5
9950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9951 if test "${ac_cv_func_dlopen+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9962 #define dlopen innocuous_dlopen
9963
9964 /* System header to define __stub macros and hopefully few prototypes,
9965     which can conflict with char dlopen (); below.
9966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9967     <limits.h> exists even on freestanding compilers.  */
9968
9969 #ifdef __STDC__
9970 # include <limits.h>
9971 #else
9972 # include <assert.h>
9973 #endif
9974
9975 #undef dlopen
9976
9977 /* Override any gcc2 internal prototype to avoid an error.  */
9978 #ifdef __cplusplus
9979 extern "C"
9980 {
9981 #endif
9982 /* We use char because int might match the return type of a gcc2
9983    builtin and then its argument prototype would still apply.  */
9984 char dlopen ();
9985 /* The GNU C library defines this for functions which it implements
9986     to always fail with ENOSYS.  Some functions are actually named
9987     something starting with __ and the normal name is an alias.  */
9988 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9989 choke me
9990 #else
9991 char (*f) () = dlopen;
9992 #endif
9993 #ifdef __cplusplus
9994 }
9995 #endif
9996
9997 int
9998 main ()
9999 {
10000 return f != dlopen;
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007   (eval $ac_link) 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_c_werror_flag"
10015                          || test ! -s conftest.err'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest$ac_exeext'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; }; then
10027   ac_cv_func_dlopen=yes
10028 else
10029   echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10031
10032 ac_cv_func_dlopen=no
10033 fi
10034 rm -f conftest.err conftest.$ac_objext \
10035       conftest$ac_exeext conftest.$ac_ext
10036 fi
10037 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10038 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10039 if test $ac_cv_func_dlopen = yes; then
10040   lt_cv_dlopen="dlopen"
10041 else
10042   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047   ac_check_lib_save_LIBS=$LIBS
10048 LIBS="-ldl  $LIBS"
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055
10056 /* Override any gcc2 internal prototype to avoid an error.  */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061    builtin and then its argument prototype would still apply.  */
10062 char dlopen ();
10063 int
10064 main ()
10065 {
10066 dlopen ();
10067   ;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073   (eval $ac_link) 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -z "$ac_c_werror_flag"
10081                          || test ! -s conftest.err'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; } &&
10087          { ac_try='test -s conftest$ac_exeext'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093   ac_cv_lib_dl_dlopen=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_cv_lib_dl_dlopen=no
10099 fi
10100 rm -f conftest.err conftest.$ac_objext \
10101       conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10106 if test $ac_cv_lib_dl_dlopen = yes; then
10107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10108 else
10109   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lsvld  $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122
10123 /* Override any gcc2 internal prototype to avoid an error.  */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 /* We use char because int might match the return type of a gcc2
10128    builtin and then its argument prototype would still apply.  */
10129 char dlopen ();
10130 int
10131 main ()
10132 {
10133 dlopen ();
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140   (eval $ac_link) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"
10148                          || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest$ac_exeext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_lib_svld_dlopen=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_cv_lib_svld_dlopen=no
10166 fi
10167 rm -f conftest.err conftest.$ac_objext \
10168       conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10172 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10173 if test $ac_cv_lib_svld_dlopen = yes; then
10174   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10175 else
10176   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10177 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-ldld  $LIBS"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190 /* Override any gcc2 internal prototype to avoid an error.  */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 /* We use char because int might match the return type of a gcc2
10195    builtin and then its argument prototype would still apply.  */
10196 char dld_link ();
10197 int
10198 main ()
10199 {
10200 dld_link ();
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207   (eval $ac_link) 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -z "$ac_c_werror_flag"
10215                          || test ! -s conftest.err'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; } &&
10221          { ac_try='test -s conftest$ac_exeext'
10222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223   (eval $ac_try) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; }; then
10227   ac_cv_lib_dld_dld_link=yes
10228 else
10229   echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_cv_lib_dld_dld_link=no
10233 fi
10234 rm -f conftest.err conftest.$ac_objext \
10235       conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10237 fi
10238 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10239 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10240 if test $ac_cv_lib_dld_dld_link = yes; then
10241   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10242 fi
10243
10244
10245 fi
10246
10247
10248 fi
10249
10250
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259     ;;
10260   esac
10261
10262   if test "x$lt_cv_dlopen" != xno; then
10263     enable_dlopen=yes
10264   else
10265     enable_dlopen=no
10266   fi
10267
10268   case $lt_cv_dlopen in
10269   dlopen)
10270     save_CPPFLAGS="$CPPFLAGS"
10271     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10272
10273     save_LDFLAGS="$LDFLAGS"
10274     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10275
10276     save_LIBS="$LIBS"
10277     LIBS="$lt_cv_dlopen_libs $LIBS"
10278
10279     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10280 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10281 if test "${lt_cv_dlopen_self+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284           if test "$cross_compiling" = yes; then :
10285   lt_cv_dlopen_self=cross
10286 else
10287   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10288   lt_status=$lt_dlunknown
10289   cat > conftest.$ac_ext <<EOF
10290 #line 10290 "configure"
10291 #include "confdefs.h"
10292
10293 #if HAVE_DLFCN_H
10294 #include <dlfcn.h>
10295 #endif
10296
10297 #include <stdio.h>
10298
10299 #ifdef RTLD_GLOBAL
10300 #  define LT_DLGLOBAL           RTLD_GLOBAL
10301 #else
10302 #  ifdef DL_GLOBAL
10303 #    define LT_DLGLOBAL         DL_GLOBAL
10304 #  else
10305 #    define LT_DLGLOBAL         0
10306 #  endif
10307 #endif
10308
10309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10310    find out it does not work in some platform. */
10311 #ifndef LT_DLLAZY_OR_NOW
10312 #  ifdef RTLD_LAZY
10313 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10314 #  else
10315 #    ifdef DL_LAZY
10316 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10317 #    else
10318 #      ifdef RTLD_NOW
10319 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10320 #      else
10321 #        ifdef DL_NOW
10322 #          define LT_DLLAZY_OR_NOW      DL_NOW
10323 #        else
10324 #          define LT_DLLAZY_OR_NOW      0
10325 #        endif
10326 #      endif
10327 #    endif
10328 #  endif
10329 #endif
10330
10331 #ifdef __cplusplus
10332 extern "C" void exit (int);
10333 #endif
10334
10335 void fnord() { int i=42;}
10336 int main ()
10337 {
10338   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10339   int status = $lt_dlunknown;
10340
10341   if (self)
10342     {
10343       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10344       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10345       /* dlclose (self); */
10346     }
10347
10348     exit (status);
10349 }
10350 EOF
10351   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352   (eval $ac_link) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356     (./conftest; exit; ) 2>/dev/null
10357     lt_status=$?
10358     case x$lt_status in
10359       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10360       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10361       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10362     esac
10363   else :
10364     # compilation failed
10365     lt_cv_dlopen_self=no
10366   fi
10367 fi
10368 rm -fr conftest*
10369
10370
10371 fi
10372 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10374
10375     if test "x$lt_cv_dlopen_self" = xyes; then
10376       LDFLAGS="$LDFLAGS $link_static_flag"
10377       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10378 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10379 if test "${lt_cv_dlopen_self_static+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382           if test "$cross_compiling" = yes; then :
10383   lt_cv_dlopen_self_static=cross
10384 else
10385   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386   lt_status=$lt_dlunknown
10387   cat > conftest.$ac_ext <<EOF
10388 #line 10388 "configure"
10389 #include "confdefs.h"
10390
10391 #if HAVE_DLFCN_H
10392 #include <dlfcn.h>
10393 #endif
10394
10395 #include <stdio.h>
10396
10397 #ifdef RTLD_GLOBAL
10398 #  define LT_DLGLOBAL           RTLD_GLOBAL
10399 #else
10400 #  ifdef DL_GLOBAL
10401 #    define LT_DLGLOBAL         DL_GLOBAL
10402 #  else
10403 #    define LT_DLGLOBAL         0
10404 #  endif
10405 #endif
10406
10407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408    find out it does not work in some platform. */
10409 #ifndef LT_DLLAZY_OR_NOW
10410 #  ifdef RTLD_LAZY
10411 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10412 #  else
10413 #    ifdef DL_LAZY
10414 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10415 #    else
10416 #      ifdef RTLD_NOW
10417 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10418 #      else
10419 #        ifdef DL_NOW
10420 #          define LT_DLLAZY_OR_NOW      DL_NOW
10421 #        else
10422 #          define LT_DLLAZY_OR_NOW      0
10423 #        endif
10424 #      endif
10425 #    endif
10426 #  endif
10427 #endif
10428
10429 #ifdef __cplusplus
10430 extern "C" void exit (int);
10431 #endif
10432
10433 void fnord() { int i=42;}
10434 int main ()
10435 {
10436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437   int status = $lt_dlunknown;
10438
10439   if (self)
10440     {
10441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10442       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443       /* dlclose (self); */
10444     }
10445
10446     exit (status);
10447 }
10448 EOF
10449   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454     (./conftest; exit; ) 2>/dev/null
10455     lt_status=$?
10456     case x$lt_status in
10457       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10458       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10459       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10460     esac
10461   else :
10462     # compilation failed
10463     lt_cv_dlopen_self_static=no
10464   fi
10465 fi
10466 rm -fr conftest*
10467
10468
10469 fi
10470 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10471 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10472     fi
10473
10474     CPPFLAGS="$save_CPPFLAGS"
10475     LDFLAGS="$save_LDFLAGS"
10476     LIBS="$save_LIBS"
10477     ;;
10478   esac
10479
10480   case $lt_cv_dlopen_self in
10481   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10482   *) enable_dlopen_self=unknown ;;
10483   esac
10484
10485   case $lt_cv_dlopen_self_static in
10486   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10487   *) enable_dlopen_self_static=unknown ;;
10488   esac
10489 fi
10490
10491
10492 # Report which librarie types wil actually be built
10493 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10494 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10495 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10496 echo "${ECHO_T}$can_build_shared" >&6
10497
10498 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10499 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10500 test "$can_build_shared" = "no" && enable_shared=no
10501
10502 # On AIX, shared libraries and static libraries use the same namespace, and
10503 # are all built from PIC.
10504 case "$host_os" in
10505 aix3*)
10506   test "$enable_shared" = yes && enable_static=no
10507   if test -n "$RANLIB"; then
10508     archive_cmds="$archive_cmds;\$RANLIB \$lib"
10509     postinstall_cmds='$RANLIB $lib'
10510   fi
10511   ;;
10512
10513 aix4* | aix5*)
10514   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10515     test "$enable_shared" = yes && enable_static=no
10516   fi
10517     ;;
10518 esac
10519 echo "$as_me:$LINENO: result: $enable_shared" >&5
10520 echo "${ECHO_T}$enable_shared" >&6
10521
10522 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10523 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10524 # Make sure either enable_shared or enable_static is yes.
10525 test "$enable_shared" = yes || enable_static=yes
10526 echo "$as_me:$LINENO: result: $enable_static" >&5
10527 echo "${ECHO_T}$enable_static" >&6
10528
10529 # The else clause should only fire when bootstrapping the
10530 # libtool distribution, otherwise you forgot to ship ltmain.sh
10531 # with your package, and you will get complaints that there are
10532 # no rules to generate ltmain.sh.
10533 if test -f "$ltmain"; then
10534   # See if we are running on zsh, and set the options which allow our commands through
10535   # without removal of \ escapes.
10536   if test -n "${ZSH_VERSION+set}" ; then
10537     setopt NO_GLOB_SUBST
10538   fi
10539   # Now quote all the things that may contain metacharacters while being
10540   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10541   # variables and quote the copies for generation of the libtool script.
10542   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10543     SED SHELL STRIP \
10544     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10545     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10546     deplibs_check_method reload_flag reload_cmds need_locks \
10547     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10548     lt_cv_sys_global_symbol_to_c_name_address \
10549     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10550     old_postinstall_cmds old_postuninstall_cmds \
10551     compiler \
10552     CC \
10553     LD \
10554     lt_prog_compiler_wl \
10555     lt_prog_compiler_pic \
10556     lt_prog_compiler_static \
10557     lt_prog_compiler_no_builtin_flag \
10558     export_dynamic_flag_spec \
10559     thread_safe_flag_spec \
10560     whole_archive_flag_spec \
10561     enable_shared_with_static_runtimes \
10562     old_archive_cmds \
10563     old_archive_from_new_cmds \
10564     predep_objects \
10565     postdep_objects \
10566     predeps \
10567     postdeps \
10568     compiler_lib_search_path \
10569     archive_cmds \
10570     archive_expsym_cmds \
10571     postinstall_cmds \
10572     postuninstall_cmds \
10573     old_archive_from_expsyms_cmds \
10574     allow_undefined_flag \
10575     no_undefined_flag \
10576     export_symbols_cmds \
10577     hardcode_libdir_flag_spec \
10578     hardcode_libdir_flag_spec_ld \
10579     hardcode_libdir_separator \
10580     hardcode_automatic \
10581     module_cmds \
10582     module_expsym_cmds \
10583     lt_cv_prog_compiler_c_o \
10584     exclude_expsyms \
10585     include_expsyms; do
10586
10587     case $var in
10588     old_archive_cmds | \
10589     old_archive_from_new_cmds | \
10590     archive_cmds | \
10591     archive_expsym_cmds | \
10592     module_cmds | \
10593     module_expsym_cmds | \
10594     old_archive_from_expsyms_cmds | \
10595     export_symbols_cmds | \
10596     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10597     postinstall_cmds | postuninstall_cmds | \
10598     old_postinstall_cmds | old_postuninstall_cmds | \
10599     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10600       # Double-quote double-evaled strings.
10601       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10602       ;;
10603     *)
10604       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10605       ;;
10606     esac
10607   done
10608
10609   case $lt_echo in
10610   *'\$0 --fallback-echo"')
10611     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10612     ;;
10613   esac
10614
10615 cfgfile="${ofile}T"
10616   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10617   $rm -f "$cfgfile"
10618   { echo "$as_me:$LINENO: creating $ofile" >&5
10619 echo "$as_me: creating $ofile" >&6;}
10620
10621   cat <<__EOF__ >> "$cfgfile"
10622 #! $SHELL
10623
10624 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10625 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10626 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10627 #
10628 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10629 # Free Software Foundation, Inc.
10630 #
10631 # This file is part of GNU Libtool:
10632 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10633 #
10634 # This program is free software; you can redistribute it and/or modify
10635 # it under the terms of the GNU General Public License as published by
10636 # the Free Software Foundation; either version 2 of the License, or
10637 # (at your option) any later version.
10638 #
10639 # This program is distributed in the hope that it will be useful, but
10640 # WITHOUT ANY WARRANTY; without even the implied warranty of
10641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10642 # General Public License for more details.
10643 #
10644 # You should have received a copy of the GNU General Public License
10645 # along with this program; if not, write to the Free Software
10646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10647 #
10648 # As a special exception to the GNU General Public License, if you
10649 # distribute this file as part of a program that contains a
10650 # configuration script generated by Autoconf, you may include it under
10651 # the same distribution terms that you use for the rest of that program.
10652
10653 # A sed program that does not truncate output.
10654 SED=$lt_SED
10655
10656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10657 Xsed="$SED -e s/^X//"
10658
10659 # The HP-UX ksh and POSIX shell print the target directory to stdout
10660 # if CDPATH is set.
10661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10662
10663 # The names of the tagged configurations supported by this script.
10664 available_tags=
10665
10666 # ### BEGIN LIBTOOL CONFIG
10667
10668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10669
10670 # Shell to use when invoking shell scripts.
10671 SHELL=$lt_SHELL
10672
10673 # Whether or not to build shared libraries.
10674 build_libtool_libs=$enable_shared
10675
10676 # Whether or not to build static libraries.
10677 build_old_libs=$enable_static
10678
10679 # Whether or not to add -lc for building shared libraries.
10680 build_libtool_need_lc=$archive_cmds_need_lc
10681
10682 # Whether or not to disallow shared libs when runtime libs are static
10683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10684
10685 # Whether or not to optimize for fast installation.
10686 fast_install=$enable_fast_install
10687
10688 # The host system.
10689 host_alias=$host_alias
10690 host=$host
10691
10692 # An echo program that does not interpret backslashes.
10693 echo=$lt_echo
10694
10695 # The archiver.
10696 AR=$lt_AR
10697 AR_FLAGS=$lt_AR_FLAGS
10698
10699 # A C compiler.
10700 LTCC=$lt_LTCC
10701
10702 # A language-specific compiler.
10703 CC=$lt_compiler
10704
10705 # Is the compiler the GNU C compiler?
10706 with_gcc=$GCC
10707
10708 # An ERE matcher.
10709 EGREP=$lt_EGREP
10710
10711 # The linker used to build libraries.
10712 LD=$lt_LD
10713
10714 # Whether we need hard or soft links.
10715 LN_S=$lt_LN_S
10716
10717 # A BSD-compatible nm program.
10718 NM=$lt_NM
10719
10720 # A symbol stripping program
10721 STRIP=$lt_STRIP
10722
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10725
10726 # Used on cygwin: DLL creation program.
10727 DLLTOOL="$DLLTOOL"
10728
10729 # Used on cygwin: object dumper.
10730 OBJDUMP="$OBJDUMP"
10731
10732 # Used on cygwin: assembler.
10733 AS="$AS"
10734
10735 # The name of the directory that contains temporary libtool files.
10736 objdir=$objdir
10737
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10741
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10744
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10747
10748 # Old archive suffix (normally "a").
10749 libext="$libext"
10750
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10753
10754 # Executable file suffix (normally "").
10755 exeext="$exeext"
10756
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10759 pic_mode=$pic_mode
10760
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10763
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766
10767 # Must we lock files when doing compilation ?
10768 need_locks=$lt_need_locks
10769
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10772
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10775
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10778
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10781
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10784
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10787
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799
10800 # Library versioning type.
10801 version_type=$version_type
10802
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10805
10806 # List of archive names.  First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10809
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10812
10813 # Commands used to build and install an old-style archive.
10814 RANLIB=$lt_RANLIB
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10830
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10834
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10838
10839 # Dependencies to place before the objects being linked to create a
10840 # shared library.
10841 predep_objects=$lt_predep_objects
10842
10843 # Dependencies to place after the objects being linked to create a
10844 # shared library.
10845 postdep_objects=$lt_postdep_objects
10846
10847 # Dependencies to place before the objects being linked to create a
10848 # shared library.
10849 predeps=$lt_predeps
10850
10851 # Dependencies to place after the objects being linked to create a
10852 # shared library.
10853 postdeps=$lt_postdeps
10854
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10858
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10861
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10864
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10867
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10870
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10873
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10876
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10888
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10891
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10897
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10900
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10907 # not exist.
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10916
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10920
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10924
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10928
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10932
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10935
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10944
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10947
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10950
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10956
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10959
10960 # ### END LIBTOOL CONFIG
10961
10962 __EOF__
10963
10964
10965   case $host_os in
10966   aix3*)
10967     cat <<\EOF >> "$cfgfile"
10968
10969 # AIX sometimes has problems with the GCC collect2 program.  For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10973   COLLECT_NAMES=
10974   export COLLECT_NAMES
10975 fi
10976 EOF
10977     ;;
10978   esac
10979
10980   # We use sed instead of cat because bash on DJGPP gets confused if
10981   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10982   # text mode, it properly converts lines to CR/LF.  This bash problem
10983   # is reportedly fixed, but why not run on old versions too?
10984   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985
10986   mv -f "$cfgfile" "$ofile" || \
10987     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10988   chmod +x "$ofile"
10989
10990 else
10991   # If there is no Makefile yet, we rely on a make rule to execute
10992   # `config.status --recheck' to rerun these tests and create the
10993   # libtool script then.
10994   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995   if test -f "$ltmain_in"; then
10996     test -f Makefile && make "$ltmain"
10997   fi
10998 fi
10999
11000
11001 ac_ext=c
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007 CC="$lt_save_CC"
11008
11009
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012   withval="$with_tags"
11013   tagnames="$withval"
11014 fi;
11015
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017   if test ! -f "${ofile}"; then
11018     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020   fi
11021
11022   if test -z "$LTCC"; then
11023     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024     if test -z "$LTCC"; then
11025       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027     else
11028       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11030     fi
11031   fi
11032
11033   # Extract list of available tagged configurations in $ofile.
11034   # Note that this assumes the entire list is on one line.
11035   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11036
11037   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038   for tagname in $tagnames; do
11039     IFS="$lt_save_ifs"
11040     # Check whether tagname contains only valid characters
11041     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11042     "") ;;
11043     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045    { (exit 1); exit 1; }; }
11046         ;;
11047     esac
11048
11049     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11050     then
11051       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053    { (exit 1); exit 1; }; }
11054     fi
11055
11056     # Update the list of available tags.
11057     if test -n "$tagname"; then
11058       echo appending configuration tag \"$tagname\" to $ofile
11059
11060       case $tagname in
11061       CXX)
11062         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064             (test "X$CXX" != "Xg++"))) ; then
11065           ac_ext=cc
11066 ac_cpp='$CXXCPP $CPPFLAGS'
11067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11070
11071
11072
11073
11074 archive_cmds_need_lc_CXX=no
11075 allow_undefined_flag_CXX=
11076 always_export_symbols_CXX=no
11077 archive_expsym_cmds_CXX=
11078 export_dynamic_flag_spec_CXX=
11079 hardcode_direct_CXX=no
11080 hardcode_libdir_flag_spec_CXX=
11081 hardcode_libdir_flag_spec_ld_CXX=
11082 hardcode_libdir_separator_CXX=
11083 hardcode_minus_L_CXX=no
11084 hardcode_automatic_CXX=no
11085 module_cmds_CXX=
11086 module_expsym_cmds_CXX=
11087 link_all_deplibs_CXX=unknown
11088 old_archive_cmds_CXX=$old_archive_cmds
11089 no_undefined_flag_CXX=
11090 whole_archive_flag_spec_CXX=
11091 enable_shared_with_static_runtimes_CXX=no
11092
11093 # Dependencies to place before and after the object being linked:
11094 predep_objects_CXX=
11095 postdep_objects_CXX=
11096 predeps_CXX=
11097 postdeps_CXX=
11098 compiler_lib_search_path_CXX=
11099
11100 # Source file extension for C++ test sources.
11101 ac_ext=cc
11102
11103 # Object file extension for compiled C++ test sources.
11104 objext=o
11105 objext_CXX=$objext
11106
11107 # Code to be used in simple compile tests
11108 lt_simple_compile_test_code="int some_variable = 0;\n"
11109
11110 # Code to be used in simple link tests
11111 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11112
11113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11114
11115 # If no C compiler was specified, use CC.
11116 LTCC=${LTCC-"$CC"}
11117
11118 # Allow CC to be a program name with arguments.
11119 compiler=$CC
11120
11121
11122 # Allow CC to be a program name with arguments.
11123 lt_save_CC=$CC
11124 lt_save_LD=$LD
11125 lt_save_GCC=$GCC
11126 GCC=$GXX
11127 lt_save_with_gnu_ld=$with_gnu_ld
11128 lt_save_path_LD=$lt_cv_path_LD
11129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11130   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11131 else
11132   unset lt_cv_prog_gnu_ld
11133 fi
11134 if test -n "${lt_cv_path_LDCXX+set}"; then
11135   lt_cv_path_LD=$lt_cv_path_LDCXX
11136 else
11137   unset lt_cv_path_LD
11138 fi
11139 test -z "${LDCXX+set}" || LD=$LDCXX
11140 CC=${CXX-"c++"}
11141 compiler=$CC
11142 compiler_CXX=$CC
11143 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11144
11145 # We don't want -fno-exception wen compiling C++ code, so set the
11146 # no_builtin_flag separately
11147 if test "$GXX" = yes; then
11148   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11149 else
11150   lt_prog_compiler_no_builtin_flag_CXX=
11151 fi
11152
11153 if test "$GXX" = yes; then
11154   # Set up default GNU C++ configuration
11155
11156
11157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11158 if test "${with_gnu_ld+set}" = set; then
11159   withval="$with_gnu_ld"
11160   test "$withval" = no || with_gnu_ld=yes
11161 else
11162   with_gnu_ld=no
11163 fi;
11164 ac_prog=ld
11165 if test "$GCC" = yes; then
11166   # Check if gcc -print-prog-name=ld gives a path.
11167   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11169   case $host in
11170   *-*-mingw*)
11171     # gcc leaves a trailing carriage return which upsets mingw
11172     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11173   *)
11174     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11175   esac
11176   case $ac_prog in
11177     # Accept absolute paths.
11178     [\\/]* | ?:[\\/]*)
11179       re_direlt='/[^/][^/]*/\.\./'
11180       # Canonicalize the pathname of ld
11181       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11182       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11183         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11184       done
11185       test -z "$LD" && LD="$ac_prog"
11186       ;;
11187   "")
11188     # If it fails, then pretend we aren't using GCC.
11189     ac_prog=ld
11190     ;;
11191   *)
11192     # If it is relative, then search for the first ld in PATH.
11193     with_gnu_ld=unknown
11194     ;;
11195   esac
11196 elif test "$with_gnu_ld" = yes; then
11197   echo "$as_me:$LINENO: checking for GNU ld" >&5
11198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11199 else
11200   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11202 fi
11203 if test "${lt_cv_path_LD+set}" = set; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   if test -z "$LD"; then
11207   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11208   for ac_dir in $PATH; do
11209     IFS="$lt_save_ifs"
11210     test -z "$ac_dir" && ac_dir=.
11211     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11212       lt_cv_path_LD="$ac_dir/$ac_prog"
11213       # Check to see if the program is GNU ld.  I'd rather use --version,
11214       # but apparently some GNU ld's only accept -v.
11215       # Break only if it was the GNU/non-GNU ld that we prefer.
11216       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11217       *GNU* | *'with BFD'*)
11218         test "$with_gnu_ld" != no && break
11219         ;;
11220       *)
11221         test "$with_gnu_ld" != yes && break
11222         ;;
11223       esac
11224     fi
11225   done
11226   IFS="$lt_save_ifs"
11227 else
11228   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11229 fi
11230 fi
11231
11232 LD="$lt_cv_path_LD"
11233 if test -n "$LD"; then
11234   echo "$as_me:$LINENO: result: $LD" >&5
11235 echo "${ECHO_T}$LD" >&6
11236 else
11237   echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11239 fi
11240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11242    { (exit 1); exit 1; }; }
11243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11249 case `$LD -v 2>&1 </dev/null` in
11250 *GNU* | *'with BFD'*)
11251   lt_cv_prog_gnu_ld=yes
11252   ;;
11253 *)
11254   lt_cv_prog_gnu_ld=no
11255   ;;
11256 esac
11257 fi
11258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11260 with_gnu_ld=$lt_cv_prog_gnu_ld
11261
11262
11263
11264   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11265   # archiving commands below assume that GNU ld is being used.
11266   if test "$with_gnu_ld" = yes; then
11267     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11268     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11269
11270     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11271     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11272
11273     # If archive_cmds runs LD, not CC, wlarc should be empty
11274     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11275     #     investigate it a little bit more. (MM)
11276     wlarc='${wl}'
11277
11278     # ancient GNU ld didn't support --whole-archive et. al.
11279     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11280         grep 'no-whole-archive' > /dev/null; then
11281       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11282     else
11283       whole_archive_flag_spec_CXX=
11284     fi
11285   else
11286     with_gnu_ld=no
11287     wlarc=
11288
11289     # A generic and very simple default shared library creation
11290     # command for GNU C++ for the case where it uses the native
11291     # linker, instead of GNU ld.  If possible, this setting should
11292     # overridden to take advantage of the native linker features on
11293     # the platform it is being used on.
11294     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11295   fi
11296
11297   # Commands to make compiler produce verbose output that lists
11298   # what "hidden" libraries, object files and flags are used when
11299   # linking a shared library.
11300   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11301
11302 else
11303   GXX=no
11304   with_gnu_ld=no
11305   wlarc=
11306 fi
11307
11308 # PORTME: fill in a description of your system's C++ link characteristics
11309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11311 ld_shlibs_CXX=yes
11312 case $host_os in
11313   aix3*)
11314     # FIXME: insert proper C++ library support
11315     ld_shlibs_CXX=no
11316     ;;
11317   aix4* | aix5*)
11318     if test "$host_cpu" = ia64; then
11319       # On IA64, the linker does run time linking by default, so we don't
11320       # have to do anything special.
11321       aix_use_runtimelinking=no
11322       exp_sym_flag='-Bexport'
11323       no_entry_flag=""
11324     else
11325       aix_use_runtimelinking=no
11326
11327       # Test if we are trying to use run time linking or normal
11328       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11329       # need to do runtime linking.
11330       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11331         for ld_flag in $LDFLAGS; do
11332           case $ld_flag in
11333           *-brtl*)
11334             aix_use_runtimelinking=yes
11335             break
11336             ;;
11337           esac
11338         done
11339       esac
11340
11341       exp_sym_flag='-bexport'
11342       no_entry_flag='-bnoentry'
11343     fi
11344
11345     # When large executables or shared objects are built, AIX ld can
11346     # have problems creating the table of contents.  If linking a library
11347     # or program results in "error TOC overflow" add -mminimal-toc to
11348     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11349     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11350
11351     archive_cmds_CXX=''
11352     hardcode_direct_CXX=yes
11353     hardcode_libdir_separator_CXX=':'
11354     link_all_deplibs_CXX=yes
11355
11356     if test "$GXX" = yes; then
11357       case $host_os in aix4.012|aix4.012.*)
11358       # We only want to do this on AIX 4.2 and lower, the check
11359       # below for broken collect2 doesn't work under 4.3+
11360         collect2name=`${CC} -print-prog-name=collect2`
11361         if test -f "$collect2name" && \
11362            strings "$collect2name" | grep resolve_lib_name >/dev/null
11363         then
11364           # We have reworked collect2
11365           hardcode_direct_CXX=yes
11366         else
11367           # We have old collect2
11368           hardcode_direct_CXX=unsupported
11369           # It fails to find uninstalled libraries when the uninstalled
11370           # path is not listed in the libpath.  Setting hardcode_minus_L
11371           # to unsupported forces relinking
11372           hardcode_minus_L_CXX=yes
11373           hardcode_libdir_flag_spec_CXX='-L$libdir'
11374           hardcode_libdir_separator_CXX=
11375         fi
11376       esac
11377       shared_flag='-shared'
11378     else
11379       # not using gcc
11380       if test "$host_cpu" = ia64; then
11381         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11382         # chokes on -Wl,-G. The following line is correct:
11383         shared_flag='-G'
11384       else
11385         if test "$aix_use_runtimelinking" = yes; then
11386           shared_flag='${wl}-G'
11387         else
11388           shared_flag='${wl}-bM:SRE'
11389         fi
11390       fi
11391     fi
11392
11393     # It seems that -bexpall does not export symbols beginning with
11394     # underscore (_), so it is better to generate a list of symbols to export.
11395     always_export_symbols_CXX=yes
11396     if test "$aix_use_runtimelinking" = yes; then
11397       # Warning - without using the other runtime loading flags (-brtl),
11398       # -berok will link without error, but may produce a broken library.
11399       allow_undefined_flag_CXX='-berok'
11400       # Determine the default libpath from the value encoded in an empty executable.
11401       cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407
11408 int
11409 main ()
11410 {
11411
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418   (eval $ac_link) 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -z "$ac_cxx_werror_flag"
11426                          || test ! -s conftest.err'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; } &&
11432          { ac_try='test -s conftest$ac_exeext'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }; then
11438
11439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11440 }'`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if 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; }
11443 }'`; fi
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 fi
11449 rm -f conftest.err conftest.$ac_objext \
11450       conftest$ac_exeext conftest.$ac_ext
11451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11452
11453       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11454
11455       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11456      else
11457       if test "$host_cpu" = ia64; then
11458         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11459         allow_undefined_flag_CXX="-z nodefs"
11460         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11461       else
11462         # Determine the default libpath from the value encoded in an empty executable.
11463         cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469
11470 int
11471 main ()
11472 {
11473
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480   (eval $ac_link) 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_cxx_werror_flag"
11488                          || test ! -s conftest.err'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; } &&
11494          { ac_try='test -s conftest$ac_exeext'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; }; then
11500
11501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11502 }'`
11503 # Check for a 64-bit object if we didn't find anything.
11504 if 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; }
11505 }'`; fi
11506 else
11507   echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 fi
11511 rm -f conftest.err conftest.$ac_objext \
11512       conftest$ac_exeext conftest.$ac_ext
11513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11514
11515         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11516         # Warning - without using the other run time loading flags,
11517         # -berok will link without error, but may produce a broken library.
11518         no_undefined_flag_CXX=' ${wl}-bernotok'
11519         allow_undefined_flag_CXX=' ${wl}-berok'
11520         # -bexpall does not export symbols beginning with underscore (_)
11521         always_export_symbols_CXX=yes
11522         # Exported symbols can be pulled into shared objects from archives
11523         whole_archive_flag_spec_CXX=' '
11524         archive_cmds_need_lc_CXX=yes
11525         # This is similar to how AIX traditionally builds it's shared libraries.
11526         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11527       fi
11528     fi
11529     ;;
11530   chorus*)
11531     case $cc_basename in
11532       *)
11533         # FIXME: insert proper C++ library support
11534         ld_shlibs_CXX=no
11535         ;;
11536     esac
11537     ;;
11538
11539
11540   cygwin* | mingw* | pw32*)
11541     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11542     # as there is no search path for DLLs.
11543     hardcode_libdir_flag_spec_CXX='-L$libdir'
11544     allow_undefined_flag_CXX=unsupported
11545     always_export_symbols_CXX=no
11546     enable_shared_with_static_runtimes_CXX=yes
11547
11548     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11549       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11550       # If the export-symbols file already is a .def file (1st line
11551       # is EXPORTS), use it as is; otherwise, prepend...
11552       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11553         cp $export_symbols $output_objdir/$soname.def;
11554       else
11555         echo EXPORTS > $output_objdir/$soname.def;
11556         cat $export_symbols >> $output_objdir/$soname.def;
11557       fi;$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11558     else
11559       ld_shlibs_CXX=no
11560     fi
11561   ;;
11562       darwin* | rhapsody*)
11563         case "$host_os" in
11564         rhapsody* | darwin1.[012])
11565          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11566          ;;
11567        *) # Darwin 1.3 on
11568          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11569            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11570          else
11571            case ${MACOSX_DEPLOYMENT_TARGET} in
11572              10.[012])
11573                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11574                ;;
11575              10.*)
11576                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11577                ;;
11578            esac
11579          fi
11580          ;;
11581         esac
11582       archive_cmds_need_lc_CXX=no
11583       hardcode_direct_CXX=no
11584       hardcode_automatic_CXX=yes
11585       hardcode_shlibpath_var_CXX=unsupported
11586       whole_archive_flag_spec_CXX=''
11587       link_all_deplibs_CXX=yes
11588
11589     if test "$GXX" = yes ; then
11590       lt_int_apple_cc_single_mod=no
11591       output_verbose_link_cmd='echo'
11592       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11593        lt_int_apple_cc_single_mod=yes
11594       fi
11595       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11596        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11597       else
11598           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11599         fi
11600         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11601         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11602           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11603             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11604           else
11605             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11606           fi
11607             module_expsym_cmds_CXX='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}'
11608       else
11609       case "$cc_basename" in
11610         xlc*)
11611          output_verbose_link_cmd='echo'
11612           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11613           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11614           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11615           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11616           module_expsym_cmds_CXX='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}'
11617           ;;
11618        *)
11619          ld_shlibs_CXX=no
11620           ;;
11621       esac
11622       fi
11623         ;;
11624
11625   dgux*)
11626     case $cc_basename in
11627       ec++)
11628         # FIXME: insert proper C++ library support
11629         ld_shlibs_CXX=no
11630         ;;
11631       ghcx)
11632         # Green Hills C++ Compiler
11633         # FIXME: insert proper C++ library support
11634         ld_shlibs_CXX=no
11635         ;;
11636       *)
11637         # FIXME: insert proper C++ library support
11638         ld_shlibs_CXX=no
11639         ;;
11640     esac
11641     ;;
11642   freebsd12*)
11643     # C++ shared libraries reported to be fairly broken before switch to ELF
11644     ld_shlibs_CXX=no
11645     ;;
11646   freebsd-elf*)
11647     archive_cmds_need_lc_CXX=no
11648     ;;
11649   freebsd* | kfreebsd*-gnu)
11650     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11651     # conventions
11652     ld_shlibs_CXX=yes
11653     ;;
11654   gnu*)
11655     ;;
11656   hpux9*)
11657     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11658     hardcode_libdir_separator_CXX=:
11659     export_dynamic_flag_spec_CXX='${wl}-E'
11660     hardcode_direct_CXX=yes
11661     hardcode_minus_L_CXX=yes # Not in the search PATH,
11662                                 # but as the default
11663                                 # location of the library.
11664
11665     case $cc_basename in
11666     CC)
11667       # FIXME: insert proper C++ library support
11668       ld_shlibs_CXX=no
11669       ;;
11670     aCC)
11671       archive_cmds_CXX='$rm $output_objdir/$soname;$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11672       # Commands to make compiler produce verbose output that lists
11673       # what "hidden" libraries, object files and flags are used when
11674       # linking a shared library.
11675       #
11676       # There doesn't appear to be a way to prevent this compiler from
11677       # explicitly linking system object files so we need to strip them
11678       # from the output so that they don't get included in the library
11679       # dependencies.
11680       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11681       ;;
11682     *)
11683       if test "$GXX" = yes; then
11684         archive_cmds_CXX='$rm $output_objdir/$soname;$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11685       else
11686         # FIXME: insert proper C++ library support
11687         ld_shlibs_CXX=no
11688       fi
11689       ;;
11690     esac
11691     ;;
11692   hpux10*|hpux11*)
11693     if test $with_gnu_ld = no; then
11694       case "$host_cpu" in
11695       hppa*64*)
11696         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11697         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11698         hardcode_libdir_separator_CXX=:
11699         ;;
11700       ia64*)
11701         hardcode_libdir_flag_spec_CXX='-L$libdir'
11702         ;;
11703       *)
11704         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11705         hardcode_libdir_separator_CXX=:
11706         export_dynamic_flag_spec_CXX='${wl}-E'
11707         ;;
11708       esac
11709     fi
11710     case "$host_cpu" in
11711     hppa*64*)
11712       hardcode_direct_CXX=no
11713       hardcode_shlibpath_var_CXX=no
11714       ;;
11715     ia64*)
11716       hardcode_direct_CXX=no
11717       hardcode_shlibpath_var_CXX=no
11718       hardcode_minus_L_CXX=yes # Not in the search PATH,
11719                                               # but as the default
11720                                               # location of the library.
11721       ;;
11722     *)
11723       hardcode_direct_CXX=yes
11724       hardcode_minus_L_CXX=yes # Not in the search PATH,
11725                                               # but as the default
11726                                               # location of the library.
11727       ;;
11728     esac
11729
11730     case $cc_basename in
11731       CC)
11732         # FIXME: insert proper C++ library support
11733         ld_shlibs_CXX=no
11734         ;;
11735       aCC)
11736         case "$host_cpu" in
11737         hppa*64*|ia64*)
11738           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11739           ;;
11740         *)
11741           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742           ;;
11743         esac
11744         # Commands to make compiler produce verbose output that lists
11745         # what "hidden" libraries, object files and flags are used when
11746         # linking a shared library.
11747         #
11748         # There doesn't appear to be a way to prevent this compiler from
11749         # explicitly linking system object files so we need to strip them
11750         # from the output so that they don't get included in the library
11751         # dependencies.
11752         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11753         ;;
11754       *)
11755         if test "$GXX" = yes; then
11756           if test $with_gnu_ld = no; then
11757             case "$host_cpu" in
11758             ia64*|hppa*64*)
11759               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11760               ;;
11761             *)
11762               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11763               ;;
11764             esac
11765           fi
11766         else
11767           # FIXME: insert proper C++ library support
11768           ld_shlibs_CXX=no
11769         fi
11770         ;;
11771     esac
11772     ;;
11773   irix5* | irix6*)
11774     case $cc_basename in
11775       CC)
11776         # SGI C++
11777         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11778
11779         # Archives containing C++ object files must be created using
11780         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11781         # necessary to make sure instantiated templates are included
11782         # in the archive.
11783         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11784         ;;
11785       *)
11786         if test "$GXX" = yes; then
11787           if test "$with_gnu_ld" = no; then
11788             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11789           else
11790             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11791           fi
11792         fi
11793         link_all_deplibs_CXX=yes
11794         ;;
11795     esac
11796     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11797     hardcode_libdir_separator_CXX=:
11798     ;;
11799   linux*)
11800     case $cc_basename in
11801       KCC)
11802         # Kuck and Associates, Inc. (KAI) C++ Compiler
11803
11804         # KCC will only create a shared library if the output file
11805         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11806         # to its proper name (with version) after linking.
11807         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11808         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11809         # Commands to make compiler produce verbose output that lists
11810         # what "hidden" libraries, object files and flags are used when
11811         # linking a shared library.
11812         #
11813         # There doesn't appear to be a way to prevent this compiler from
11814         # explicitly linking system object files so we need to strip them
11815         # from the output so that they don't get included in the library
11816         # dependencies.
11817         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11818
11819         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11820         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11821
11822         # Archives containing C++ object files must be created using
11823         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11825         ;;
11826       icpc)
11827         # Intel C++
11828         with_gnu_ld=yes
11829         # version 8.0 and above of icpc choke on multiply defined symbols
11830         # if we add $predep_objects and $postdep_objects, however 7.1 and
11831         # earlier do not add the objects themselves.
11832         case `$CC -V 2>&1` in
11833         *"Version 7."*)
11834           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11836           ;;
11837         *)  # Version 8.0 or newer
11838           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11839         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11840           ;;
11841         esac
11842         archive_cmds_need_lc_CXX=no
11843         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11844         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11845         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11846         ;;
11847       cxx)
11848         # Compaq C++
11849         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11850         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11851
11852         runpath_var=LD_RUN_PATH
11853         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11854         hardcode_libdir_separator_CXX=:
11855
11856         # Commands to make compiler produce verbose output that lists
11857         # what "hidden" libraries, object files and flags are used when
11858         # linking a shared library.
11859         #
11860         # There doesn't appear to be a way to prevent this compiler from
11861         # explicitly linking system object files so we need to strip them
11862         # from the output so that they don't get included in the library
11863         # dependencies.
11864         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11865         ;;
11866     esac
11867     ;;
11868   lynxos*)
11869     # FIXME: insert proper C++ library support
11870     ld_shlibs_CXX=no
11871     ;;
11872   m88k*)
11873     # FIXME: insert proper C++ library support
11874     ld_shlibs_CXX=no
11875     ;;
11876   mvs*)
11877     case $cc_basename in
11878       cxx)
11879         # FIXME: insert proper C++ library support
11880         ld_shlibs_CXX=no
11881         ;;
11882       *)
11883         # FIXME: insert proper C++ library support
11884         ld_shlibs_CXX=no
11885         ;;
11886     esac
11887     ;;
11888   netbsd*)
11889     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11890       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11891       wlarc=
11892       hardcode_libdir_flag_spec_CXX='-R$libdir'
11893       hardcode_direct_CXX=yes
11894       hardcode_shlibpath_var_CXX=no
11895     fi
11896     # Workaround some broken pre-1.5 toolchains
11897     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11898     ;;
11899   openbsd2*)
11900     # C++ shared libraries are fairly broken
11901     ld_shlibs_CXX=no
11902     ;;
11903   openbsd*)
11904     hardcode_direct_CXX=yes
11905     hardcode_shlibpath_var_CXX=no
11906     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11907     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11908     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11909       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11910       export_dynamic_flag_spec_CXX='${wl}-E'
11911       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11912     fi
11913     output_verbose_link_cmd='echo'
11914     ;;
11915   osf3*)
11916     case $cc_basename in
11917       KCC)
11918         # Kuck and Associates, Inc. (KAI) C++ Compiler
11919
11920         # KCC will only create a shared library if the output file
11921         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11922         # to its proper name (with version) after linking.
11923         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11924
11925         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926         hardcode_libdir_separator_CXX=:
11927
11928         # Archives containing C++ object files must be created using
11929         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11930         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11931
11932         ;;
11933       RCC)
11934         # Rational C++ 2.4.1
11935         # FIXME: insert proper C++ library support
11936         ld_shlibs_CXX=no
11937         ;;
11938       cxx)
11939         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11940         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11941
11942         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11943         hardcode_libdir_separator_CXX=:
11944
11945         # Commands to make compiler produce verbose output that lists
11946         # what "hidden" libraries, object files and flags are used when
11947         # linking a shared library.
11948         #
11949         # There doesn't appear to be a way to prevent this compiler from
11950         # explicitly linking system object files so we need to strip them
11951         # from the output so that they don't get included in the library
11952         # dependencies.
11953         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11954         ;;
11955       *)
11956         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11959
11960           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961           hardcode_libdir_separator_CXX=:
11962
11963           # Commands to make compiler produce verbose output that lists
11964           # what "hidden" libraries, object files and flags are used when
11965           # linking a shared library.
11966           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
11968         else
11969           # FIXME: insert proper C++ library support
11970           ld_shlibs_CXX=no
11971         fi
11972         ;;
11973     esac
11974     ;;
11975   osf4* | osf5*)
11976     case $cc_basename in
11977       KCC)
11978         # Kuck and Associates, Inc. (KAI) C++ Compiler
11979
11980         # KCC will only create a shared library if the output file
11981         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11982         # to its proper name (with version) after linking.
11983         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11984
11985         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986         hardcode_libdir_separator_CXX=:
11987
11988         # Archives containing C++ object files must be created using
11989         # the KAI C++ compiler.
11990         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11991         ;;
11992       RCC)
11993         # Rational C++ 2.4.1
11994         # FIXME: insert proper C++ library support
11995         ld_shlibs_CXX=no
11996         ;;
11997       cxx)
11998         allow_undefined_flag_CXX=' -expect_unresolved \*'
11999         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12000         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib;$rm $lib.exp'
12001
12002         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12003         hardcode_libdir_separator_CXX=:
12004
12005         # Commands to make compiler produce verbose output that lists
12006         # what "hidden" libraries, object files and flags are used when
12007         # linking a shared library.
12008         #
12009         # There doesn't appear to be a way to prevent this compiler from
12010         # explicitly linking system object files so we need to strip them
12011         # from the output so that they don't get included in the library
12012         # dependencies.
12013         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12014         ;;
12015       *)
12016         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12019
12020           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021           hardcode_libdir_separator_CXX=:
12022
12023           # Commands to make compiler produce verbose output that lists
12024           # what "hidden" libraries, object files and flags are used when
12025           # linking a shared library.
12026           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027
12028         else
12029           # FIXME: insert proper C++ library support
12030           ld_shlibs_CXX=no
12031         fi
12032         ;;
12033     esac
12034     ;;
12035   psos*)
12036     # FIXME: insert proper C++ library support
12037     ld_shlibs_CXX=no
12038     ;;
12039   sco*)
12040     archive_cmds_need_lc_CXX=no
12041     case $cc_basename in
12042       CC)
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046       *)
12047         # FIXME: insert proper C++ library support
12048         ld_shlibs_CXX=no
12049         ;;
12050     esac
12051     ;;
12052   sunos4*)
12053     case $cc_basename in
12054       CC)
12055         # Sun C++ 4.x
12056         # FIXME: insert proper C++ library support
12057         ld_shlibs_CXX=no
12058         ;;
12059       lcc)
12060         # Lucid
12061         # FIXME: insert proper C++ library support
12062         ld_shlibs_CXX=no
12063         ;;
12064       *)
12065         # FIXME: insert proper C++ library support
12066         ld_shlibs_CXX=no
12067         ;;
12068     esac
12069     ;;
12070   solaris*)
12071     case $cc_basename in
12072       CC)
12073         # Sun C++ 4.2, 5.x and Centerline C++
12074         no_undefined_flag_CXX=' -zdefs'
12075         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12077
12078         hardcode_libdir_flag_spec_CXX='-R$libdir'
12079         hardcode_shlibpath_var_CXX=no
12080         case $host_os in
12081           solaris2.0-5 | solaris2.0-5.*) ;;
12082           *)
12083             # The C++ compiler is used as linker so we must use $wl
12084             # flag to pass the commands to the underlying system
12085             # linker.
12086             # Supported since Solaris 2.6 (maybe 2.5.1?)
12087             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12088             ;;
12089         esac
12090         link_all_deplibs_CXX=yes
12091
12092         # Commands to make compiler produce verbose output that lists
12093         # what "hidden" libraries, object files and flags are used when
12094         # linking a shared library.
12095         #
12096         # There doesn't appear to be a way to prevent this compiler from
12097         # explicitly linking system object files so we need to strip them
12098         # from the output so that they don't get included in the library
12099         # dependencies.
12100         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12101
12102         # Archives containing C++ object files must be created using
12103         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12104         # necessary to make sure instantiated templates are included
12105         # in the archive.
12106         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12107         ;;
12108       gcx)
12109         # Green Hills C++ Compiler
12110         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111
12112         # The C++ compiler must be used to create the archive.
12113         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12114         ;;
12115       *)
12116         # GNU C++ compiler with Solaris linker
12117         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12118           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12119           if $CC --version | grep -v '^2\.7' > /dev/null; then
12120             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12122             # Commands to make compiler produce verbose output that lists
12123             # what "hidden" libraries, object files and flags are used when
12124             # linking a shared library.
12125             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12126           else
12127             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12128             # platform.
12129             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
12131                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12132
12133             # Commands to make compiler produce verbose output that lists
12134             # what "hidden" libraries, object files and flags are used when
12135             # linking a shared library.
12136             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137           fi
12138
12139           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12140         fi
12141         ;;
12142     esac
12143     ;;
12144   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12145     archive_cmds_need_lc_CXX=no
12146     ;;
12147   tandem*)
12148     case $cc_basename in
12149       NCC)
12150         # NonStop-UX NCC 3.20
12151         # FIXME: insert proper C++ library support
12152         ld_shlibs_CXX=no
12153         ;;
12154       *)
12155         # FIXME: insert proper C++ library support
12156         ld_shlibs_CXX=no
12157         ;;
12158     esac
12159     ;;
12160   vxworks*)
12161     # FIXME: insert proper C++ library support
12162     ld_shlibs_CXX=no
12163     ;;
12164   *)
12165     # FIXME: insert proper C++ library support
12166     ld_shlibs_CXX=no
12167     ;;
12168 esac
12169 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12170 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12171 test "$ld_shlibs_CXX" = no && can_build_shared=no
12172
12173 GCC_CXX="$GXX"
12174 LD_CXX="$LD"
12175
12176
12177 cat > conftest.$ac_ext <<EOF
12178 class Foo
12179 {
12180 public:
12181   Foo (void) { a = 0; }
12182 private:
12183   int a;
12184 };
12185 EOF
12186
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188   (eval $ac_compile) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; then
12192   # Parse the compiler output and extract the necessary
12193   # objects, libraries and library flags.
12194
12195   # Sentinel used to keep track of whether or not we are before
12196   # the conftest object file.
12197   pre_test_object_deps_done=no
12198
12199   # The `*' in the case matches for architectures that use `case' in
12200   # $output_verbose_cmd can trigger glob expansion during the loop
12201   # eval without this substitution.
12202   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12203
12204   for p in `eval $output_verbose_link_cmd`; do
12205     case $p in
12206
12207     -L* | -R* | -l*)
12208        # Some compilers place space between "-{L,R}" and the path.
12209        # Remove the space.
12210        if test $p = "-L" \
12211           || test $p = "-R"; then
12212          prev=$p
12213          continue
12214        else
12215          prev=
12216        fi
12217
12218        if test "$pre_test_object_deps_done" = no; then
12219          case $p in
12220          -L* | -R*)
12221            # Internal compiler library paths should come after those
12222            # provided the user.  The postdeps already come after the
12223            # user supplied libs so there is no need to process them.
12224            if test -z "$compiler_lib_search_path_CXX"; then
12225              compiler_lib_search_path_CXX="${prev}${p}"
12226            else
12227              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12228            fi
12229            ;;
12230          # The "-l" case would never come before the object being
12231          # linked, so don't bother handling this case.
12232          esac
12233        else
12234          if test -z "$postdeps_CXX"; then
12235            postdeps_CXX="${prev}${p}"
12236          else
12237            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12238          fi
12239        fi
12240        ;;
12241
12242     *.$objext)
12243        # This assumes that the test object file only shows up
12244        # once in the compiler output.
12245        if test "$p" = "conftest.$objext"; then
12246          pre_test_object_deps_done=yes
12247          continue
12248        fi
12249
12250        if test "$pre_test_object_deps_done" = no; then
12251          if test -z "$predep_objects_CXX"; then
12252            predep_objects_CXX="$p"
12253          else
12254            predep_objects_CXX="$predep_objects_CXX $p"
12255          fi
12256        else
12257          if test -z "$postdep_objects_CXX"; then
12258            postdep_objects_CXX="$p"
12259          else
12260            postdep_objects_CXX="$postdep_objects_CXX $p"
12261          fi
12262        fi
12263        ;;
12264
12265     *) ;; # Ignore the rest.
12266
12267     esac
12268   done
12269
12270   # Clean up.
12271   rm -f a.out a.exe
12272 else
12273   echo "libtool.m4: error: problem compiling CXX test program"
12274 fi
12275
12276 $rm -f confest.$objext
12277
12278 case " $postdeps_CXX " in
12279 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12280 esac
12281
12282 lt_prog_compiler_wl_CXX=
12283 lt_prog_compiler_pic_CXX=
12284 lt_prog_compiler_static_CXX=
12285
12286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12288
12289   # C++ specific cases for pic, static, wl, etc.
12290   if test "$GXX" = yes; then
12291     lt_prog_compiler_wl_CXX='-Wl,'
12292     lt_prog_compiler_static_CXX='-static'
12293
12294     case $host_os in
12295     aix*)
12296       # All AIX code is PIC.
12297       if test "$host_cpu" = ia64; then
12298         # AIX 5 now supports IA64 processor
12299         lt_prog_compiler_static_CXX='-Bstatic'
12300       fi
12301       ;;
12302     amigaos*)
12303       # FIXME: we need at least 68020 code to build shared libraries, but
12304       # adding the `-m68020' flag to GCC prevents building anything better,
12305       # like `-m68040'.
12306       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12307       ;;
12308     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12309       # PIC is the default for these OSes.
12310       ;;
12311     mingw* | os2* | pw32*)
12312       # This hack is so that the source file can tell whether it is being
12313       # built for inclusion in a dll (and should export symbols for example).
12314       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12315       ;;
12316     darwin* | rhapsody*)
12317       # PIC is the default on this platform
12318       # Common symbols not allowed in MH_DYLIB files
12319       lt_prog_compiler_pic_CXX='-fno-common'
12320       ;;
12321     *djgpp*)
12322       # DJGPP does not support shared libraries at all
12323       lt_prog_compiler_pic_CXX=
12324       ;;
12325     sysv4*MP*)
12326       if test -d /usr/nec; then
12327         lt_prog_compiler_pic_CXX=-Kconform_pic
12328       fi
12329       ;;
12330     hpux*)
12331       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12332       # not for PA HP-UX.
12333       case "$host_cpu" in
12334       hppa*64*|ia64*)
12335         ;;
12336       *)
12337         lt_prog_compiler_pic_CXX='-fPIC'
12338         ;;
12339       esac
12340       ;;
12341     *)
12342       lt_prog_compiler_pic_CXX='-fPIC'
12343       ;;
12344     esac
12345   else
12346     case $host_os in
12347       aix4* | aix5*)
12348         # All AIX code is PIC.
12349         if test "$host_cpu" = ia64; then
12350           # AIX 5 now supports IA64 processor
12351           lt_prog_compiler_static_CXX='-Bstatic'
12352         else
12353           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12354         fi
12355         ;;
12356       chorus*)
12357         case $cc_basename in
12358         cxch68)
12359           # Green Hills C++ Compiler
12360           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12361           ;;
12362         esac
12363         ;;
12364        darwin*)
12365          # PIC is the default on this platform
12366          # Common symbols not allowed in MH_DYLIB files
12367          case "$cc_basename" in
12368            xlc*)
12369            lt_prog_compiler_pic_CXX='-qnocommon'
12370            lt_prog_compiler_wl_CXX='-Wl,'
12371            ;;
12372          esac
12373        ;;
12374       dgux*)
12375         case $cc_basename in
12376           ec++)
12377             lt_prog_compiler_pic_CXX='-KPIC'
12378             ;;
12379           ghcx)
12380             # Green Hills C++ Compiler
12381             lt_prog_compiler_pic_CXX='-pic'
12382             ;;
12383           *)
12384             ;;
12385         esac
12386         ;;
12387       freebsd* | kfreebsd*-gnu)
12388         # FreeBSD uses GNU C++
12389         ;;
12390       hpux9* | hpux10* | hpux11*)
12391         case $cc_basename in
12392           CC)
12393             lt_prog_compiler_wl_CXX='-Wl,'
12394             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12395             if test "$host_cpu" != ia64; then
12396               lt_prog_compiler_pic_CXX='+Z'
12397             fi
12398             ;;
12399           aCC)
12400             lt_prog_compiler_wl_CXX='-Wl,'
12401             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12402             case "$host_cpu" in
12403             hppa*64*|ia64*)
12404               # +Z the default
12405               ;;
12406             *)
12407               lt_prog_compiler_pic_CXX='+Z'
12408               ;;
12409             esac
12410             ;;
12411           *)
12412             ;;
12413         esac
12414         ;;
12415       irix5* | irix6* | nonstopux*)
12416         case $cc_basename in
12417           CC)
12418             lt_prog_compiler_wl_CXX='-Wl,'
12419             lt_prog_compiler_static_CXX='-non_shared'
12420             # CC pic flag -KPIC is the default.
12421             ;;
12422           *)
12423             ;;
12424         esac
12425         ;;
12426       linux*)
12427         case $cc_basename in
12428           KCC)
12429             # KAI C++ Compiler
12430             lt_prog_compiler_wl_CXX='--backend -Wl,'
12431             lt_prog_compiler_pic_CXX='-fPIC'
12432             ;;
12433           icpc)
12434             # Intel C++
12435             lt_prog_compiler_wl_CXX='-Wl,'
12436             lt_prog_compiler_pic_CXX='-KPIC'
12437             lt_prog_compiler_static_CXX='-static'
12438             ;;
12439           cxx)
12440             # Compaq C++
12441             # Make sure the PIC flag is empty.  It appears that all Alpha
12442             # Linux and Compaq Tru64 Unix objects are PIC.
12443             lt_prog_compiler_pic_CXX=
12444             lt_prog_compiler_static_CXX='-non_shared'
12445             ;;
12446           *)
12447             ;;
12448         esac
12449         ;;
12450       lynxos*)
12451         ;;
12452       m88k*)
12453         ;;
12454       mvs*)
12455         case $cc_basename in
12456           cxx)
12457             lt_prog_compiler_pic_CXX='-W c,exportall'
12458             ;;
12459           *)
12460             ;;
12461         esac
12462         ;;
12463       netbsd*)
12464         ;;
12465       osf3* | osf4* | osf5*)
12466         case $cc_basename in
12467           KCC)
12468             lt_prog_compiler_wl_CXX='--backend -Wl,'
12469             ;;
12470           RCC)
12471             # Rational C++ 2.4.1
12472             lt_prog_compiler_pic_CXX='-pic'
12473             ;;
12474           cxx)
12475             # Digital/Compaq C++
12476             lt_prog_compiler_wl_CXX='-Wl,'
12477             # Make sure the PIC flag is empty.  It appears that all Alpha
12478             # Linux and Compaq Tru64 Unix objects are PIC.
12479             lt_prog_compiler_pic_CXX=
12480             lt_prog_compiler_static_CXX='-non_shared'
12481             ;;
12482           *)
12483             ;;
12484         esac
12485         ;;
12486       psos*)
12487         ;;
12488       sco*)
12489         case $cc_basename in
12490           CC)
12491             lt_prog_compiler_pic_CXX='-fPIC'
12492             ;;
12493           *)
12494             ;;
12495         esac
12496         ;;
12497       solaris*)
12498         case $cc_basename in
12499           CC)
12500             # Sun C++ 4.2, 5.x and Centerline C++
12501             lt_prog_compiler_pic_CXX='-KPIC'
12502             lt_prog_compiler_static_CXX='-Bstatic'
12503             lt_prog_compiler_wl_CXX='-Qoption ld '
12504             ;;
12505           gcx)
12506             # Green Hills C++ Compiler
12507             lt_prog_compiler_pic_CXX='-PIC'
12508             ;;
12509           *)
12510             ;;
12511         esac
12512         ;;
12513       sunos4*)
12514         case $cc_basename in
12515           CC)
12516             # Sun C++ 4.x
12517             lt_prog_compiler_pic_CXX='-pic'
12518             lt_prog_compiler_static_CXX='-Bstatic'
12519             ;;
12520           lcc)
12521             # Lucid
12522             lt_prog_compiler_pic_CXX='-pic'
12523             ;;
12524           *)
12525             ;;
12526         esac
12527         ;;
12528       tandem*)
12529         case $cc_basename in
12530           NCC)
12531             # NonStop-UX NCC 3.20
12532             lt_prog_compiler_pic_CXX='-KPIC'
12533             ;;
12534           *)
12535             ;;
12536         esac
12537         ;;
12538       unixware*)
12539         ;;
12540       vxworks*)
12541         ;;
12542       *)
12543         lt_prog_compiler_can_build_shared_CXX=no
12544         ;;
12545     esac
12546   fi
12547
12548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12549 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12550
12551 #
12552 # Check to make sure the PIC flag actually works.
12553 #
12554 if test -n "$lt_prog_compiler_pic_CXX"; then
12555
12556 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12558 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   lt_prog_compiler_pic_works_CXX=no
12562   ac_outfile=conftest.$ac_objext
12563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12564    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12565    # Insert the option either (1) after the last *FLAGS variable, or
12566    # (2) before a word containing "conftest.", or (3) at the end.
12567    # Note that $ac_compile itself does not contain backslashes and begins
12568    # with a dollar sign (not a hyphen), so the echo should work correctly.
12569    # The option is referenced via a variable to avoid confusing sed.
12570    lt_compile=`echo "$ac_compile" | $SED \
12571    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573    -e 's:$: $lt_compiler_flag:'`
12574    (eval echo "\"\$as_me:12574: $lt_compile\"" >&5)
12575    (eval "$lt_compile" 2>conftest.err)
12576    ac_status=$?
12577    cat conftest.err >&5
12578    echo "$as_me:12578: \$? = $ac_status" >&5
12579    if (exit $ac_status) && test -s "$ac_outfile"; then
12580      # The compiler can only warn and ignore the option if not recognized
12581      # So say no if there are warnings
12582      if test ! -s conftest.err; then
12583        lt_prog_compiler_pic_works_CXX=yes
12584      fi
12585    fi
12586    $rm conftest*
12587
12588 fi
12589 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12590 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12591
12592 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12593     case $lt_prog_compiler_pic_CXX in
12594      "" | " "*) ;;
12595      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12596      esac
12597 else
12598     lt_prog_compiler_pic_CXX=
12599      lt_prog_compiler_can_build_shared_CXX=no
12600 fi
12601
12602 fi
12603 case "$host_os" in
12604   # For platforms which do not support PIC, -DPIC is meaningless:
12605   *djgpp*)
12606     lt_prog_compiler_pic_CXX=
12607     ;;
12608   *)
12609     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12610     ;;
12611 esac
12612
12613 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12615 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   lt_cv_prog_compiler_c_o_CXX=no
12619    $rm -r conftest 2>/dev/null
12620    mkdir conftest
12621    cd conftest
12622    mkdir out
12623    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12624
12625    lt_compiler_flag="-o out/conftest2.$ac_objext"
12626    # Insert the option either (1) after the last *FLAGS variable, or
12627    # (2) before a word containing "conftest.", or (3) at the end.
12628    # Note that $ac_compile itself does not contain backslashes and begins
12629    # with a dollar sign (not a hyphen), so the echo should work correctly.
12630    lt_compile=`echo "$ac_compile" | $SED \
12631    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633    -e 's:$: $lt_compiler_flag:'`
12634    (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635    (eval "$lt_compile" 2>out/conftest.err)
12636    ac_status=$?
12637    cat out/conftest.err >&5
12638    echo "$as_me:12638: \$? = $ac_status" >&5
12639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12640    then
12641      # The compiler can only warn and ignore the option if not recognized
12642      # So say no if there are warnings
12643      if test ! -s out/conftest.err; then
12644        lt_cv_prog_compiler_c_o_CXX=yes
12645      fi
12646    fi
12647    chmod u+w .
12648    $rm conftest*
12649    # SGI C++ compiler will create directory out/ii_files/ for
12650    # template instantiation
12651    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12652    $rm out/* && rmdir out
12653    cd ..
12654    rmdir conftest
12655    $rm conftest*
12656
12657 fi
12658 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12659 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12660
12661
12662 hard_links="nottested"
12663 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12664   # do not overwrite the value of need_locks provided by the user
12665   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12667   hard_links=yes
12668   $rm conftest*
12669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12670   touch conftest.a
12671   ln conftest.a conftest.b 2>&5 || hard_links=no
12672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673   echo "$as_me:$LINENO: result: $hard_links" >&5
12674 echo "${ECHO_T}$hard_links" >&6
12675   if test "$hard_links" = no; then
12676     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12678     need_locks=warn
12679   fi
12680 else
12681   need_locks=no
12682 fi
12683
12684 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12685 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12686
12687   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12688   case $host_os in
12689   aix4* | aix5*)
12690     # If we're using GNU nm, then we don't want the "-C" option.
12691     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12692     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12693       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12694     else
12695       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12696     fi
12697     ;;
12698   pw32*)
12699     export_symbols_cmds_CXX="$ltdll_cmds"
12700   ;;
12701   cygwin* | mingw*)
12702     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12703   ;;
12704   *)
12705     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12706   ;;
12707   esac
12708
12709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12710 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12711 test "$ld_shlibs_CXX" = no && can_build_shared=no
12712
12713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12714 if test "$GCC" = yes; then
12715   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12716 fi
12717
12718 #
12719 # Do we need to explicitly link libc?
12720 #
12721 case "x$archive_cmds_need_lc_CXX" in
12722 x|xyes)
12723   # Assume -lc should be added
12724   archive_cmds_need_lc_CXX=yes
12725
12726   if test "$enable_shared" = yes && test "$GCC" = yes; then
12727     case $archive_cmds_CXX in
12728     *'~'*)
12729       # FIXME: we may have to deal with multi-command sequences.
12730       ;;
12731     '$CC '*)
12732       # Test whether the compiler implicitly links with -lc since on some
12733       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12734       # to ld, don't add -lc before -lgcc.
12735       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12737       $rm conftest*
12738       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12739
12740       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741   (eval $ac_compile) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } 2>conftest.err; then
12745         soname=conftest
12746         lib=conftest
12747         libobjs=conftest.$ac_objext
12748         deplibs=
12749         wl=$lt_prog_compiler_wl_CXX
12750         compiler_flags=-v
12751         linker_flags=-v
12752         verstring=
12753         output_objdir=.
12754         libname=conftest
12755         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12756         allow_undefined_flag_CXX=
12757         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12758   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }
12762         then
12763           archive_cmds_need_lc_CXX=no
12764         else
12765           archive_cmds_need_lc_CXX=yes
12766         fi
12767         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12768       else
12769         cat conftest.err 1>&5
12770       fi
12771       $rm conftest*
12772       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12773 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12774       ;;
12775     esac
12776   fi
12777   ;;
12778 esac
12779
12780 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12782 library_names_spec=
12783 libname_spec='lib$name'
12784 soname_spec=
12785 shrext_cmds=".so"
12786 postinstall_cmds=
12787 postuninstall_cmds=
12788 finish_cmds=
12789 finish_eval=
12790 shlibpath_var=
12791 shlibpath_overrides_runpath=unknown
12792 version_type=none
12793 dynamic_linker="$host_os ld.so"
12794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12795 if test "$GCC" = yes; then
12796   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12797   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12798     # if the path contains ";" then we assume it to be the separator
12799     # otherwise default to the standard path separator (i.e. ":") - it is
12800     # assumed that no part of a normal pathname contains ";" but that should
12801     # okay in the real world where ";" in dirpaths is itself problematic.
12802     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12803   else
12804     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12805   fi
12806 else
12807   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12808 fi
12809 need_lib_prefix=unknown
12810 hardcode_into_libs=no
12811
12812 # when you set need_version to no, make sure it does not cause -set_version
12813 # flags to be left without arguments
12814 need_version=unknown
12815
12816 case $host_os in
12817 aix3*)
12818   version_type=linux
12819   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12820   shlibpath_var=LIBPATH
12821
12822   # AIX 3 has no versioning support, so we append a major version to the name.
12823   soname_spec='${libname}${release}${shared_ext}$major'
12824   ;;
12825
12826 aix4* | aix5*)
12827   version_type=linux
12828   need_lib_prefix=no
12829   need_version=no
12830   hardcode_into_libs=yes
12831   if test "$host_cpu" = ia64; then
12832     # AIX 5 supports IA64
12833     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12834     shlibpath_var=LD_LIBRARY_PATH
12835   else
12836     # With GCC up to 2.95.x, collect2 would create an import file
12837     # for dependence libraries.  The import file would start with
12838     # the line `#! .'.  This would cause the generated library to
12839     # depend on `.', always an invalid library.  This was fixed in
12840     # development snapshots of GCC prior to 3.0.
12841     case $host_os in
12842       aix4 | aix4.[01] | aix4.[01].*)
12843       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12844            echo ' yes '
12845            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12846         :
12847       else
12848         can_build_shared=no
12849       fi
12850       ;;
12851     esac
12852     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12853     # soname into executable. Probably we can add versioning support to
12854     # collect2, so additional links can be useful in future.
12855     if test "$aix_use_runtimelinking" = yes; then
12856       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12857       # instead of lib<name>.a to let people know that these are not
12858       # typical AIX shared libraries.
12859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860     else
12861       # We preserve .a as extension for shared libraries through AIX4.2
12862       # and later when we are not doing run time linking.
12863       library_names_spec='${libname}${release}.a $libname.a'
12864       soname_spec='${libname}${release}${shared_ext}$major'
12865     fi
12866     shlibpath_var=LIBPATH
12867   fi
12868   ;;
12869
12870 amigaos*)
12871   library_names_spec='$libname.ixlibrary $libname.a'
12872   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12873   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'
12874   ;;
12875
12876 beos*)
12877   library_names_spec='${libname}${shared_ext}'
12878   dynamic_linker="$host_os ld.so"
12879   shlibpath_var=LIBRARY_PATH
12880   ;;
12881
12882 bsdi[45]*)
12883   version_type=linux
12884   need_version=no
12885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886   soname_spec='${libname}${release}${shared_ext}$major'
12887   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12888   shlibpath_var=LD_LIBRARY_PATH
12889   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12890   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12891   # the default ld.so.conf also contains /usr/contrib/lib and
12892   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12893   # libtool to hard-code these into programs
12894   ;;
12895
12896 cygwin* | mingw* | pw32*)
12897   version_type=windows
12898   shrext_cmds=".dll"
12899   need_version=no
12900   need_lib_prefix=no
12901
12902   case $GCC,$host_os in
12903   yes,cygwin* | yes,mingw* | yes,pw32*)
12904     library_names_spec='$libname.dll.a'
12905     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12906     postinstall_cmds='base_file=`basename \${file}`;
12907       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
12908       dldir=$destdir/`dirname \$dlpath`;
12909       test -d \$dldir || mkdir -p \$dldir;
12910       $install_prog $dir/$dlname \$dldir/$dlname'
12911     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
12912       dlpath=$dir/\$dldll;
12913        $rm \$dlpath'
12914     shlibpath_overrides_runpath=yes
12915
12916     case $host_os in
12917     cygwin*)
12918       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12919       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12920       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12921       ;;
12922     mingw*)
12923       # MinGW DLLs use traditional 'lib' prefix
12924       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12925       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12927         # It is most probably a Windows format PATH printed by
12928         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12929         # path with ; separators, and with drive letters. We can handle the
12930         # drive letters (cygwin fileutils understands them), so leave them,
12931         # especially as we might pass files found there to a mingw objdump,
12932         # which wouldn't understand a cygwinified path. Ahh.
12933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12934       else
12935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12936       fi
12937       ;;
12938     pw32*)
12939       # pw32 DLLs use 'pw' prefix rather than 'lib'
12940       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12941       ;;
12942     esac
12943     ;;
12944
12945   *)
12946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12947     ;;
12948   esac
12949   dynamic_linker='Win32 ld.exe'
12950   # FIXME: first we should search . and the directory the executable is in
12951   shlibpath_var=PATH
12952   ;;
12953
12954 darwin* | rhapsody*)
12955   dynamic_linker="$host_os dyld"
12956   version_type=darwin
12957   need_lib_prefix=no
12958   need_version=no
12959   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12960   soname_spec='${libname}${release}${major}$shared_ext'
12961   shlibpath_overrides_runpath=yes
12962   shlibpath_var=DYLD_LIBRARY_PATH
12963   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12964   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12965   if test "$GCC" = yes; then
12966     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"`
12967   else
12968     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12969   fi
12970   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12971   ;;
12972
12973 dgux*)
12974   version_type=linux
12975   need_lib_prefix=no
12976   need_version=no
12977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12978   soname_spec='${libname}${release}${shared_ext}$major'
12979   shlibpath_var=LD_LIBRARY_PATH
12980   ;;
12981
12982 freebsd1*)
12983   dynamic_linker=no
12984   ;;
12985
12986 kfreebsd*-gnu)
12987   version_type=linux
12988   need_lib_prefix=no
12989   need_version=no
12990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12991   soname_spec='${libname}${release}${shared_ext}$major'
12992   shlibpath_var=LD_LIBRARY_PATH
12993   shlibpath_overrides_runpath=no
12994   hardcode_into_libs=yes
12995   dynamic_linker='GNU ld.so'
12996   ;;
12997
12998 freebsd*)
12999   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13000   version_type=freebsd-$objformat
13001   case $version_type in
13002     freebsd-elf*)
13003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13004       need_version=no
13005       need_lib_prefix=no
13006       ;;
13007     freebsd-*)
13008       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13009       need_version=yes
13010       ;;
13011   esac
13012   shlibpath_var=LD_LIBRARY_PATH
13013   case $host_os in
13014   freebsd2*)
13015     shlibpath_overrides_runpath=yes
13016     ;;
13017   freebsd3.01* | freebsdelf3.01*)
13018     shlibpath_overrides_runpath=yes
13019     hardcode_into_libs=yes
13020     ;;
13021   *) # from 3.2 on
13022     shlibpath_overrides_runpath=no
13023     hardcode_into_libs=yes
13024     ;;
13025   esac
13026   ;;
13027
13028 gnu*)
13029   version_type=linux
13030   need_lib_prefix=no
13031   need_version=no
13032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13033   soname_spec='${libname}${release}${shared_ext}$major'
13034   shlibpath_var=LD_LIBRARY_PATH
13035   hardcode_into_libs=yes
13036   ;;
13037
13038 hpux9* | hpux10* | hpux11*)
13039   # Give a soname corresponding to the major version so that dld.sl refuses to
13040   # link against other versions.
13041   version_type=sunos
13042   need_lib_prefix=no
13043   need_version=no
13044   case "$host_cpu" in
13045   ia64*)
13046     shrext_cmds='.so'
13047     hardcode_into_libs=yes
13048     dynamic_linker="$host_os dld.so"
13049     shlibpath_var=LD_LIBRARY_PATH
13050     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052     soname_spec='${libname}${release}${shared_ext}$major'
13053     if test "X$HPUX_IA64_MODE" = X32; then
13054       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13055     else
13056       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13057     fi
13058     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13059     ;;
13060    hppa*64*)
13061      shrext_cmds='.sl'
13062      hardcode_into_libs=yes
13063      dynamic_linker="$host_os dld.sl"
13064      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13065      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13066      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067      soname_spec='${libname}${release}${shared_ext}$major'
13068      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13069      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13070      ;;
13071    *)
13072     shrext_cmds='.sl'
13073     dynamic_linker="$host_os dld.sl"
13074     shlibpath_var=SHLIB_PATH
13075     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077     soname_spec='${libname}${release}${shared_ext}$major'
13078     ;;
13079   esac
13080   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13081   postinstall_cmds='chmod 555 $lib'
13082   ;;
13083
13084 irix5* | irix6* | nonstopux*)
13085   case $host_os in
13086     nonstopux*) version_type=nonstopux ;;
13087     *)
13088         if test "$lt_cv_prog_gnu_ld" = yes; then
13089                 version_type=linux
13090         else
13091                 version_type=irix
13092         fi ;;
13093   esac
13094   need_lib_prefix=no
13095   need_version=no
13096   soname_spec='${libname}${release}${shared_ext}$major'
13097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13098   case $host_os in
13099   irix5* | nonstopux*)
13100     libsuff= shlibsuff=
13101     ;;
13102   *)
13103     case $LD in # libtool.m4 will add one of these switches to LD
13104     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13105       libsuff= shlibsuff= libmagic=32-bit;;
13106     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13107       libsuff=32 shlibsuff=N32 libmagic=N32;;
13108     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13109       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13110     *) libsuff= shlibsuff= libmagic=never-match;;
13111     esac
13112     ;;
13113   esac
13114   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13115   shlibpath_overrides_runpath=no
13116   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13117   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13118   hardcode_into_libs=yes
13119   ;;
13120
13121 # No shared lib support for Linux oldld, aout, or coff.
13122 linux*oldld* | linux*aout* | linux*coff*)
13123   dynamic_linker=no
13124   ;;
13125
13126 # This must be Linux ELF.
13127 linux*)
13128   version_type=linux
13129   need_lib_prefix=no
13130   need_version=no
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   soname_spec='${libname}${release}${shared_ext}$major'
13133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13134   shlibpath_var=LD_LIBRARY_PATH
13135   shlibpath_overrides_runpath=no
13136   # This implies no fast_install, which is unacceptable.
13137   # Some rework will be needed to allow for fast_install
13138   # before this can be enabled.
13139   hardcode_into_libs=yes
13140
13141   # Append ld.so.conf contents to the search path
13142   if test -f /etc/ld.so.conf; then
13143     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13144     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13145   fi
13146
13147   # We used to test for /lib/ld.so.1 and disable shared libraries on
13148   # powerpc, because MkLinux only supported shared libraries with the
13149   # GNU dynamic linker.  Since this was broken with cross compilers,
13150   # most powerpc-linux boxes support dynamic linking these days and
13151   # people can always --disable-shared, the test was removed, and we
13152   # assume the GNU/Linux dynamic linker is in use.
13153   dynamic_linker='GNU/Linux ld.so'
13154   ;;
13155
13156 knetbsd*-gnu)
13157   version_type=linux
13158   need_lib_prefix=no
13159   need_version=no
13160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161   soname_spec='${libname}${release}${shared_ext}$major'
13162   shlibpath_var=LD_LIBRARY_PATH
13163   shlibpath_overrides_runpath=no
13164   hardcode_into_libs=yes
13165   dynamic_linker='GNU ld.so'
13166   ;;
13167
13168 netbsd*)
13169   version_type=sunos
13170   need_lib_prefix=no
13171   need_version=no
13172   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13174     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175     dynamic_linker='NetBSD (a.out) ld.so'
13176   else
13177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13178     soname_spec='${libname}${release}${shared_ext}$major'
13179     dynamic_linker='NetBSD ld.elf_so'
13180   fi
13181   shlibpath_var=LD_LIBRARY_PATH
13182   shlibpath_overrides_runpath=yes
13183   hardcode_into_libs=yes
13184   ;;
13185
13186 newsos6)
13187   version_type=linux
13188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   shlibpath_overrides_runpath=yes
13191   ;;
13192
13193 nto-qnx*)
13194   version_type=linux
13195   need_lib_prefix=no
13196   need_version=no
13197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198   soname_spec='${libname}${release}${shared_ext}$major'
13199   shlibpath_var=LD_LIBRARY_PATH
13200   shlibpath_overrides_runpath=yes
13201   ;;
13202
13203 openbsd*)
13204   version_type=sunos
13205   need_lib_prefix=no
13206   need_version=no
13207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13209   shlibpath_var=LD_LIBRARY_PATH
13210   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13211     case $host_os in
13212       openbsd2.[89] | openbsd2.[89].*)
13213         shlibpath_overrides_runpath=no
13214         ;;
13215       *)
13216         shlibpath_overrides_runpath=yes
13217         ;;
13218       esac
13219   else
13220     shlibpath_overrides_runpath=yes
13221   fi
13222   ;;
13223
13224 os2*)
13225   libname_spec='$name'
13226   shrext_cmds=".dll"
13227   need_lib_prefix=no
13228   library_names_spec='$libname${shared_ext} $libname.a'
13229   dynamic_linker='OS/2 ld.exe'
13230   shlibpath_var=LIBPATH
13231   ;;
13232
13233 osf3* | osf4* | osf5*)
13234   version_type=osf
13235   need_lib_prefix=no
13236   need_version=no
13237   soname_spec='${libname}${release}${shared_ext}$major'
13238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239   shlibpath_var=LD_LIBRARY_PATH
13240   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13241   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13242   ;;
13243
13244 sco3.2v5*)
13245   version_type=osf
13246   soname_spec='${libname}${release}${shared_ext}$major'
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248   shlibpath_var=LD_LIBRARY_PATH
13249   ;;
13250
13251 solaris*)
13252   version_type=linux
13253   need_lib_prefix=no
13254   need_version=no
13255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256   soname_spec='${libname}${release}${shared_ext}$major'
13257   shlibpath_var=LD_LIBRARY_PATH
13258   shlibpath_overrides_runpath=yes
13259   hardcode_into_libs=yes
13260   # ldd complains unless libraries are executable
13261   postinstall_cmds='chmod +x $lib'
13262   ;;
13263
13264 sunos4*)
13265   version_type=sunos
13266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13267   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13268   shlibpath_var=LD_LIBRARY_PATH
13269   shlibpath_overrides_runpath=yes
13270   if test "$with_gnu_ld" = yes; then
13271     need_lib_prefix=no
13272   fi
13273   need_version=yes
13274   ;;
13275
13276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13277   version_type=linux
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   shlibpath_var=LD_LIBRARY_PATH
13281   case $host_vendor in
13282     sni)
13283       shlibpath_overrides_runpath=no
13284       need_lib_prefix=no
13285       export_dynamic_flag_spec='${wl}-Blargedynsym'
13286       runpath_var=LD_RUN_PATH
13287       ;;
13288     siemens)
13289       need_lib_prefix=no
13290       ;;
13291     motorola)
13292       need_lib_prefix=no
13293       need_version=no
13294       shlibpath_overrides_runpath=no
13295       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13296       ;;
13297   esac
13298   ;;
13299
13300 sysv4*MP*)
13301   if test -d /usr/nec ;then
13302     version_type=linux
13303     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13304     soname_spec='$libname${shared_ext}.$major'
13305     shlibpath_var=LD_LIBRARY_PATH
13306   fi
13307   ;;
13308
13309 uts4*)
13310   version_type=linux
13311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312   soname_spec='${libname}${release}${shared_ext}$major'
13313   shlibpath_var=LD_LIBRARY_PATH
13314   ;;
13315
13316 *)
13317   dynamic_linker=no
13318   ;;
13319 esac
13320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13321 echo "${ECHO_T}$dynamic_linker" >&6
13322 test "$dynamic_linker" = no && can_build_shared=no
13323
13324 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13326 hardcode_action_CXX=
13327 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13328    test -n "$runpath_var_CXX" || \
13329    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13330
13331   # We can hardcode non-existant directories.
13332   if test "$hardcode_direct_CXX" != no &&
13333      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13334      # have to relink, otherwise we might link with an installed library
13335      # when we should be linking with a yet-to-be-installed one
13336      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13337      test "$hardcode_minus_L_CXX" != no; then
13338     # Linking always hardcodes the temporary library directory.
13339     hardcode_action_CXX=relink
13340   else
13341     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13342     hardcode_action_CXX=immediate
13343   fi
13344 else
13345   # We cannot hardcode anything, or else we can only hardcode existing
13346   # directories.
13347   hardcode_action_CXX=unsupported
13348 fi
13349 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13350 echo "${ECHO_T}$hardcode_action_CXX" >&6
13351
13352 if test "$hardcode_action_CXX" = relink; then
13353   # Fast installation is not supported
13354   enable_fast_install=no
13355 elif test "$shlibpath_overrides_runpath" = yes ||
13356      test "$enable_shared" = no; then
13357   # Fast installation is not necessary
13358   enable_fast_install=needless
13359 fi
13360
13361 striplib=
13362 old_striplib=
13363 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13366   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13367   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13368   echo "$as_me:$LINENO: result: yes" >&5
13369 echo "${ECHO_T}yes" >&6
13370 else
13371 # FIXME - insert some real tests, host_os isn't really good enough
13372   case $host_os in
13373    darwin*)
13374        if test -n "$STRIP" ; then
13375          striplib="$STRIP -x"
13376          echo "$as_me:$LINENO: result: yes" >&5
13377 echo "${ECHO_T}yes" >&6
13378        else
13379   echo "$as_me:$LINENO: result: no" >&5
13380 echo "${ECHO_T}no" >&6
13381 fi
13382        ;;
13383    *)
13384   echo "$as_me:$LINENO: result: no" >&5
13385 echo "${ECHO_T}no" >&6
13386     ;;
13387   esac
13388 fi
13389
13390 if test "x$enable_dlopen" != xyes; then
13391   enable_dlopen=unknown
13392   enable_dlopen_self=unknown
13393   enable_dlopen_self_static=unknown
13394 else
13395   lt_cv_dlopen=no
13396   lt_cv_dlopen_libs=
13397
13398   case $host_os in
13399   beos*)
13400     lt_cv_dlopen="load_add_on"
13401     lt_cv_dlopen_libs=
13402     lt_cv_dlopen_self=yes
13403     ;;
13404
13405   mingw* | pw32*)
13406     lt_cv_dlopen="LoadLibrary"
13407     lt_cv_dlopen_libs=
13408    ;;
13409
13410   cygwin*)
13411     lt_cv_dlopen="dlopen"
13412     lt_cv_dlopen_libs=
13413    ;;
13414
13415   darwin*)
13416   # if libdl is installed we need to link against it
13417     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-ldl  $LIBS"
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430
13431 /* Override any gcc2 internal prototype to avoid an error.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 /* We use char because int might match the return type of a gcc2
13436    builtin and then its argument prototype would still apply.  */
13437 char dlopen ();
13438 int
13439 main ()
13440 {
13441 dlopen ();
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448   (eval $ac_link) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_cxx_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest$ac_exeext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_lib_dl_dlopen=yes
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_lib_dl_dlopen=no
13474 fi
13475 rm -f conftest.err conftest.$ac_objext \
13476       conftest$ac_exeext conftest.$ac_ext
13477 LIBS=$ac_check_lib_save_LIBS
13478 fi
13479 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13481 if test $ac_cv_lib_dl_dlopen = yes; then
13482   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13483 else
13484
13485     lt_cv_dlopen="dyld"
13486     lt_cv_dlopen_libs=
13487     lt_cv_dlopen_self=yes
13488
13489 fi
13490
13491    ;;
13492
13493   *)
13494     echo "$as_me:$LINENO: checking for shl_load" >&5
13495 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13496 if test "${ac_cv_func_shl_load+set}" = set; then
13497   echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499   cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13507 #define shl_load innocuous_shl_load
13508
13509 /* System header to define __stub macros and hopefully few prototypes,
13510     which can conflict with char shl_load (); below.
13511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13512     <limits.h> exists even on freestanding compilers.  */
13513
13514 #ifdef __STDC__
13515 # include <limits.h>
13516 #else
13517 # include <assert.h>
13518 #endif
13519
13520 #undef shl_load
13521
13522 /* Override any gcc2 internal prototype to avoid an error.  */
13523 #ifdef __cplusplus
13524 extern "C"
13525 {
13526 #endif
13527 /* We use char because int might match the return type of a gcc2
13528    builtin and then its argument prototype would still apply.  */
13529 char shl_load ();
13530 /* The GNU C library defines this for functions which it implements
13531     to always fail with ENOSYS.  Some functions are actually named
13532     something starting with __ and the normal name is an alias.  */
13533 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13534 choke me
13535 #else
13536 char (*f) () = shl_load;
13537 #endif
13538 #ifdef __cplusplus
13539 }
13540 #endif
13541
13542 int
13543 main ()
13544 {
13545 return f != shl_load;
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552   (eval $ac_link) 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_cxx_werror_flag"
13560                          || test ! -s conftest.err'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest$ac_exeext'
13567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568   (eval $ac_try) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   ac_cv_func_shl_load=yes
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_cv_func_shl_load=no
13578 fi
13579 rm -f conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext conftest.$ac_ext
13581 fi
13582 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13583 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13584 if test $ac_cv_func_shl_load = yes; then
13585   lt_cv_dlopen="shl_load"
13586 else
13587   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13590   echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592   ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-ldld  $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600
13601 /* Override any gcc2 internal prototype to avoid an error.  */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 /* We use char because int might match the return type of a gcc2
13606    builtin and then its argument prototype would still apply.  */
13607 char shl_load ();
13608 int
13609 main ()
13610 {
13611 shl_load ();
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618   (eval $ac_link) 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } &&
13625          { ac_try='test -z "$ac_cxx_werror_flag"
13626                          || test ! -s conftest.err'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; } &&
13632          { ac_try='test -s conftest$ac_exeext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   ac_cv_lib_dld_shl_load=yes
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_cv_lib_dld_shl_load=no
13644 fi
13645 rm -f conftest.err conftest.$ac_objext \
13646       conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13650 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13651 if test $ac_cv_lib_dld_shl_load = yes; then
13652   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13653 else
13654   echo "$as_me:$LINENO: checking for dlopen" >&5
13655 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13656 if test "${ac_cv_func_dlopen+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13667 #define dlopen innocuous_dlopen
13668
13669 /* System header to define __stub macros and hopefully few prototypes,
13670     which can conflict with char dlopen (); below.
13671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13672     <limits.h> exists even on freestanding compilers.  */
13673
13674 #ifdef __STDC__
13675 # include <limits.h>
13676 #else
13677 # include <assert.h>
13678 #endif
13679
13680 #undef dlopen
13681
13682 /* Override any gcc2 internal prototype to avoid an error.  */
13683 #ifdef __cplusplus
13684 extern "C"
13685 {
13686 #endif
13687 /* We use char because int might match the return type of a gcc2
13688    builtin and then its argument prototype would still apply.  */
13689 char dlopen ();
13690 /* The GNU C library defines this for functions which it implements
13691     to always fail with ENOSYS.  Some functions are actually named
13692     something starting with __ and the normal name is an alias.  */
13693 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13694 choke me
13695 #else
13696 char (*f) () = dlopen;
13697 #endif
13698 #ifdef __cplusplus
13699 }
13700 #endif
13701
13702 int
13703 main ()
13704 {
13705 return f != dlopen;
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712   (eval $ac_link) 2>conftest.er1
13713   ac_status=$?
13714   grep -v '^ *+' conftest.er1 >conftest.err
13715   rm -f conftest.er1
13716   cat conftest.err >&5
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -z "$ac_cxx_werror_flag"
13720                          || test ! -s conftest.err'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } &&
13726          { ac_try='test -s conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_func_dlopen=yes
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_cv_func_dlopen=no
13738 fi
13739 rm -f conftest.err conftest.$ac_objext \
13740       conftest$ac_exeext conftest.$ac_ext
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13743 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13744 if test $ac_cv_func_dlopen = yes; then
13745   lt_cv_dlopen="dlopen"
13746 else
13747   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-ldl  $LIBS"
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760
13761 /* Override any gcc2 internal prototype to avoid an error.  */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 /* We use char because int might match the return type of a gcc2
13766    builtin and then its argument prototype would still apply.  */
13767 char dlopen ();
13768 int
13769 main ()
13770 {
13771 dlopen ();
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778   (eval $ac_link) 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -z "$ac_cxx_werror_flag"
13786                          || test ! -s conftest.err'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; } &&
13792          { ac_try='test -s conftest$ac_exeext'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; }; then
13798   ac_cv_lib_dl_dlopen=yes
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_cv_lib_dl_dlopen=no
13804 fi
13805 rm -f conftest.err conftest.$ac_objext \
13806       conftest$ac_exeext conftest.$ac_ext
13807 LIBS=$ac_check_lib_save_LIBS
13808 fi
13809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13811 if test $ac_cv_lib_dl_dlopen = yes; then
13812   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13813 else
13814   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13815 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13816 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-lsvld  $LIBS"
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827
13828 /* Override any gcc2 internal prototype to avoid an error.  */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 /* We use char because int might match the return type of a gcc2
13833    builtin and then its argument prototype would still apply.  */
13834 char dlopen ();
13835 int
13836 main ()
13837 {
13838 dlopen ();
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845   (eval $ac_link) 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_cxx_werror_flag"
13853                          || test ! -s conftest.err'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest$ac_exeext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_cv_lib_svld_dlopen=yes
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 ac_cv_lib_svld_dlopen=no
13871 fi
13872 rm -f conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext conftest.$ac_ext
13874 LIBS=$ac_check_lib_save_LIBS
13875 fi
13876 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13878 if test $ac_cv_lib_svld_dlopen = yes; then
13879   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13880 else
13881   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13882 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13883 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886   ac_check_lib_save_LIBS=$LIBS
13887 LIBS="-ldld  $LIBS"
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894
13895 /* Override any gcc2 internal prototype to avoid an error.  */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 /* We use char because int might match the return type of a gcc2
13900    builtin and then its argument prototype would still apply.  */
13901 char dld_link ();
13902 int
13903 main ()
13904 {
13905 dld_link ();
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext conftest$ac_exeext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912   (eval $ac_link) 2>conftest.er1
13913   ac_status=$?
13914   grep -v '^ *+' conftest.er1 >conftest.err
13915   rm -f conftest.er1
13916   cat conftest.err >&5
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -z "$ac_cxx_werror_flag"
13920                          || test ! -s conftest.err'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; } &&
13926          { ac_try='test -s conftest$ac_exeext'
13927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928   (eval $ac_try) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_cv_lib_dld_dld_link=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_cv_lib_dld_dld_link=no
13938 fi
13939 rm -f conftest.err conftest.$ac_objext \
13940       conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13942 fi
13943 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13944 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13945 if test $ac_cv_lib_dld_dld_link = yes; then
13946   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13947 fi
13948
13949
13950 fi
13951
13952
13953 fi
13954
13955
13956 fi
13957
13958
13959 fi
13960
13961
13962 fi
13963
13964     ;;
13965   esac
13966
13967   if test "x$lt_cv_dlopen" != xno; then
13968     enable_dlopen=yes
13969   else
13970     enable_dlopen=no
13971   fi
13972
13973   case $lt_cv_dlopen in
13974   dlopen)
13975     save_CPPFLAGS="$CPPFLAGS"
13976     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13977
13978     save_LDFLAGS="$LDFLAGS"
13979     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13980
13981     save_LIBS="$LIBS"
13982     LIBS="$lt_cv_dlopen_libs $LIBS"
13983
13984     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13985 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13986 if test "${lt_cv_dlopen_self+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989           if test "$cross_compiling" = yes; then :
13990   lt_cv_dlopen_self=cross
13991 else
13992   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13993   lt_status=$lt_dlunknown
13994   cat > conftest.$ac_ext <<EOF
13995 #line 13995 "configure"
13996 #include "confdefs.h"
13997
13998 #if HAVE_DLFCN_H
13999 #include <dlfcn.h>
14000 #endif
14001
14002 #include <stdio.h>
14003
14004 #ifdef RTLD_GLOBAL
14005 #  define LT_DLGLOBAL           RTLD_GLOBAL
14006 #else
14007 #  ifdef DL_GLOBAL
14008 #    define LT_DLGLOBAL         DL_GLOBAL
14009 #  else
14010 #    define LT_DLGLOBAL         0
14011 #  endif
14012 #endif
14013
14014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14015    find out it does not work in some platform. */
14016 #ifndef LT_DLLAZY_OR_NOW
14017 #  ifdef RTLD_LAZY
14018 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14019 #  else
14020 #    ifdef DL_LAZY
14021 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14022 #    else
14023 #      ifdef RTLD_NOW
14024 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14025 #      else
14026 #        ifdef DL_NOW
14027 #          define LT_DLLAZY_OR_NOW      DL_NOW
14028 #        else
14029 #          define LT_DLLAZY_OR_NOW      0
14030 #        endif
14031 #      endif
14032 #    endif
14033 #  endif
14034 #endif
14035
14036 #ifdef __cplusplus
14037 extern "C" void exit (int);
14038 #endif
14039
14040 void fnord() { int i=42;}
14041 int main ()
14042 {
14043   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14044   int status = $lt_dlunknown;
14045
14046   if (self)
14047     {
14048       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14049       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14050       /* dlclose (self); */
14051     }
14052
14053     exit (status);
14054 }
14055 EOF
14056   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057   (eval $ac_link) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14061     (./conftest; exit; ) 2>/dev/null
14062     lt_status=$?
14063     case x$lt_status in
14064       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14065       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14066       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14067     esac
14068   else :
14069     # compilation failed
14070     lt_cv_dlopen_self=no
14071   fi
14072 fi
14073 rm -fr conftest*
14074
14075
14076 fi
14077 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14078 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14079
14080     if test "x$lt_cv_dlopen_self" = xyes; then
14081       LDFLAGS="$LDFLAGS $link_static_flag"
14082       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14083 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14084 if test "${lt_cv_dlopen_self_static+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087           if test "$cross_compiling" = yes; then :
14088   lt_cv_dlopen_self_static=cross
14089 else
14090   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14091   lt_status=$lt_dlunknown
14092   cat > conftest.$ac_ext <<EOF
14093 #line 14093 "configure"
14094 #include "confdefs.h"
14095
14096 #if HAVE_DLFCN_H
14097 #include <dlfcn.h>
14098 #endif
14099
14100 #include <stdio.h>
14101
14102 #ifdef RTLD_GLOBAL
14103 #  define LT_DLGLOBAL           RTLD_GLOBAL
14104 #else
14105 #  ifdef DL_GLOBAL
14106 #    define LT_DLGLOBAL         DL_GLOBAL
14107 #  else
14108 #    define LT_DLGLOBAL         0
14109 #  endif
14110 #endif
14111
14112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14113    find out it does not work in some platform. */
14114 #ifndef LT_DLLAZY_OR_NOW
14115 #  ifdef RTLD_LAZY
14116 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14117 #  else
14118 #    ifdef DL_LAZY
14119 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14120 #    else
14121 #      ifdef RTLD_NOW
14122 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14123 #      else
14124 #        ifdef DL_NOW
14125 #          define LT_DLLAZY_OR_NOW      DL_NOW
14126 #        else
14127 #          define LT_DLLAZY_OR_NOW      0
14128 #        endif
14129 #      endif
14130 #    endif
14131 #  endif
14132 #endif
14133
14134 #ifdef __cplusplus
14135 extern "C" void exit (int);
14136 #endif
14137
14138 void fnord() { int i=42;}
14139 int main ()
14140 {
14141   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14142   int status = $lt_dlunknown;
14143
14144   if (self)
14145     {
14146       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14147       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14148       /* dlclose (self); */
14149     }
14150
14151     exit (status);
14152 }
14153 EOF
14154   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155   (eval $ac_link) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14159     (./conftest; exit; ) 2>/dev/null
14160     lt_status=$?
14161     case x$lt_status in
14162       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14163       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14164       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14165     esac
14166   else :
14167     # compilation failed
14168     lt_cv_dlopen_self_static=no
14169   fi
14170 fi
14171 rm -fr conftest*
14172
14173
14174 fi
14175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14176 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14177     fi
14178
14179     CPPFLAGS="$save_CPPFLAGS"
14180     LDFLAGS="$save_LDFLAGS"
14181     LIBS="$save_LIBS"
14182     ;;
14183   esac
14184
14185   case $lt_cv_dlopen_self in
14186   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14187   *) enable_dlopen_self=unknown ;;
14188   esac
14189
14190   case $lt_cv_dlopen_self_static in
14191   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14192   *) enable_dlopen_self_static=unknown ;;
14193   esac
14194 fi
14195
14196
14197 # The else clause should only fire when bootstrapping the
14198 # libtool distribution, otherwise you forgot to ship ltmain.sh
14199 # with your package, and you will get complaints that there are
14200 # no rules to generate ltmain.sh.
14201 if test -f "$ltmain"; then
14202   # See if we are running on zsh, and set the options which allow our commands through
14203   # without removal of \ escapes.
14204   if test -n "${ZSH_VERSION+set}" ; then
14205     setopt NO_GLOB_SUBST
14206   fi
14207   # Now quote all the things that may contain metacharacters while being
14208   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14209   # variables and quote the copies for generation of the libtool script.
14210   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14211     SED SHELL STRIP \
14212     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14213     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14214     deplibs_check_method reload_flag reload_cmds need_locks \
14215     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14216     lt_cv_sys_global_symbol_to_c_name_address \
14217     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14218     old_postinstall_cmds old_postuninstall_cmds \
14219     compiler_CXX \
14220     CC_CXX \
14221     LD_CXX \
14222     lt_prog_compiler_wl_CXX \
14223     lt_prog_compiler_pic_CXX \
14224     lt_prog_compiler_static_CXX \
14225     lt_prog_compiler_no_builtin_flag_CXX \
14226     export_dynamic_flag_spec_CXX \
14227     thread_safe_flag_spec_CXX \
14228     whole_archive_flag_spec_CXX \
14229     enable_shared_with_static_runtimes_CXX \
14230     old_archive_cmds_CXX \
14231     old_archive_from_new_cmds_CXX \
14232     predep_objects_CXX \
14233     postdep_objects_CXX \
14234     predeps_CXX \
14235     postdeps_CXX \
14236     compiler_lib_search_path_CXX \
14237     archive_cmds_CXX \
14238     archive_expsym_cmds_CXX \
14239     postinstall_cmds_CXX \
14240     postuninstall_cmds_CXX \
14241     old_archive_from_expsyms_cmds_CXX \
14242     allow_undefined_flag_CXX \
14243     no_undefined_flag_CXX \
14244     export_symbols_cmds_CXX \
14245     hardcode_libdir_flag_spec_CXX \
14246     hardcode_libdir_flag_spec_ld_CXX \
14247     hardcode_libdir_separator_CXX \
14248     hardcode_automatic_CXX \
14249     module_cmds_CXX \
14250     module_expsym_cmds_CXX \
14251     lt_cv_prog_compiler_c_o_CXX \
14252     exclude_expsyms_CXX \
14253     include_expsyms_CXX; do
14254
14255     case $var in
14256     old_archive_cmds_CXX | \
14257     old_archive_from_new_cmds_CXX | \
14258     archive_cmds_CXX | \
14259     archive_expsym_cmds_CXX | \
14260     module_cmds_CXX | \
14261     module_expsym_cmds_CXX | \
14262     old_archive_from_expsyms_cmds_CXX | \
14263     export_symbols_cmds_CXX | \
14264     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14265     postinstall_cmds | postuninstall_cmds | \
14266     old_postinstall_cmds | old_postuninstall_cmds | \
14267     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14268       # Double-quote double-evaled strings.
14269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14270       ;;
14271     *)
14272       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14273       ;;
14274     esac
14275   done
14276
14277   case $lt_echo in
14278   *'\$0 --fallback-echo"')
14279     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14280     ;;
14281   esac
14282
14283 cfgfile="$ofile"
14284
14285   cat <<__EOF__ >> "$cfgfile"
14286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14287
14288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14289
14290 # Shell to use when invoking shell scripts.
14291 SHELL=$lt_SHELL
14292
14293 # Whether or not to build shared libraries.
14294 build_libtool_libs=$enable_shared
14295
14296 # Whether or not to build static libraries.
14297 build_old_libs=$enable_static
14298
14299 # Whether or not to add -lc for building shared libraries.
14300 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14301
14302 # Whether or not to disallow shared libs when runtime libs are static
14303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14304
14305 # Whether or not to optimize for fast installation.
14306 fast_install=$enable_fast_install
14307
14308 # The host system.
14309 host_alias=$host_alias
14310 host=$host
14311
14312 # An echo program that does not interpret backslashes.
14313 echo=$lt_echo
14314
14315 # The archiver.
14316 AR=$lt_AR
14317 AR_FLAGS=$lt_AR_FLAGS
14318
14319 # A C compiler.
14320 LTCC=$lt_LTCC
14321
14322 # A language-specific compiler.
14323 CC=$lt_compiler_CXX
14324
14325 # Is the compiler the GNU C compiler?
14326 with_gcc=$GCC_CXX
14327
14328 # An ERE matcher.
14329 EGREP=$lt_EGREP
14330
14331 # The linker used to build libraries.
14332 LD=$lt_LD_CXX
14333
14334 # Whether we need hard or soft links.
14335 LN_S=$lt_LN_S
14336
14337 # A BSD-compatible nm program.
14338 NM=$lt_NM
14339
14340 # A symbol stripping program
14341 STRIP=$lt_STRIP
14342
14343 # Used to examine libraries when file_magic_cmd begins "file"
14344 MAGIC_CMD=$MAGIC_CMD
14345
14346 # Used on cygwin: DLL creation program.
14347 DLLTOOL="$DLLTOOL"
14348
14349 # Used on cygwin: object dumper.
14350 OBJDUMP="$OBJDUMP"
14351
14352 # Used on cygwin: assembler.
14353 AS="$AS"
14354
14355 # The name of the directory that contains temporary libtool files.
14356 objdir=$objdir
14357
14358 # How to create reloadable object files.
14359 reload_flag=$lt_reload_flag
14360 reload_cmds=$lt_reload_cmds
14361
14362 # How to pass a linker flag through the compiler.
14363 wl=$lt_lt_prog_compiler_wl_CXX
14364
14365 # Object file suffix (normally "o").
14366 objext="$ac_objext"
14367
14368 # Old archive suffix (normally "a").
14369 libext="$libext"
14370
14371 # Shared library suffix (normally ".so").
14372 shrext_cmds='$shrext_cmds'
14373
14374 # Executable file suffix (normally "").
14375 exeext="$exeext"
14376
14377 # Additional compiler flags for building library objects.
14378 pic_flag=$lt_lt_prog_compiler_pic_CXX
14379 pic_mode=$pic_mode
14380
14381 # What is the maximum length of a command?
14382 max_cmd_len=$lt_cv_sys_max_cmd_len
14383
14384 # Does compiler simultaneously support -c and -o options?
14385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14386
14387 # Must we lock files when doing compilation ?
14388 need_locks=$lt_need_locks
14389
14390 # Do we need the lib prefix for modules?
14391 need_lib_prefix=$need_lib_prefix
14392
14393 # Do we need a version for libraries?
14394 need_version=$need_version
14395
14396 # Whether dlopen is supported.
14397 dlopen_support=$enable_dlopen
14398
14399 # Whether dlopen of programs is supported.
14400 dlopen_self=$enable_dlopen_self
14401
14402 # Whether dlopen of statically linked programs is supported.
14403 dlopen_self_static=$enable_dlopen_self_static
14404
14405 # Compiler flag to prevent dynamic linking.
14406 link_static_flag=$lt_lt_prog_compiler_static_CXX
14407
14408 # Compiler flag to turn off builtin functions.
14409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14410
14411 # Compiler flag to allow reflexive dlopens.
14412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14413
14414 # Compiler flag to generate shared objects directly from archives.
14415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14416
14417 # Compiler flag to generate thread-safe objects.
14418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14419
14420 # Library versioning type.
14421 version_type=$version_type
14422
14423 # Format of library name prefix.
14424 libname_spec=$lt_libname_spec
14425
14426 # List of archive names.  First name is the real one, the rest are links.
14427 # The last name is the one that the linker finds with -lNAME.
14428 library_names_spec=$lt_library_names_spec
14429
14430 # The coded name of the library, if different from the real name.
14431 soname_spec=$lt_soname_spec
14432
14433 # Commands used to build and install an old-style archive.
14434 RANLIB=$lt_RANLIB
14435 old_archive_cmds=$lt_old_archive_cmds_CXX
14436 old_postinstall_cmds=$lt_old_postinstall_cmds
14437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14438
14439 # Create an old-style archive from a shared archive.
14440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14441
14442 # Create a temporary old-style archive to link instead of a shared archive.
14443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14444
14445 # Commands used to build and install a shared archive.
14446 archive_cmds=$lt_archive_cmds_CXX
14447 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14448 postinstall_cmds=$lt_postinstall_cmds
14449 postuninstall_cmds=$lt_postuninstall_cmds
14450
14451 # Commands used to build a loadable module (assumed same as above if empty)
14452 module_cmds=$lt_module_cmds_CXX
14453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14454
14455 # Commands to strip libraries.
14456 old_striplib=$lt_old_striplib
14457 striplib=$lt_striplib
14458
14459 # Dependencies to place before the objects being linked to create a
14460 # shared library.
14461 predep_objects=$lt_predep_objects_CXX
14462
14463 # Dependencies to place after the objects being linked to create a
14464 # shared library.
14465 postdep_objects=$lt_postdep_objects_CXX
14466
14467 # Dependencies to place before the objects being linked to create a
14468 # shared library.
14469 predeps=$lt_predeps_CXX
14470
14471 # Dependencies to place after the objects being linked to create a
14472 # shared library.
14473 postdeps=$lt_postdeps_CXX
14474
14475 # The library search path used internally by the compiler when linking
14476 # a shared library.
14477 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14478
14479 # Method to check whether dependent libraries are shared objects.
14480 deplibs_check_method=$lt_deplibs_check_method
14481
14482 # Command to use when deplibs_check_method == file_magic.
14483 file_magic_cmd=$lt_file_magic_cmd
14484
14485 # Flag that allows shared libraries with undefined symbols to be built.
14486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14487
14488 # Flag that forces no undefined symbols.
14489 no_undefined_flag=$lt_no_undefined_flag_CXX
14490
14491 # Commands used to finish a libtool library installation in a directory.
14492 finish_cmds=$lt_finish_cmds
14493
14494 # Same as above, but a single script fragment to be evaled but not shown.
14495 finish_eval=$lt_finish_eval
14496
14497 # Take the output of nm and produce a listing of raw symbols and C names.
14498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14499
14500 # Transform the output of nm in a proper C declaration
14501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14502
14503 # Transform the output of nm in a C name address pair
14504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14505
14506 # This is the shared library runtime path variable.
14507 runpath_var=$runpath_var
14508
14509 # This is the shared library path variable.
14510 shlibpath_var=$shlibpath_var
14511
14512 # Is shlibpath searched before the hard-coded library search path?
14513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14514
14515 # How to hardcode a shared library path into an executable.
14516 hardcode_action=$hardcode_action_CXX
14517
14518 # Whether we should hardcode library paths into libraries.
14519 hardcode_into_libs=$hardcode_into_libs
14520
14521 # Flag to hardcode \$libdir into a binary during linking.
14522 # This must work even if \$libdir does not exist.
14523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14524
14525 # If ld is used when linking, flag to hardcode \$libdir into
14526 # a binary during linking. This must work even if \$libdir does
14527 # not exist.
14528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14529
14530 # Whether we need a single -rpath flag with a separated argument.
14531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14532
14533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14534 # resulting binary.
14535 hardcode_direct=$hardcode_direct_CXX
14536
14537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14538 # resulting binary.
14539 hardcode_minus_L=$hardcode_minus_L_CXX
14540
14541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14542 # the resulting binary.
14543 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14544
14545 # Set to yes if building a shared library automatically hardcodes DIR into the library
14546 # and all subsequent libraries and executables linked against it.
14547 hardcode_automatic=$hardcode_automatic_CXX
14548
14549 # Variables whose values should be saved in libtool wrapper scripts and
14550 # restored at relink time.
14551 variables_saved_for_relink="$variables_saved_for_relink"
14552
14553 # Whether libtool must link a program against all its dependency libraries.
14554 link_all_deplibs=$link_all_deplibs_CXX
14555
14556 # Compile-time system search path for libraries
14557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14558
14559 # Run-time system search path for libraries
14560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14561
14562 # Fix the shell variable \$srcfile for the compiler.
14563 fix_srcfile_path="$fix_srcfile_path_CXX"
14564
14565 # Set to yes if exported symbols are required.
14566 always_export_symbols=$always_export_symbols_CXX
14567
14568 # The commands to list exported symbols.
14569 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14570
14571 # The commands to extract the exported symbol list from a shared archive.
14572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14573
14574 # Symbols that should not be listed in the preloaded symbols.
14575 exclude_expsyms=$lt_exclude_expsyms_CXX
14576
14577 # Symbols that must always be exported.
14578 include_expsyms=$lt_include_expsyms_CXX
14579
14580 # ### END LIBTOOL TAG CONFIG: $tagname
14581
14582 __EOF__
14583
14584
14585 else
14586   # If there is no Makefile yet, we rely on a make rule to execute
14587   # `config.status --recheck' to rerun these tests and create the
14588   # libtool script then.
14589   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14590   if test -f "$ltmain_in"; then
14591     test -f Makefile && make "$ltmain"
14592   fi
14593 fi
14594
14595
14596 ac_ext=c
14597 ac_cpp='$CPP $CPPFLAGS'
14598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14601
14602 CC=$lt_save_CC
14603 LDCXX=$LD
14604 LD=$lt_save_LD
14605 GCC=$lt_save_GCC
14606 with_gnu_ldcxx=$with_gnu_ld
14607 with_gnu_ld=$lt_save_with_gnu_ld
14608 lt_cv_path_LDCXX=$lt_cv_path_LD
14609 lt_cv_path_LD=$lt_save_path_LD
14610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14612
14613         else
14614           tagname=""
14615         fi
14616         ;;
14617
14618       F77)
14619         if test -n "$F77" && test "X$F77" != "Xno"; then
14620
14621 ac_ext=f
14622 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14623 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14625
14626
14627 archive_cmds_need_lc_F77=no
14628 allow_undefined_flag_F77=
14629 always_export_symbols_F77=no
14630 archive_expsym_cmds_F77=
14631 export_dynamic_flag_spec_F77=
14632 hardcode_direct_F77=no
14633 hardcode_libdir_flag_spec_F77=
14634 hardcode_libdir_flag_spec_ld_F77=
14635 hardcode_libdir_separator_F77=
14636 hardcode_minus_L_F77=no
14637 hardcode_automatic_F77=no
14638 module_cmds_F77=
14639 module_expsym_cmds_F77=
14640 link_all_deplibs_F77=unknown
14641 old_archive_cmds_F77=$old_archive_cmds
14642 no_undefined_flag_F77=
14643 whole_archive_flag_spec_F77=
14644 enable_shared_with_static_runtimes_F77=no
14645
14646 # Source file extension for f77 test sources.
14647 ac_ext=f
14648
14649 # Object file extension for compiled f77 test sources.
14650 objext=o
14651 objext_F77=$objext
14652
14653 # Code to be used in simple compile tests
14654 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14655
14656 # Code to be used in simple link tests
14657 lt_simple_link_test_code="      program t\n      end\n"
14658
14659 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14660
14661 # If no C compiler was specified, use CC.
14662 LTCC=${LTCC-"$CC"}
14663
14664 # Allow CC to be a program name with arguments.
14665 compiler=$CC
14666
14667
14668 # Allow CC to be a program name with arguments.
14669 lt_save_CC="$CC"
14670 CC=${F77-"f77"}
14671 compiler=$CC
14672 compiler_F77=$CC
14673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14674
14675 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14676 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14677 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14678 echo "${ECHO_T}$can_build_shared" >&6
14679
14680 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14681 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14682 test "$can_build_shared" = "no" && enable_shared=no
14683
14684 # On AIX, shared libraries and static libraries use the same namespace, and
14685 # are all built from PIC.
14686 case "$host_os" in
14687 aix3*)
14688   test "$enable_shared" = yes && enable_static=no
14689   if test -n "$RANLIB"; then
14690     archive_cmds="$archive_cmds;\$RANLIB \$lib"
14691     postinstall_cmds='$RANLIB $lib'
14692   fi
14693   ;;
14694 aix4* | aix5*)
14695   test "$enable_shared" = yes && enable_static=no
14696   ;;
14697 esac
14698 echo "$as_me:$LINENO: result: $enable_shared" >&5
14699 echo "${ECHO_T}$enable_shared" >&6
14700
14701 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14703 # Make sure either enable_shared or enable_static is yes.
14704 test "$enable_shared" = yes || enable_static=yes
14705 echo "$as_me:$LINENO: result: $enable_static" >&5
14706 echo "${ECHO_T}$enable_static" >&6
14707
14708 test "$ld_shlibs_F77" = no && can_build_shared=no
14709
14710 GCC_F77="$G77"
14711 LD_F77="$LD"
14712
14713 lt_prog_compiler_wl_F77=
14714 lt_prog_compiler_pic_F77=
14715 lt_prog_compiler_static_F77=
14716
14717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14719
14720   if test "$GCC" = yes; then
14721     lt_prog_compiler_wl_F77='-Wl,'
14722     lt_prog_compiler_static_F77='-static'
14723
14724     case $host_os in
14725       aix*)
14726       # All AIX code is PIC.
14727       if test "$host_cpu" = ia64; then
14728         # AIX 5 now supports IA64 processor
14729         lt_prog_compiler_static_F77='-Bstatic'
14730       fi
14731       ;;
14732
14733     amigaos*)
14734       # FIXME: we need at least 68020 code to build shared libraries, but
14735       # adding the `-m68020' flag to GCC prevents building anything better,
14736       # like `-m68040'.
14737       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14738       ;;
14739
14740     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14741       # PIC is the default for these OSes.
14742       ;;
14743
14744     mingw* | pw32* | os2*)
14745       # This hack is so that the source file can tell whether it is being
14746       # built for inclusion in a dll (and should export symbols for example).
14747       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14748       ;;
14749
14750     darwin* | rhapsody*)
14751       # PIC is the default on this platform
14752       # Common symbols not allowed in MH_DYLIB files
14753       lt_prog_compiler_pic_F77='-fno-common'
14754       ;;
14755
14756     msdosdjgpp*)
14757       # Just because we use GCC doesn't mean we suddenly get shared libraries
14758       # on systems that don't support them.
14759       lt_prog_compiler_can_build_shared_F77=no
14760       enable_shared=no
14761       ;;
14762
14763     sysv4*MP*)
14764       if test -d /usr/nec; then
14765         lt_prog_compiler_pic_F77=-Kconform_pic
14766       fi
14767       ;;
14768
14769     hpux*)
14770       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14771       # not for PA HP-UX.
14772       case "$host_cpu" in
14773       hppa*64*|ia64*)
14774         # +Z the default
14775         ;;
14776       *)
14777         lt_prog_compiler_pic_F77='-fPIC'
14778         ;;
14779       esac
14780       ;;
14781
14782     *)
14783       lt_prog_compiler_pic_F77='-fPIC'
14784       ;;
14785     esac
14786   else
14787     # PORTME Check for flag to pass linker flags through the system compiler.
14788     case $host_os in
14789     aix*)
14790       lt_prog_compiler_wl_F77='-Wl,'
14791       if test "$host_cpu" = ia64; then
14792         # AIX 5 now supports IA64 processor
14793         lt_prog_compiler_static_F77='-Bstatic'
14794       else
14795         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14796       fi
14797       ;;
14798       darwin*)
14799         # PIC is the default on this platform
14800         # Common symbols not allowed in MH_DYLIB files
14801        case "$cc_basename" in
14802          xlc*)
14803          lt_prog_compiler_pic_F77='-qnocommon'
14804          lt_prog_compiler_wl_F77='-Wl,'
14805          ;;
14806        esac
14807        ;;
14808
14809     mingw* | pw32* | os2*)
14810       # This hack is so that the source file can tell whether it is being
14811       # built for inclusion in a dll (and should export symbols for example).
14812       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14813       ;;
14814
14815     hpux9* | hpux10* | hpux11*)
14816       lt_prog_compiler_wl_F77='-Wl,'
14817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818       # not for PA HP-UX.
14819       case "$host_cpu" in
14820       hppa*64*|ia64*)
14821         # +Z the default
14822         ;;
14823       *)
14824         lt_prog_compiler_pic_F77='+Z'
14825         ;;
14826       esac
14827       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14828       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14829       ;;
14830
14831     irix5* | irix6* | nonstopux*)
14832       lt_prog_compiler_wl_F77='-Wl,'
14833       # PIC (with -KPIC) is the default.
14834       lt_prog_compiler_static_F77='-non_shared'
14835       ;;
14836
14837     newsos6)
14838       lt_prog_compiler_pic_F77='-KPIC'
14839       lt_prog_compiler_static_F77='-Bstatic'
14840       ;;
14841
14842     linux*)
14843       case $CC in
14844       icc* | ecc*)
14845         lt_prog_compiler_wl_F77='-Wl,'
14846         lt_prog_compiler_pic_F77='-KPIC'
14847         lt_prog_compiler_static_F77='-static'
14848         ;;
14849       ccc*)
14850         lt_prog_compiler_wl_F77='-Wl,'
14851         # All Alpha code is PIC.
14852         lt_prog_compiler_static_F77='-non_shared'
14853         ;;
14854       esac
14855       ;;
14856
14857     osf3* | osf4* | osf5*)
14858       lt_prog_compiler_wl_F77='-Wl,'
14859       # All OSF/1 code is PIC.
14860       lt_prog_compiler_static_F77='-non_shared'
14861       ;;
14862
14863     sco3.2v5*)
14864       lt_prog_compiler_pic_F77='-Kpic'
14865       lt_prog_compiler_static_F77='-dn'
14866       ;;
14867
14868     solaris*)
14869       lt_prog_compiler_wl_F77='-Wl,'
14870       lt_prog_compiler_pic_F77='-KPIC'
14871       lt_prog_compiler_static_F77='-Bstatic'
14872       ;;
14873
14874     sunos4*)
14875       lt_prog_compiler_wl_F77='-Qoption ld '
14876       lt_prog_compiler_pic_F77='-PIC'
14877       lt_prog_compiler_static_F77='-Bstatic'
14878       ;;
14879
14880     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14881       lt_prog_compiler_wl_F77='-Wl,'
14882       lt_prog_compiler_pic_F77='-KPIC'
14883       lt_prog_compiler_static_F77='-Bstatic'
14884       ;;
14885
14886     sysv4*MP*)
14887       if test -d /usr/nec ;then
14888         lt_prog_compiler_pic_F77='-Kconform_pic'
14889         lt_prog_compiler_static_F77='-Bstatic'
14890       fi
14891       ;;
14892
14893     uts4*)
14894       lt_prog_compiler_pic_F77='-pic'
14895       lt_prog_compiler_static_F77='-Bstatic'
14896       ;;
14897
14898     *)
14899       lt_prog_compiler_can_build_shared_F77=no
14900       ;;
14901     esac
14902   fi
14903
14904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14905 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14906
14907 #
14908 # Check to make sure the PIC flag actually works.
14909 #
14910 if test -n "$lt_prog_compiler_pic_F77"; then
14911
14912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14914 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   lt_prog_compiler_pic_works_F77=no
14918   ac_outfile=conftest.$ac_objext
14919    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14920    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14921    # Insert the option either (1) after the last *FLAGS variable, or
14922    # (2) before a word containing "conftest.", or (3) at the end.
14923    # Note that $ac_compile itself does not contain backslashes and begins
14924    # with a dollar sign (not a hyphen), so the echo should work correctly.
14925    # The option is referenced via a variable to avoid confusing sed.
14926    lt_compile=`echo "$ac_compile" | $SED \
14927    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14929    -e 's:$: $lt_compiler_flag:'`
14930    (eval echo "\"\$as_me:14930: $lt_compile\"" >&5)
14931    (eval "$lt_compile" 2>conftest.err)
14932    ac_status=$?
14933    cat conftest.err >&5
14934    echo "$as_me:14934: \$? = $ac_status" >&5
14935    if (exit $ac_status) && test -s "$ac_outfile"; then
14936      # The compiler can only warn and ignore the option if not recognized
14937      # So say no if there are warnings
14938      if test ! -s conftest.err; then
14939        lt_prog_compiler_pic_works_F77=yes
14940      fi
14941    fi
14942    $rm conftest*
14943
14944 fi
14945 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14946 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14947
14948 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14949     case $lt_prog_compiler_pic_F77 in
14950      "" | " "*) ;;
14951      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14952      esac
14953 else
14954     lt_prog_compiler_pic_F77=
14955      lt_prog_compiler_can_build_shared_F77=no
14956 fi
14957
14958 fi
14959 case "$host_os" in
14960   # For platforms which do not support PIC, -DPIC is meaningless:
14961   *djgpp*)
14962     lt_prog_compiler_pic_F77=
14963     ;;
14964   *)
14965     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14966     ;;
14967 esac
14968
14969 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14970 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14971 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14972   echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974   lt_cv_prog_compiler_c_o_F77=no
14975    $rm -r conftest 2>/dev/null
14976    mkdir conftest
14977    cd conftest
14978    mkdir out
14979    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14980
14981    lt_compiler_flag="-o out/conftest2.$ac_objext"
14982    # Insert the option either (1) after the last *FLAGS variable, or
14983    # (2) before a word containing "conftest.", or (3) at the end.
14984    # Note that $ac_compile itself does not contain backslashes and begins
14985    # with a dollar sign (not a hyphen), so the echo should work correctly.
14986    lt_compile=`echo "$ac_compile" | $SED \
14987    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14989    -e 's:$: $lt_compiler_flag:'`
14990    (eval echo "\"\$as_me:14990: $lt_compile\"" >&5)
14991    (eval "$lt_compile" 2>out/conftest.err)
14992    ac_status=$?
14993    cat out/conftest.err >&5
14994    echo "$as_me:14994: \$? = $ac_status" >&5
14995    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14996    then
14997      # The compiler can only warn and ignore the option if not recognized
14998      # So say no if there are warnings
14999      if test ! -s out/conftest.err; then
15000        lt_cv_prog_compiler_c_o_F77=yes
15001      fi
15002    fi
15003    chmod u+w .
15004    $rm conftest*
15005    # SGI C++ compiler will create directory out/ii_files/ for
15006    # template instantiation
15007    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008    $rm out/* && rmdir out
15009    cd ..
15010    rmdir conftest
15011    $rm conftest*
15012
15013 fi
15014 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15016
15017
15018 hard_links="nottested"
15019 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020   # do not overwrite the value of need_locks provided by the user
15021   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15023   hard_links=yes
15024   $rm conftest*
15025   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026   touch conftest.a
15027   ln conftest.a conftest.b 2>&5 || hard_links=no
15028   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029   echo "$as_me:$LINENO: result: $hard_links" >&5
15030 echo "${ECHO_T}$hard_links" >&6
15031   if test "$hard_links" = no; then
15032     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15034     need_locks=warn
15035   fi
15036 else
15037   need_locks=no
15038 fi
15039
15040 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15042
15043   runpath_var=
15044   allow_undefined_flag_F77=
15045   enable_shared_with_static_runtimes_F77=no
15046   archive_cmds_F77=
15047   archive_expsym_cmds_F77=
15048   old_archive_From_new_cmds_F77=
15049   old_archive_from_expsyms_cmds_F77=
15050   export_dynamic_flag_spec_F77=
15051   whole_archive_flag_spec_F77=
15052   thread_safe_flag_spec_F77=
15053   hardcode_libdir_flag_spec_F77=
15054   hardcode_libdir_flag_spec_ld_F77=
15055   hardcode_libdir_separator_F77=
15056   hardcode_direct_F77=no
15057   hardcode_minus_L_F77=no
15058   hardcode_shlibpath_var_F77=unsupported
15059   link_all_deplibs_F77=unknown
15060   hardcode_automatic_F77=no
15061   module_cmds_F77=
15062   module_expsym_cmds_F77=
15063   always_export_symbols_F77=no
15064   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065   # include_expsyms should be a list of space-separated symbols to be *always*
15066   # included in the symbol list
15067   include_expsyms_F77=
15068   # exclude_expsyms can be an extended regexp of symbols to exclude
15069   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15070   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071   # as well as any symbol that contains `d'.
15072   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15073   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074   # platforms (ab)use it in PIC code, but their linkers get confused if
15075   # the symbol is explicitly referenced.  Since portable code cannot
15076   # rely on this symbol name, it's probably fine to never include it in
15077   # preloaded symbol tables.
15078   extract_expsyms_cmds=
15079
15080   case $host_os in
15081   cygwin* | mingw* | pw32*)
15082     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15083     # When not using gcc, we currently assume that we are using
15084     # Microsoft Visual C++.
15085     if test "$GCC" != yes; then
15086       with_gnu_ld=no
15087     fi
15088     ;;
15089   openbsd*)
15090     with_gnu_ld=no
15091     ;;
15092   esac
15093
15094   ld_shlibs_F77=yes
15095   if test "$with_gnu_ld" = yes; then
15096     # If archive_cmds runs LD, not CC, wlarc should be empty
15097     wlarc='${wl}'
15098
15099     # See if GNU ld supports shared libraries.
15100     case $host_os in
15101     aix3* | aix4* | aix5*)
15102       # On AIX/PPC, the GNU linker is very broken
15103       if test "$host_cpu" != ia64; then
15104         ld_shlibs_F77=no
15105         cat <<EOF 1>&2
15106
15107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15108 *** to be unable to reliably create shared libraries on AIX.
15109 *** Therefore, libtool is disabling shared libraries support.  If you
15110 *** really care for shared libraries, you may want to modify your PATH
15111 *** so that a non-GNU linker is found, and then restart.
15112
15113 EOF
15114       fi
15115       ;;
15116
15117     amigaos*)
15118       archive_cmds_F77='$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)'
15119       hardcode_libdir_flag_spec_F77='-L$libdir'
15120       hardcode_minus_L_F77=yes
15121
15122       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15123       # that the semantics of dynamic libraries on AmigaOS, at least up
15124       # to version 4, is to share data among multiple programs linked
15125       # with the same dynamic library.  Since this doesn't match the
15126       # behavior of shared libraries on other platforms, we can't use
15127       # them.
15128       ld_shlibs_F77=no
15129       ;;
15130
15131     beos*)
15132       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133         allow_undefined_flag_F77=unsupported
15134         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15135         # support --undefined.  This deserves some investigation.  FIXME
15136         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137       else
15138         ld_shlibs_F77=no
15139       fi
15140       ;;
15141
15142     cygwin* | mingw* | pw32*)
15143       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15144       # as there is no search path for DLLs.
15145       hardcode_libdir_flag_spec_F77='-L$libdir'
15146       allow_undefined_flag_F77=unsupported
15147       always_export_symbols_F77=no
15148       enable_shared_with_static_runtimes_F77=yes
15149       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15150
15151       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15153         # If the export-symbols file already is a .def file (1st line
15154         # is EXPORTS), use it as is; otherwise, prepend...
15155         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15156           cp $export_symbols $output_objdir/$soname.def;
15157         else
15158           echo EXPORTS > $output_objdir/$soname.def;
15159           cat $export_symbols >> $output_objdir/$soname.def;
15160         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15161       else
15162         ld_shlibs=no
15163       fi
15164       ;;
15165
15166     netbsd*)
15167       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15168         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15169         wlarc=
15170       else
15171         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173       fi
15174       ;;
15175
15176     solaris* | sysv5*)
15177       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15178         ld_shlibs_F77=no
15179         cat <<EOF 1>&2
15180
15181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15182 *** create shared libraries on Solaris systems.  Therefore, libtool
15183 *** is disabling shared libraries support.  We urge you to upgrade GNU
15184 *** binutils to release 2.9.1 or newer.  Another option is to modify
15185 *** your PATH or compiler configuration so that the native linker is
15186 *** used, and then restart.
15187
15188 EOF
15189       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15192       else
15193         ld_shlibs_F77=no
15194       fi
15195       ;;
15196
15197     sunos4*)
15198       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199       wlarc=
15200       hardcode_direct_F77=yes
15201       hardcode_shlibpath_var_F77=no
15202       ;;
15203
15204   linux*)
15205     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15206         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15207         archive_cmds_F77="$tmp_archive_cmds"
15208       supports_anon_versioning=no
15209       case `$LD -v 2>/dev/null` in
15210         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15211         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15212         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15213         *\ 2.11.*) ;; # other 2.11 versions
15214         *) supports_anon_versioning=yes ;;
15215       esac
15216       if test $supports_anon_versioning = yes; then
15217         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15218         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15219       else
15220         archive_expsym_cmds_F77="$tmp_archive_cmds"
15221       fi
15222     else
15223       ld_shlibs_F77=no
15224     fi
15225     ;;
15226
15227     *)
15228       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15229         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231       else
15232         ld_shlibs_F77=no
15233       fi
15234       ;;
15235     esac
15236
15237     if test "$ld_shlibs_F77" = yes; then
15238       runpath_var=LD_RUN_PATH
15239       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15240       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15241       # ancient GNU ld didn't support --whole-archive et. al.
15242       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15243         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15244       else
15245         whole_archive_flag_spec_F77=
15246       fi
15247     fi
15248   else
15249     # PORTME fill in a description of your system's linker (not GNU ld)
15250     case $host_os in
15251     aix3*)
15252       allow_undefined_flag_F77=unsupported
15253       always_export_symbols_F77=yes
15254       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE;$AR $AR_FLAGS $lib $output_objdir/$soname'
15255       # Note: this linker hardcodes the directories in LIBPATH if there
15256       # are no directories specified by -L.
15257       hardcode_minus_L_F77=yes
15258       if test "$GCC" = yes && test -z "$link_static_flag"; then
15259         # Neither direct hardcoding nor static linking is supported with a
15260         # broken collect2.
15261         hardcode_direct_F77=unsupported
15262       fi
15263       ;;
15264
15265     aix4* | aix5*)
15266       if test "$host_cpu" = ia64; then
15267         # On IA64, the linker does run time linking by default, so we don't
15268         # have to do anything special.
15269         aix_use_runtimelinking=no
15270         exp_sym_flag='-Bexport'
15271         no_entry_flag=""
15272       else
15273         # If we're using GNU nm, then we don't want the "-C" option.
15274         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15275         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15276           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15277         else
15278           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15279         fi
15280         aix_use_runtimelinking=no
15281
15282         # Test if we are trying to use run time linking or normal
15283         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15284         # need to do runtime linking.
15285         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15286           for ld_flag in $LDFLAGS; do
15287           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15288             aix_use_runtimelinking=yes
15289             break
15290           fi
15291           done
15292         esac
15293
15294         exp_sym_flag='-bexport'
15295         no_entry_flag='-bnoentry'
15296       fi
15297
15298       # When large executables or shared objects are built, AIX ld can
15299       # have problems creating the table of contents.  If linking a library
15300       # or program results in "error TOC overflow" add -mminimal-toc to
15301       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15302       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15303
15304       archive_cmds_F77=''
15305       hardcode_direct_F77=yes
15306       hardcode_libdir_separator_F77=':'
15307       link_all_deplibs_F77=yes
15308
15309       if test "$GCC" = yes; then
15310         case $host_os in aix4.012|aix4.012.*)
15311         # We only want to do this on AIX 4.2 and lower, the check
15312         # below for broken collect2 doesn't work under 4.3+
15313           collect2name=`${CC} -print-prog-name=collect2`
15314           if test -f "$collect2name" && \
15315            strings "$collect2name" | grep resolve_lib_name >/dev/null
15316           then
15317           # We have reworked collect2
15318           hardcode_direct_F77=yes
15319           else
15320           # We have old collect2
15321           hardcode_direct_F77=unsupported
15322           # It fails to find uninstalled libraries when the uninstalled
15323           # path is not listed in the libpath.  Setting hardcode_minus_L
15324           # to unsupported forces relinking
15325           hardcode_minus_L_F77=yes
15326           hardcode_libdir_flag_spec_F77='-L$libdir'
15327           hardcode_libdir_separator_F77=
15328           fi
15329         esac
15330         shared_flag='-shared'
15331       else
15332         # not using gcc
15333         if test "$host_cpu" = ia64; then
15334         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335         # chokes on -Wl,-G. The following line is correct:
15336           shared_flag='-G'
15337         else
15338         if test "$aix_use_runtimelinking" = yes; then
15339             shared_flag='${wl}-G'
15340           else
15341             shared_flag='${wl}-bM:SRE'
15342         fi
15343         fi
15344       fi
15345
15346       # It seems that -bexpall does not export symbols beginning with
15347       # underscore (_), so it is better to generate a list of symbols to export.
15348       always_export_symbols_F77=yes
15349       if test "$aix_use_runtimelinking" = yes; then
15350         # Warning - without using the other runtime loading flags (-brtl),
15351         # -berok will link without error, but may produce a broken library.
15352         allow_undefined_flag_F77='-berok'
15353        # Determine the default libpath from the value encoded in an empty executable.
15354        cat >conftest.$ac_ext <<_ACEOF
15355       program main
15356
15357       end
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361   (eval $ac_link) 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_f77_werror_flag"
15369                          || test ! -s conftest.err'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest$ac_exeext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381
15382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15383 }'`
15384 # Check for a 64-bit object if we didn't find anything.
15385 if 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; }
15386 }'`; fi
15387 else
15388   echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 fi
15392 rm -f conftest.err conftest.$ac_objext \
15393       conftest$ac_exeext conftest.$ac_ext
15394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15395
15396        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15397         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15398        else
15399         if test "$host_cpu" = ia64; then
15400           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15401           allow_undefined_flag_F77="-z nodefs"
15402           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15403         else
15404          # Determine the default libpath from the value encoded in an empty executable.
15405          cat >conftest.$ac_ext <<_ACEOF
15406       program main
15407
15408       end
15409 _ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412   (eval $ac_link) 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } &&
15419          { ac_try='test -z "$ac_f77_werror_flag"
15420                          || test ! -s conftest.err'
15421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422   (eval $ac_try) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; } &&
15426          { ac_try='test -s conftest$ac_exeext'
15427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428   (eval $ac_try) 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }; then
15432
15433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15434 }'`
15435 # Check for a 64-bit object if we didn't find anything.
15436 if 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; }
15437 }'`; fi
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 fi
15443 rm -f conftest.err conftest.$ac_objext \
15444       conftest$ac_exeext conftest.$ac_ext
15445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15446
15447          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15448           # Warning - without using the other run time loading flags,
15449           # -berok will link without error, but may produce a broken library.
15450           no_undefined_flag_F77=' ${wl}-bernotok'
15451           allow_undefined_flag_F77=' ${wl}-berok'
15452           # -bexpall does not export symbols beginning with underscore (_)
15453           always_export_symbols_F77=yes
15454           # Exported symbols can be pulled into shared objects from archives
15455           whole_archive_flag_spec_F77=' '
15456           archive_cmds_need_lc_F77=yes
15457           # This is similar to how AIX traditionally builds it's shared libraries.
15458           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15459         fi
15460       fi
15461       ;;
15462
15463     amigaos*)
15464       archive_cmds_F77='$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)'
15465       hardcode_libdir_flag_spec_F77='-L$libdir'
15466       hardcode_minus_L_F77=yes
15467       # see comment about different semantics on the GNU ld section
15468       ld_shlibs_F77=no
15469       ;;
15470
15471     bsdi[45]*)
15472       export_dynamic_flag_spec_F77=-rdynamic
15473       ;;
15474
15475     cygwin* | mingw* | pw32*)
15476       # When not using gcc, we currently assume that we are using
15477       # Microsoft Visual C++.
15478       # hardcode_libdir_flag_spec is actually meaningless, as there is
15479       # no search path for DLLs.
15480       hardcode_libdir_flag_spec_F77=' '
15481       allow_undefined_flag_F77=unsupported
15482       # Tell ltmain to make .lib files, not .a files.
15483       libext=lib
15484       # Tell ltmain to make .dll files, not .so files.
15485       shrext_cmds=".dll"
15486       # FIXME: Setting linknames here is a bad hack.
15487       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
15488       # The linker will automatically build a .lib file if we build a DLL.
15489       old_archive_From_new_cmds_F77='true'
15490       # FIXME: Should let the user specify the lib program.
15491       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15492       fix_srcfile_path='`cygpath -w "$srcfile"`'
15493       enable_shared_with_static_runtimes_F77=yes
15494       ;;
15495
15496     darwin* | rhapsody*)
15497       case "$host_os" in
15498         rhapsody* | darwin1.[012])
15499          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15500          ;;
15501        *) # Darwin 1.3 on
15502          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15503            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15504          else
15505            case ${MACOSX_DEPLOYMENT_TARGET} in
15506              10.[012])
15507                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15508                ;;
15509              10.*)
15510                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15511                ;;
15512            esac
15513          fi
15514          ;;
15515       esac
15516       archive_cmds_need_lc_F77=no
15517       hardcode_direct_F77=no
15518       hardcode_automatic_F77=yes
15519       hardcode_shlibpath_var_F77=unsupported
15520       whole_archive_flag_spec_F77=''
15521       link_all_deplibs_F77=yes
15522     if test "$GCC" = yes ; then
15523         output_verbose_link_cmd='echo'
15524         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15525       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15526       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15527       archive_expsym_cmds_F77='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}'
15528       module_expsym_cmds_F77='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}'
15529     else
15530       case "$cc_basename" in
15531         xlc*)
15532          output_verbose_link_cmd='echo'
15533          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15534          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536          archive_expsym_cmds_F77='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}'
15537           module_expsym_cmds_F77='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}'
15538           ;;
15539        *)
15540          ld_shlibs_F77=no
15541           ;;
15542       esac
15543     fi
15544       ;;
15545
15546     dgux*)
15547       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548       hardcode_libdir_flag_spec_F77='-L$libdir'
15549       hardcode_shlibpath_var_F77=no
15550       ;;
15551
15552     freebsd1*)
15553       ld_shlibs_F77=no
15554       ;;
15555
15556     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15557     # support.  Future versions do this automatically, but an explicit c++rt0.o
15558     # does not break anything, and helps significantly (at the cost of a little
15559     # extra space).
15560     freebsd2.2*)
15561       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15562       hardcode_libdir_flag_spec_F77='-R$libdir'
15563       hardcode_direct_F77=yes
15564       hardcode_shlibpath_var_F77=no
15565       ;;
15566
15567     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15568     freebsd2*)
15569       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15570       hardcode_direct_F77=yes
15571       hardcode_minus_L_F77=yes
15572       hardcode_shlibpath_var_F77=no
15573       ;;
15574
15575     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15576     freebsd* | kfreebsd*-gnu)
15577       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15578       hardcode_libdir_flag_spec_F77='-R$libdir'
15579       hardcode_direct_F77=yes
15580       hardcode_shlibpath_var_F77=no
15581       ;;
15582
15583     hpux9*)
15584       if test "$GCC" = yes; then
15585         archive_cmds_F77='$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'
15586       else
15587         archive_cmds_F77='$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'
15588       fi
15589       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15590       hardcode_libdir_separator_F77=:
15591       hardcode_direct_F77=yes
15592
15593       # hardcode_minus_L: Not really in the search PATH,
15594       # but as the default location of the library.
15595       hardcode_minus_L_F77=yes
15596       export_dynamic_flag_spec_F77='${wl}-E'
15597       ;;
15598
15599     hpux10* | hpux11*)
15600       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15601         case "$host_cpu" in
15602         hppa*64*|ia64*)
15603           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604           ;;
15605         *)
15606           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15607           ;;
15608         esac
15609       else
15610         case "$host_cpu" in
15611         hppa*64*|ia64*)
15612           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15613           ;;
15614         *)
15615           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616           ;;
15617         esac
15618       fi
15619       if test "$with_gnu_ld" = no; then
15620         case "$host_cpu" in
15621         hppa*64*)
15622           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15623           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15624           hardcode_libdir_separator_F77=:
15625           hardcode_direct_F77=no
15626           hardcode_shlibpath_var_F77=no
15627           ;;
15628         ia64*)
15629           hardcode_libdir_flag_spec_F77='-L$libdir'
15630           hardcode_direct_F77=no
15631           hardcode_shlibpath_var_F77=no
15632
15633           # hardcode_minus_L: Not really in the search PATH,
15634           # but as the default location of the library.
15635           hardcode_minus_L_F77=yes
15636           ;;
15637         *)
15638           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15639           hardcode_libdir_separator_F77=:
15640           hardcode_direct_F77=yes
15641           export_dynamic_flag_spec_F77='${wl}-E'
15642
15643           # hardcode_minus_L: Not really in the search PATH,
15644           # but as the default location of the library.
15645           hardcode_minus_L_F77=yes
15646           ;;
15647         esac
15648       fi
15649       ;;
15650
15651     irix5* | irix6* | nonstopux*)
15652       if test "$GCC" = yes; then
15653         archive_cmds_F77='$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'
15654       else
15655         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15656         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15657       fi
15658       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15659       hardcode_libdir_separator_F77=:
15660       link_all_deplibs_F77=yes
15661       ;;
15662
15663     netbsd*)
15664       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15665         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15666       else
15667         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15668       fi
15669       hardcode_libdir_flag_spec_F77='-R$libdir'
15670       hardcode_direct_F77=yes
15671       hardcode_shlibpath_var_F77=no
15672       ;;
15673
15674     newsos6)
15675       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676       hardcode_direct_F77=yes
15677       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15678       hardcode_libdir_separator_F77=:
15679       hardcode_shlibpath_var_F77=no
15680       ;;
15681
15682     openbsd*)
15683       hardcode_direct_F77=yes
15684       hardcode_shlibpath_var_F77=no
15685       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15686         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15687         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15688         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15689         export_dynamic_flag_spec_F77='${wl}-E'
15690       else
15691        case $host_os in
15692          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15693            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15694            hardcode_libdir_flag_spec_F77='-R$libdir'
15695            ;;
15696          *)
15697            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15698            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15699            ;;
15700        esac
15701       fi
15702       ;;
15703
15704     os2*)
15705       hardcode_libdir_flag_spec_F77='-L$libdir'
15706       hardcode_minus_L_F77=yes
15707       allow_undefined_flag_F77=unsupported
15708       archive_cmds_F77='$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'
15709       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15710       ;;
15711
15712     osf3*)
15713       if test "$GCC" = yes; then
15714         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15715         archive_cmds_F77='$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'
15716       else
15717         allow_undefined_flag_F77=' -expect_unresolved \*'
15718         archive_cmds_F77='$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'
15719       fi
15720       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15721       hardcode_libdir_separator_F77=:
15722       ;;
15723
15724     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15725       if test "$GCC" = yes; then
15726         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15727         archive_cmds_F77='$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'
15728         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15729       else
15730         allow_undefined_flag_F77=' -expect_unresolved \*'
15731         archive_cmds_F77='$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'
15732         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
15733         # Both c and cxx compiler support -rpath directly
15734         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15735       fi
15736       hardcode_libdir_separator_F77=:
15737       ;;
15738
15739     sco3.2v5*)
15740       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741       hardcode_shlibpath_var_F77=no
15742       export_dynamic_flag_spec_F77='${wl}-Bexport'
15743       runpath_var=LD_RUN_PATH
15744       hardcode_runpath_var=yes
15745       ;;
15746
15747     solaris*)
15748       no_undefined_flag_F77=' -z text'
15749       if test "$GCC" = yes; then
15750         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
15752       else
15753         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15755       fi
15756       hardcode_libdir_flag_spec_F77='-R$libdir'
15757       hardcode_shlibpath_var_F77=no
15758       case $host_os in
15759       solaris2.[0-5] | solaris2.[0-5].*) ;;
15760       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15761         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15762       esac
15763       link_all_deplibs_F77=yes
15764       ;;
15765
15766     sunos4*)
15767       if test "x$host_vendor" = xsequent; then
15768         # Use $CC to link under sequent, because it throws in some extra .o
15769         # files that make .init and .fini sections work.
15770         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15771       else
15772         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15773       fi
15774       hardcode_libdir_flag_spec_F77='-L$libdir'
15775       hardcode_direct_F77=yes
15776       hardcode_minus_L_F77=yes
15777       hardcode_shlibpath_var_F77=no
15778       ;;
15779
15780     sysv4)
15781       case $host_vendor in
15782         sni)
15783           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784           hardcode_direct_F77=yes # is this really true???
15785         ;;
15786         siemens)
15787           ## LD is ld it makes a PLAMLIB
15788           ## CC just makes a GrossModule.
15789           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15790           reload_cmds_F77='$CC -r -o $output$reload_objs'
15791           hardcode_direct_F77=no
15792         ;;
15793         motorola)
15794           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15796         ;;
15797       esac
15798       runpath_var='LD_RUN_PATH'
15799       hardcode_shlibpath_var_F77=no
15800       ;;
15801
15802     sysv4.3*)
15803       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804       hardcode_shlibpath_var_F77=no
15805       export_dynamic_flag_spec_F77='-Bexport'
15806       ;;
15807
15808     sysv4*MP*)
15809       if test -d /usr/nec; then
15810         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811         hardcode_shlibpath_var_F77=no
15812         runpath_var=LD_RUN_PATH
15813         hardcode_runpath_var=yes
15814         ld_shlibs_F77=yes
15815       fi
15816       ;;
15817
15818     sysv4.2uw2*)
15819       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15820       hardcode_direct_F77=yes
15821       hardcode_minus_L_F77=no
15822       hardcode_shlibpath_var_F77=no
15823       hardcode_runpath_var=yes
15824       runpath_var=LD_RUN_PATH
15825       ;;
15826
15827    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15828       no_undefined_flag_F77='${wl}-z ${wl}text'
15829       if test "$GCC" = yes; then
15830         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831       else
15832         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833       fi
15834       runpath_var='LD_RUN_PATH'
15835       hardcode_shlibpath_var_F77=no
15836       ;;
15837
15838     sysv5*)
15839       no_undefined_flag_F77=' -z text'
15840       # $CC -shared without GNU ld will not create a library from C++
15841       # object files and a static libstdc++, better avoid it by now
15842       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15844       hardcode_libdir_flag_spec_F77=
15845       hardcode_shlibpath_var_F77=no
15846       runpath_var='LD_RUN_PATH'
15847       ;;
15848
15849     uts4*)
15850       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851       hardcode_libdir_flag_spec_F77='-L$libdir'
15852       hardcode_shlibpath_var_F77=no
15853       ;;
15854
15855     *)
15856       ld_shlibs_F77=no
15857       ;;
15858     esac
15859   fi
15860
15861 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15862 echo "${ECHO_T}$ld_shlibs_F77" >&6
15863 test "$ld_shlibs_F77" = no && can_build_shared=no
15864
15865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15866 if test "$GCC" = yes; then
15867   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15868 fi
15869
15870 #
15871 # Do we need to explicitly link libc?
15872 #
15873 case "x$archive_cmds_need_lc_F77" in
15874 x|xyes)
15875   # Assume -lc should be added
15876   archive_cmds_need_lc_F77=yes
15877
15878   if test "$enable_shared" = yes && test "$GCC" = yes; then
15879     case $archive_cmds_F77 in
15880     *'~'*)
15881       # FIXME: we may have to deal with multi-command sequences.
15882       ;;
15883     '$CC '*)
15884       # Test whether the compiler implicitly links with -lc since on some
15885       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15886       # to ld, don't add -lc before -lgcc.
15887       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15889       $rm conftest*
15890       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15891
15892       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893   (eval $ac_compile) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } 2>conftest.err; then
15897         soname=conftest
15898         lib=conftest
15899         libobjs=conftest.$ac_objext
15900         deplibs=
15901         wl=$lt_prog_compiler_wl_F77
15902         compiler_flags=-v
15903         linker_flags=-v
15904         verstring=
15905         output_objdir=.
15906         libname=conftest
15907         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15908         allow_undefined_flag_F77=
15909         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15910   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }
15914         then
15915           archive_cmds_need_lc_F77=no
15916         else
15917           archive_cmds_need_lc_F77=yes
15918         fi
15919         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15920       else
15921         cat conftest.err 1>&5
15922       fi
15923       $rm conftest*
15924       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15925 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15926       ;;
15927     esac
15928   fi
15929   ;;
15930 esac
15931
15932 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15933 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15934 library_names_spec=
15935 libname_spec='lib$name'
15936 soname_spec=
15937 shrext_cmds=".so"
15938 postinstall_cmds=
15939 postuninstall_cmds=
15940 finish_cmds=
15941 finish_eval=
15942 shlibpath_var=
15943 shlibpath_overrides_runpath=unknown
15944 version_type=none
15945 dynamic_linker="$host_os ld.so"
15946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15947 if test "$GCC" = yes; then
15948   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15950     # if the path contains ";" then we assume it to be the separator
15951     # otherwise default to the standard path separator (i.e. ":") - it is
15952     # assumed that no part of a normal pathname contains ";" but that should
15953     # okay in the real world where ";" in dirpaths is itself problematic.
15954     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955   else
15956     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15957   fi
15958 else
15959   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15960 fi
15961 need_lib_prefix=unknown
15962 hardcode_into_libs=no
15963
15964 # when you set need_version to no, make sure it does not cause -set_version
15965 # flags to be left without arguments
15966 need_version=unknown
15967
15968 case $host_os in
15969 aix3*)
15970   version_type=linux
15971   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15972   shlibpath_var=LIBPATH
15973
15974   # AIX 3 has no versioning support, so we append a major version to the name.
15975   soname_spec='${libname}${release}${shared_ext}$major'
15976   ;;
15977
15978 aix4* | aix5*)
15979   version_type=linux
15980   need_lib_prefix=no
15981   need_version=no
15982   hardcode_into_libs=yes
15983   if test "$host_cpu" = ia64; then
15984     # AIX 5 supports IA64
15985     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15986     shlibpath_var=LD_LIBRARY_PATH
15987   else
15988     # With GCC up to 2.95.x, collect2 would create an import file
15989     # for dependence libraries.  The import file would start with
15990     # the line `#! .'.  This would cause the generated library to
15991     # depend on `.', always an invalid library.  This was fixed in
15992     # development snapshots of GCC prior to 3.0.
15993     case $host_os in
15994       aix4 | aix4.[01] | aix4.[01].*)
15995       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15996            echo ' yes '
15997            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15998         :
15999       else
16000         can_build_shared=no
16001       fi
16002       ;;
16003     esac
16004     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16005     # soname into executable. Probably we can add versioning support to
16006     # collect2, so additional links can be useful in future.
16007     if test "$aix_use_runtimelinking" = yes; then
16008       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16009       # instead of lib<name>.a to let people know that these are not
16010       # typical AIX shared libraries.
16011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012     else
16013       # We preserve .a as extension for shared libraries through AIX4.2
16014       # and later when we are not doing run time linking.
16015       library_names_spec='${libname}${release}.a $libname.a'
16016       soname_spec='${libname}${release}${shared_ext}$major'
16017     fi
16018     shlibpath_var=LIBPATH
16019   fi
16020   ;;
16021
16022 amigaos*)
16023   library_names_spec='$libname.ixlibrary $libname.a'
16024   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16025   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'
16026   ;;
16027
16028 beos*)
16029   library_names_spec='${libname}${shared_ext}'
16030   dynamic_linker="$host_os ld.so"
16031   shlibpath_var=LIBRARY_PATH
16032   ;;
16033
16034 bsdi[45]*)
16035   version_type=linux
16036   need_version=no
16037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038   soname_spec='${libname}${release}${shared_ext}$major'
16039   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16042   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16043   # the default ld.so.conf also contains /usr/contrib/lib and
16044   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16045   # libtool to hard-code these into programs
16046   ;;
16047
16048 cygwin* | mingw* | pw32*)
16049   version_type=windows
16050   shrext_cmds=".dll"
16051   need_version=no
16052   need_lib_prefix=no
16053
16054   case $GCC,$host_os in
16055   yes,cygwin* | yes,mingw* | yes,pw32*)
16056     library_names_spec='$libname.dll.a'
16057     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16058     postinstall_cmds='base_file=`basename \${file}`;
16059       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16060       dldir=$destdir/`dirname \$dlpath`;
16061       test -d \$dldir || mkdir -p \$dldir;
16062       $install_prog $dir/$dlname \$dldir/$dlname'
16063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16064       dlpath=$dir/\$dldll;
16065        $rm \$dlpath'
16066     shlibpath_overrides_runpath=yes
16067
16068     case $host_os in
16069     cygwin*)
16070       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16071       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16073       ;;
16074     mingw*)
16075       # MinGW DLLs use traditional 'lib' prefix
16076       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16079         # It is most probably a Windows format PATH printed by
16080         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16081         # path with ; separators, and with drive letters. We can handle the
16082         # drive letters (cygwin fileutils understands them), so leave them,
16083         # especially as we might pass files found there to a mingw objdump,
16084         # which wouldn't understand a cygwinified path. Ahh.
16085         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16086       else
16087         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16088       fi
16089       ;;
16090     pw32*)
16091       # pw32 DLLs use 'pw' prefix rather than 'lib'
16092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16093       ;;
16094     esac
16095     ;;
16096
16097   *)
16098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16099     ;;
16100   esac
16101   dynamic_linker='Win32 ld.exe'
16102   # FIXME: first we should search . and the directory the executable is in
16103   shlibpath_var=PATH
16104   ;;
16105
16106 darwin* | rhapsody*)
16107   dynamic_linker="$host_os dyld"
16108   version_type=darwin
16109   need_lib_prefix=no
16110   need_version=no
16111   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112   soname_spec='${libname}${release}${major}$shared_ext'
16113   shlibpath_overrides_runpath=yes
16114   shlibpath_var=DYLD_LIBRARY_PATH
16115   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16116   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117   if test "$GCC" = yes; then
16118     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"`
16119   else
16120     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16121   fi
16122   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16123   ;;
16124
16125 dgux*)
16126   version_type=linux
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   ;;
16133
16134 freebsd1*)
16135   dynamic_linker=no
16136   ;;
16137
16138 kfreebsd*-gnu)
16139   version_type=linux
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   shlibpath_overrides_runpath=no
16146   hardcode_into_libs=yes
16147   dynamic_linker='GNU ld.so'
16148   ;;
16149
16150 freebsd*)
16151   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16152   version_type=freebsd-$objformat
16153   case $version_type in
16154     freebsd-elf*)
16155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16156       need_version=no
16157       need_lib_prefix=no
16158       ;;
16159     freebsd-*)
16160       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16161       need_version=yes
16162       ;;
16163   esac
16164   shlibpath_var=LD_LIBRARY_PATH
16165   case $host_os in
16166   freebsd2*)
16167     shlibpath_overrides_runpath=yes
16168     ;;
16169   freebsd3.01* | freebsdelf3.01*)
16170     shlibpath_overrides_runpath=yes
16171     hardcode_into_libs=yes
16172     ;;
16173   *) # from 3.2 on
16174     shlibpath_overrides_runpath=no
16175     hardcode_into_libs=yes
16176     ;;
16177   esac
16178   ;;
16179
16180 gnu*)
16181   version_type=linux
16182   need_lib_prefix=no
16183   need_version=no
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   hardcode_into_libs=yes
16188   ;;
16189
16190 hpux9* | hpux10* | hpux11*)
16191   # Give a soname corresponding to the major version so that dld.sl refuses to
16192   # link against other versions.
16193   version_type=sunos
16194   need_lib_prefix=no
16195   need_version=no
16196   case "$host_cpu" in
16197   ia64*)
16198     shrext_cmds='.so'
16199     hardcode_into_libs=yes
16200     dynamic_linker="$host_os dld.so"
16201     shlibpath_var=LD_LIBRARY_PATH
16202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204     soname_spec='${libname}${release}${shared_ext}$major'
16205     if test "X$HPUX_IA64_MODE" = X32; then
16206       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16207     else
16208       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16209     fi
16210     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211     ;;
16212    hppa*64*)
16213      shrext_cmds='.sl'
16214      hardcode_into_libs=yes
16215      dynamic_linker="$host_os dld.sl"
16216      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16217      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219      soname_spec='${libname}${release}${shared_ext}$major'
16220      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16221      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222      ;;
16223    *)
16224     shrext_cmds='.sl'
16225     dynamic_linker="$host_os dld.sl"
16226     shlibpath_var=SHLIB_PATH
16227     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229     soname_spec='${libname}${release}${shared_ext}$major'
16230     ;;
16231   esac
16232   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16233   postinstall_cmds='chmod 555 $lib'
16234   ;;
16235
16236 irix5* | irix6* | nonstopux*)
16237   case $host_os in
16238     nonstopux*) version_type=nonstopux ;;
16239     *)
16240         if test "$lt_cv_prog_gnu_ld" = yes; then
16241                 version_type=linux
16242         else
16243                 version_type=irix
16244         fi ;;
16245   esac
16246   need_lib_prefix=no
16247   need_version=no
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16250   case $host_os in
16251   irix5* | nonstopux*)
16252     libsuff= shlibsuff=
16253     ;;
16254   *)
16255     case $LD in # libtool.m4 will add one of these switches to LD
16256     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16257       libsuff= shlibsuff= libmagic=32-bit;;
16258     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16259       libsuff=32 shlibsuff=N32 libmagic=N32;;
16260     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16261       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16262     *) libsuff= shlibsuff= libmagic=never-match;;
16263     esac
16264     ;;
16265   esac
16266   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16267   shlibpath_overrides_runpath=no
16268   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16269   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16270   hardcode_into_libs=yes
16271   ;;
16272
16273 # No shared lib support for Linux oldld, aout, or coff.
16274 linux*oldld* | linux*aout* | linux*coff*)
16275   dynamic_linker=no
16276   ;;
16277
16278 # This must be Linux ELF.
16279 linux*)
16280   version_type=linux
16281   need_lib_prefix=no
16282   need_version=no
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284   soname_spec='${libname}${release}${shared_ext}$major'
16285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16286   shlibpath_var=LD_LIBRARY_PATH
16287   shlibpath_overrides_runpath=no
16288   # This implies no fast_install, which is unacceptable.
16289   # Some rework will be needed to allow for fast_install
16290   # before this can be enabled.
16291   hardcode_into_libs=yes
16292
16293   # Append ld.so.conf contents to the search path
16294   if test -f /etc/ld.so.conf; then
16295     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16296     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16297   fi
16298
16299   # We used to test for /lib/ld.so.1 and disable shared libraries on
16300   # powerpc, because MkLinux only supported shared libraries with the
16301   # GNU dynamic linker.  Since this was broken with cross compilers,
16302   # most powerpc-linux boxes support dynamic linking these days and
16303   # people can always --disable-shared, the test was removed, and we
16304   # assume the GNU/Linux dynamic linker is in use.
16305   dynamic_linker='GNU/Linux ld.so'
16306   ;;
16307
16308 knetbsd*-gnu)
16309   version_type=linux
16310   need_lib_prefix=no
16311   need_version=no
16312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313   soname_spec='${libname}${release}${shared_ext}$major'
16314   shlibpath_var=LD_LIBRARY_PATH
16315   shlibpath_overrides_runpath=no
16316   hardcode_into_libs=yes
16317   dynamic_linker='GNU ld.so'
16318   ;;
16319
16320 netbsd*)
16321   version_type=sunos
16322   need_lib_prefix=no
16323   need_version=no
16324   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16326     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16327     dynamic_linker='NetBSD (a.out) ld.so'
16328   else
16329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16330     soname_spec='${libname}${release}${shared_ext}$major'
16331     dynamic_linker='NetBSD ld.elf_so'
16332   fi
16333   shlibpath_var=LD_LIBRARY_PATH
16334   shlibpath_overrides_runpath=yes
16335   hardcode_into_libs=yes
16336   ;;
16337
16338 newsos6)
16339   version_type=linux
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341   shlibpath_var=LD_LIBRARY_PATH
16342   shlibpath_overrides_runpath=yes
16343   ;;
16344
16345 nto-qnx*)
16346   version_type=linux
16347   need_lib_prefix=no
16348   need_version=no
16349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350   soname_spec='${libname}${release}${shared_ext}$major'
16351   shlibpath_var=LD_LIBRARY_PATH
16352   shlibpath_overrides_runpath=yes
16353   ;;
16354
16355 openbsd*)
16356   version_type=sunos
16357   need_lib_prefix=no
16358   need_version=no
16359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16361   shlibpath_var=LD_LIBRARY_PATH
16362   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16363     case $host_os in
16364       openbsd2.[89] | openbsd2.[89].*)
16365         shlibpath_overrides_runpath=no
16366         ;;
16367       *)
16368         shlibpath_overrides_runpath=yes
16369         ;;
16370       esac
16371   else
16372     shlibpath_overrides_runpath=yes
16373   fi
16374   ;;
16375
16376 os2*)
16377   libname_spec='$name'
16378   shrext_cmds=".dll"
16379   need_lib_prefix=no
16380   library_names_spec='$libname${shared_ext} $libname.a'
16381   dynamic_linker='OS/2 ld.exe'
16382   shlibpath_var=LIBPATH
16383   ;;
16384
16385 osf3* | osf4* | osf5*)
16386   version_type=osf
16387   need_lib_prefix=no
16388   need_version=no
16389   soname_spec='${libname}${release}${shared_ext}$major'
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391   shlibpath_var=LD_LIBRARY_PATH
16392   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16393   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16394   ;;
16395
16396 sco3.2v5*)
16397   version_type=osf
16398   soname_spec='${libname}${release}${shared_ext}$major'
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400   shlibpath_var=LD_LIBRARY_PATH
16401   ;;
16402
16403 solaris*)
16404   version_type=linux
16405   need_lib_prefix=no
16406   need_version=no
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   soname_spec='${libname}${release}${shared_ext}$major'
16409   shlibpath_var=LD_LIBRARY_PATH
16410   shlibpath_overrides_runpath=yes
16411   hardcode_into_libs=yes
16412   # ldd complains unless libraries are executable
16413   postinstall_cmds='chmod +x $lib'
16414   ;;
16415
16416 sunos4*)
16417   version_type=sunos
16418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16419   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16420   shlibpath_var=LD_LIBRARY_PATH
16421   shlibpath_overrides_runpath=yes
16422   if test "$with_gnu_ld" = yes; then
16423     need_lib_prefix=no
16424   fi
16425   need_version=yes
16426   ;;
16427
16428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16429   version_type=linux
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431   soname_spec='${libname}${release}${shared_ext}$major'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   case $host_vendor in
16434     sni)
16435       shlibpath_overrides_runpath=no
16436       need_lib_prefix=no
16437       export_dynamic_flag_spec='${wl}-Blargedynsym'
16438       runpath_var=LD_RUN_PATH
16439       ;;
16440     siemens)
16441       need_lib_prefix=no
16442       ;;
16443     motorola)
16444       need_lib_prefix=no
16445       need_version=no
16446       shlibpath_overrides_runpath=no
16447       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16448       ;;
16449   esac
16450   ;;
16451
16452 sysv4*MP*)
16453   if test -d /usr/nec ;then
16454     version_type=linux
16455     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16456     soname_spec='$libname${shared_ext}.$major'
16457     shlibpath_var=LD_LIBRARY_PATH
16458   fi
16459   ;;
16460
16461 uts4*)
16462   version_type=linux
16463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   ;;
16467
16468 *)
16469   dynamic_linker=no
16470   ;;
16471 esac
16472 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16473 echo "${ECHO_T}$dynamic_linker" >&6
16474 test "$dynamic_linker" = no && can_build_shared=no
16475
16476 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16477 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16478 hardcode_action_F77=
16479 if test -n "$hardcode_libdir_flag_spec_F77" || \
16480    test -n "$runpath_var_F77" || \
16481    test "X$hardcode_automatic_F77" = "Xyes" ; then
16482
16483   # We can hardcode non-existant directories.
16484   if test "$hardcode_direct_F77" != no &&
16485      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16486      # have to relink, otherwise we might link with an installed library
16487      # when we should be linking with a yet-to-be-installed one
16488      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16489      test "$hardcode_minus_L_F77" != no; then
16490     # Linking always hardcodes the temporary library directory.
16491     hardcode_action_F77=relink
16492   else
16493     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16494     hardcode_action_F77=immediate
16495   fi
16496 else
16497   # We cannot hardcode anything, or else we can only hardcode existing
16498   # directories.
16499   hardcode_action_F77=unsupported
16500 fi
16501 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16502 echo "${ECHO_T}$hardcode_action_F77" >&6
16503
16504 if test "$hardcode_action_F77" = relink; then
16505   # Fast installation is not supported
16506   enable_fast_install=no
16507 elif test "$shlibpath_overrides_runpath" = yes ||
16508      test "$enable_shared" = no; then
16509   # Fast installation is not necessary
16510   enable_fast_install=needless
16511 fi
16512
16513 striplib=
16514 old_striplib=
16515 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16516 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16517 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16518   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16519   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16520   echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6
16522 else
16523 # FIXME - insert some real tests, host_os isn't really good enough
16524   case $host_os in
16525    darwin*)
16526        if test -n "$STRIP" ; then
16527          striplib="$STRIP -x"
16528          echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6
16530        else
16531   echo "$as_me:$LINENO: result: no" >&5
16532 echo "${ECHO_T}no" >&6
16533 fi
16534        ;;
16535    *)
16536   echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6
16538     ;;
16539   esac
16540 fi
16541
16542
16543
16544 # The else clause should only fire when bootstrapping the
16545 # libtool distribution, otherwise you forgot to ship ltmain.sh
16546 # with your package, and you will get complaints that there are
16547 # no rules to generate ltmain.sh.
16548 if test -f "$ltmain"; then
16549   # See if we are running on zsh, and set the options which allow our commands through
16550   # without removal of \ escapes.
16551   if test -n "${ZSH_VERSION+set}" ; then
16552     setopt NO_GLOB_SUBST
16553   fi
16554   # Now quote all the things that may contain metacharacters while being
16555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16556   # variables and quote the copies for generation of the libtool script.
16557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16558     SED SHELL STRIP \
16559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16561     deplibs_check_method reload_flag reload_cmds need_locks \
16562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16563     lt_cv_sys_global_symbol_to_c_name_address \
16564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16565     old_postinstall_cmds old_postuninstall_cmds \
16566     compiler_F77 \
16567     CC_F77 \
16568     LD_F77 \
16569     lt_prog_compiler_wl_F77 \
16570     lt_prog_compiler_pic_F77 \
16571     lt_prog_compiler_static_F77 \
16572     lt_prog_compiler_no_builtin_flag_F77 \
16573     export_dynamic_flag_spec_F77 \
16574     thread_safe_flag_spec_F77 \
16575     whole_archive_flag_spec_F77 \
16576     enable_shared_with_static_runtimes_F77 \
16577     old_archive_cmds_F77 \
16578     old_archive_from_new_cmds_F77 \
16579     predep_objects_F77 \
16580     postdep_objects_F77 \
16581     predeps_F77 \
16582     postdeps_F77 \
16583     compiler_lib_search_path_F77 \
16584     archive_cmds_F77 \
16585     archive_expsym_cmds_F77 \
16586     postinstall_cmds_F77 \
16587     postuninstall_cmds_F77 \
16588     old_archive_from_expsyms_cmds_F77 \
16589     allow_undefined_flag_F77 \
16590     no_undefined_flag_F77 \
16591     export_symbols_cmds_F77 \
16592     hardcode_libdir_flag_spec_F77 \
16593     hardcode_libdir_flag_spec_ld_F77 \
16594     hardcode_libdir_separator_F77 \
16595     hardcode_automatic_F77 \
16596     module_cmds_F77 \
16597     module_expsym_cmds_F77 \
16598     lt_cv_prog_compiler_c_o_F77 \
16599     exclude_expsyms_F77 \
16600     include_expsyms_F77; do
16601
16602     case $var in
16603     old_archive_cmds_F77 | \
16604     old_archive_from_new_cmds_F77 | \
16605     archive_cmds_F77 | \
16606     archive_expsym_cmds_F77 | \
16607     module_cmds_F77 | \
16608     module_expsym_cmds_F77 | \
16609     old_archive_from_expsyms_cmds_F77 | \
16610     export_symbols_cmds_F77 | \
16611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16612     postinstall_cmds | postuninstall_cmds | \
16613     old_postinstall_cmds | old_postuninstall_cmds | \
16614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16615       # Double-quote double-evaled strings.
16616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16617       ;;
16618     *)
16619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16620       ;;
16621     esac
16622   done
16623
16624   case $lt_echo in
16625   *'\$0 --fallback-echo"')
16626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16627     ;;
16628   esac
16629
16630 cfgfile="$ofile"
16631
16632   cat <<__EOF__ >> "$cfgfile"
16633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16634
16635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16636
16637 # Shell to use when invoking shell scripts.
16638 SHELL=$lt_SHELL
16639
16640 # Whether or not to build shared libraries.
16641 build_libtool_libs=$enable_shared
16642
16643 # Whether or not to build static libraries.
16644 build_old_libs=$enable_static
16645
16646 # Whether or not to add -lc for building shared libraries.
16647 build_libtool_need_lc=$archive_cmds_need_lc_F77
16648
16649 # Whether or not to disallow shared libs when runtime libs are static
16650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16651
16652 # Whether or not to optimize for fast installation.
16653 fast_install=$enable_fast_install
16654
16655 # The host system.
16656 host_alias=$host_alias
16657 host=$host
16658
16659 # An echo program that does not interpret backslashes.
16660 echo=$lt_echo
16661
16662 # The archiver.
16663 AR=$lt_AR
16664 AR_FLAGS=$lt_AR_FLAGS
16665
16666 # A C compiler.
16667 LTCC=$lt_LTCC
16668
16669 # A language-specific compiler.
16670 CC=$lt_compiler_F77
16671
16672 # Is the compiler the GNU C compiler?
16673 with_gcc=$GCC_F77
16674
16675 # An ERE matcher.
16676 EGREP=$lt_EGREP
16677
16678 # The linker used to build libraries.
16679 LD=$lt_LD_F77
16680
16681 # Whether we need hard or soft links.
16682 LN_S=$lt_LN_S
16683
16684 # A BSD-compatible nm program.
16685 NM=$lt_NM
16686
16687 # A symbol stripping program
16688 STRIP=$lt_STRIP
16689
16690 # Used to examine libraries when file_magic_cmd begins "file"
16691 MAGIC_CMD=$MAGIC_CMD
16692
16693 # Used on cygwin: DLL creation program.
16694 DLLTOOL="$DLLTOOL"
16695
16696 # Used on cygwin: object dumper.
16697 OBJDUMP="$OBJDUMP"
16698
16699 # Used on cygwin: assembler.
16700 AS="$AS"
16701
16702 # The name of the directory that contains temporary libtool files.
16703 objdir=$objdir
16704
16705 # How to create reloadable object files.
16706 reload_flag=$lt_reload_flag
16707 reload_cmds=$lt_reload_cmds
16708
16709 # How to pass a linker flag through the compiler.
16710 wl=$lt_lt_prog_compiler_wl_F77
16711
16712 # Object file suffix (normally "o").
16713 objext="$ac_objext"
16714
16715 # Old archive suffix (normally "a").
16716 libext="$libext"
16717
16718 # Shared library suffix (normally ".so").
16719 shrext_cmds='$shrext_cmds'
16720
16721 # Executable file suffix (normally "").
16722 exeext="$exeext"
16723
16724 # Additional compiler flags for building library objects.
16725 pic_flag=$lt_lt_prog_compiler_pic_F77
16726 pic_mode=$pic_mode
16727
16728 # What is the maximum length of a command?
16729 max_cmd_len=$lt_cv_sys_max_cmd_len
16730
16731 # Does compiler simultaneously support -c and -o options?
16732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16733
16734 # Must we lock files when doing compilation ?
16735 need_locks=$lt_need_locks
16736
16737 # Do we need the lib prefix for modules?
16738 need_lib_prefix=$need_lib_prefix
16739
16740 # Do we need a version for libraries?
16741 need_version=$need_version
16742
16743 # Whether dlopen is supported.
16744 dlopen_support=$enable_dlopen
16745
16746 # Whether dlopen of programs is supported.
16747 dlopen_self=$enable_dlopen_self
16748
16749 # Whether dlopen of statically linked programs is supported.
16750 dlopen_self_static=$enable_dlopen_self_static
16751
16752 # Compiler flag to prevent dynamic linking.
16753 link_static_flag=$lt_lt_prog_compiler_static_F77
16754
16755 # Compiler flag to turn off builtin functions.
16756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16757
16758 # Compiler flag to allow reflexive dlopens.
16759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16760
16761 # Compiler flag to generate shared objects directly from archives.
16762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16763
16764 # Compiler flag to generate thread-safe objects.
16765 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16766
16767 # Library versioning type.
16768 version_type=$version_type
16769
16770 # Format of library name prefix.
16771 libname_spec=$lt_libname_spec
16772
16773 # List of archive names.  First name is the real one, the rest are links.
16774 # The last name is the one that the linker finds with -lNAME.
16775 library_names_spec=$lt_library_names_spec
16776
16777 # The coded name of the library, if different from the real name.
16778 soname_spec=$lt_soname_spec
16779
16780 # Commands used to build and install an old-style archive.
16781 RANLIB=$lt_RANLIB
16782 old_archive_cmds=$lt_old_archive_cmds_F77
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16785
16786 # Create an old-style archive from a shared archive.
16787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16788
16789 # Create a temporary old-style archive to link instead of a shared archive.
16790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16791
16792 # Commands used to build and install a shared archive.
16793 archive_cmds=$lt_archive_cmds_F77
16794 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16795 postinstall_cmds=$lt_postinstall_cmds
16796 postuninstall_cmds=$lt_postuninstall_cmds
16797
16798 # Commands used to build a loadable module (assumed same as above if empty)
16799 module_cmds=$lt_module_cmds_F77
16800 module_expsym_cmds=$lt_module_expsym_cmds_F77
16801
16802 # Commands to strip libraries.
16803 old_striplib=$lt_old_striplib
16804 striplib=$lt_striplib
16805
16806 # Dependencies to place before the objects being linked to create a
16807 # shared library.
16808 predep_objects=$lt_predep_objects_F77
16809
16810 # Dependencies to place after the objects being linked to create a
16811 # shared library.
16812 postdep_objects=$lt_postdep_objects_F77
16813
16814 # Dependencies to place before the objects being linked to create a
16815 # shared library.
16816 predeps=$lt_predeps_F77
16817
16818 # Dependencies to place after the objects being linked to create a
16819 # shared library.
16820 postdeps=$lt_postdeps_F77
16821
16822 # The library search path used internally by the compiler when linking
16823 # a shared library.
16824 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16825
16826 # Method to check whether dependent libraries are shared objects.
16827 deplibs_check_method=$lt_deplibs_check_method
16828
16829 # Command to use when deplibs_check_method == file_magic.
16830 file_magic_cmd=$lt_file_magic_cmd
16831
16832 # Flag that allows shared libraries with undefined symbols to be built.
16833 allow_undefined_flag=$lt_allow_undefined_flag_F77
16834
16835 # Flag that forces no undefined symbols.
16836 no_undefined_flag=$lt_no_undefined_flag_F77
16837
16838 # Commands used to finish a libtool library installation in a directory.
16839 finish_cmds=$lt_finish_cmds
16840
16841 # Same as above, but a single script fragment to be evaled but not shown.
16842 finish_eval=$lt_finish_eval
16843
16844 # Take the output of nm and produce a listing of raw symbols and C names.
16845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16846
16847 # Transform the output of nm in a proper C declaration
16848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16849
16850 # Transform the output of nm in a C name address pair
16851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16852
16853 # This is the shared library runtime path variable.
16854 runpath_var=$runpath_var
16855
16856 # This is the shared library path variable.
16857 shlibpath_var=$shlibpath_var
16858
16859 # Is shlibpath searched before the hard-coded library search path?
16860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16861
16862 # How to hardcode a shared library path into an executable.
16863 hardcode_action=$hardcode_action_F77
16864
16865 # Whether we should hardcode library paths into libraries.
16866 hardcode_into_libs=$hardcode_into_libs
16867
16868 # Flag to hardcode \$libdir into a binary during linking.
16869 # This must work even if \$libdir does not exist.
16870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16871
16872 # If ld is used when linking, flag to hardcode \$libdir into
16873 # a binary during linking. This must work even if \$libdir does
16874 # not exist.
16875 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16876
16877 # Whether we need a single -rpath flag with a separated argument.
16878 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16879
16880 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16881 # resulting binary.
16882 hardcode_direct=$hardcode_direct_F77
16883
16884 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16885 # resulting binary.
16886 hardcode_minus_L=$hardcode_minus_L_F77
16887
16888 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16889 # the resulting binary.
16890 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16891
16892 # Set to yes if building a shared library automatically hardcodes DIR into the library
16893 # and all subsequent libraries and executables linked against it.
16894 hardcode_automatic=$hardcode_automatic_F77
16895
16896 # Variables whose values should be saved in libtool wrapper scripts and
16897 # restored at relink time.
16898 variables_saved_for_relink="$variables_saved_for_relink"
16899
16900 # Whether libtool must link a program against all its dependency libraries.
16901 link_all_deplibs=$link_all_deplibs_F77
16902
16903 # Compile-time system search path for libraries
16904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16905
16906 # Run-time system search path for libraries
16907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16908
16909 # Fix the shell variable \$srcfile for the compiler.
16910 fix_srcfile_path="$fix_srcfile_path_F77"
16911
16912 # Set to yes if exported symbols are required.
16913 always_export_symbols=$always_export_symbols_F77
16914
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds_F77
16917
16918 # The commands to extract the exported symbol list from a shared archive.
16919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16920
16921 # Symbols that should not be listed in the preloaded symbols.
16922 exclude_expsyms=$lt_exclude_expsyms_F77
16923
16924 # Symbols that must always be exported.
16925 include_expsyms=$lt_include_expsyms_F77
16926
16927 # ### END LIBTOOL TAG CONFIG: $tagname
16928
16929 __EOF__
16930
16931
16932 else
16933   # If there is no Makefile yet, we rely on a make rule to execute
16934   # `config.status --recheck' to rerun these tests and create the
16935   # libtool script then.
16936   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16937   if test -f "$ltmain_in"; then
16938     test -f Makefile && make "$ltmain"
16939   fi
16940 fi
16941
16942
16943 ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949 CC="$lt_save_CC"
16950
16951         else
16952           tagname=""
16953         fi
16954         ;;
16955
16956       GCJ)
16957         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16958           ac_ext=c
16959 ac_cpp='$CPP $CPPFLAGS'
16960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16963
16964
16965 # Source file extension for Java test sources.
16966 ac_ext=java
16967
16968 # Object file extension for compiled Java test sources.
16969 objext=o
16970 objext_GCJ=$objext
16971
16972 # Code to be used in simple compile tests
16973 lt_simple_compile_test_code="class foo {}\n"
16974
16975 # Code to be used in simple link tests
16976 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16977
16978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16979
16980 # If no C compiler was specified, use CC.
16981 LTCC=${LTCC-"$CC"}
16982
16983 # Allow CC to be a program name with arguments.
16984 compiler=$CC
16985
16986
16987 # Allow CC to be a program name with arguments.
16988 lt_save_CC="$CC"
16989 CC=${GCJ-"gcj"}
16990 compiler=$CC
16991 compiler_GCJ=$CC
16992
16993 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16994 archive_cmds_need_lc_GCJ=no
16995
16996
16997 lt_prog_compiler_no_builtin_flag_GCJ=
16998
16999 if test "$GCC" = yes; then
17000   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17001
17002
17003 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17004 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008   lt_cv_prog_compiler_rtti_exceptions=no
17009   ac_outfile=conftest.$ac_objext
17010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17011    lt_compiler_flag="-fno-rtti -fno-exceptions"
17012    # Insert the option either (1) after the last *FLAGS variable, or
17013    # (2) before a word containing "conftest.", or (3) at the end.
17014    # Note that $ac_compile itself does not contain backslashes and begins
17015    # with a dollar sign (not a hyphen), so the echo should work correctly.
17016    # The option is referenced via a variable to avoid confusing sed.
17017    lt_compile=`echo "$ac_compile" | $SED \
17018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17020    -e 's:$: $lt_compiler_flag:'`
17021    (eval echo "\"\$as_me:17021: $lt_compile\"" >&5)
17022    (eval "$lt_compile" 2>conftest.err)
17023    ac_status=$?
17024    cat conftest.err >&5
17025    echo "$as_me:17025: \$? = $ac_status" >&5
17026    if (exit $ac_status) && test -s "$ac_outfile"; then
17027      # The compiler can only warn and ignore the option if not recognized
17028      # So say no if there are warnings
17029      if test ! -s conftest.err; then
17030        lt_cv_prog_compiler_rtti_exceptions=yes
17031      fi
17032    fi
17033    $rm conftest*
17034
17035 fi
17036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17037 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17038
17039 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17040     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17041 else
17042     :
17043 fi
17044
17045 fi
17046
17047 lt_prog_compiler_wl_GCJ=
17048 lt_prog_compiler_pic_GCJ=
17049 lt_prog_compiler_static_GCJ=
17050
17051 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17052 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17053
17054   if test "$GCC" = yes; then
17055     lt_prog_compiler_wl_GCJ='-Wl,'
17056     lt_prog_compiler_static_GCJ='-static'
17057
17058     case $host_os in
17059       aix*)
17060       # All AIX code is PIC.
17061       if test "$host_cpu" = ia64; then
17062         # AIX 5 now supports IA64 processor
17063         lt_prog_compiler_static_GCJ='-Bstatic'
17064       fi
17065       ;;
17066
17067     amigaos*)
17068       # FIXME: we need at least 68020 code to build shared libraries, but
17069       # adding the `-m68020' flag to GCC prevents building anything better,
17070       # like `-m68040'.
17071       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17072       ;;
17073
17074     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17075       # PIC is the default for these OSes.
17076       ;;
17077
17078     mingw* | pw32* | os2*)
17079       # This hack is so that the source file can tell whether it is being
17080       # built for inclusion in a dll (and should export symbols for example).
17081       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17082       ;;
17083
17084     darwin* | rhapsody*)
17085       # PIC is the default on this platform
17086       # Common symbols not allowed in MH_DYLIB files
17087       lt_prog_compiler_pic_GCJ='-fno-common'
17088       ;;
17089
17090     msdosdjgpp*)
17091       # Just because we use GCC doesn't mean we suddenly get shared libraries
17092       # on systems that don't support them.
17093       lt_prog_compiler_can_build_shared_GCJ=no
17094       enable_shared=no
17095       ;;
17096
17097     sysv4*MP*)
17098       if test -d /usr/nec; then
17099         lt_prog_compiler_pic_GCJ=-Kconform_pic
17100       fi
17101       ;;
17102
17103     hpux*)
17104       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17105       # not for PA HP-UX.
17106       case "$host_cpu" in
17107       hppa*64*|ia64*)
17108         # +Z the default
17109         ;;
17110       *)
17111         lt_prog_compiler_pic_GCJ='-fPIC'
17112         ;;
17113       esac
17114       ;;
17115
17116     *)
17117       lt_prog_compiler_pic_GCJ='-fPIC'
17118       ;;
17119     esac
17120   else
17121     # PORTME Check for flag to pass linker flags through the system compiler.
17122     case $host_os in
17123     aix*)
17124       lt_prog_compiler_wl_GCJ='-Wl,'
17125       if test "$host_cpu" = ia64; then
17126         # AIX 5 now supports IA64 processor
17127         lt_prog_compiler_static_GCJ='-Bstatic'
17128       else
17129         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17130       fi
17131       ;;
17132       darwin*)
17133         # PIC is the default on this platform
17134         # Common symbols not allowed in MH_DYLIB files
17135        case "$cc_basename" in
17136          xlc*)
17137          lt_prog_compiler_pic_GCJ='-qnocommon'
17138          lt_prog_compiler_wl_GCJ='-Wl,'
17139          ;;
17140        esac
17141        ;;
17142
17143     mingw* | pw32* | os2*)
17144       # This hack is so that the source file can tell whether it is being
17145       # built for inclusion in a dll (and should export symbols for example).
17146       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17147       ;;
17148
17149     hpux9* | hpux10* | hpux11*)
17150       lt_prog_compiler_wl_GCJ='-Wl,'
17151       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17152       # not for PA HP-UX.
17153       case "$host_cpu" in
17154       hppa*64*|ia64*)
17155         # +Z the default
17156         ;;
17157       *)
17158         lt_prog_compiler_pic_GCJ='+Z'
17159         ;;
17160       esac
17161       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17162       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17163       ;;
17164
17165     irix5* | irix6* | nonstopux*)
17166       lt_prog_compiler_wl_GCJ='-Wl,'
17167       # PIC (with -KPIC) is the default.
17168       lt_prog_compiler_static_GCJ='-non_shared'
17169       ;;
17170
17171     newsos6)
17172       lt_prog_compiler_pic_GCJ='-KPIC'
17173       lt_prog_compiler_static_GCJ='-Bstatic'
17174       ;;
17175
17176     linux*)
17177       case $CC in
17178       icc* | ecc*)
17179         lt_prog_compiler_wl_GCJ='-Wl,'
17180         lt_prog_compiler_pic_GCJ='-KPIC'
17181         lt_prog_compiler_static_GCJ='-static'
17182         ;;
17183       ccc*)
17184         lt_prog_compiler_wl_GCJ='-Wl,'
17185         # All Alpha code is PIC.
17186         lt_prog_compiler_static_GCJ='-non_shared'
17187         ;;
17188       esac
17189       ;;
17190
17191     osf3* | osf4* | osf5*)
17192       lt_prog_compiler_wl_GCJ='-Wl,'
17193       # All OSF/1 code is PIC.
17194       lt_prog_compiler_static_GCJ='-non_shared'
17195       ;;
17196
17197     sco3.2v5*)
17198       lt_prog_compiler_pic_GCJ='-Kpic'
17199       lt_prog_compiler_static_GCJ='-dn'
17200       ;;
17201
17202     solaris*)
17203       lt_prog_compiler_wl_GCJ='-Wl,'
17204       lt_prog_compiler_pic_GCJ='-KPIC'
17205       lt_prog_compiler_static_GCJ='-Bstatic'
17206       ;;
17207
17208     sunos4*)
17209       lt_prog_compiler_wl_GCJ='-Qoption ld '
17210       lt_prog_compiler_pic_GCJ='-PIC'
17211       lt_prog_compiler_static_GCJ='-Bstatic'
17212       ;;
17213
17214     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17215       lt_prog_compiler_wl_GCJ='-Wl,'
17216       lt_prog_compiler_pic_GCJ='-KPIC'
17217       lt_prog_compiler_static_GCJ='-Bstatic'
17218       ;;
17219
17220     sysv4*MP*)
17221       if test -d /usr/nec ;then
17222         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17223         lt_prog_compiler_static_GCJ='-Bstatic'
17224       fi
17225       ;;
17226
17227     uts4*)
17228       lt_prog_compiler_pic_GCJ='-pic'
17229       lt_prog_compiler_static_GCJ='-Bstatic'
17230       ;;
17231
17232     *)
17233       lt_prog_compiler_can_build_shared_GCJ=no
17234       ;;
17235     esac
17236   fi
17237
17238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17240
17241 #
17242 # Check to make sure the PIC flag actually works.
17243 #
17244 if test -n "$lt_prog_compiler_pic_GCJ"; then
17245
17246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17248 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   lt_prog_compiler_pic_works_GCJ=no
17252   ac_outfile=conftest.$ac_objext
17253    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17254    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17255    # Insert the option either (1) after the last *FLAGS variable, or
17256    # (2) before a word containing "conftest.", or (3) at the end.
17257    # Note that $ac_compile itself does not contain backslashes and begins
17258    # with a dollar sign (not a hyphen), so the echo should work correctly.
17259    # The option is referenced via a variable to avoid confusing sed.
17260    lt_compile=`echo "$ac_compile" | $SED \
17261    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17263    -e 's:$: $lt_compiler_flag:'`
17264    (eval echo "\"\$as_me:17264: $lt_compile\"" >&5)
17265    (eval "$lt_compile" 2>conftest.err)
17266    ac_status=$?
17267    cat conftest.err >&5
17268    echo "$as_me:17268: \$? = $ac_status" >&5
17269    if (exit $ac_status) && test -s "$ac_outfile"; then
17270      # The compiler can only warn and ignore the option if not recognized
17271      # So say no if there are warnings
17272      if test ! -s conftest.err; then
17273        lt_prog_compiler_pic_works_GCJ=yes
17274      fi
17275    fi
17276    $rm conftest*
17277
17278 fi
17279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17280 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17281
17282 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17283     case $lt_prog_compiler_pic_GCJ in
17284      "" | " "*) ;;
17285      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17286      esac
17287 else
17288     lt_prog_compiler_pic_GCJ=
17289      lt_prog_compiler_can_build_shared_GCJ=no
17290 fi
17291
17292 fi
17293 case "$host_os" in
17294   # For platforms which do not support PIC, -DPIC is meaningless:
17295   *djgpp*)
17296     lt_prog_compiler_pic_GCJ=
17297     ;;
17298   *)
17299     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17300     ;;
17301 esac
17302
17303 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17304 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17305 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   lt_cv_prog_compiler_c_o_GCJ=no
17309    $rm -r conftest 2>/dev/null
17310    mkdir conftest
17311    cd conftest
17312    mkdir out
17313    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17314
17315    lt_compiler_flag="-o out/conftest2.$ac_objext"
17316    # Insert the option either (1) after the last *FLAGS variable, or
17317    # (2) before a word containing "conftest.", or (3) at the end.
17318    # Note that $ac_compile itself does not contain backslashes and begins
17319    # with a dollar sign (not a hyphen), so the echo should work correctly.
17320    lt_compile=`echo "$ac_compile" | $SED \
17321    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17323    -e 's:$: $lt_compiler_flag:'`
17324    (eval echo "\"\$as_me:17324: $lt_compile\"" >&5)
17325    (eval "$lt_compile" 2>out/conftest.err)
17326    ac_status=$?
17327    cat out/conftest.err >&5
17328    echo "$as_me:17328: \$? = $ac_status" >&5
17329    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17330    then
17331      # The compiler can only warn and ignore the option if not recognized
17332      # So say no if there are warnings
17333      if test ! -s out/conftest.err; then
17334        lt_cv_prog_compiler_c_o_GCJ=yes
17335      fi
17336    fi
17337    chmod u+w .
17338    $rm conftest*
17339    # SGI C++ compiler will create directory out/ii_files/ for
17340    # template instantiation
17341    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17342    $rm out/* && rmdir out
17343    cd ..
17344    rmdir conftest
17345    $rm conftest*
17346
17347 fi
17348 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17349 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17350
17351
17352 hard_links="nottested"
17353 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17354   # do not overwrite the value of need_locks provided by the user
17355   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17356 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17357   hard_links=yes
17358   $rm conftest*
17359   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17360   touch conftest.a
17361   ln conftest.a conftest.b 2>&5 || hard_links=no
17362   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17363   echo "$as_me:$LINENO: result: $hard_links" >&5
17364 echo "${ECHO_T}$hard_links" >&6
17365   if test "$hard_links" = no; then
17366     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17367 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17368     need_locks=warn
17369   fi
17370 else
17371   need_locks=no
17372 fi
17373
17374 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17375 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17376
17377   runpath_var=
17378   allow_undefined_flag_GCJ=
17379   enable_shared_with_static_runtimes_GCJ=no
17380   archive_cmds_GCJ=
17381   archive_expsym_cmds_GCJ=
17382   old_archive_From_new_cmds_GCJ=
17383   old_archive_from_expsyms_cmds_GCJ=
17384   export_dynamic_flag_spec_GCJ=
17385   whole_archive_flag_spec_GCJ=
17386   thread_safe_flag_spec_GCJ=
17387   hardcode_libdir_flag_spec_GCJ=
17388   hardcode_libdir_flag_spec_ld_GCJ=
17389   hardcode_libdir_separator_GCJ=
17390   hardcode_direct_GCJ=no
17391   hardcode_minus_L_GCJ=no
17392   hardcode_shlibpath_var_GCJ=unsupported
17393   link_all_deplibs_GCJ=unknown
17394   hardcode_automatic_GCJ=no
17395   module_cmds_GCJ=
17396   module_expsym_cmds_GCJ=
17397   always_export_symbols_GCJ=no
17398   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17399   # include_expsyms should be a list of space-separated symbols to be *always*
17400   # included in the symbol list
17401   include_expsyms_GCJ=
17402   # exclude_expsyms can be an extended regexp of symbols to exclude
17403   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17404   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17405   # as well as any symbol that contains `d'.
17406   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17407   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17408   # platforms (ab)use it in PIC code, but their linkers get confused if
17409   # the symbol is explicitly referenced.  Since portable code cannot
17410   # rely on this symbol name, it's probably fine to never include it in
17411   # preloaded symbol tables.
17412   extract_expsyms_cmds=
17413
17414   case $host_os in
17415   cygwin* | mingw* | pw32*)
17416     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17417     # When not using gcc, we currently assume that we are using
17418     # Microsoft Visual C++.
17419     if test "$GCC" != yes; then
17420       with_gnu_ld=no
17421     fi
17422     ;;
17423   openbsd*)
17424     with_gnu_ld=no
17425     ;;
17426   esac
17427
17428   ld_shlibs_GCJ=yes
17429   if test "$with_gnu_ld" = yes; then
17430     # If archive_cmds runs LD, not CC, wlarc should be empty
17431     wlarc='${wl}'
17432
17433     # See if GNU ld supports shared libraries.
17434     case $host_os in
17435     aix3* | aix4* | aix5*)
17436       # On AIX/PPC, the GNU linker is very broken
17437       if test "$host_cpu" != ia64; then
17438         ld_shlibs_GCJ=no
17439         cat <<EOF 1>&2
17440
17441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17442 *** to be unable to reliably create shared libraries on AIX.
17443 *** Therefore, libtool is disabling shared libraries support.  If you
17444 *** really care for shared libraries, you may want to modify your PATH
17445 *** so that a non-GNU linker is found, and then restart.
17446
17447 EOF
17448       fi
17449       ;;
17450
17451     amigaos*)
17452       archive_cmds_GCJ='$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)'
17453       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454       hardcode_minus_L_GCJ=yes
17455
17456       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17457       # that the semantics of dynamic libraries on AmigaOS, at least up
17458       # to version 4, is to share data among multiple programs linked
17459       # with the same dynamic library.  Since this doesn't match the
17460       # behavior of shared libraries on other platforms, we can't use
17461       # them.
17462       ld_shlibs_GCJ=no
17463       ;;
17464
17465     beos*)
17466       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17467         allow_undefined_flag_GCJ=unsupported
17468         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17469         # support --undefined.  This deserves some investigation.  FIXME
17470         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471       else
17472         ld_shlibs_GCJ=no
17473       fi
17474       ;;
17475
17476     cygwin* | mingw* | pw32*)
17477       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17478       # as there is no search path for DLLs.
17479       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480       allow_undefined_flag_GCJ=unsupported
17481       always_export_symbols_GCJ=no
17482       enable_shared_with_static_runtimes_GCJ=yes
17483       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17484
17485       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17486         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17487         # If the export-symbols file already is a .def file (1st line
17488         # is EXPORTS), use it as is; otherwise, prepend...
17489         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17490           cp $export_symbols $output_objdir/$soname.def;
17491         else
17492           echo EXPORTS > $output_objdir/$soname.def;
17493           cat $export_symbols >> $output_objdir/$soname.def;
17494         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17495       else
17496         ld_shlibs=no
17497       fi
17498       ;;
17499
17500     netbsd*)
17501       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17503         wlarc=
17504       else
17505         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17507       fi
17508       ;;
17509
17510     solaris* | sysv5*)
17511       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17512         ld_shlibs_GCJ=no
17513         cat <<EOF 1>&2
17514
17515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17516 *** create shared libraries on Solaris systems.  Therefore, libtool
17517 *** is disabling shared libraries support.  We urge you to upgrade GNU
17518 *** binutils to release 2.9.1 or newer.  Another option is to modify
17519 *** your PATH or compiler configuration so that the native linker is
17520 *** used, and then restart.
17521
17522 EOF
17523       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17526       else
17527         ld_shlibs_GCJ=no
17528       fi
17529       ;;
17530
17531     sunos4*)
17532       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17533       wlarc=
17534       hardcode_direct_GCJ=yes
17535       hardcode_shlibpath_var_GCJ=no
17536       ;;
17537
17538   linux*)
17539     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17540         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541         archive_cmds_GCJ="$tmp_archive_cmds"
17542       supports_anon_versioning=no
17543       case `$LD -v 2>/dev/null` in
17544         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17545         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17546         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17547         *\ 2.11.*) ;; # other 2.11 versions
17548         *) supports_anon_versioning=yes ;;
17549       esac
17550       if test $supports_anon_versioning = yes; then
17551         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
17552         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17553       else
17554         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17555       fi
17556     else
17557       ld_shlibs_GCJ=no
17558     fi
17559     ;;
17560
17561     *)
17562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565       else
17566         ld_shlibs_GCJ=no
17567       fi
17568       ;;
17569     esac
17570
17571     if test "$ld_shlibs_GCJ" = yes; then
17572       runpath_var=LD_RUN_PATH
17573       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17574       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17575       # ancient GNU ld didn't support --whole-archive et. al.
17576       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17577         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17578       else
17579         whole_archive_flag_spec_GCJ=
17580       fi
17581     fi
17582   else
17583     # PORTME fill in a description of your system's linker (not GNU ld)
17584     case $host_os in
17585     aix3*)
17586       allow_undefined_flag_GCJ=unsupported
17587       always_export_symbols_GCJ=yes
17588       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE;$AR $AR_FLAGS $lib $output_objdir/$soname'
17589       # Note: this linker hardcodes the directories in LIBPATH if there
17590       # are no directories specified by -L.
17591       hardcode_minus_L_GCJ=yes
17592       if test "$GCC" = yes && test -z "$link_static_flag"; then
17593         # Neither direct hardcoding nor static linking is supported with a
17594         # broken collect2.
17595         hardcode_direct_GCJ=unsupported
17596       fi
17597       ;;
17598
17599     aix4* | aix5*)
17600       if test "$host_cpu" = ia64; then
17601         # On IA64, the linker does run time linking by default, so we don't
17602         # have to do anything special.
17603         aix_use_runtimelinking=no
17604         exp_sym_flag='-Bexport'
17605         no_entry_flag=""
17606       else
17607         # If we're using GNU nm, then we don't want the "-C" option.
17608         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17609         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17610           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17611         else
17612           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17613         fi
17614         aix_use_runtimelinking=no
17615
17616         # Test if we are trying to use run time linking or normal
17617         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17618         # need to do runtime linking.
17619         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17620           for ld_flag in $LDFLAGS; do
17621           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17622             aix_use_runtimelinking=yes
17623             break
17624           fi
17625           done
17626         esac
17627
17628         exp_sym_flag='-bexport'
17629         no_entry_flag='-bnoentry'
17630       fi
17631
17632       # When large executables or shared objects are built, AIX ld can
17633       # have problems creating the table of contents.  If linking a library
17634       # or program results in "error TOC overflow" add -mminimal-toc to
17635       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17636       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17637
17638       archive_cmds_GCJ=''
17639       hardcode_direct_GCJ=yes
17640       hardcode_libdir_separator_GCJ=':'
17641       link_all_deplibs_GCJ=yes
17642
17643       if test "$GCC" = yes; then
17644         case $host_os in aix4.012|aix4.012.*)
17645         # We only want to do this on AIX 4.2 and lower, the check
17646         # below for broken collect2 doesn't work under 4.3+
17647           collect2name=`${CC} -print-prog-name=collect2`
17648           if test -f "$collect2name" && \
17649            strings "$collect2name" | grep resolve_lib_name >/dev/null
17650           then
17651           # We have reworked collect2
17652           hardcode_direct_GCJ=yes
17653           else
17654           # We have old collect2
17655           hardcode_direct_GCJ=unsupported
17656           # It fails to find uninstalled libraries when the uninstalled
17657           # path is not listed in the libpath.  Setting hardcode_minus_L
17658           # to unsupported forces relinking
17659           hardcode_minus_L_GCJ=yes
17660           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17661           hardcode_libdir_separator_GCJ=
17662           fi
17663         esac
17664         shared_flag='-shared'
17665       else
17666         # not using gcc
17667         if test "$host_cpu" = ia64; then
17668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669         # chokes on -Wl,-G. The following line is correct:
17670           shared_flag='-G'
17671         else
17672         if test "$aix_use_runtimelinking" = yes; then
17673             shared_flag='${wl}-G'
17674           else
17675             shared_flag='${wl}-bM:SRE'
17676         fi
17677         fi
17678       fi
17679
17680       # It seems that -bexpall does not export symbols beginning with
17681       # underscore (_), so it is better to generate a list of symbols to export.
17682       always_export_symbols_GCJ=yes
17683       if test "$aix_use_runtimelinking" = yes; then
17684         # Warning - without using the other runtime loading flags (-brtl),
17685         # -berok will link without error, but may produce a broken library.
17686         allow_undefined_flag_GCJ='-berok'
17687        # Determine the default libpath from the value encoded in an empty executable.
17688        cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694
17695 int
17696 main ()
17697 {
17698
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705   (eval $ac_link) 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -z "$ac_c_werror_flag"
17713                          || test ! -s conftest.err'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; } &&
17719          { ac_try='test -s conftest$ac_exeext'
17720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721   (eval $ac_try) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725
17726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17727 }'`
17728 # Check for a 64-bit object if we didn't find anything.
17729 if 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; }
17730 }'`; fi
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 fi
17736 rm -f conftest.err conftest.$ac_objext \
17737       conftest$ac_exeext conftest.$ac_ext
17738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17739
17740        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17742        else
17743         if test "$host_cpu" = ia64; then
17744           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17745           allow_undefined_flag_GCJ="-z nodefs"
17746           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17747         else
17748          # Determine the default libpath from the value encoded in an empty executable.
17749          cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755
17756 int
17757 main ()
17758 {
17759
17760   ;
17761   return 0;
17762 }
17763 _ACEOF
17764 rm -f conftest.$ac_objext conftest$ac_exeext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766   (eval $ac_link) 2>conftest.er1
17767   ac_status=$?
17768   grep -v '^ *+' conftest.er1 >conftest.err
17769   rm -f conftest.er1
17770   cat conftest.err >&5
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); } &&
17773          { ac_try='test -z "$ac_c_werror_flag"
17774                          || test ! -s conftest.err'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest$ac_exeext'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786
17787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17788 }'`
17789 # Check for a 64-bit object if we didn't find anything.
17790 if 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; }
17791 }'`; fi
17792 else
17793   echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 fi
17797 rm -f conftest.err conftest.$ac_objext \
17798       conftest$ac_exeext conftest.$ac_ext
17799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17800
17801          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17802           # Warning - without using the other run time loading flags,
17803           # -berok will link without error, but may produce a broken library.
17804           no_undefined_flag_GCJ=' ${wl}-bernotok'
17805           allow_undefined_flag_GCJ=' ${wl}-berok'
17806           # -bexpall does not export symbols beginning with underscore (_)
17807           always_export_symbols_GCJ=yes
17808           # Exported symbols can be pulled into shared objects from archives
17809           whole_archive_flag_spec_GCJ=' '
17810           archive_cmds_need_lc_GCJ=yes
17811           # This is similar to how AIX traditionally builds it's shared libraries.
17812           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17813         fi
17814       fi
17815       ;;
17816
17817     amigaos*)
17818       archive_cmds_GCJ='$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)'
17819       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17820       hardcode_minus_L_GCJ=yes
17821       # see comment about different semantics on the GNU ld section
17822       ld_shlibs_GCJ=no
17823       ;;
17824
17825     bsdi[45]*)
17826       export_dynamic_flag_spec_GCJ=-rdynamic
17827       ;;
17828
17829     cygwin* | mingw* | pw32*)
17830       # When not using gcc, we currently assume that we are using
17831       # Microsoft Visual C++.
17832       # hardcode_libdir_flag_spec is actually meaningless, as there is
17833       # no search path for DLLs.
17834       hardcode_libdir_flag_spec_GCJ=' '
17835       allow_undefined_flag_GCJ=unsupported
17836       # Tell ltmain to make .lib files, not .a files.
17837       libext=lib
17838       # Tell ltmain to make .dll files, not .so files.
17839       shrext_cmds=".dll"
17840       # FIXME: Setting linknames here is a bad hack.
17841       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
17842       # The linker will automatically build a .lib file if we build a DLL.
17843       old_archive_From_new_cmds_GCJ='true'
17844       # FIXME: Should let the user specify the lib program.
17845       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17846       fix_srcfile_path='`cygpath -w "$srcfile"`'
17847       enable_shared_with_static_runtimes_GCJ=yes
17848       ;;
17849
17850     darwin* | rhapsody*)
17851       case "$host_os" in
17852         rhapsody* | darwin1.[012])
17853          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17854          ;;
17855        *) # Darwin 1.3 on
17856          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17857            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17858          else
17859            case ${MACOSX_DEPLOYMENT_TARGET} in
17860              10.[012])
17861                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17862                ;;
17863              10.*)
17864                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17865                ;;
17866            esac
17867          fi
17868          ;;
17869       esac
17870       archive_cmds_need_lc_GCJ=no
17871       hardcode_direct_GCJ=no
17872       hardcode_automatic_GCJ=yes
17873       hardcode_shlibpath_var_GCJ=unsupported
17874       whole_archive_flag_spec_GCJ=''
17875       link_all_deplibs_GCJ=yes
17876     if test "$GCC" = yes ; then
17877         output_verbose_link_cmd='echo'
17878         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17879       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17880       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17881       archive_expsym_cmds_GCJ='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}'
17882       module_expsym_cmds_GCJ='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}'
17883     else
17884       case "$cc_basename" in
17885         xlc*)
17886          output_verbose_link_cmd='echo'
17887          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17888          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17889           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17890          archive_expsym_cmds_GCJ='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}'
17891           module_expsym_cmds_GCJ='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}'
17892           ;;
17893        *)
17894          ld_shlibs_GCJ=no
17895           ;;
17896       esac
17897     fi
17898       ;;
17899
17900     dgux*)
17901       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17902       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17903       hardcode_shlibpath_var_GCJ=no
17904       ;;
17905
17906     freebsd1*)
17907       ld_shlibs_GCJ=no
17908       ;;
17909
17910     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17911     # support.  Future versions do this automatically, but an explicit c++rt0.o
17912     # does not break anything, and helps significantly (at the cost of a little
17913     # extra space).
17914     freebsd2.2*)
17915       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17916       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17917       hardcode_direct_GCJ=yes
17918       hardcode_shlibpath_var_GCJ=no
17919       ;;
17920
17921     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17922     freebsd2*)
17923       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17924       hardcode_direct_GCJ=yes
17925       hardcode_minus_L_GCJ=yes
17926       hardcode_shlibpath_var_GCJ=no
17927       ;;
17928
17929     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17930     freebsd* | kfreebsd*-gnu)
17931       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17932       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933       hardcode_direct_GCJ=yes
17934       hardcode_shlibpath_var_GCJ=no
17935       ;;
17936
17937     hpux9*)
17938       if test "$GCC" = yes; then
17939         archive_cmds_GCJ='$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'
17940       else
17941         archive_cmds_GCJ='$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'
17942       fi
17943       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17944       hardcode_libdir_separator_GCJ=:
17945       hardcode_direct_GCJ=yes
17946
17947       # hardcode_minus_L: Not really in the search PATH,
17948       # but as the default location of the library.
17949       hardcode_minus_L_GCJ=yes
17950       export_dynamic_flag_spec_GCJ='${wl}-E'
17951       ;;
17952
17953     hpux10* | hpux11*)
17954       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17955         case "$host_cpu" in
17956         hppa*64*|ia64*)
17957           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17958           ;;
17959         *)
17960           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17961           ;;
17962         esac
17963       else
17964         case "$host_cpu" in
17965         hppa*64*|ia64*)
17966           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17967           ;;
17968         *)
17969           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17970           ;;
17971         esac
17972       fi
17973       if test "$with_gnu_ld" = no; then
17974         case "$host_cpu" in
17975         hppa*64*)
17976           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17977           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17978           hardcode_libdir_separator_GCJ=:
17979           hardcode_direct_GCJ=no
17980           hardcode_shlibpath_var_GCJ=no
17981           ;;
17982         ia64*)
17983           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984           hardcode_direct_GCJ=no
17985           hardcode_shlibpath_var_GCJ=no
17986
17987           # hardcode_minus_L: Not really in the search PATH,
17988           # but as the default location of the library.
17989           hardcode_minus_L_GCJ=yes
17990           ;;
17991         *)
17992           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17993           hardcode_libdir_separator_GCJ=:
17994           hardcode_direct_GCJ=yes
17995           export_dynamic_flag_spec_GCJ='${wl}-E'
17996
17997           # hardcode_minus_L: Not really in the search PATH,
17998           # but as the default location of the library.
17999           hardcode_minus_L_GCJ=yes
18000           ;;
18001         esac
18002       fi
18003       ;;
18004
18005     irix5* | irix6* | nonstopux*)
18006       if test "$GCC" = yes; then
18007         archive_cmds_GCJ='$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'
18008       else
18009         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18010         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18011       fi
18012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013       hardcode_libdir_separator_GCJ=:
18014       link_all_deplibs_GCJ=yes
18015       ;;
18016
18017     netbsd*)
18018       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18019         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18020       else
18021         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18022       fi
18023       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024       hardcode_direct_GCJ=yes
18025       hardcode_shlibpath_var_GCJ=no
18026       ;;
18027
18028     newsos6)
18029       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030       hardcode_direct_GCJ=yes
18031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18032       hardcode_libdir_separator_GCJ=:
18033       hardcode_shlibpath_var_GCJ=no
18034       ;;
18035
18036     openbsd*)
18037       hardcode_direct_GCJ=yes
18038       hardcode_shlibpath_var_GCJ=no
18039       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18040         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18041         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18042         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18043         export_dynamic_flag_spec_GCJ='${wl}-E'
18044       else
18045        case $host_os in
18046          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18047            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18048            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18049            ;;
18050          *)
18051            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18052            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18053            ;;
18054        esac
18055       fi
18056       ;;
18057
18058     os2*)
18059       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060       hardcode_minus_L_GCJ=yes
18061       allow_undefined_flag_GCJ=unsupported
18062       archive_cmds_GCJ='$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'
18063       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18064       ;;
18065
18066     osf3*)
18067       if test "$GCC" = yes; then
18068         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18069         archive_cmds_GCJ='$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'
18070       else
18071         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18072         archive_cmds_GCJ='$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'
18073       fi
18074       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18075       hardcode_libdir_separator_GCJ=:
18076       ;;
18077
18078     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18079       if test "$GCC" = yes; then
18080         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18081         archive_cmds_GCJ='$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'
18082         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18083       else
18084         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18085         archive_cmds_GCJ='$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'
18086         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
18087         # Both c and cxx compiler support -rpath directly
18088         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18089       fi
18090       hardcode_libdir_separator_GCJ=:
18091       ;;
18092
18093     sco3.2v5*)
18094       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095       hardcode_shlibpath_var_GCJ=no
18096       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18097       runpath_var=LD_RUN_PATH
18098       hardcode_runpath_var=yes
18099       ;;
18100
18101     solaris*)
18102       no_undefined_flag_GCJ=' -z text'
18103       if test "$GCC" = yes; then
18104         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
18106       else
18107         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18109       fi
18110       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18111       hardcode_shlibpath_var_GCJ=no
18112       case $host_os in
18113       solaris2.[0-5] | solaris2.[0-5].*) ;;
18114       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18115         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18116       esac
18117       link_all_deplibs_GCJ=yes
18118       ;;
18119
18120     sunos4*)
18121       if test "x$host_vendor" = xsequent; then
18122         # Use $CC to link under sequent, because it throws in some extra .o
18123         # files that make .init and .fini sections work.
18124         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18125       else
18126         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18127       fi
18128       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18129       hardcode_direct_GCJ=yes
18130       hardcode_minus_L_GCJ=yes
18131       hardcode_shlibpath_var_GCJ=no
18132       ;;
18133
18134     sysv4)
18135       case $host_vendor in
18136         sni)
18137           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138           hardcode_direct_GCJ=yes # is this really true???
18139         ;;
18140         siemens)
18141           ## LD is ld it makes a PLAMLIB
18142           ## CC just makes a GrossModule.
18143           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18144           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18145           hardcode_direct_GCJ=no
18146         ;;
18147         motorola)
18148           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18150         ;;
18151       esac
18152       runpath_var='LD_RUN_PATH'
18153       hardcode_shlibpath_var_GCJ=no
18154       ;;
18155
18156     sysv4.3*)
18157       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18158       hardcode_shlibpath_var_GCJ=no
18159       export_dynamic_flag_spec_GCJ='-Bexport'
18160       ;;
18161
18162     sysv4*MP*)
18163       if test -d /usr/nec; then
18164         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165         hardcode_shlibpath_var_GCJ=no
18166         runpath_var=LD_RUN_PATH
18167         hardcode_runpath_var=yes
18168         ld_shlibs_GCJ=yes
18169       fi
18170       ;;
18171
18172     sysv4.2uw2*)
18173       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18174       hardcode_direct_GCJ=yes
18175       hardcode_minus_L_GCJ=no
18176       hardcode_shlibpath_var_GCJ=no
18177       hardcode_runpath_var=yes
18178       runpath_var=LD_RUN_PATH
18179       ;;
18180
18181    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18182       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18183       if test "$GCC" = yes; then
18184         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18185       else
18186         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187       fi
18188       runpath_var='LD_RUN_PATH'
18189       hardcode_shlibpath_var_GCJ=no
18190       ;;
18191
18192     sysv5*)
18193       no_undefined_flag_GCJ=' -z text'
18194       # $CC -shared without GNU ld will not create a library from C++
18195       # object files and a static libstdc++, better avoid it by now
18196       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18198       hardcode_libdir_flag_spec_GCJ=
18199       hardcode_shlibpath_var_GCJ=no
18200       runpath_var='LD_RUN_PATH'
18201       ;;
18202
18203     uts4*)
18204       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18205       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18206       hardcode_shlibpath_var_GCJ=no
18207       ;;
18208
18209     *)
18210       ld_shlibs_GCJ=no
18211       ;;
18212     esac
18213   fi
18214
18215 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18216 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18217 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18218
18219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220 if test "$GCC" = yes; then
18221   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18222 fi
18223
18224 #
18225 # Do we need to explicitly link libc?
18226 #
18227 case "x$archive_cmds_need_lc_GCJ" in
18228 x|xyes)
18229   # Assume -lc should be added
18230   archive_cmds_need_lc_GCJ=yes
18231
18232   if test "$enable_shared" = yes && test "$GCC" = yes; then
18233     case $archive_cmds_GCJ in
18234     *'~'*)
18235       # FIXME: we may have to deal with multi-command sequences.
18236       ;;
18237     '$CC '*)
18238       # Test whether the compiler implicitly links with -lc since on some
18239       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18240       # to ld, don't add -lc before -lgcc.
18241       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18243       $rm conftest*
18244       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245
18246       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247   (eval $ac_compile) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); } 2>conftest.err; then
18251         soname=conftest
18252         lib=conftest
18253         libobjs=conftest.$ac_objext
18254         deplibs=
18255         wl=$lt_prog_compiler_wl_GCJ
18256         compiler_flags=-v
18257         linker_flags=-v
18258         verstring=
18259         output_objdir=.
18260         libname=conftest
18261         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18262         allow_undefined_flag_GCJ=
18263         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18264   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }
18268         then
18269           archive_cmds_need_lc_GCJ=no
18270         else
18271           archive_cmds_need_lc_GCJ=yes
18272         fi
18273         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18274       else
18275         cat conftest.err 1>&5
18276       fi
18277       $rm conftest*
18278       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18279 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18280       ;;
18281     esac
18282   fi
18283   ;;
18284 esac
18285
18286 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18288 library_names_spec=
18289 libname_spec='lib$name'
18290 soname_spec=
18291 shrext_cmds=".so"
18292 postinstall_cmds=
18293 postuninstall_cmds=
18294 finish_cmds=
18295 finish_eval=
18296 shlibpath_var=
18297 shlibpath_overrides_runpath=unknown
18298 version_type=none
18299 dynamic_linker="$host_os ld.so"
18300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18301 if test "$GCC" = yes; then
18302   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18303   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18304     # if the path contains ";" then we assume it to be the separator
18305     # otherwise default to the standard path separator (i.e. ":") - it is
18306     # assumed that no part of a normal pathname contains ";" but that should
18307     # okay in the real world where ";" in dirpaths is itself problematic.
18308     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309   else
18310     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18311   fi
18312 else
18313   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18314 fi
18315 need_lib_prefix=unknown
18316 hardcode_into_libs=no
18317
18318 # when you set need_version to no, make sure it does not cause -set_version
18319 # flags to be left without arguments
18320 need_version=unknown
18321
18322 case $host_os in
18323 aix3*)
18324   version_type=linux
18325   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18326   shlibpath_var=LIBPATH
18327
18328   # AIX 3 has no versioning support, so we append a major version to the name.
18329   soname_spec='${libname}${release}${shared_ext}$major'
18330   ;;
18331
18332 aix4* | aix5*)
18333   version_type=linux
18334   need_lib_prefix=no
18335   need_version=no
18336   hardcode_into_libs=yes
18337   if test "$host_cpu" = ia64; then
18338     # AIX 5 supports IA64
18339     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18340     shlibpath_var=LD_LIBRARY_PATH
18341   else
18342     # With GCC up to 2.95.x, collect2 would create an import file
18343     # for dependence libraries.  The import file would start with
18344     # the line `#! .'.  This would cause the generated library to
18345     # depend on `.', always an invalid library.  This was fixed in
18346     # development snapshots of GCC prior to 3.0.
18347     case $host_os in
18348       aix4 | aix4.[01] | aix4.[01].*)
18349       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18350            echo ' yes '
18351            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18352         :
18353       else
18354         can_build_shared=no
18355       fi
18356       ;;
18357     esac
18358     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18359     # soname into executable. Probably we can add versioning support to
18360     # collect2, so additional links can be useful in future.
18361     if test "$aix_use_runtimelinking" = yes; then
18362       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18363       # instead of lib<name>.a to let people know that these are not
18364       # typical AIX shared libraries.
18365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366     else
18367       # We preserve .a as extension for shared libraries through AIX4.2
18368       # and later when we are not doing run time linking.
18369       library_names_spec='${libname}${release}.a $libname.a'
18370       soname_spec='${libname}${release}${shared_ext}$major'
18371     fi
18372     shlibpath_var=LIBPATH
18373   fi
18374   ;;
18375
18376 amigaos*)
18377   library_names_spec='$libname.ixlibrary $libname.a'
18378   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18379   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'
18380   ;;
18381
18382 beos*)
18383   library_names_spec='${libname}${shared_ext}'
18384   dynamic_linker="$host_os ld.so"
18385   shlibpath_var=LIBRARY_PATH
18386   ;;
18387
18388 bsdi[45]*)
18389   version_type=linux
18390   need_version=no
18391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392   soname_spec='${libname}${release}${shared_ext}$major'
18393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18397   # the default ld.so.conf also contains /usr/contrib/lib and
18398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18399   # libtool to hard-code these into programs
18400   ;;
18401
18402 cygwin* | mingw* | pw32*)
18403   version_type=windows
18404   shrext_cmds=".dll"
18405   need_version=no
18406   need_lib_prefix=no
18407
18408   case $GCC,$host_os in
18409   yes,cygwin* | yes,mingw* | yes,pw32*)
18410     library_names_spec='$libname.dll.a'
18411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18412     postinstall_cmds='base_file=`basename \${file}`;
18413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
18414       dldir=$destdir/`dirname \$dlpath`;
18415       test -d \$dldir || mkdir -p \$dldir;
18416       $install_prog $dir/$dlname \$dldir/$dlname'
18417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
18418       dlpath=$dir/\$dldll;
18419        $rm \$dlpath'
18420     shlibpath_overrides_runpath=yes
18421
18422     case $host_os in
18423     cygwin*)
18424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18426       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18427       ;;
18428     mingw*)
18429       # MinGW DLLs use traditional 'lib' prefix
18430       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18431       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18432       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18433         # It is most probably a Windows format PATH printed by
18434         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18435         # path with ; separators, and with drive letters. We can handle the
18436         # drive letters (cygwin fileutils understands them), so leave them,
18437         # especially as we might pass files found there to a mingw objdump,
18438         # which wouldn't understand a cygwinified path. Ahh.
18439         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18440       else
18441         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18442       fi
18443       ;;
18444     pw32*)
18445       # pw32 DLLs use 'pw' prefix rather than 'lib'
18446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18447       ;;
18448     esac
18449     ;;
18450
18451   *)
18452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18453     ;;
18454   esac
18455   dynamic_linker='Win32 ld.exe'
18456   # FIXME: first we should search . and the directory the executable is in
18457   shlibpath_var=PATH
18458   ;;
18459
18460 darwin* | rhapsody*)
18461   dynamic_linker="$host_os dyld"
18462   version_type=darwin
18463   need_lib_prefix=no
18464   need_version=no
18465   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18466   soname_spec='${libname}${release}${major}$shared_ext'
18467   shlibpath_overrides_runpath=yes
18468   shlibpath_var=DYLD_LIBRARY_PATH
18469   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18470   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18471   if test "$GCC" = yes; then
18472     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"`
18473   else
18474     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18475   fi
18476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18477   ;;
18478
18479 dgux*)
18480   version_type=linux
18481   need_lib_prefix=no
18482   need_version=no
18483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18484   soname_spec='${libname}${release}${shared_ext}$major'
18485   shlibpath_var=LD_LIBRARY_PATH
18486   ;;
18487
18488 freebsd1*)
18489   dynamic_linker=no
18490   ;;
18491
18492 kfreebsd*-gnu)
18493   version_type=linux
18494   need_lib_prefix=no
18495   need_version=no
18496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18497   soname_spec='${libname}${release}${shared_ext}$major'
18498   shlibpath_var=LD_LIBRARY_PATH
18499   shlibpath_overrides_runpath=no
18500   hardcode_into_libs=yes
18501   dynamic_linker='GNU ld.so'
18502   ;;
18503
18504 freebsd*)
18505   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18506   version_type=freebsd-$objformat
18507   case $version_type in
18508     freebsd-elf*)
18509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18510       need_version=no
18511       need_lib_prefix=no
18512       ;;
18513     freebsd-*)
18514       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18515       need_version=yes
18516       ;;
18517   esac
18518   shlibpath_var=LD_LIBRARY_PATH
18519   case $host_os in
18520   freebsd2*)
18521     shlibpath_overrides_runpath=yes
18522     ;;
18523   freebsd3.01* | freebsdelf3.01*)
18524     shlibpath_overrides_runpath=yes
18525     hardcode_into_libs=yes
18526     ;;
18527   *) # from 3.2 on
18528     shlibpath_overrides_runpath=no
18529     hardcode_into_libs=yes
18530     ;;
18531   esac
18532   ;;
18533
18534 gnu*)
18535   version_type=linux
18536   need_lib_prefix=no
18537   need_version=no
18538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18539   soname_spec='${libname}${release}${shared_ext}$major'
18540   shlibpath_var=LD_LIBRARY_PATH
18541   hardcode_into_libs=yes
18542   ;;
18543
18544 hpux9* | hpux10* | hpux11*)
18545   # Give a soname corresponding to the major version so that dld.sl refuses to
18546   # link against other versions.
18547   version_type=sunos
18548   need_lib_prefix=no
18549   need_version=no
18550   case "$host_cpu" in
18551   ia64*)
18552     shrext_cmds='.so'
18553     hardcode_into_libs=yes
18554     dynamic_linker="$host_os dld.so"
18555     shlibpath_var=LD_LIBRARY_PATH
18556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558     soname_spec='${libname}${release}${shared_ext}$major'
18559     if test "X$HPUX_IA64_MODE" = X32; then
18560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18561     else
18562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18563     fi
18564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18565     ;;
18566    hppa*64*)
18567      shrext_cmds='.sl'
18568      hardcode_into_libs=yes
18569      dynamic_linker="$host_os dld.sl"
18570      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18571      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18572      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573      soname_spec='${libname}${release}${shared_ext}$major'
18574      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18575      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576      ;;
18577    *)
18578     shrext_cmds='.sl'
18579     dynamic_linker="$host_os dld.sl"
18580     shlibpath_var=SHLIB_PATH
18581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583     soname_spec='${libname}${release}${shared_ext}$major'
18584     ;;
18585   esac
18586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18587   postinstall_cmds='chmod 555 $lib'
18588   ;;
18589
18590 irix5* | irix6* | nonstopux*)
18591   case $host_os in
18592     nonstopux*) version_type=nonstopux ;;
18593     *)
18594         if test "$lt_cv_prog_gnu_ld" = yes; then
18595                 version_type=linux
18596         else
18597                 version_type=irix
18598         fi ;;
18599   esac
18600   need_lib_prefix=no
18601   need_version=no
18602   soname_spec='${libname}${release}${shared_ext}$major'
18603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18604   case $host_os in
18605   irix5* | nonstopux*)
18606     libsuff= shlibsuff=
18607     ;;
18608   *)
18609     case $LD in # libtool.m4 will add one of these switches to LD
18610     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18611       libsuff= shlibsuff= libmagic=32-bit;;
18612     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18613       libsuff=32 shlibsuff=N32 libmagic=N32;;
18614     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18615       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18616     *) libsuff= shlibsuff= libmagic=never-match;;
18617     esac
18618     ;;
18619   esac
18620   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18621   shlibpath_overrides_runpath=no
18622   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18623   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18624   hardcode_into_libs=yes
18625   ;;
18626
18627 # No shared lib support for Linux oldld, aout, or coff.
18628 linux*oldld* | linux*aout* | linux*coff*)
18629   dynamic_linker=no
18630   ;;
18631
18632 # This must be Linux ELF.
18633 linux*)
18634   version_type=linux
18635   need_lib_prefix=no
18636   need_version=no
18637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638   soname_spec='${libname}${release}${shared_ext}$major'
18639   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   shlibpath_overrides_runpath=no
18642   # This implies no fast_install, which is unacceptable.
18643   # Some rework will be needed to allow for fast_install
18644   # before this can be enabled.
18645   hardcode_into_libs=yes
18646
18647   # Append ld.so.conf contents to the search path
18648   if test -f /etc/ld.so.conf; then
18649     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18650     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18651   fi
18652
18653   # We used to test for /lib/ld.so.1 and disable shared libraries on
18654   # powerpc, because MkLinux only supported shared libraries with the
18655   # GNU dynamic linker.  Since this was broken with cross compilers,
18656   # most powerpc-linux boxes support dynamic linking these days and
18657   # people can always --disable-shared, the test was removed, and we
18658   # assume the GNU/Linux dynamic linker is in use.
18659   dynamic_linker='GNU/Linux ld.so'
18660   ;;
18661
18662 knetbsd*-gnu)
18663   version_type=linux
18664   need_lib_prefix=no
18665   need_version=no
18666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18667   soname_spec='${libname}${release}${shared_ext}$major'
18668   shlibpath_var=LD_LIBRARY_PATH
18669   shlibpath_overrides_runpath=no
18670   hardcode_into_libs=yes
18671   dynamic_linker='GNU ld.so'
18672   ;;
18673
18674 netbsd*)
18675   version_type=sunos
18676   need_lib_prefix=no
18677   need_version=no
18678   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18681     dynamic_linker='NetBSD (a.out) ld.so'
18682   else
18683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684     soname_spec='${libname}${release}${shared_ext}$major'
18685     dynamic_linker='NetBSD ld.elf_so'
18686   fi
18687   shlibpath_var=LD_LIBRARY_PATH
18688   shlibpath_overrides_runpath=yes
18689   hardcode_into_libs=yes
18690   ;;
18691
18692 newsos6)
18693   version_type=linux
18694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695   shlibpath_var=LD_LIBRARY_PATH
18696   shlibpath_overrides_runpath=yes
18697   ;;
18698
18699 nto-qnx*)
18700   version_type=linux
18701   need_lib_prefix=no
18702   need_version=no
18703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704   soname_spec='${libname}${release}${shared_ext}$major'
18705   shlibpath_var=LD_LIBRARY_PATH
18706   shlibpath_overrides_runpath=yes
18707   ;;
18708
18709 openbsd*)
18710   version_type=sunos
18711   need_lib_prefix=no
18712   need_version=no
18713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18717     case $host_os in
18718       openbsd2.[89] | openbsd2.[89].*)
18719         shlibpath_overrides_runpath=no
18720         ;;
18721       *)
18722         shlibpath_overrides_runpath=yes
18723         ;;
18724       esac
18725   else
18726     shlibpath_overrides_runpath=yes
18727   fi
18728   ;;
18729
18730 os2*)
18731   libname_spec='$name'
18732   shrext_cmds=".dll"
18733   need_lib_prefix=no
18734   library_names_spec='$libname${shared_ext} $libname.a'
18735   dynamic_linker='OS/2 ld.exe'
18736   shlibpath_var=LIBPATH
18737   ;;
18738
18739 osf3* | osf4* | osf5*)
18740   version_type=osf
18741   need_lib_prefix=no
18742   need_version=no
18743   soname_spec='${libname}${release}${shared_ext}$major'
18744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745   shlibpath_var=LD_LIBRARY_PATH
18746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18748   ;;
18749
18750 sco3.2v5*)
18751   version_type=osf
18752   soname_spec='${libname}${release}${shared_ext}$major'
18753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754   shlibpath_var=LD_LIBRARY_PATH
18755   ;;
18756
18757 solaris*)
18758   version_type=linux
18759   need_lib_prefix=no
18760   need_version=no
18761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762   soname_spec='${libname}${release}${shared_ext}$major'
18763   shlibpath_var=LD_LIBRARY_PATH
18764   shlibpath_overrides_runpath=yes
18765   hardcode_into_libs=yes
18766   # ldd complains unless libraries are executable
18767   postinstall_cmds='chmod +x $lib'
18768   ;;
18769
18770 sunos4*)
18771   version_type=sunos
18772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18774   shlibpath_var=LD_LIBRARY_PATH
18775   shlibpath_overrides_runpath=yes
18776   if test "$with_gnu_ld" = yes; then
18777     need_lib_prefix=no
18778   fi
18779   need_version=yes
18780   ;;
18781
18782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18783   version_type=linux
18784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785   soname_spec='${libname}${release}${shared_ext}$major'
18786   shlibpath_var=LD_LIBRARY_PATH
18787   case $host_vendor in
18788     sni)
18789       shlibpath_overrides_runpath=no
18790       need_lib_prefix=no
18791       export_dynamic_flag_spec='${wl}-Blargedynsym'
18792       runpath_var=LD_RUN_PATH
18793       ;;
18794     siemens)
18795       need_lib_prefix=no
18796       ;;
18797     motorola)
18798       need_lib_prefix=no
18799       need_version=no
18800       shlibpath_overrides_runpath=no
18801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18802       ;;
18803   esac
18804   ;;
18805
18806 sysv4*MP*)
18807   if test -d /usr/nec ;then
18808     version_type=linux
18809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18810     soname_spec='$libname${shared_ext}.$major'
18811     shlibpath_var=LD_LIBRARY_PATH
18812   fi
18813   ;;
18814
18815 uts4*)
18816   version_type=linux
18817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818   soname_spec='${libname}${release}${shared_ext}$major'
18819   shlibpath_var=LD_LIBRARY_PATH
18820   ;;
18821
18822 *)
18823   dynamic_linker=no
18824   ;;
18825 esac
18826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18827 echo "${ECHO_T}$dynamic_linker" >&6
18828 test "$dynamic_linker" = no && can_build_shared=no
18829
18830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18832 hardcode_action_GCJ=
18833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18834    test -n "$runpath_var_GCJ" || \
18835    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18836
18837   # We can hardcode non-existant directories.
18838   if test "$hardcode_direct_GCJ" != no &&
18839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18840      # have to relink, otherwise we might link with an installed library
18841      # when we should be linking with a yet-to-be-installed one
18842      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18843      test "$hardcode_minus_L_GCJ" != no; then
18844     # Linking always hardcodes the temporary library directory.
18845     hardcode_action_GCJ=relink
18846   else
18847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18848     hardcode_action_GCJ=immediate
18849   fi
18850 else
18851   # We cannot hardcode anything, or else we can only hardcode existing
18852   # directories.
18853   hardcode_action_GCJ=unsupported
18854 fi
18855 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18856 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18857
18858 if test "$hardcode_action_GCJ" = relink; then
18859   # Fast installation is not supported
18860   enable_fast_install=no
18861 elif test "$shlibpath_overrides_runpath" = yes ||
18862      test "$enable_shared" = no; then
18863   # Fast installation is not necessary
18864   enable_fast_install=needless
18865 fi
18866
18867 striplib=
18868 old_striplib=
18869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18872   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18873   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18874   echo "$as_me:$LINENO: result: yes" >&5
18875 echo "${ECHO_T}yes" >&6
18876 else
18877 # FIXME - insert some real tests, host_os isn't really good enough
18878   case $host_os in
18879    darwin*)
18880        if test -n "$STRIP" ; then
18881          striplib="$STRIP -x"
18882          echo "$as_me:$LINENO: result: yes" >&5
18883 echo "${ECHO_T}yes" >&6
18884        else
18885   echo "$as_me:$LINENO: result: no" >&5
18886 echo "${ECHO_T}no" >&6
18887 fi
18888        ;;
18889    *)
18890   echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6
18892     ;;
18893   esac
18894 fi
18895
18896 if test "x$enable_dlopen" != xyes; then
18897   enable_dlopen=unknown
18898   enable_dlopen_self=unknown
18899   enable_dlopen_self_static=unknown
18900 else
18901   lt_cv_dlopen=no
18902   lt_cv_dlopen_libs=
18903
18904   case $host_os in
18905   beos*)
18906     lt_cv_dlopen="load_add_on"
18907     lt_cv_dlopen_libs=
18908     lt_cv_dlopen_self=yes
18909     ;;
18910
18911   mingw* | pw32*)
18912     lt_cv_dlopen="LoadLibrary"
18913     lt_cv_dlopen_libs=
18914    ;;
18915
18916   cygwin*)
18917     lt_cv_dlopen="dlopen"
18918     lt_cv_dlopen_libs=
18919    ;;
18920
18921   darwin*)
18922   # if libdl is installed we need to link against it
18923     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   ac_check_lib_save_LIBS=$LIBS
18929 LIBS="-ldl  $LIBS"
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936
18937 /* Override any gcc2 internal prototype to avoid an error.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 /* We use char because int might match the return type of a gcc2
18942    builtin and then its argument prototype would still apply.  */
18943 char dlopen ();
18944 int
18945 main ()
18946 {
18947 dlopen ();
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954   (eval $ac_link) 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_c_werror_flag"
18962                          || test ! -s conftest.err'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; } &&
18968          { ac_try='test -s conftest$ac_exeext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_lib_dl_dlopen=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_lib_dl_dlopen=no
18980 fi
18981 rm -f conftest.err conftest.$ac_objext \
18982       conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18984 fi
18985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18987 if test $ac_cv_lib_dl_dlopen = yes; then
18988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18989 else
18990
18991     lt_cv_dlopen="dyld"
18992     lt_cv_dlopen_libs=
18993     lt_cv_dlopen_self=yes
18994
18995 fi
18996
18997    ;;
18998
18999   *)
19000     echo "$as_me:$LINENO: checking for shl_load" >&5
19001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19002 if test "${ac_cv_func_shl_load+set}" = set; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005   cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19013 #define shl_load innocuous_shl_load
19014
19015 /* System header to define __stub macros and hopefully few prototypes,
19016     which can conflict with char shl_load (); below.
19017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018     <limits.h> exists even on freestanding compilers.  */
19019
19020 #ifdef __STDC__
19021 # include <limits.h>
19022 #else
19023 # include <assert.h>
19024 #endif
19025
19026 #undef shl_load
19027
19028 /* Override any gcc2 internal prototype to avoid an error.  */
19029 #ifdef __cplusplus
19030 extern "C"
19031 {
19032 #endif
19033 /* We use char because int might match the return type of a gcc2
19034    builtin and then its argument prototype would still apply.  */
19035 char shl_load ();
19036 /* The GNU C library defines this for functions which it implements
19037     to always fail with ENOSYS.  Some functions are actually named
19038     something starting with __ and the normal name is an alias.  */
19039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19040 choke me
19041 #else
19042 char (*f) () = shl_load;
19043 #endif
19044 #ifdef __cplusplus
19045 }
19046 #endif
19047
19048 int
19049 main ()
19050 {
19051 return f != shl_load;
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058   (eval $ac_link) 2>conftest.er1
19059   ac_status=$?
19060   grep -v '^ *+' conftest.er1 >conftest.err
19061   rm -f conftest.er1
19062   cat conftest.err >&5
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); } &&
19065          { ac_try='test -z "$ac_c_werror_flag"
19066                          || test ! -s conftest.err'
19067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068   (eval $ac_try) 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; } &&
19072          { ac_try='test -s conftest$ac_exeext'
19073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074   (eval $ac_try) 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078   ac_cv_func_shl_load=yes
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 ac_cv_func_shl_load=no
19084 fi
19085 rm -f conftest.err conftest.$ac_objext \
19086       conftest$ac_exeext conftest.$ac_ext
19087 fi
19088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19090 if test $ac_cv_func_shl_load = yes; then
19091   lt_cv_dlopen="shl_load"
19092 else
19093   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19096   echo $ECHO_N "(cached) $ECHO_C" >&6
19097 else
19098   ac_check_lib_save_LIBS=$LIBS
19099 LIBS="-ldld  $LIBS"
19100 cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h.  */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h.  */
19106
19107 /* Override any gcc2 internal prototype to avoid an error.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 /* We use char because int might match the return type of a gcc2
19112    builtin and then its argument prototype would still apply.  */
19113 char shl_load ();
19114 int
19115 main ()
19116 {
19117 shl_load ();
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124   (eval $ac_link) 2>conftest.er1
19125   ac_status=$?
19126   grep -v '^ *+' conftest.er1 >conftest.err
19127   rm -f conftest.er1
19128   cat conftest.err >&5
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } &&
19131          { ac_try='test -z "$ac_c_werror_flag"
19132                          || test ! -s conftest.err'
19133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134   (eval $ac_try) 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; } &&
19138          { ac_try='test -s conftest$ac_exeext'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; }; then
19144   ac_cv_lib_dld_shl_load=yes
19145 else
19146   echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19148
19149 ac_cv_lib_dld_shl_load=no
19150 fi
19151 rm -f conftest.err conftest.$ac_objext \
19152       conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19154 fi
19155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19157 if test $ac_cv_lib_dld_shl_load = yes; then
19158   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19159 else
19160   echo "$as_me:$LINENO: checking for dlopen" >&5
19161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19162 if test "${ac_cv_func_dlopen+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165   cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19173 #define dlopen innocuous_dlopen
19174
19175 /* System header to define __stub macros and hopefully few prototypes,
19176     which can conflict with char dlopen (); below.
19177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19178     <limits.h> exists even on freestanding compilers.  */
19179
19180 #ifdef __STDC__
19181 # include <limits.h>
19182 #else
19183 # include <assert.h>
19184 #endif
19185
19186 #undef dlopen
19187
19188 /* Override any gcc2 internal prototype to avoid an error.  */
19189 #ifdef __cplusplus
19190 extern "C"
19191 {
19192 #endif
19193 /* We use char because int might match the return type of a gcc2
19194    builtin and then its argument prototype would still apply.  */
19195 char dlopen ();
19196 /* The GNU C library defines this for functions which it implements
19197     to always fail with ENOSYS.  Some functions are actually named
19198     something starting with __ and the normal name is an alias.  */
19199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19200 choke me
19201 #else
19202 char (*f) () = dlopen;
19203 #endif
19204 #ifdef __cplusplus
19205 }
19206 #endif
19207
19208 int
19209 main ()
19210 {
19211 return f != dlopen;
19212   ;
19213   return 0;
19214 }
19215 _ACEOF
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218   (eval $ac_link) 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } &&
19225          { ac_try='test -z "$ac_c_werror_flag"
19226                          || test ! -s conftest.err'
19227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228   (eval $ac_try) 2>&5
19229   ac_status=$?
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); }; } &&
19232          { ac_try='test -s conftest$ac_exeext'
19233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234   (eval $ac_try) 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_cv_func_dlopen=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_func_dlopen=no
19244 fi
19245 rm -f conftest.err conftest.$ac_objext \
19246       conftest$ac_exeext conftest.$ac_ext
19247 fi
19248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19250 if test $ac_cv_func_dlopen = yes; then
19251   lt_cv_dlopen="dlopen"
19252 else
19253   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19256   echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258   ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-ldl  $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266
19267 /* Override any gcc2 internal prototype to avoid an error.  */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 /* We use char because int might match the return type of a gcc2
19272    builtin and then its argument prototype would still apply.  */
19273 char dlopen ();
19274 int
19275 main ()
19276 {
19277 dlopen ();
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284   (eval $ac_link) 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag"
19292                          || test ! -s conftest.err'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; } &&
19298          { ac_try='test -s conftest$ac_exeext'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304   ac_cv_lib_dl_dlopen=yes
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 ac_cv_lib_dl_dlopen=no
19310 fi
19311 rm -f conftest.err conftest.$ac_objext \
19312       conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19314 fi
19315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19317 if test $ac_cv_lib_dl_dlopen = yes; then
19318   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19319 else
19320   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325   ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lsvld  $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h.  */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h.  */
19333
19334 /* Override any gcc2 internal prototype to avoid an error.  */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 /* We use char because int might match the return type of a gcc2
19339    builtin and then its argument prototype would still apply.  */
19340 char dlopen ();
19341 int
19342 main ()
19343 {
19344 dlopen ();
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351   (eval $ac_link) 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } &&
19358          { ac_try='test -z "$ac_c_werror_flag"
19359                          || test ! -s conftest.err'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest$ac_exeext'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; }; then
19371   ac_cv_lib_svld_dlopen=yes
19372 else
19373   echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_cv_lib_svld_dlopen=no
19377 fi
19378 rm -f conftest.err conftest.$ac_objext \
19379       conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19381 fi
19382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19384 if test $ac_cv_lib_svld_dlopen = yes; then
19385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19386 else
19387   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-ldld  $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any gcc2 internal prototype to avoid an error.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406    builtin and then its argument prototype would still apply.  */
19407 char dld_link ();
19408 int
19409 main ()
19410 {
19411 dld_link ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_lib_dld_dld_link=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_lib_dld_dld_link=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19451 if test $ac_cv_lib_dld_dld_link = yes; then
19452   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19453 fi
19454
19455
19456 fi
19457
19458
19459 fi
19460
19461
19462 fi
19463
19464
19465 fi
19466
19467
19468 fi
19469
19470     ;;
19471   esac
19472
19473   if test "x$lt_cv_dlopen" != xno; then
19474     enable_dlopen=yes
19475   else
19476     enable_dlopen=no
19477   fi
19478
19479   case $lt_cv_dlopen in
19480   dlopen)
19481     save_CPPFLAGS="$CPPFLAGS"
19482     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19483
19484     save_LDFLAGS="$LDFLAGS"
19485     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19486
19487     save_LIBS="$LIBS"
19488     LIBS="$lt_cv_dlopen_libs $LIBS"
19489
19490     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19492 if test "${lt_cv_dlopen_self+set}" = set; then
19493   echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495           if test "$cross_compiling" = yes; then :
19496   lt_cv_dlopen_self=cross
19497 else
19498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19499   lt_status=$lt_dlunknown
19500   cat > conftest.$ac_ext <<EOF
19501 #line 19501 "configure"
19502 #include "confdefs.h"
19503
19504 #if HAVE_DLFCN_H
19505 #include <dlfcn.h>
19506 #endif
19507
19508 #include <stdio.h>
19509
19510 #ifdef RTLD_GLOBAL
19511 #  define LT_DLGLOBAL           RTLD_GLOBAL
19512 #else
19513 #  ifdef DL_GLOBAL
19514 #    define LT_DLGLOBAL         DL_GLOBAL
19515 #  else
19516 #    define LT_DLGLOBAL         0
19517 #  endif
19518 #endif
19519
19520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19521    find out it does not work in some platform. */
19522 #ifndef LT_DLLAZY_OR_NOW
19523 #  ifdef RTLD_LAZY
19524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19525 #  else
19526 #    ifdef DL_LAZY
19527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19528 #    else
19529 #      ifdef RTLD_NOW
19530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19531 #      else
19532 #        ifdef DL_NOW
19533 #          define LT_DLLAZY_OR_NOW      DL_NOW
19534 #        else
19535 #          define LT_DLLAZY_OR_NOW      0
19536 #        endif
19537 #      endif
19538 #    endif
19539 #  endif
19540 #endif
19541
19542 #ifdef __cplusplus
19543 extern "C" void exit (int);
19544 #endif
19545
19546 void fnord() { int i=42;}
19547 int main ()
19548 {
19549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19550   int status = $lt_dlunknown;
19551
19552   if (self)
19553     {
19554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19556       /* dlclose (self); */
19557     }
19558
19559     exit (status);
19560 }
19561 EOF
19562   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563   (eval $ac_link) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19567     (./conftest; exit; ) 2>/dev/null
19568     lt_status=$?
19569     case x$lt_status in
19570       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19571       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19572       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19573     esac
19574   else :
19575     # compilation failed
19576     lt_cv_dlopen_self=no
19577   fi
19578 fi
19579 rm -fr conftest*
19580
19581
19582 fi
19583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19585
19586     if test "x$lt_cv_dlopen_self" = xyes; then
19587       LDFLAGS="$LDFLAGS $link_static_flag"
19588       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19590 if test "${lt_cv_dlopen_self_static+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593           if test "$cross_compiling" = yes; then :
19594   lt_cv_dlopen_self_static=cross
19595 else
19596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19597   lt_status=$lt_dlunknown
19598   cat > conftest.$ac_ext <<EOF
19599 #line 19599 "configure"
19600 #include "confdefs.h"
19601
19602 #if HAVE_DLFCN_H
19603 #include <dlfcn.h>
19604 #endif
19605
19606 #include <stdio.h>
19607
19608 #ifdef RTLD_GLOBAL
19609 #  define LT_DLGLOBAL           RTLD_GLOBAL
19610 #else
19611 #  ifdef DL_GLOBAL
19612 #    define LT_DLGLOBAL         DL_GLOBAL
19613 #  else
19614 #    define LT_DLGLOBAL         0
19615 #  endif
19616 #endif
19617
19618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19619    find out it does not work in some platform. */
19620 #ifndef LT_DLLAZY_OR_NOW
19621 #  ifdef RTLD_LAZY
19622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19623 #  else
19624 #    ifdef DL_LAZY
19625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19626 #    else
19627 #      ifdef RTLD_NOW
19628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19629 #      else
19630 #        ifdef DL_NOW
19631 #          define LT_DLLAZY_OR_NOW      DL_NOW
19632 #        else
19633 #          define LT_DLLAZY_OR_NOW      0
19634 #        endif
19635 #      endif
19636 #    endif
19637 #  endif
19638 #endif
19639
19640 #ifdef __cplusplus
19641 extern "C" void exit (int);
19642 #endif
19643
19644 void fnord() { int i=42;}
19645 int main ()
19646 {
19647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19648   int status = $lt_dlunknown;
19649
19650   if (self)
19651     {
19652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19654       /* dlclose (self); */
19655     }
19656
19657     exit (status);
19658 }
19659 EOF
19660   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661   (eval $ac_link) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19665     (./conftest; exit; ) 2>/dev/null
19666     lt_status=$?
19667     case x$lt_status in
19668       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19669       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19670       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19671     esac
19672   else :
19673     # compilation failed
19674     lt_cv_dlopen_self_static=no
19675   fi
19676 fi
19677 rm -fr conftest*
19678
19679
19680 fi
19681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19683     fi
19684
19685     CPPFLAGS="$save_CPPFLAGS"
19686     LDFLAGS="$save_LDFLAGS"
19687     LIBS="$save_LIBS"
19688     ;;
19689   esac
19690
19691   case $lt_cv_dlopen_self in
19692   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19693   *) enable_dlopen_self=unknown ;;
19694   esac
19695
19696   case $lt_cv_dlopen_self_static in
19697   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19698   *) enable_dlopen_self_static=unknown ;;
19699   esac
19700 fi
19701
19702
19703 # The else clause should only fire when bootstrapping the
19704 # libtool distribution, otherwise you forgot to ship ltmain.sh
19705 # with your package, and you will get complaints that there are
19706 # no rules to generate ltmain.sh.
19707 if test -f "$ltmain"; then
19708   # See if we are running on zsh, and set the options which allow our commands through
19709   # without removal of \ escapes.
19710   if test -n "${ZSH_VERSION+set}" ; then
19711     setopt NO_GLOB_SUBST
19712   fi
19713   # Now quote all the things that may contain metacharacters while being
19714   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19715   # variables and quote the copies for generation of the libtool script.
19716   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19717     SED SHELL STRIP \
19718     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19719     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19720     deplibs_check_method reload_flag reload_cmds need_locks \
19721     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19722     lt_cv_sys_global_symbol_to_c_name_address \
19723     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19724     old_postinstall_cmds old_postuninstall_cmds \
19725     compiler_GCJ \
19726     CC_GCJ \
19727     LD_GCJ \
19728     lt_prog_compiler_wl_GCJ \
19729     lt_prog_compiler_pic_GCJ \
19730     lt_prog_compiler_static_GCJ \
19731     lt_prog_compiler_no_builtin_flag_GCJ \
19732     export_dynamic_flag_spec_GCJ \
19733     thread_safe_flag_spec_GCJ \
19734     whole_archive_flag_spec_GCJ \
19735     enable_shared_with_static_runtimes_GCJ \
19736     old_archive_cmds_GCJ \
19737     old_archive_from_new_cmds_GCJ \
19738     predep_objects_GCJ \
19739     postdep_objects_GCJ \
19740     predeps_GCJ \
19741     postdeps_GCJ \
19742     compiler_lib_search_path_GCJ \
19743     archive_cmds_GCJ \
19744     archive_expsym_cmds_GCJ \
19745     postinstall_cmds_GCJ \
19746     postuninstall_cmds_GCJ \
19747     old_archive_from_expsyms_cmds_GCJ \
19748     allow_undefined_flag_GCJ \
19749     no_undefined_flag_GCJ \
19750     export_symbols_cmds_GCJ \
19751     hardcode_libdir_flag_spec_GCJ \
19752     hardcode_libdir_flag_spec_ld_GCJ \
19753     hardcode_libdir_separator_GCJ \
19754     hardcode_automatic_GCJ \
19755     module_cmds_GCJ \
19756     module_expsym_cmds_GCJ \
19757     lt_cv_prog_compiler_c_o_GCJ \
19758     exclude_expsyms_GCJ \
19759     include_expsyms_GCJ; do
19760
19761     case $var in
19762     old_archive_cmds_GCJ | \
19763     old_archive_from_new_cmds_GCJ | \
19764     archive_cmds_GCJ | \
19765     archive_expsym_cmds_GCJ | \
19766     module_cmds_GCJ | \
19767     module_expsym_cmds_GCJ | \
19768     old_archive_from_expsyms_cmds_GCJ | \
19769     export_symbols_cmds_GCJ | \
19770     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19771     postinstall_cmds | postuninstall_cmds | \
19772     old_postinstall_cmds | old_postuninstall_cmds | \
19773     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19774       # Double-quote double-evaled strings.
19775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19776       ;;
19777     *)
19778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19779       ;;
19780     esac
19781   done
19782
19783   case $lt_echo in
19784   *'\$0 --fallback-echo"')
19785     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19786     ;;
19787   esac
19788
19789 cfgfile="$ofile"
19790
19791   cat <<__EOF__ >> "$cfgfile"
19792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19793
19794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19795
19796 # Shell to use when invoking shell scripts.
19797 SHELL=$lt_SHELL
19798
19799 # Whether or not to build shared libraries.
19800 build_libtool_libs=$enable_shared
19801
19802 # Whether or not to build static libraries.
19803 build_old_libs=$enable_static
19804
19805 # Whether or not to add -lc for building shared libraries.
19806 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19807
19808 # Whether or not to disallow shared libs when runtime libs are static
19809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19810
19811 # Whether or not to optimize for fast installation.
19812 fast_install=$enable_fast_install
19813
19814 # The host system.
19815 host_alias=$host_alias
19816 host=$host
19817
19818 # An echo program that does not interpret backslashes.
19819 echo=$lt_echo
19820
19821 # The archiver.
19822 AR=$lt_AR
19823 AR_FLAGS=$lt_AR_FLAGS
19824
19825 # A C compiler.
19826 LTCC=$lt_LTCC
19827
19828 # A language-specific compiler.
19829 CC=$lt_compiler_GCJ
19830
19831 # Is the compiler the GNU C compiler?
19832 with_gcc=$GCC_GCJ
19833
19834 # An ERE matcher.
19835 EGREP=$lt_EGREP
19836
19837 # The linker used to build libraries.
19838 LD=$lt_LD_GCJ
19839
19840 # Whether we need hard or soft links.
19841 LN_S=$lt_LN_S
19842
19843 # A BSD-compatible nm program.
19844 NM=$lt_NM
19845
19846 # A symbol stripping program
19847 STRIP=$lt_STRIP
19848
19849 # Used to examine libraries when file_magic_cmd begins "file"
19850 MAGIC_CMD=$MAGIC_CMD
19851
19852 # Used on cygwin: DLL creation program.
19853 DLLTOOL="$DLLTOOL"
19854
19855 # Used on cygwin: object dumper.
19856 OBJDUMP="$OBJDUMP"
19857
19858 # Used on cygwin: assembler.
19859 AS="$AS"
19860
19861 # The name of the directory that contains temporary libtool files.
19862 objdir=$objdir
19863
19864 # How to create reloadable object files.
19865 reload_flag=$lt_reload_flag
19866 reload_cmds=$lt_reload_cmds
19867
19868 # How to pass a linker flag through the compiler.
19869 wl=$lt_lt_prog_compiler_wl_GCJ
19870
19871 # Object file suffix (normally "o").
19872 objext="$ac_objext"
19873
19874 # Old archive suffix (normally "a").
19875 libext="$libext"
19876
19877 # Shared library suffix (normally ".so").
19878 shrext_cmds='$shrext_cmds'
19879
19880 # Executable file suffix (normally "").
19881 exeext="$exeext"
19882
19883 # Additional compiler flags for building library objects.
19884 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19885 pic_mode=$pic_mode
19886
19887 # What is the maximum length of a command?
19888 max_cmd_len=$lt_cv_sys_max_cmd_len
19889
19890 # Does compiler simultaneously support -c and -o options?
19891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19892
19893 # Must we lock files when doing compilation ?
19894 need_locks=$lt_need_locks
19895
19896 # Do we need the lib prefix for modules?
19897 need_lib_prefix=$need_lib_prefix
19898
19899 # Do we need a version for libraries?
19900 need_version=$need_version
19901
19902 # Whether dlopen is supported.
19903 dlopen_support=$enable_dlopen
19904
19905 # Whether dlopen of programs is supported.
19906 dlopen_self=$enable_dlopen_self
19907
19908 # Whether dlopen of statically linked programs is supported.
19909 dlopen_self_static=$enable_dlopen_self_static
19910
19911 # Compiler flag to prevent dynamic linking.
19912 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19913
19914 # Compiler flag to turn off builtin functions.
19915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19916
19917 # Compiler flag to allow reflexive dlopens.
19918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19919
19920 # Compiler flag to generate shared objects directly from archives.
19921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19922
19923 # Compiler flag to generate thread-safe objects.
19924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19925
19926 # Library versioning type.
19927 version_type=$version_type
19928
19929 # Format of library name prefix.
19930 libname_spec=$lt_libname_spec
19931
19932 # List of archive names.  First name is the real one, the rest are links.
19933 # The last name is the one that the linker finds with -lNAME.
19934 library_names_spec=$lt_library_names_spec
19935
19936 # The coded name of the library, if different from the real name.
19937 soname_spec=$lt_soname_spec
19938
19939 # Commands used to build and install an old-style archive.
19940 RANLIB=$lt_RANLIB
19941 old_archive_cmds=$lt_old_archive_cmds_GCJ
19942 old_postinstall_cmds=$lt_old_postinstall_cmds
19943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19944
19945 # Create an old-style archive from a shared archive.
19946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19947
19948 # Create a temporary old-style archive to link instead of a shared archive.
19949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19950
19951 # Commands used to build and install a shared archive.
19952 archive_cmds=$lt_archive_cmds_GCJ
19953 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19954 postinstall_cmds=$lt_postinstall_cmds
19955 postuninstall_cmds=$lt_postuninstall_cmds
19956
19957 # Commands used to build a loadable module (assumed same as above if empty)
19958 module_cmds=$lt_module_cmds_GCJ
19959 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19960
19961 # Commands to strip libraries.
19962 old_striplib=$lt_old_striplib
19963 striplib=$lt_striplib
19964
19965 # Dependencies to place before the objects being linked to create a
19966 # shared library.
19967 predep_objects=$lt_predep_objects_GCJ
19968
19969 # Dependencies to place after the objects being linked to create a
19970 # shared library.
19971 postdep_objects=$lt_postdep_objects_GCJ
19972
19973 # Dependencies to place before the objects being linked to create a
19974 # shared library.
19975 predeps=$lt_predeps_GCJ
19976
19977 # Dependencies to place after the objects being linked to create a
19978 # shared library.
19979 postdeps=$lt_postdeps_GCJ
19980
19981 # The library search path used internally by the compiler when linking
19982 # a shared library.
19983 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19984
19985 # Method to check whether dependent libraries are shared objects.
19986 deplibs_check_method=$lt_deplibs_check_method
19987
19988 # Command to use when deplibs_check_method == file_magic.
19989 file_magic_cmd=$lt_file_magic_cmd
19990
19991 # Flag that allows shared libraries with undefined symbols to be built.
19992 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19993
19994 # Flag that forces no undefined symbols.
19995 no_undefined_flag=$lt_no_undefined_flag_GCJ
19996
19997 # Commands used to finish a libtool library installation in a directory.
19998 finish_cmds=$lt_finish_cmds
19999
20000 # Same as above, but a single script fragment to be evaled but not shown.
20001 finish_eval=$lt_finish_eval
20002
20003 # Take the output of nm and produce a listing of raw symbols and C names.
20004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20005
20006 # Transform the output of nm in a proper C declaration
20007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20008
20009 # Transform the output of nm in a C name address pair
20010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20011
20012 # This is the shared library runtime path variable.
20013 runpath_var=$runpath_var
20014
20015 # This is the shared library path variable.
20016 shlibpath_var=$shlibpath_var
20017
20018 # Is shlibpath searched before the hard-coded library search path?
20019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20020
20021 # How to hardcode a shared library path into an executable.
20022 hardcode_action=$hardcode_action_GCJ
20023
20024 # Whether we should hardcode library paths into libraries.
20025 hardcode_into_libs=$hardcode_into_libs
20026
20027 # Flag to hardcode \$libdir into a binary during linking.
20028 # This must work even if \$libdir does not exist.
20029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20030
20031 # If ld is used when linking, flag to hardcode \$libdir into
20032 # a binary during linking. This must work even if \$libdir does
20033 # not exist.
20034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20035
20036 # Whether we need a single -rpath flag with a separated argument.
20037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20038
20039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20040 # resulting binary.
20041 hardcode_direct=$hardcode_direct_GCJ
20042
20043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20044 # resulting binary.
20045 hardcode_minus_L=$hardcode_minus_L_GCJ
20046
20047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20048 # the resulting binary.
20049 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20050
20051 # Set to yes if building a shared library automatically hardcodes DIR into the library
20052 # and all subsequent libraries and executables linked against it.
20053 hardcode_automatic=$hardcode_automatic_GCJ
20054
20055 # Variables whose values should be saved in libtool wrapper scripts and
20056 # restored at relink time.
20057 variables_saved_for_relink="$variables_saved_for_relink"
20058
20059 # Whether libtool must link a program against all its dependency libraries.
20060 link_all_deplibs=$link_all_deplibs_GCJ
20061
20062 # Compile-time system search path for libraries
20063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20064
20065 # Run-time system search path for libraries
20066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20067
20068 # Fix the shell variable \$srcfile for the compiler.
20069 fix_srcfile_path="$fix_srcfile_path_GCJ"
20070
20071 # Set to yes if exported symbols are required.
20072 always_export_symbols=$always_export_symbols_GCJ
20073
20074 # The commands to list exported symbols.
20075 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20076
20077 # The commands to extract the exported symbol list from a shared archive.
20078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20079
20080 # Symbols that should not be listed in the preloaded symbols.
20081 exclude_expsyms=$lt_exclude_expsyms_GCJ
20082
20083 # Symbols that must always be exported.
20084 include_expsyms=$lt_include_expsyms_GCJ
20085
20086 # ### END LIBTOOL TAG CONFIG: $tagname
20087
20088 __EOF__
20089
20090
20091 else
20092   # If there is no Makefile yet, we rely on a make rule to execute
20093   # `config.status --recheck' to rerun these tests and create the
20094   # libtool script then.
20095   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20096   if test -f "$ltmain_in"; then
20097     test -f Makefile && make "$ltmain"
20098   fi
20099 fi
20100
20101
20102 ac_ext=c
20103 ac_cpp='$CPP $CPPFLAGS'
20104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107
20108 CC="$lt_save_CC"
20109
20110         else
20111           tagname=""
20112         fi
20113         ;;
20114
20115       RC)
20116         ac_ext=c
20117 ac_cpp='$CPP $CPPFLAGS'
20118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121
20122
20123 # Source file extension for RC test sources.
20124 ac_ext=rc
20125
20126 # Object file extension for compiled RC test sources.
20127 objext=o
20128 objext_RC=$objext
20129
20130 # Code to be used in simple compile tests
20131 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20132
20133 # Code to be used in simple link tests
20134 lt_simple_link_test_code="$lt_simple_compile_test_code"
20135
20136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20137
20138 # If no C compiler was specified, use CC.
20139 LTCC=${LTCC-"$CC"}
20140
20141 # Allow CC to be a program name with arguments.
20142 compiler=$CC
20143
20144
20145 # Allow CC to be a program name with arguments.
20146 lt_save_CC="$CC"
20147 CC=${RC-"windres"}
20148 compiler=$CC
20149 compiler_RC=$CC
20150 lt_cv_prog_compiler_c_o_RC=yes
20151
20152 # The else clause should only fire when bootstrapping the
20153 # libtool distribution, otherwise you forgot to ship ltmain.sh
20154 # with your package, and you will get complaints that there are
20155 # no rules to generate ltmain.sh.
20156 if test -f "$ltmain"; then
20157   # See if we are running on zsh, and set the options which allow our commands through
20158   # without removal of \ escapes.
20159   if test -n "${ZSH_VERSION+set}" ; then
20160     setopt NO_GLOB_SUBST
20161   fi
20162   # Now quote all the things that may contain metacharacters while being
20163   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20164   # variables and quote the copies for generation of the libtool script.
20165   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20166     SED SHELL STRIP \
20167     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20168     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20169     deplibs_check_method reload_flag reload_cmds need_locks \
20170     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20171     lt_cv_sys_global_symbol_to_c_name_address \
20172     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20173     old_postinstall_cmds old_postuninstall_cmds \
20174     compiler_RC \
20175     CC_RC \
20176     LD_RC \
20177     lt_prog_compiler_wl_RC \
20178     lt_prog_compiler_pic_RC \
20179     lt_prog_compiler_static_RC \
20180     lt_prog_compiler_no_builtin_flag_RC \
20181     export_dynamic_flag_spec_RC \
20182     thread_safe_flag_spec_RC \
20183     whole_archive_flag_spec_RC \
20184     enable_shared_with_static_runtimes_RC \
20185     old_archive_cmds_RC \
20186     old_archive_from_new_cmds_RC \
20187     predep_objects_RC \
20188     postdep_objects_RC \
20189     predeps_RC \
20190     postdeps_RC \
20191     compiler_lib_search_path_RC \
20192     archive_cmds_RC \
20193     archive_expsym_cmds_RC \
20194     postinstall_cmds_RC \
20195     postuninstall_cmds_RC \
20196     old_archive_from_expsyms_cmds_RC \
20197     allow_undefined_flag_RC \
20198     no_undefined_flag_RC \
20199     export_symbols_cmds_RC \
20200     hardcode_libdir_flag_spec_RC \
20201     hardcode_libdir_flag_spec_ld_RC \
20202     hardcode_libdir_separator_RC \
20203     hardcode_automatic_RC \
20204     module_cmds_RC \
20205     module_expsym_cmds_RC \
20206     lt_cv_prog_compiler_c_o_RC \
20207     exclude_expsyms_RC \
20208     include_expsyms_RC; do
20209
20210     case $var in
20211     old_archive_cmds_RC | \
20212     old_archive_from_new_cmds_RC | \
20213     archive_cmds_RC | \
20214     archive_expsym_cmds_RC | \
20215     module_cmds_RC | \
20216     module_expsym_cmds_RC | \
20217     old_archive_from_expsyms_cmds_RC | \
20218     export_symbols_cmds_RC | \
20219     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20220     postinstall_cmds | postuninstall_cmds | \
20221     old_postinstall_cmds | old_postuninstall_cmds | \
20222     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20223       # Double-quote double-evaled strings.
20224       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20225       ;;
20226     *)
20227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20228       ;;
20229     esac
20230   done
20231
20232   case $lt_echo in
20233   *'\$0 --fallback-echo"')
20234     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20235     ;;
20236   esac
20237
20238 cfgfile="$ofile"
20239
20240   cat <<__EOF__ >> "$cfgfile"
20241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20242
20243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20244
20245 # Shell to use when invoking shell scripts.
20246 SHELL=$lt_SHELL
20247
20248 # Whether or not to build shared libraries.
20249 build_libtool_libs=$enable_shared
20250
20251 # Whether or not to build static libraries.
20252 build_old_libs=$enable_static
20253
20254 # Whether or not to add -lc for building shared libraries.
20255 build_libtool_need_lc=$archive_cmds_need_lc_RC
20256
20257 # Whether or not to disallow shared libs when runtime libs are static
20258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20259
20260 # Whether or not to optimize for fast installation.
20261 fast_install=$enable_fast_install
20262
20263 # The host system.
20264 host_alias=$host_alias
20265 host=$host
20266
20267 # An echo program that does not interpret backslashes.
20268 echo=$lt_echo
20269
20270 # The archiver.
20271 AR=$lt_AR
20272 AR_FLAGS=$lt_AR_FLAGS
20273
20274 # A C compiler.
20275 LTCC=$lt_LTCC
20276
20277 # A language-specific compiler.
20278 CC=$lt_compiler_RC
20279
20280 # Is the compiler the GNU C compiler?
20281 with_gcc=$GCC_RC
20282
20283 # An ERE matcher.
20284 EGREP=$lt_EGREP
20285
20286 # The linker used to build libraries.
20287 LD=$lt_LD_RC
20288
20289 # Whether we need hard or soft links.
20290 LN_S=$lt_LN_S
20291
20292 # A BSD-compatible nm program.
20293 NM=$lt_NM
20294
20295 # A symbol stripping program
20296 STRIP=$lt_STRIP
20297
20298 # Used to examine libraries when file_magic_cmd begins "file"
20299 MAGIC_CMD=$MAGIC_CMD
20300
20301 # Used on cygwin: DLL creation program.
20302 DLLTOOL="$DLLTOOL"
20303
20304 # Used on cygwin: object dumper.
20305 OBJDUMP="$OBJDUMP"
20306
20307 # Used on cygwin: assembler.
20308 AS="$AS"
20309
20310 # The name of the directory that contains temporary libtool files.
20311 objdir=$objdir
20312
20313 # How to create reloadable object files.
20314 reload_flag=$lt_reload_flag
20315 reload_cmds=$lt_reload_cmds
20316
20317 # How to pass a linker flag through the compiler.
20318 wl=$lt_lt_prog_compiler_wl_RC
20319
20320 # Object file suffix (normally "o").
20321 objext="$ac_objext"
20322
20323 # Old archive suffix (normally "a").
20324 libext="$libext"
20325
20326 # Shared library suffix (normally ".so").
20327 shrext_cmds='$shrext_cmds'
20328
20329 # Executable file suffix (normally "").
20330 exeext="$exeext"
20331
20332 # Additional compiler flags for building library objects.
20333 pic_flag=$lt_lt_prog_compiler_pic_RC
20334 pic_mode=$pic_mode
20335
20336 # What is the maximum length of a command?
20337 max_cmd_len=$lt_cv_sys_max_cmd_len
20338
20339 # Does compiler simultaneously support -c and -o options?
20340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20341
20342 # Must we lock files when doing compilation ?
20343 need_locks=$lt_need_locks
20344
20345 # Do we need the lib prefix for modules?
20346 need_lib_prefix=$need_lib_prefix
20347
20348 # Do we need a version for libraries?
20349 need_version=$need_version
20350
20351 # Whether dlopen is supported.
20352 dlopen_support=$enable_dlopen
20353
20354 # Whether dlopen of programs is supported.
20355 dlopen_self=$enable_dlopen_self
20356
20357 # Whether dlopen of statically linked programs is supported.
20358 dlopen_self_static=$enable_dlopen_self_static
20359
20360 # Compiler flag to prevent dynamic linking.
20361 link_static_flag=$lt_lt_prog_compiler_static_RC
20362
20363 # Compiler flag to turn off builtin functions.
20364 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20365
20366 # Compiler flag to allow reflexive dlopens.
20367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20368
20369 # Compiler flag to generate shared objects directly from archives.
20370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20371
20372 # Compiler flag to generate thread-safe objects.
20373 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20374
20375 # Library versioning type.
20376 version_type=$version_type
20377
20378 # Format of library name prefix.
20379 libname_spec=$lt_libname_spec
20380
20381 # List of archive names.  First name is the real one, the rest are links.
20382 # The last name is the one that the linker finds with -lNAME.
20383 library_names_spec=$lt_library_names_spec
20384
20385 # The coded name of the library, if different from the real name.
20386 soname_spec=$lt_soname_spec
20387
20388 # Commands used to build and install an old-style archive.
20389 RANLIB=$lt_RANLIB
20390 old_archive_cmds=$lt_old_archive_cmds_RC
20391 old_postinstall_cmds=$lt_old_postinstall_cmds
20392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20393
20394 # Create an old-style archive from a shared archive.
20395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20396
20397 # Create a temporary old-style archive to link instead of a shared archive.
20398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20399
20400 # Commands used to build and install a shared archive.
20401 archive_cmds=$lt_archive_cmds_RC
20402 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20403 postinstall_cmds=$lt_postinstall_cmds
20404 postuninstall_cmds=$lt_postuninstall_cmds
20405
20406 # Commands used to build a loadable module (assumed same as above if empty)
20407 module_cmds=$lt_module_cmds_RC
20408 module_expsym_cmds=$lt_module_expsym_cmds_RC
20409
20410 # Commands to strip libraries.
20411 old_striplib=$lt_old_striplib
20412 striplib=$lt_striplib
20413
20414 # Dependencies to place before the objects being linked to create a
20415 # shared library.
20416 predep_objects=$lt_predep_objects_RC
20417
20418 # Dependencies to place after the objects being linked to create a
20419 # shared library.
20420 postdep_objects=$lt_postdep_objects_RC
20421
20422 # Dependencies to place before the objects being linked to create a
20423 # shared library.
20424 predeps=$lt_predeps_RC
20425
20426 # Dependencies to place after the objects being linked to create a
20427 # shared library.
20428 postdeps=$lt_postdeps_RC
20429
20430 # The library search path used internally by the compiler when linking
20431 # a shared library.
20432 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20433
20434 # Method to check whether dependent libraries are shared objects.
20435 deplibs_check_method=$lt_deplibs_check_method
20436
20437 # Command to use when deplibs_check_method == file_magic.
20438 file_magic_cmd=$lt_file_magic_cmd
20439
20440 # Flag that allows shared libraries with undefined symbols to be built.
20441 allow_undefined_flag=$lt_allow_undefined_flag_RC
20442
20443 # Flag that forces no undefined symbols.
20444 no_undefined_flag=$lt_no_undefined_flag_RC
20445
20446 # Commands used to finish a libtool library installation in a directory.
20447 finish_cmds=$lt_finish_cmds
20448
20449 # Same as above, but a single script fragment to be evaled but not shown.
20450 finish_eval=$lt_finish_eval
20451
20452 # Take the output of nm and produce a listing of raw symbols and C names.
20453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20454
20455 # Transform the output of nm in a proper C declaration
20456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20457
20458 # Transform the output of nm in a C name address pair
20459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20460
20461 # This is the shared library runtime path variable.
20462 runpath_var=$runpath_var
20463
20464 # This is the shared library path variable.
20465 shlibpath_var=$shlibpath_var
20466
20467 # Is shlibpath searched before the hard-coded library search path?
20468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20469
20470 # How to hardcode a shared library path into an executable.
20471 hardcode_action=$hardcode_action_RC
20472
20473 # Whether we should hardcode library paths into libraries.
20474 hardcode_into_libs=$hardcode_into_libs
20475
20476 # Flag to hardcode \$libdir into a binary during linking.
20477 # This must work even if \$libdir does not exist.
20478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20479
20480 # If ld is used when linking, flag to hardcode \$libdir into
20481 # a binary during linking. This must work even if \$libdir does
20482 # not exist.
20483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20484
20485 # Whether we need a single -rpath flag with a separated argument.
20486 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20487
20488 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20489 # resulting binary.
20490 hardcode_direct=$hardcode_direct_RC
20491
20492 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20493 # resulting binary.
20494 hardcode_minus_L=$hardcode_minus_L_RC
20495
20496 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20497 # the resulting binary.
20498 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20499
20500 # Set to yes if building a shared library automatically hardcodes DIR into the library
20501 # and all subsequent libraries and executables linked against it.
20502 hardcode_automatic=$hardcode_automatic_RC
20503
20504 # Variables whose values should be saved in libtool wrapper scripts and
20505 # restored at relink time.
20506 variables_saved_for_relink="$variables_saved_for_relink"
20507
20508 # Whether libtool must link a program against all its dependency libraries.
20509 link_all_deplibs=$link_all_deplibs_RC
20510
20511 # Compile-time system search path for libraries
20512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20513
20514 # Run-time system search path for libraries
20515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20516
20517 # Fix the shell variable \$srcfile for the compiler.
20518 fix_srcfile_path="$fix_srcfile_path_RC"
20519
20520 # Set to yes if exported symbols are required.
20521 always_export_symbols=$always_export_symbols_RC
20522
20523 # The commands to list exported symbols.
20524 export_symbols_cmds=$lt_export_symbols_cmds_RC
20525
20526 # The commands to extract the exported symbol list from a shared archive.
20527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20528
20529 # Symbols that should not be listed in the preloaded symbols.
20530 exclude_expsyms=$lt_exclude_expsyms_RC
20531
20532 # Symbols that must always be exported.
20533 include_expsyms=$lt_include_expsyms_RC
20534
20535 # ### END LIBTOOL TAG CONFIG: $tagname
20536
20537 __EOF__
20538
20539
20540 else
20541   # If there is no Makefile yet, we rely on a make rule to execute
20542   # `config.status --recheck' to rerun these tests and create the
20543   # libtool script then.
20544   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20545   if test -f "$ltmain_in"; then
20546     test -f Makefile && make "$ltmain"
20547   fi
20548 fi
20549
20550
20551 ac_ext=c
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557 CC="$lt_save_CC"
20558
20559         ;;
20560
20561       *)
20562         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20563 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20564    { (exit 1); exit 1; }; }
20565         ;;
20566       esac
20567
20568       # Append the new tag name to the list of available tags.
20569       if test -n "$tagname" ; then
20570       available_tags="$available_tags $tagname"
20571     fi
20572     fi
20573   done
20574   IFS="$lt_save_ifs"
20575
20576   # Now substitute the updated list of available tags.
20577   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20578     mv "${ofile}T" "$ofile"
20579     chmod +x "$ofile"
20580   else
20581     rm -f "${ofile}T"
20582     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20583 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20584    { (exit 1); exit 1; }; }
20585   fi
20586 fi
20587
20588
20589
20590 # This can be used to rebuild libtool when needed
20591 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20592
20593 # Always use our own libtool.
20594 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20595
20596 # Prevent multiple expansion
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618 # Extract the first word of "dot", so it can be a program name with args.
20619 set dummy dot; ac_word=$2
20620 echo "$as_me:$LINENO: checking for $ac_word" >&5
20621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622 if test "${ac_cv_path_DOT+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   case $DOT in
20626   [\\/]* | ?:[\\/]*)
20627   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20628   ;;
20629   *)
20630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631 for as_dir in $PATH
20632 do
20633   IFS=$as_save_IFS
20634   test -z "$as_dir" && as_dir=.
20635   for ac_exec_ext in '' $ac_executable_extensions; do
20636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20639     break 2
20640   fi
20641 done
20642 done
20643
20644   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20645   ;;
20646 esac
20647 fi
20648 DOT=$ac_cv_path_DOT
20649
20650 if test -n "$DOT"; then
20651   echo "$as_me:$LINENO: result: $DOT" >&5
20652 echo "${ECHO_T}$DOT" >&6
20653 else
20654   echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20656 fi
20657
20658 # Extract the first word of "etags", so it can be a program name with args.
20659 set dummy etags; ac_word=$2
20660 echo "$as_me:$LINENO: checking for $ac_word" >&5
20661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662 if test "${ac_cv_path_ETAGS+set}" = set; then
20663   echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665   case $ETAGS in
20666   [\\/]* | ?:[\\/]*)
20667   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20668   ;;
20669   *)
20670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671 for as_dir in $PATH
20672 do
20673   IFS=$as_save_IFS
20674   test -z "$as_dir" && as_dir=.
20675   for ac_exec_ext in '' $ac_executable_extensions; do
20676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20679     break 2
20680   fi
20681 done
20682 done
20683
20684   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20685   ;;
20686 esac
20687 fi
20688 ETAGS=$ac_cv_path_ETAGS
20689
20690 if test -n "$ETAGS"; then
20691   echo "$as_me:$LINENO: result: $ETAGS" >&5
20692 echo "${ECHO_T}$ETAGS" >&6
20693 else
20694   echo "$as_me:$LINENO: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20696 fi
20697
20698 # Extract the first word of "python", so it can be a program name with args.
20699 set dummy python; ac_word=$2
20700 echo "$as_me:$LINENO: checking for $ac_word" >&5
20701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702 if test "${ac_cv_path_PYTHON+set}" = set; then
20703   echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705   case $PYTHON in
20706   [\\/]* | ?:[\\/]*)
20707   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20708   ;;
20709   *)
20710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711 for as_dir in $PATH
20712 do
20713   IFS=$as_save_IFS
20714   test -z "$as_dir" && as_dir=.
20715   for ac_exec_ext in '' $ac_executable_extensions; do
20716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20719     break 2
20720   fi
20721 done
20722 done
20723
20724   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20725   ;;
20726 esac
20727 fi
20728 PYTHON=$ac_cv_path_PYTHON
20729
20730 if test -n "$PYTHON"; then
20731   echo "$as_me:$LINENO: result: $PYTHON" >&5
20732 echo "${ECHO_T}$PYTHON" >&6
20733 else
20734   echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20736 fi
20737
20738 # Extract the first word of "qmtest", so it can be a program name with args.
20739 set dummy qmtest; ac_word=$2
20740 echo "$as_me:$LINENO: checking for $ac_word" >&5
20741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742 if test "${ac_cv_path_QMTEST+set}" = set; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   case $QMTEST in
20746   [\\/]* | ?:[\\/]*)
20747   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20748   ;;
20749   *)
20750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751 for as_dir in $PATH
20752 do
20753   IFS=$as_save_IFS
20754   test -z "$as_dir" && as_dir=.
20755   for ac_exec_ext in '' $ac_executable_extensions; do
20756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20759     break 2
20760   fi
20761 done
20762 done
20763
20764   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20765   ;;
20766 esac
20767 fi
20768 QMTEST=$ac_cv_path_QMTEST
20769
20770 if test -n "$QMTEST"; then
20771   echo "$as_me:$LINENO: result: $QMTEST" >&5
20772 echo "${ECHO_T}$QMTEST" >&6
20773 else
20774   echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6
20776 fi
20777
20778
20779
20780 if test "$GCC" != "yes"
20781 then
20782   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20783 echo "$as_me: error: gcc required but not found" >&2;}
20784    { (exit 1); exit 1; }; }
20785 fi
20786
20787 if test "$GXX" != "yes"
20788 then
20789   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20790 echo "$as_me: error: g++ required but not found" >&2;}
20791    { (exit 1); exit 1; }; }
20792 fi
20793
20794 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20795 if test "$gccmajor" -lt "3"
20796 then
20797   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20798 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20799    { (exit 1); exit 1; }; }
20800 fi
20801
20802  echo "$as_me:$LINENO: checking for GNU make" >&5
20803 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
20804 if test "${_cv_gnu_make_command+set}" = set; then
20805   echo $ECHO_N "(cached) $ECHO_C" >&6
20806 else
20807   _cv_gnu_make_command='' ;
20808                 for a in "$MAKE" make gmake gnumake ; do
20809                         if test -z "$a" ; then continue ; fi ;
20810                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
20811                                 _cv_gnu_make_command=$a ;
20812                                 break;
20813                         fi
20814                 done ;
20815
20816 fi
20817 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
20818 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
20819         if test  "x$_cv_gnu_make_command" != "x"  ; then
20820                 ifGNUmake='' ;
20821         else
20822                 ifGNUmake='#' ;
20823                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
20824 echo "${ECHO_T}\"Not found\"" >&6;
20825         fi
20826
20827
20828 if test -z "$_cv_gnu_make_command"
20829 then
20830   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20831 echo "$as_me: error: GNU Make required but not found" >&2;}
20832    { (exit 1); exit 1; }; }
20833 fi
20834
20835 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
20836 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
20837 LLVM_GCC_CHECK=no
20838 if test -d "$LLVMGCCDIR"
20839 then
20840   if test -x "$LLVMGCCDIR/bin/gcc"
20841   then
20842     LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
20843   fi
20844 fi
20845 llvmgccwarn=no
20846 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
20847 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
20848 if test "$LLVM_GCC_CHECK" = "no"
20849 then
20850     llvmgccwarn=yes
20851 fi
20852
20853 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20854 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
20855 LLVM_GCC_SANE=no
20856 if test -x "$LLVM_GCC_CHECK"
20857 then
20858   cp /dev/null conftest.c
20859   "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
20860   if test $? -eq 0
20861   then
20862     LLVM_GCC_SANE=yes
20863   fi
20864   rm conftest.c
20865   llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
20866   LLVMCC1=$llvmcc1path
20867
20868   llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
20869   LLVMCC1PLUS=$llvmcc1pluspath
20870
20871 fi
20872 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
20873 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
20874 if test "$LLVM_GCC_SANE" = "no"
20875 then
20876   llvmgccwarn=yes
20877 fi
20878
20879 etags_version=`$ETAGS --version 2>&1`
20880 case "$etags_version" in
20881   *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20882   *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20883   *) ETAGSFLAGS="" ;;
20884 esac
20885 ETAGSFLAGS=$ETAGSFLAGS
20886
20887
20888 if test "$PYTHON" = "false"
20889 then
20890   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20891 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20892 fi
20893 if test "$QMTEST" = "false"
20894 then
20895   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20896 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20897 fi
20898
20899 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
20900 pymajor=`echo $pyversion | cut -d. -f1`
20901 pyminor=`echo $pyversion | cut -d. -f2`
20902
20903 if test "$pymajor" -ge "2"
20904 then
20905   if test "$pymajor" -eq "2"
20906   then
20907     if test "$pyminor" -lt "2"
20908     then
20909       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20910 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20911     fi
20912   fi
20913 else
20914   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20915 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20916 fi
20917
20918
20919
20920 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20921 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20922 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20923   echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925   ac_check_lib_save_LIBS=$LIBS
20926 LIBS="-lelf  $LIBS"
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933
20934 /* Override any gcc2 internal prototype to avoid an error.  */
20935 #ifdef __cplusplus
20936 extern "C"
20937 #endif
20938 /* We use char because int might match the return type of a gcc2
20939    builtin and then its argument prototype would still apply.  */
20940 char elf_begin ();
20941 int
20942 main ()
20943 {
20944 elf_begin ();
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951   (eval $ac_link) 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_c_werror_flag"
20959                          || test ! -s conftest.err'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; } &&
20965          { ac_try='test -s conftest$ac_exeext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_cv_lib_elf_elf_begin=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_cv_lib_elf_elf_begin=no
20977 fi
20978 rm -f conftest.err conftest.$ac_objext \
20979       conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20981 fi
20982 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
20983 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
20984 if test $ac_cv_lib_elf_elf_begin = yes; then
20985   cat >>confdefs.h <<_ACEOF
20986 #define HAVE_LIBELF 1
20987 _ACEOF
20988
20989   LIBS="-lelf $LIBS"
20990
20991 fi
20992
20993
20994 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
20995 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
20996 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lbz2  $LIBS"
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008 /* Override any gcc2 internal prototype to avoid an error.  */
21009 #ifdef __cplusplus
21010 extern "C"
21011 #endif
21012 /* We use char because int might match the return type of a gcc2
21013    builtin and then its argument prototype would still apply.  */
21014 char BZ2_bzCompressInit ();
21015 int
21016 main ()
21017 {
21018 BZ2_bzCompressInit ();
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025   (eval $ac_link) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_c_werror_flag"
21033                          || test ! -s conftest.err'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053       conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21055 fi
21056 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21057 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21058 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21059   bzip2_found=1
21060 else
21061   bzip2_found=0
21062 fi
21063
21064 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21065 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21066 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lz  $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077
21078 /* Override any gcc2 internal prototype to avoid an error.  */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 /* We use char because int might match the return type of a gcc2
21083    builtin and then its argument prototype would still apply.  */
21084 char gzopen ();
21085 int
21086 main ()
21087 {
21088 gzopen ();
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095   (eval $ac_link) 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } &&
21102          { ac_try='test -z "$ac_c_werror_flag"
21103                          || test ! -s conftest.err'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; } &&
21109          { ac_try='test -s conftest$ac_exeext'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; }; then
21115   ac_cv_lib_z_gzopen=yes
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 ac_cv_lib_z_gzopen=no
21121 fi
21122 rm -f conftest.err conftest.$ac_objext \
21123       conftest$ac_exeext conftest.$ac_ext
21124 LIBS=$ac_check_lib_save_LIBS
21125 fi
21126 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21127 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21128 if test $ac_cv_lib_z_gzopen = yes; then
21129   zlib_found=1
21130 else
21131   zlib_found=0
21132 fi
21133
21134
21135 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21136 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21137 if test "${ac_cv_search_dlopen+set}" = set; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140   ac_func_search_save_LIBS=$LIBS
21141 ac_cv_search_dlopen=no
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148
21149 /* Override any gcc2 internal prototype to avoid an error.  */
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 /* We use char because int might match the return type of a gcc2
21154    builtin and then its argument prototype would still apply.  */
21155 char dlopen ();
21156 int
21157 main ()
21158 {
21159 dlopen ();
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext conftest$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166   (eval $ac_link) 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } &&
21173          { ac_try='test -z "$ac_c_werror_flag"
21174                          || test ! -s conftest.err'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; } &&
21180          { ac_try='test -s conftest$ac_exeext'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; }; then
21186   ac_cv_search_dlopen="none required"
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 fi
21192 rm -f conftest.err conftest.$ac_objext \
21193       conftest$ac_exeext conftest.$ac_ext
21194 if test "$ac_cv_search_dlopen" = no; then
21195   for ac_lib in dl; do
21196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203
21204 /* Override any gcc2 internal prototype to avoid an error.  */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 /* We use char because int might match the return type of a gcc2
21209    builtin and then its argument prototype would still apply.  */
21210 char dlopen ();
21211 int
21212 main ()
21213 {
21214 dlopen ();
21215   ;
21216   return 0;
21217 }
21218 _ACEOF
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221   (eval $ac_link) 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -z "$ac_c_werror_flag"
21229                          || test ! -s conftest.err'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; } &&
21235          { ac_try='test -s conftest$ac_exeext'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   ac_cv_search_dlopen="-l$ac_lib"
21242 break
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247 fi
21248 rm -f conftest.err conftest.$ac_objext \
21249       conftest$ac_exeext conftest.$ac_ext
21250   done
21251 fi
21252 LIBS=$ac_func_search_save_LIBS
21253 fi
21254 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21255 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21256 if test "$ac_cv_search_dlopen" != no; then
21257   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21258
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_DLOPEN 1
21261 _ACEOF
21262
21263 else
21264   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21265 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21266 fi
21267
21268
21269 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21270 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21271 if test "${ac_cv_search_mallinfo+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   ac_func_search_save_LIBS=$LIBS
21275 ac_cv_search_mallinfo=no
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283 /* Override any gcc2 internal prototype to avoid an error.  */
21284 #ifdef __cplusplus
21285 extern "C"
21286 #endif
21287 /* We use char because int might match the return type of a gcc2
21288    builtin and then its argument prototype would still apply.  */
21289 char mallinfo ();
21290 int
21291 main ()
21292 {
21293 mallinfo ();
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300   (eval $ac_link) 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -z "$ac_c_werror_flag"
21308                          || test ! -s conftest.err'
21309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310   (eval $ac_try) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); }; } &&
21314          { ac_try='test -s conftest$ac_exeext'
21315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316   (eval $ac_try) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; }; then
21320   ac_cv_search_mallinfo="none required"
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 fi
21326 rm -f conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 if test "$ac_cv_search_mallinfo" = no; then
21329   for ac_lib in malloc; do
21330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21331     cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337
21338 /* Override any gcc2 internal prototype to avoid an error.  */
21339 #ifdef __cplusplus
21340 extern "C"
21341 #endif
21342 /* We use char because int might match the return type of a gcc2
21343    builtin and then its argument prototype would still apply.  */
21344 char mallinfo ();
21345 int
21346 main ()
21347 {
21348 mallinfo ();
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext conftest$ac_exeext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21355   (eval $ac_link) 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -z "$ac_c_werror_flag"
21363                          || test ! -s conftest.err'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; } &&
21369          { ac_try='test -s conftest$ac_exeext'
21370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371   (eval $ac_try) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ac_cv_search_mallinfo="-l$ac_lib"
21376 break
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 fi
21382 rm -f conftest.err conftest.$ac_objext \
21383       conftest$ac_exeext conftest.$ac_ext
21384   done
21385 fi
21386 LIBS=$ac_func_search_save_LIBS
21387 fi
21388 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21389 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21390 if test "$ac_cv_search_mallinfo" != no; then
21391   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_MALLINFO 1
21395 _ACEOF
21396
21397 fi
21398
21399
21400 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21401 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21402 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21403   echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
21405   ac_func_search_save_LIBS=$LIBS
21406 ac_cv_search_pthread_mutex_lock=no
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413
21414 /* Override any gcc2 internal prototype to avoid an error.  */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 /* We use char because int might match the return type of a gcc2
21419    builtin and then its argument prototype would still apply.  */
21420 char pthread_mutex_lock ();
21421 int
21422 main ()
21423 {
21424 pthread_mutex_lock ();
21425   ;
21426   return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431   (eval $ac_link) 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } &&
21438          { ac_try='test -z "$ac_c_werror_flag"
21439                          || test ! -s conftest.err'
21440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441   (eval $ac_try) 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); }; } &&
21445          { ac_try='test -s conftest$ac_exeext'
21446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447   (eval $ac_try) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   ac_cv_search_pthread_mutex_lock="none required"
21452 else
21453   echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456 fi
21457 rm -f conftest.err conftest.$ac_objext \
21458       conftest$ac_exeext conftest.$ac_ext
21459 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21460   for ac_lib in pthread; do
21461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21462     cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468
21469 /* Override any gcc2 internal prototype to avoid an error.  */
21470 #ifdef __cplusplus
21471 extern "C"
21472 #endif
21473 /* We use char because int might match the return type of a gcc2
21474    builtin and then its argument prototype would still apply.  */
21475 char pthread_mutex_lock ();
21476 int
21477 main ()
21478 {
21479 pthread_mutex_lock ();
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486   (eval $ac_link) 2>conftest.er1
21487   ac_status=$?
21488   grep -v '^ *+' conftest.er1 >conftest.err
21489   rm -f conftest.er1
21490   cat conftest.err >&5
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -z "$ac_c_werror_flag"
21494                          || test ! -s conftest.err'
21495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496   (eval $ac_try) 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); }; } &&
21500          { ac_try='test -s conftest$ac_exeext'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; }; then
21506   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21507 break
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 fi
21513 rm -f conftest.err conftest.$ac_objext \
21514       conftest$ac_exeext conftest.$ac_ext
21515   done
21516 fi
21517 LIBS=$ac_func_search_save_LIBS
21518 fi
21519 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21520 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21521 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21522   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21523
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_PTHREAD_MUTEX_LOCK 1
21526 _ACEOF
21527
21528 fi
21529
21530
21531
21532
21533 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21535 if test "${ac_cv_header_stdc+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 #include <stdlib.h>
21545 #include <stdarg.h>
21546 #include <string.h>
21547 #include <float.h>
21548
21549 int
21550 main ()
21551 {
21552
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559   (eval $ac_compile) 2>conftest.er1
21560   ac_status=$?
21561   grep -v '^ *+' conftest.er1 >conftest.err
21562   rm -f conftest.er1
21563   cat conftest.err >&5
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } &&
21566          { ac_try='test -z "$ac_c_werror_flag"
21567                          || test ! -s conftest.err'
21568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569   (eval $ac_try) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); }; } &&
21573          { ac_try='test -s conftest.$ac_objext'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; }; then
21579   ac_cv_header_stdc=yes
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ac_cv_header_stdc=no
21585 fi
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587
21588 if test $ac_cv_header_stdc = yes; then
21589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21590   cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h.  */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h.  */
21596 #include <string.h>
21597
21598 _ACEOF
21599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600   $EGREP "memchr" >/dev/null 2>&1; then
21601   :
21602 else
21603   ac_cv_header_stdc=no
21604 fi
21605 rm -f conftest*
21606
21607 fi
21608
21609 if test $ac_cv_header_stdc = yes; then
21610   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21611   cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 #include <stdlib.h>
21618
21619 _ACEOF
21620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21621   $EGREP "free" >/dev/null 2>&1; then
21622   :
21623 else
21624   ac_cv_header_stdc=no
21625 fi
21626 rm -f conftest*
21627
21628 fi
21629
21630 if test $ac_cv_header_stdc = yes; then
21631   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21632   if test "$cross_compiling" = yes; then
21633   :
21634 else
21635   cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641 #include <ctype.h>
21642 #if ((' ' & 0x0FF) == 0x020)
21643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21645 #else
21646 # define ISLOWER(c) \
21647                    (('a' <= (c) && (c) <= 'i') \
21648                      || ('j' <= (c) && (c) <= 'r') \
21649                      || ('s' <= (c) && (c) <= 'z'))
21650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21651 #endif
21652
21653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21654 int
21655 main ()
21656 {
21657   int i;
21658   for (i = 0; i < 256; i++)
21659     if (XOR (islower (i), ISLOWER (i))
21660         || toupper (i) != TOUPPER (i))
21661       exit(2);
21662   exit (0);
21663 }
21664 _ACEOF
21665 rm -f conftest$ac_exeext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667   (eval $ac_link) 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   :
21677 else
21678   echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ( exit $ac_status )
21683 ac_cv_header_stdc=no
21684 fi
21685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 fi
21687 fi
21688 fi
21689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21691 if test $ac_cv_header_stdc = yes; then
21692
21693 cat >>confdefs.h <<\_ACEOF
21694 #define STDC_HEADERS 1
21695 _ACEOF
21696
21697 fi
21698
21699 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21700 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21701 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 #include <sys/types.h>
21711 #include <sys/wait.h>
21712 #ifndef WEXITSTATUS
21713 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21714 #endif
21715 #ifndef WIFEXITED
21716 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21717 #endif
21718
21719 int
21720 main ()
21721 {
21722   int s;
21723   wait (&s);
21724   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731   (eval $ac_compile) 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } &&
21738          { ac_try='test -z "$ac_c_werror_flag"
21739                          || test ! -s conftest.err'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; } &&
21745          { ac_try='test -s conftest.$ac_objext'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ac_cv_header_sys_wait_h=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_header_sys_wait_h=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 fi
21760 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21762 if test $ac_cv_header_sys_wait_h = yes; then
21763
21764 cat >>confdefs.h <<\_ACEOF
21765 #define HAVE_SYS_WAIT_H 1
21766 _ACEOF
21767
21768 fi
21769
21770 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21771 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21772 if test "${ac_cv_header_time+set}" = set; then
21773   echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <sys/types.h>
21782 #include <sys/time.h>
21783 #include <time.h>
21784
21785 int
21786 main ()
21787 {
21788 if ((struct tm *) 0)
21789 return 0;
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796   (eval $ac_compile) 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } &&
21803          { ac_try='test -z "$ac_c_werror_flag"
21804                          || test ! -s conftest.err'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; } &&
21810          { ac_try='test -s conftest.$ac_objext'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; }; then
21816   ac_cv_header_time=yes
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 ac_cv_header_time=no
21822 fi
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21824 fi
21825 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21826 echo "${ECHO_T}$ac_cv_header_time" >&6
21827 if test $ac_cv_header_time = yes; then
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define TIME_WITH_SYS_TIME 1
21831 _ACEOF
21832
21833 fi
21834
21835 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21836 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21837 if test "${ac_cv_header_mmap_anon+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840    ac_ext=c
21841 ac_cpp='$CPP $CPPFLAGS'
21842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21845
21846   cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 #include <sys/mman.h>
21853 #include <unistd.h>
21854 #include <fcntl.h>
21855 int
21856 main ()
21857 {
21858 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865   (eval $ac_compile) 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } &&
21872          { ac_try='test -z "$ac_c_werror_flag"
21873                          || test ! -s conftest.err'
21874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875   (eval $ac_try) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); }; } &&
21879          { ac_try='test -s conftest.$ac_objext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   ac_cv_header_mmap_anon=yes
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 ac_cv_header_mmap_anon=no
21891 fi
21892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893   ac_ext=c
21894 ac_cpp='$CPP $CPPFLAGS'
21895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898
21899
21900 fi
21901 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21902 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21903 if test "$ac_cv_header_mmap_anon" = yes; then
21904
21905 cat >>confdefs.h <<\_ACEOF
21906 #define HAVE_MMAP_ANONYMOUS
21907 _ACEOF
21908
21909 fi
21910
21911
21912
21913
21914
21915
21916
21917
21918 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
21919 do
21920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922   echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21926 fi
21927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21929 else
21930   # Is the header compilable?
21931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h.  */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h.  */
21939 $ac_includes_default
21940 #include <$ac_header>
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21944   (eval $ac_compile) 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } &&
21951          { ac_try='test -z "$ac_c_werror_flag"
21952                          || test ! -s conftest.err'
21953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; } &&
21958          { ac_try='test -s conftest.$ac_objext'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   ac_header_compiler=yes
21965 else
21966   echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 ac_header_compiler=no
21970 fi
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6
21974
21975 # Is the header present?
21976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 #include <$ac_header>
21985 _ACEOF
21986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } >/dev/null; then
21994   if test -s conftest.err; then
21995     ac_cpp_err=$ac_c_preproc_warn_flag
21996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21997   else
21998     ac_cpp_err=
21999   fi
22000 else
22001   ac_cpp_err=yes
22002 fi
22003 if test -z "$ac_cpp_err"; then
22004   ac_header_preproc=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009   ac_header_preproc=no
22010 fi
22011 rm -f conftest.err conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22013 echo "${ECHO_T}$ac_header_preproc" >&6
22014
22015 # So?  What about this header?
22016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22017   yes:no: )
22018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22022     ac_header_preproc=yes
22023     ;;
22024   no:yes:* )
22025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22037     (
22038       cat <<\_ASBOX
22039 ## ----------------------------------- ##
22040 ## Report this to llvmbugs@cs.uiuc.edu ##
22041 ## ----------------------------------- ##
22042 _ASBOX
22043     ) |
22044       sed "s/^/$as_me: WARNING:     /" >&2
22045     ;;
22046 esac
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   eval "$as_ac_Header=\$ac_header_preproc"
22053 fi
22054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22056
22057 fi
22058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22059   cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22061 _ACEOF
22062
22063 fi
22064
22065 done
22066
22067
22068
22069
22070
22071
22072 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22073 do
22074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22076   echo "$as_me:$LINENO: checking for $ac_header" >&5
22077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22079   echo $ECHO_N "(cached) $ECHO_C" >&6
22080 fi
22081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22083 else
22084   # Is the header compilable?
22085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22087 cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093 $ac_includes_default
22094 #include <$ac_header>
22095 _ACEOF
22096 rm -f conftest.$ac_objext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098   (eval $ac_compile) 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } &&
22105          { ac_try='test -z "$ac_c_werror_flag"
22106                          || test ! -s conftest.err'
22107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108   (eval $ac_try) 2>&5
22109   ac_status=$?
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); }; } &&
22112          { ac_try='test -s conftest.$ac_objext'
22113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114   (eval $ac_try) 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; }; then
22118   ac_header_compiler=yes
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 ac_header_compiler=no
22124 fi
22125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22127 echo "${ECHO_T}$ac_header_compiler" >&6
22128
22129 # Is the header present?
22130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 #include <$ac_header>
22139 _ACEOF
22140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } >/dev/null; then
22148   if test -s conftest.err; then
22149     ac_cpp_err=$ac_c_preproc_warn_flag
22150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22151   else
22152     ac_cpp_err=
22153   fi
22154 else
22155   ac_cpp_err=yes
22156 fi
22157 if test -z "$ac_cpp_err"; then
22158   ac_header_preproc=yes
22159 else
22160   echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163   ac_header_preproc=no
22164 fi
22165 rm -f conftest.err conftest.$ac_ext
22166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167 echo "${ECHO_T}$ac_header_preproc" >&6
22168
22169 # So?  What about this header?
22170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171   yes:no: )
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176     ac_header_preproc=yes
22177     ;;
22178   no:yes:* )
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22191     (
22192       cat <<\_ASBOX
22193 ## ----------------------------------- ##
22194 ## Report this to llvmbugs@cs.uiuc.edu ##
22195 ## ----------------------------------- ##
22196 _ASBOX
22197     ) |
22198       sed "s/^/$as_me: WARNING:     /" >&2
22199     ;;
22200 esac
22201 echo "$as_me:$LINENO: checking for $ac_header" >&5
22202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   eval "$as_ac_Header=\$ac_header_preproc"
22207 fi
22208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22210
22211 fi
22212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22213   cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22215 _ACEOF
22216
22217 fi
22218
22219 done
22220
22221
22222 if test "${ac_cv_header_sys_types_h+set}" = set; then
22223   echo "$as_me:$LINENO: checking for sys/types.h" >&5
22224 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22225 if test "${ac_cv_header_sys_types_h+set}" = set; then
22226   echo $ECHO_N "(cached) $ECHO_C" >&6
22227 fi
22228 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22229 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22230 else
22231   # Is the header compilable?
22232 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22233 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240 $ac_includes_default
22241 #include <sys/types.h>
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245   (eval $ac_compile) 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_c_werror_flag"
22253                          || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest.$ac_objext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   ac_header_compiler=yes
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270 ac_header_compiler=no
22271 fi
22272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22274 echo "${ECHO_T}$ac_header_compiler" >&6
22275
22276 # Is the header present?
22277 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22278 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22279 cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h.  */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h.  */
22285 #include <sys/types.h>
22286 _ACEOF
22287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22289   ac_status=$?
22290   grep -v '^ *+' conftest.er1 >conftest.err
22291   rm -f conftest.er1
22292   cat conftest.err >&5
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } >/dev/null; then
22295   if test -s conftest.err; then
22296     ac_cpp_err=$ac_c_preproc_warn_flag
22297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22298   else
22299     ac_cpp_err=
22300   fi
22301 else
22302   ac_cpp_err=yes
22303 fi
22304 if test -z "$ac_cpp_err"; then
22305   ac_header_preproc=yes
22306 else
22307   echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310   ac_header_preproc=no
22311 fi
22312 rm -f conftest.err conftest.$ac_ext
22313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22314 echo "${ECHO_T}$ac_header_preproc" >&6
22315
22316 # So?  What about this header?
22317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22318   yes:no: )
22319     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22320 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22321     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22322 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22323     ac_header_preproc=yes
22324     ;;
22325   no:yes:* )
22326     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22327 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22328     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
22329 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
22330     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22331 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22332     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
22333 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22334     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22335 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22336     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22337 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22338     (
22339       cat <<\_ASBOX
22340 ## ----------------------------------- ##
22341 ## Report this to llvmbugs@cs.uiuc.edu ##
22342 ## ----------------------------------- ##
22343 _ASBOX
22344     ) |
22345       sed "s/^/$as_me: WARNING:     /" >&2
22346     ;;
22347 esac
22348 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22349 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22350 if test "${ac_cv_header_sys_types_h+set}" = set; then
22351   echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353   ac_cv_header_sys_types_h=$ac_header_preproc
22354 fi
22355 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22356 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22357
22358 fi
22359
22360
22361 if test "${ac_cv_header_inttypes_h+set}" = set; then
22362   echo "$as_me:$LINENO: checking for inttypes.h" >&5
22363 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22364 if test "${ac_cv_header_inttypes_h+set}" = set; then
22365   echo $ECHO_N "(cached) $ECHO_C" >&6
22366 fi
22367 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22368 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22369 else
22370   # Is the header compilable?
22371 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22372 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 $ac_includes_default
22380 #include <inttypes.h>
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384   (eval $ac_compile) 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } &&
22391          { ac_try='test -z "$ac_c_werror_flag"
22392                          || test ! -s conftest.err'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; } &&
22398          { ac_try='test -s conftest.$ac_objext'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404   ac_header_compiler=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 ac_header_compiler=no
22410 fi
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22413 echo "${ECHO_T}$ac_header_compiler" >&6
22414
22415 # Is the header present?
22416 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22417 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424 #include <inttypes.h>
22425 _ACEOF
22426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } >/dev/null; then
22434   if test -s conftest.err; then
22435     ac_cpp_err=$ac_c_preproc_warn_flag
22436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22437   else
22438     ac_cpp_err=
22439   fi
22440 else
22441   ac_cpp_err=yes
22442 fi
22443 if test -z "$ac_cpp_err"; then
22444   ac_header_preproc=yes
22445 else
22446   echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22448
22449   ac_header_preproc=no
22450 fi
22451 rm -f conftest.err conftest.$ac_ext
22452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6
22454
22455 # So?  What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457   yes:no: )
22458     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22462     ac_header_preproc=yes
22463     ;;
22464   no:yes:* )
22465     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22467     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
22469     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22471     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22473     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22475     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22477     (
22478       cat <<\_ASBOX
22479 ## ----------------------------------- ##
22480 ## Report this to llvmbugs@cs.uiuc.edu ##
22481 ## ----------------------------------- ##
22482 _ASBOX
22483     ) |
22484       sed "s/^/$as_me: WARNING:     /" >&2
22485     ;;
22486 esac
22487 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22488 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22489 if test "${ac_cv_header_inttypes_h+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   ac_cv_header_inttypes_h=$ac_header_preproc
22493 fi
22494 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22495 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22496
22497 fi
22498
22499
22500 if test "${ac_cv_header_stdint_h+set}" = set; then
22501   echo "$as_me:$LINENO: checking for stdint.h" >&5
22502 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22503 if test "${ac_cv_header_stdint_h+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 fi
22506 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22507 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22508 else
22509   # Is the header compilable?
22510 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22511 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h.  */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h.  */
22518 $ac_includes_default
22519 #include <stdint.h>
22520 _ACEOF
22521 rm -f conftest.$ac_objext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523   (eval $ac_compile) 2>conftest.er1
22524   ac_status=$?
22525   grep -v '^ *+' conftest.er1 >conftest.err
22526   rm -f conftest.er1
22527   cat conftest.err >&5
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); } &&
22530          { ac_try='test -z "$ac_c_werror_flag"
22531                          || test ! -s conftest.err'
22532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; } &&
22537          { ac_try='test -s conftest.$ac_objext'
22538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539   (eval $ac_try) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543   ac_header_compiler=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_header_compiler=no
22549 fi
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6
22553
22554 # Is the header present?
22555 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22556 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563 #include <stdint.h>
22564 _ACEOF
22565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } >/dev/null; then
22573   if test -s conftest.err; then
22574     ac_cpp_err=$ac_c_preproc_warn_flag
22575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22576   else
22577     ac_cpp_err=
22578   fi
22579 else
22580   ac_cpp_err=yes
22581 fi
22582 if test -z "$ac_cpp_err"; then
22583   ac_header_preproc=yes
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588   ac_header_preproc=no
22589 fi
22590 rm -f conftest.err conftest.$ac_ext
22591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592 echo "${ECHO_T}$ac_header_preproc" >&6
22593
22594 # So?  What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22596   yes:no: )
22597     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22598 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22600 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22601     ac_header_preproc=yes
22602     ;;
22603   no:yes:* )
22604     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22605 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22606     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
22607 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
22608     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22609 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22610     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
22611 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22612     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22613 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22614     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22615 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22616     (
22617       cat <<\_ASBOX
22618 ## ----------------------------------- ##
22619 ## Report this to llvmbugs@cs.uiuc.edu ##
22620 ## ----------------------------------- ##
22621 _ASBOX
22622     ) |
22623       sed "s/^/$as_me: WARNING:     /" >&2
22624     ;;
22625 esac
22626 echo "$as_me:$LINENO: checking for stdint.h" >&5
22627 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22628 if test "${ac_cv_header_stdint_h+set}" = set; then
22629   echo $ECHO_N "(cached) $ECHO_C" >&6
22630 else
22631   ac_cv_header_stdint_h=$ac_header_preproc
22632 fi
22633 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22634 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22635
22636 fi
22637
22638
22639
22640
22641 for ac_header in bzlib.h
22642 do
22643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22645   echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 fi
22650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22652 else
22653   # Is the header compilable?
22654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 $ac_includes_default
22663 #include <$ac_header>
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667   (eval $ac_compile) 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } &&
22674          { ac_try='test -z "$ac_c_werror_flag"
22675                          || test ! -s conftest.err'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; } &&
22681          { ac_try='test -s conftest.$ac_objext'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   ac_header_compiler=yes
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 ac_header_compiler=no
22693 fi
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6
22697
22698 # Is the header present?
22699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22701 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h.  */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h.  */
22707 #include <$ac_header>
22708 _ACEOF
22709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } >/dev/null; then
22717   if test -s conftest.err; then
22718     ac_cpp_err=$ac_c_preproc_warn_flag
22719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22720   else
22721     ac_cpp_err=
22722   fi
22723 else
22724   ac_cpp_err=yes
22725 fi
22726 if test -z "$ac_cpp_err"; then
22727   ac_header_preproc=yes
22728 else
22729   echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732   ac_header_preproc=no
22733 fi
22734 rm -f conftest.err conftest.$ac_ext
22735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22736 echo "${ECHO_T}$ac_header_preproc" >&6
22737
22738 # So?  What about this header?
22739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22740   yes:no: )
22741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22745     ac_header_preproc=yes
22746     ;;
22747   no:yes:* )
22748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22750     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22751 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22752     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22754     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22755 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22758     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22760     (
22761       cat <<\_ASBOX
22762 ## ----------------------------------- ##
22763 ## Report this to llvmbugs@cs.uiuc.edu ##
22764 ## ----------------------------------- ##
22765 _ASBOX
22766     ) |
22767       sed "s/^/$as_me: WARNING:     /" >&2
22768     ;;
22769 esac
22770 echo "$as_me:$LINENO: checking for $ac_header" >&5
22771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775   eval "$as_ac_Header=\$ac_header_preproc"
22776 fi
22777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22779
22780 fi
22781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22782   cat >>confdefs.h <<_ACEOF
22783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22784 _ACEOF
22785  bzlib_h_found=1
22786 else
22787   bzlib_h_found=0
22788 fi
22789
22790 done
22791
22792
22793 for ac_header in zlib.h
22794 do
22795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22797   echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22800   echo $ECHO_N "(cached) $ECHO_C" >&6
22801 fi
22802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22804 else
22805   # Is the header compilable?
22806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22808 cat >conftest.$ac_ext <<_ACEOF
22809 /* confdefs.h.  */
22810 _ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h.  */
22814 $ac_includes_default
22815 #include <$ac_header>
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22819   (eval $ac_compile) 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } &&
22826          { ac_try='test -z "$ac_c_werror_flag"
22827                          || test ! -s conftest.err'
22828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829   (eval $ac_try) 2>&5
22830   ac_status=$?
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); }; } &&
22833          { ac_try='test -s conftest.$ac_objext'
22834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835   (eval $ac_try) 2>&5
22836   ac_status=$?
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); }; }; then
22839   ac_header_compiler=yes
22840 else
22841   echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844 ac_header_compiler=no
22845 fi
22846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22848 echo "${ECHO_T}$ac_header_compiler" >&6
22849
22850 # Is the header present?
22851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22853 cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859 #include <$ac_header>
22860 _ACEOF
22861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } >/dev/null; then
22869   if test -s conftest.err; then
22870     ac_cpp_err=$ac_c_preproc_warn_flag
22871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22872   else
22873     ac_cpp_err=
22874   fi
22875 else
22876   ac_cpp_err=yes
22877 fi
22878 if test -z "$ac_cpp_err"; then
22879   ac_header_preproc=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884   ac_header_preproc=no
22885 fi
22886 rm -f conftest.err conftest.$ac_ext
22887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22888 echo "${ECHO_T}$ac_header_preproc" >&6
22889
22890 # So?  What about this header?
22891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22892   yes:no: )
22893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22897     ac_header_preproc=yes
22898     ;;
22899   no:yes:* )
22900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22912     (
22913       cat <<\_ASBOX
22914 ## ----------------------------------- ##
22915 ## Report this to llvmbugs@cs.uiuc.edu ##
22916 ## ----------------------------------- ##
22917 _ASBOX
22918     ) |
22919       sed "s/^/$as_me: WARNING:     /" >&2
22920     ;;
22921 esac
22922 echo "$as_me:$LINENO: checking for $ac_header" >&5
22923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927   eval "$as_ac_Header=\$ac_header_preproc"
22928 fi
22929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22931
22932 fi
22933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22934   cat >>confdefs.h <<_ACEOF
22935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22936 _ACEOF
22937  zlib_h_found=1
22938 else
22939   zlib_h_found=0
22940 fi
22941
22942 done
22943
22944
22945
22946 echo "$as_me:$LINENO: checking for pid_t" >&5
22947 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22948 if test "${ac_cv_type_pid_t+set}" = set; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951   cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h.  */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h.  */
22957 $ac_includes_default
22958 int
22959 main ()
22960 {
22961 if ((pid_t *) 0)
22962   return 0;
22963 if (sizeof (pid_t))
22964   return 0;
22965   ;
22966   return 0;
22967 }
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22971   (eval $ac_compile) 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } &&
22978          { ac_try='test -z "$ac_c_werror_flag"
22979                          || test ! -s conftest.err'
22980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981   (eval $ac_try) 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); }; } &&
22985          { ac_try='test -s conftest.$ac_objext'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; }; then
22991   ac_cv_type_pid_t=yes
22992 else
22993   echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996 ac_cv_type_pid_t=no
22997 fi
22998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22999 fi
23000 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23001 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23002 if test $ac_cv_type_pid_t = yes; then
23003   :
23004 else
23005
23006 cat >>confdefs.h <<_ACEOF
23007 #define pid_t int
23008 _ACEOF
23009
23010 fi
23011
23012 echo "$as_me:$LINENO: checking for size_t" >&5
23013 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23014 if test "${ac_cv_type_size_t+set}" = set; then
23015   echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017   cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023 $ac_includes_default
23024 int
23025 main ()
23026 {
23027 if ((size_t *) 0)
23028   return 0;
23029 if (sizeof (size_t))
23030   return 0;
23031   ;
23032   return 0;
23033 }
23034 _ACEOF
23035 rm -f conftest.$ac_objext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23037   (eval $ac_compile) 2>conftest.er1
23038   ac_status=$?
23039   grep -v '^ *+' conftest.er1 >conftest.err
23040   rm -f conftest.er1
23041   cat conftest.err >&5
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); } &&
23044          { ac_try='test -z "$ac_c_werror_flag"
23045                          || test ! -s conftest.err'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; } &&
23051          { ac_try='test -s conftest.$ac_objext'
23052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); }; }; then
23057   ac_cv_type_size_t=yes
23058 else
23059   echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23061
23062 ac_cv_type_size_t=no
23063 fi
23064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23065 fi
23066 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23068 if test $ac_cv_type_size_t = yes; then
23069   :
23070 else
23071
23072 cat >>confdefs.h <<_ACEOF
23073 #define size_t unsigned
23074 _ACEOF
23075
23076 fi
23077
23078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23080 if test "${ac_cv_type_signal+set}" = set; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 #include <sys/types.h>
23090 #include <signal.h>
23091 #ifdef signal
23092 # undef signal
23093 #endif
23094 #ifdef __cplusplus
23095 extern "C" void (*signal (int, void (*)(int)))(int);
23096 #else
23097 void (*signal ()) ();
23098 #endif
23099
23100 int
23101 main ()
23102 {
23103 int i;
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110   (eval $ac_compile) 2>conftest.er1
23111   ac_status=$?
23112   grep -v '^ *+' conftest.er1 >conftest.err
23113   rm -f conftest.er1
23114   cat conftest.err >&5
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } &&
23117          { ac_try='test -z "$ac_c_werror_flag"
23118                          || test ! -s conftest.err'
23119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120   (eval $ac_try) 2>&5
23121   ac_status=$?
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); }; } &&
23124          { ac_try='test -s conftest.$ac_objext'
23125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126   (eval $ac_try) 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; }; then
23130   ac_cv_type_signal=void
23131 else
23132   echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135 ac_cv_type_signal=int
23136 fi
23137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
23139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23140 echo "${ECHO_T}$ac_cv_type_signal" >&6
23141
23142 cat >>confdefs.h <<_ACEOF
23143 #define RETSIGTYPE $ac_cv_type_signal
23144 _ACEOF
23145
23146
23147 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23148 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23149 if test "${ac_cv_struct_tm+set}" = set; then
23150   echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152   cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 #include <sys/types.h>
23159 #include <time.h>
23160
23161 int
23162 main ()
23163 {
23164 struct tm *tp; tp->tm_sec;
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171   (eval $ac_compile) 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -z "$ac_c_werror_flag"
23179                          || test ! -s conftest.err'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest.$ac_objext'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; }; then
23191   ac_cv_struct_tm=time.h
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_cv_struct_tm=sys/time.h
23197 fi
23198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199 fi
23200 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23201 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23202 if test $ac_cv_struct_tm = sys/time.h; then
23203
23204 cat >>confdefs.h <<\_ACEOF
23205 #define TM_IN_SYS_TIME 1
23206 _ACEOF
23207
23208 fi
23209
23210 echo "$as_me:$LINENO: checking for int64_t" >&5
23211 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23212 if test "${ac_cv_type_int64_t+set}" = set; then
23213   echo $ECHO_N "(cached) $ECHO_C" >&6
23214 else
23215   cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h.  */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h.  */
23221 $ac_includes_default
23222 int
23223 main ()
23224 {
23225 if ((int64_t *) 0)
23226   return 0;
23227 if (sizeof (int64_t))
23228   return 0;
23229   ;
23230   return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest.$ac_objext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235   (eval $ac_compile) 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } &&
23242          { ac_try='test -z "$ac_c_werror_flag"
23243                          || test ! -s conftest.err'
23244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245   (eval $ac_try) 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; } &&
23249          { ac_try='test -s conftest.$ac_objext'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   ac_cv_type_int64_t=yes
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 ac_cv_type_int64_t=no
23261 fi
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263 fi
23264 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23265 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23266 if test $ac_cv_type_int64_t = yes; then
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_INT64_T 1
23270 _ACEOF
23271
23272
23273 else
23274   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23275 echo "$as_me: error: Type int64_t required but not found" >&2;}
23276    { (exit 1); exit 1; }; }
23277 fi
23278
23279 echo "$as_me:$LINENO: checking for uint64_t" >&5
23280 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23281 if test "${ac_cv_type_uint64_t+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284   cat >conftest.$ac_ext <<_ACEOF
23285 /* confdefs.h.  */
23286 _ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h.  */
23290 $ac_includes_default
23291 int
23292 main ()
23293 {
23294 if ((uint64_t *) 0)
23295   return 0;
23296 if (sizeof (uint64_t))
23297   return 0;
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23304   (eval $ac_compile) 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } &&
23311          { ac_try='test -z "$ac_c_werror_flag"
23312                          || test ! -s conftest.err'
23313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314   (eval $ac_try) 2>&5
23315   ac_status=$?
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); }; } &&
23318          { ac_try='test -s conftest.$ac_objext'
23319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320   (eval $ac_try) 2>&5
23321   ac_status=$?
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); }; }; then
23324   ac_cv_type_uint64_t=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329 ac_cv_type_uint64_t=no
23330 fi
23331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23332 fi
23333 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23334 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23335 if test $ac_cv_type_uint64_t = yes; then
23336
23337 cat >>confdefs.h <<_ACEOF
23338 #define HAVE_UINT64_T 1
23339 _ACEOF
23340
23341
23342 else
23343   echo "$as_me:$LINENO: checking for u_int64_t" >&5
23344 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23345 if test "${ac_cv_type_u_int64_t+set}" = set; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348   cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h.  */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h.  */
23354 $ac_includes_default
23355 int
23356 main ()
23357 {
23358 if ((u_int64_t *) 0)
23359   return 0;
23360 if (sizeof (u_int64_t))
23361   return 0;
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368   (eval $ac_compile) 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } &&
23375          { ac_try='test -z "$ac_c_werror_flag"
23376                          || test ! -s conftest.err'
23377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378   (eval $ac_try) 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; } &&
23382          { ac_try='test -s conftest.$ac_objext'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; }; then
23388   ac_cv_type_u_int64_t=yes
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393 ac_cv_type_u_int64_t=no
23394 fi
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396 fi
23397 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23398 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23399 if test $ac_cv_type_u_int64_t = yes; then
23400
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_U_INT64_T 1
23403 _ACEOF
23404
23405
23406 else
23407   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23408 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23409    { (exit 1); exit 1; }; }
23410 fi
23411
23412 fi
23413
23414
23415
23416   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23417 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23418   ac_ext=c
23419 ac_cpp='$CPP $CPPFLAGS'
23420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23423
23424   if test "$cross_compiling" = yes; then
23425   ac_c_printf_a=no
23426 else
23427   cat >conftest.$ac_ext <<_ACEOF
23428
23429     /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434
23435 #include <stdio.h>
23436 #include <stdlib.h>
23437
23438 int
23439 main ()
23440 {
23441
23442 volatile double A, B;
23443 char Buffer[100];
23444 A = 1;
23445 A /= 10.0;
23446 sprintf(Buffer, "%a", A);
23447 B = atof(Buffer);
23448 if (A != B)
23449   return (1);
23450 if (A != 0x1.999999999999ap-4)
23451   return (1);
23452 return (0);
23453   ;
23454   return 0;
23455 }
23456 _ACEOF
23457 rm -f conftest$ac_exeext
23458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23459   (eval $ac_link) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464   (eval $ac_try) 2>&5
23465   ac_status=$?
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); }; }; then
23468   ac_c_printf_a=yes
23469 else
23470   echo "$as_me: program exited with status $ac_status" >&5
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474 ( exit $ac_status )
23475 ac_c_printf_a=no
23476 fi
23477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23478 fi
23479  ac_ext=c
23480 ac_cpp='$CPP $CPPFLAGS'
23481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23484
23485  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23486 echo "${ECHO_T}$ac_c_printf_a" >&6
23487  if test "$ac_c_printf_a" = "yes"; then
23488
23489 cat >>confdefs.h <<\_ACEOF
23490 #define HAVE_PRINTF_A 1
23491 _ACEOF
23492
23493  fi
23494
23495
23496 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23497 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23498 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   ac_ext=cc
23502 ac_cpp='$CXXCPP $CPPFLAGS'
23503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23506
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 #include <math.h>
23514                      int foo(float f) {return isnan(f);}
23515 _ACEOF
23516 rm -f conftest.$ac_objext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518   (eval $ac_compile) 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } &&
23525          { ac_try='test -z "$ac_cxx_werror_flag"
23526                          || test ! -s conftest.err'
23527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528   (eval $ac_try) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); }; } &&
23532          { ac_try='test -s conftest.$ac_objext'
23533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534   (eval $ac_try) 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); }; }; then
23538   ac_cv_func_isnan_in_math_h=yes
23539 else
23540   echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 ac_cv_func_isnan_in_math_h=no
23544 fi
23545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23546  ac_ext=c
23547 ac_cpp='$CPP $CPPFLAGS'
23548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23551
23552 fi
23553 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23554 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23555  if test "$ac_cv_func_isnan_in_math_h" = "yes"
23556  then
23557
23558 cat >>confdefs.h <<\_ACEOF
23559 #define HAVE_ISNAN_IN_MATH_H 1
23560 _ACEOF
23561
23562  fi
23563 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23564 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23565 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   ac_ext=cc
23569 ac_cpp='$CXXCPP $CPPFLAGS'
23570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23573
23574   cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 #include <cmath>
23581                      int foo(float f) {return isnan(f);}
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585   (eval $ac_compile) 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } &&
23592          { ac_try='test -z "$ac_cxx_werror_flag"
23593                          || test ! -s conftest.err'
23594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595   (eval $ac_try) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; } &&
23599          { ac_try='test -s conftest.$ac_objext'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; }; then
23605   ac_cv_func_isnan_in_cmath=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610 ac_cv_func_isnan_in_cmath=no
23611 fi
23612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613  ac_ext=c
23614 ac_cpp='$CPP $CPPFLAGS'
23615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23618
23619 fi
23620 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23621 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23622  if test "$ac_cv_func_isnan_in_cmath" = "yes"
23623  then
23624
23625 cat >>confdefs.h <<\_ACEOF
23626 #define HAVE_ISNAN_IN_CMATH 1
23627 _ACEOF
23628
23629  fi
23630 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23631 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23632 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23633   echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635   ac_ext=cc
23636 ac_cpp='$CXXCPP $CPPFLAGS'
23637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23640
23641   cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647 #include <cmath>
23648                      using std::isnan; int foo(float f) {return isnan(f);}
23649 _ACEOF
23650 rm -f conftest.$ac_objext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23652   (eval $ac_compile) 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } &&
23659          { ac_try='test -z "$ac_cxx_werror_flag"
23660                          || test ! -s conftest.err'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; } &&
23666          { ac_try='test -s conftest.$ac_objext'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   ac_cv_func_std_isnan_in_cmath=yes
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 ac_cv_func_std_isnan_in_cmath=no
23678 fi
23679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23680  ac_ext=c
23681 ac_cpp='$CPP $CPPFLAGS'
23682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23685
23686 fi
23687 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23688 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23689  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23690  then
23691
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_STD_ISNAN_IN_CMATH 1
23694 _ACEOF
23695
23696  fi
23697
23698
23699 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23700 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23701 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   ac_ext=cc
23705 ac_cpp='$CXXCPP $CPPFLAGS'
23706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23709
23710   cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 #include <math.h>
23717                      int foo(float f) {return isinf(f);}
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721   (eval $ac_compile) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_cxx_werror_flag"
23729                          || test ! -s conftest.err'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; } &&
23735          { ac_try='test -s conftest.$ac_objext'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; }; then
23741   ac_cv_func_isinf_in_math_h=yes
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_func_isinf_in_math_h=no
23747 fi
23748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749  ac_ext=c
23750 ac_cpp='$CPP $CPPFLAGS'
23751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23754
23755 fi
23756 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23757 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23758  if test "$ac_cv_func_isinf_in_math_h" = "yes"
23759  then
23760
23761 cat >>confdefs.h <<\_ACEOF
23762 #define HAVE_ISINF_IN_MATH_H 1
23763 _ACEOF
23764
23765  fi
23766 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
23767 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
23768 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
23769   echo $ECHO_N "(cached) $ECHO_C" >&6
23770 else
23771   ac_ext=cc
23772 ac_cpp='$CXXCPP $CPPFLAGS'
23773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23776
23777   cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783 #include <cmath>
23784                      int foo(float f) {return isinf(f);}
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788   (eval $ac_compile) 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } &&
23795          { ac_try='test -z "$ac_cxx_werror_flag"
23796                          || test ! -s conftest.err'
23797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798   (eval $ac_try) 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; } &&
23802          { ac_try='test -s conftest.$ac_objext'
23803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804   (eval $ac_try) 2>&5
23805   ac_status=$?
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); }; }; then
23808   ac_cv_func_isinf_in_cmath=yes
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_cv_func_isinf_in_cmath=no
23814 fi
23815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23816  ac_ext=c
23817 ac_cpp='$CPP $CPPFLAGS'
23818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23821
23822 fi
23823 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
23824 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
23825  if test "$ac_cv_func_isinf_in_cmath" = "yes"
23826  then
23827
23828 cat >>confdefs.h <<\_ACEOF
23829 #define HAVE_ISINF_IN_CMATH 1
23830 _ACEOF
23831
23832  fi
23833 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
23834 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
23835 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
23836   echo $ECHO_N "(cached) $ECHO_C" >&6
23837 else
23838   ac_ext=cc
23839 ac_cpp='$CXXCPP $CPPFLAGS'
23840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23843
23844   cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h.  */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h.  */
23850 #include <cmath>
23851                      using std::isinf; int foo(float f) {return isinf(f);}
23852 _ACEOF
23853 rm -f conftest.$ac_objext
23854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23855   (eval $ac_compile) 2>conftest.er1
23856   ac_status=$?
23857   grep -v '^ *+' conftest.er1 >conftest.err
23858   rm -f conftest.er1
23859   cat conftest.err >&5
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); } &&
23862          { ac_try='test -z "$ac_cxx_werror_flag"
23863                          || test ! -s conftest.err'
23864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865   (eval $ac_try) 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; } &&
23869          { ac_try='test -s conftest.$ac_objext'
23870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871   (eval $ac_try) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); }; }; then
23875   ac_cv_func_std_isinf_in_cmath=yes
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880 ac_cv_func_std_isinf_in_cmath=no
23881 fi
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883  ac_ext=c
23884 ac_cpp='$CPP $CPPFLAGS'
23885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23888
23889 fi
23890 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23891 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23892  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
23893  then
23894
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_STD_ISINF_IN_CMATH 1
23897 _ACEOF
23898
23899  fi
23900 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23901 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23902 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905   ac_ext=cc
23906 ac_cpp='$CXXCPP $CPPFLAGS'
23907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23910
23911   cat >conftest.$ac_ext <<_ACEOF
23912 /* confdefs.h.  */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h.  */
23917 #include <ieeefp.h>
23918                      int foo(float f) {return finite(f);}
23919 _ACEOF
23920 rm -f conftest.$ac_objext
23921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23922   (eval $ac_compile) 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } &&
23929          { ac_try='test -z "$ac_cxx_werror_flag"
23930                          || test ! -s conftest.err'
23931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932   (eval $ac_try) 2>&5
23933   ac_status=$?
23934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935   (exit $ac_status); }; } &&
23936          { ac_try='test -s conftest.$ac_objext'
23937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938   (eval $ac_try) 2>&5
23939   ac_status=$?
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); }; }; then
23942   ac_cv_func_finite_in_ieeefp_h=yes
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947 ac_cv_func_finite_in_ieeefp_h=no
23948 fi
23949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950  ac_ext=c
23951 ac_cpp='$CPP $CPPFLAGS'
23952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23955
23956 fi
23957 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23958 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23959  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23960  then
23961
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_FINITE_IN_IEEEFP_H 1
23964 _ACEOF
23965
23966  fi
23967
23968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23969 # for constant arguments.  Useless!
23970 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23971 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23972 if test "${ac_cv_working_alloca_h+set}" = set; then
23973   echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975   cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h.  */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h.  */
23981 #include <alloca.h>
23982 int
23983 main ()
23984 {
23985 char *p = (char *) alloca (2 * sizeof (int));
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992   (eval $ac_link) 2>conftest.er1
23993   ac_status=$?
23994   grep -v '^ *+' conftest.er1 >conftest.err
23995   rm -f conftest.er1
23996   cat conftest.err >&5
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); } &&
23999          { ac_try='test -z "$ac_c_werror_flag"
24000                          || test ! -s conftest.err'
24001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002   (eval $ac_try) 2>&5
24003   ac_status=$?
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); }; } &&
24006          { ac_try='test -s conftest$ac_exeext'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; }; then
24012   ac_cv_working_alloca_h=yes
24013 else
24014   echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24016
24017 ac_cv_working_alloca_h=no
24018 fi
24019 rm -f conftest.err conftest.$ac_objext \
24020       conftest$ac_exeext conftest.$ac_ext
24021 fi
24022 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24023 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24024 if test $ac_cv_working_alloca_h = yes; then
24025
24026 cat >>confdefs.h <<\_ACEOF
24027 #define HAVE_ALLOCA_H 1
24028 _ACEOF
24029
24030 fi
24031
24032 echo "$as_me:$LINENO: checking for alloca" >&5
24033 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24034 if test "${ac_cv_func_alloca_works+set}" = set; then
24035   echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037   cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 #ifdef __GNUC__
24044 # define alloca __builtin_alloca
24045 #else
24046 # ifdef _MSC_VER
24047 #  include <malloc.h>
24048 #  define alloca _alloca
24049 # else
24050 #  if HAVE_ALLOCA_H
24051 #   include <alloca.h>
24052 #  else
24053 #   ifdef _AIX
24054  #pragma alloca
24055 #   else
24056 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24057 char *alloca ();
24058 #    endif
24059 #   endif
24060 #  endif
24061 # endif
24062 #endif
24063
24064 int
24065 main ()
24066 {
24067 char *p = (char *) alloca (1);
24068   ;
24069   return 0;
24070 }
24071 _ACEOF
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24074   (eval $ac_link) 2>conftest.er1
24075   ac_status=$?
24076   grep -v '^ *+' conftest.er1 >conftest.err
24077   rm -f conftest.er1
24078   cat conftest.err >&5
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); } &&
24081          { ac_try='test -z "$ac_c_werror_flag"
24082                          || test ! -s conftest.err'
24083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084   (eval $ac_try) 2>&5
24085   ac_status=$?
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); }; } &&
24088          { ac_try='test -s conftest$ac_exeext'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; }; then
24094   ac_cv_func_alloca_works=yes
24095 else
24096   echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24098
24099 ac_cv_func_alloca_works=no
24100 fi
24101 rm -f conftest.err conftest.$ac_objext \
24102       conftest$ac_exeext conftest.$ac_ext
24103 fi
24104 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24106
24107 if test $ac_cv_func_alloca_works = yes; then
24108
24109 cat >>confdefs.h <<\_ACEOF
24110 #define HAVE_ALLOCA 1
24111 _ACEOF
24112
24113 else
24114   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24115 # that cause trouble.  Some versions do not even contain alloca or
24116 # contain a buggy version.  If you still want to use their alloca,
24117 # use ar to extract alloca.o from them instead of compiling alloca.c.
24118
24119 ALLOCA=alloca.$ac_objext
24120
24121 cat >>confdefs.h <<\_ACEOF
24122 #define C_ALLOCA 1
24123 _ACEOF
24124
24125
24126 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24128 if test "${ac_cv_os_cray+set}" = set; then
24129   echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131   cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137 #if defined(CRAY) && ! defined(CRAY2)
24138 webecray
24139 #else
24140 wenotbecray
24141 #endif
24142
24143 _ACEOF
24144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24145   $EGREP "webecray" >/dev/null 2>&1; then
24146   ac_cv_os_cray=yes
24147 else
24148   ac_cv_os_cray=no
24149 fi
24150 rm -f conftest*
24151
24152 fi
24153 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24154 echo "${ECHO_T}$ac_cv_os_cray" >&6
24155 if test $ac_cv_os_cray = yes; then
24156   for ac_func in _getb67 GETB67 getb67; do
24157     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24158 echo "$as_me:$LINENO: checking for $ac_func" >&5
24159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24160 if eval "test \"\${$as_ac_var+set}\" = set"; then
24161   echo $ECHO_N "(cached) $ECHO_C" >&6
24162 else
24163   cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h.  */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h.  */
24169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24171 #define $ac_func innocuous_$ac_func
24172
24173 /* System header to define __stub macros and hopefully few prototypes,
24174     which can conflict with char $ac_func (); below.
24175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24176     <limits.h> exists even on freestanding compilers.  */
24177
24178 #ifdef __STDC__
24179 # include <limits.h>
24180 #else
24181 # include <assert.h>
24182 #endif
24183
24184 #undef $ac_func
24185
24186 /* Override any gcc2 internal prototype to avoid an error.  */
24187 #ifdef __cplusplus
24188 extern "C"
24189 {
24190 #endif
24191 /* We use char because int might match the return type of a gcc2
24192    builtin and then its argument prototype would still apply.  */
24193 char $ac_func ();
24194 /* The GNU C library defines this for functions which it implements
24195     to always fail with ENOSYS.  Some functions are actually named
24196     something starting with __ and the normal name is an alias.  */
24197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24198 choke me
24199 #else
24200 char (*f) () = $ac_func;
24201 #endif
24202 #ifdef __cplusplus
24203 }
24204 #endif
24205
24206 int
24207 main ()
24208 {
24209 return f != $ac_func;
24210   ;
24211   return 0;
24212 }
24213 _ACEOF
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24216   (eval $ac_link) 2>conftest.er1
24217   ac_status=$?
24218   grep -v '^ *+' conftest.er1 >conftest.err
24219   rm -f conftest.er1
24220   cat conftest.err >&5
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } &&
24223          { ac_try='test -z "$ac_c_werror_flag"
24224                          || test ! -s conftest.err'
24225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226   (eval $ac_try) 2>&5
24227   ac_status=$?
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); }; } &&
24230          { ac_try='test -s conftest$ac_exeext'
24231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232   (eval $ac_try) 2>&5
24233   ac_status=$?
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); }; }; then
24236   eval "$as_ac_var=yes"
24237 else
24238   echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24240
24241 eval "$as_ac_var=no"
24242 fi
24243 rm -f conftest.err conftest.$ac_objext \
24244       conftest$ac_exeext conftest.$ac_ext
24245 fi
24246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24248 if test `eval echo '${'$as_ac_var'}'` = yes; then
24249
24250 cat >>confdefs.h <<_ACEOF
24251 #define CRAY_STACKSEG_END $ac_func
24252 _ACEOF
24253
24254     break
24255 fi
24256
24257   done
24258 fi
24259
24260 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24262 if test "${ac_cv_c_stack_direction+set}" = set; then
24263   echo $ECHO_N "(cached) $ECHO_C" >&6
24264 else
24265   if test "$cross_compiling" = yes; then
24266   ac_cv_c_stack_direction=0
24267 else
24268   cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274 int
24275 find_stack_direction ()
24276 {
24277   static char *addr = 0;
24278   auto char dummy;
24279   if (addr == 0)
24280     {
24281       addr = &dummy;
24282       return find_stack_direction ();
24283     }
24284   else
24285     return (&dummy > addr) ? 1 : -1;
24286 }
24287
24288 int
24289 main ()
24290 {
24291   exit (find_stack_direction () < 0);
24292 }
24293 _ACEOF
24294 rm -f conftest$ac_exeext
24295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24296   (eval $ac_link) 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301   (eval $ac_try) 2>&5
24302   ac_status=$?
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); }; }; then
24305   ac_cv_c_stack_direction=1
24306 else
24307   echo "$as_me: program exited with status $ac_status" >&5
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311 ( exit $ac_status )
24312 ac_cv_c_stack_direction=-1
24313 fi
24314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315 fi
24316 fi
24317 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24318 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24319
24320 cat >>confdefs.h <<_ACEOF
24321 #define STACK_DIRECTION $ac_cv_c_stack_direction
24322 _ACEOF
24323
24324
24325 fi
24326
24327
24328
24329 for ac_header in stdlib.h unistd.h
24330 do
24331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24333   echo "$as_me:$LINENO: checking for $ac_header" >&5
24334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24336   echo $ECHO_N "(cached) $ECHO_C" >&6
24337 fi
24338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24340 else
24341   # Is the header compilable?
24342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350 $ac_includes_default
24351 #include <$ac_header>
24352 _ACEOF
24353 rm -f conftest.$ac_objext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24355   (eval $ac_compile) 2>conftest.er1
24356   ac_status=$?
24357   grep -v '^ *+' conftest.er1 >conftest.err
24358   rm -f conftest.er1
24359   cat conftest.err >&5
24360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361   (exit $ac_status); } &&
24362          { ac_try='test -z "$ac_c_werror_flag"
24363                          || test ! -s conftest.err'
24364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365   (eval $ac_try) 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; } &&
24369          { ac_try='test -s conftest.$ac_objext'
24370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371   (eval $ac_try) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); }; }; then
24375   ac_header_compiler=yes
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380 ac_header_compiler=no
24381 fi
24382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384 echo "${ECHO_T}$ac_header_compiler" >&6
24385
24386 # Is the header present?
24387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24389 cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h.  */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h.  */
24395 #include <$ac_header>
24396 _ACEOF
24397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24399   ac_status=$?
24400   grep -v '^ *+' conftest.er1 >conftest.err
24401   rm -f conftest.er1
24402   cat conftest.err >&5
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); } >/dev/null; then
24405   if test -s conftest.err; then
24406     ac_cpp_err=$ac_c_preproc_warn_flag
24407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24408   else
24409     ac_cpp_err=
24410   fi
24411 else
24412   ac_cpp_err=yes
24413 fi
24414 if test -z "$ac_cpp_err"; then
24415   ac_header_preproc=yes
24416 else
24417   echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24419
24420   ac_header_preproc=no
24421 fi
24422 rm -f conftest.err conftest.$ac_ext
24423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24424 echo "${ECHO_T}$ac_header_preproc" >&6
24425
24426 # So?  What about this header?
24427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24428   yes:no: )
24429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24433     ac_header_preproc=yes
24434     ;;
24435   no:yes:* )
24436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24448     (
24449       cat <<\_ASBOX
24450 ## ----------------------------------- ##
24451 ## Report this to llvmbugs@cs.uiuc.edu ##
24452 ## ----------------------------------- ##
24453 _ASBOX
24454     ) |
24455       sed "s/^/$as_me: WARNING:     /" >&2
24456     ;;
24457 esac
24458 echo "$as_me:$LINENO: checking for $ac_header" >&5
24459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24461   echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463   eval "$as_ac_Header=\$ac_header_preproc"
24464 fi
24465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24467
24468 fi
24469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24470   cat >>confdefs.h <<_ACEOF
24471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24472 _ACEOF
24473
24474 fi
24475
24476 done
24477
24478
24479 for ac_func in getpagesize
24480 do
24481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 echo "$as_me:$LINENO: checking for $ac_func" >&5
24483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24484 if eval "test \"\${$as_ac_var+set}\" = set"; then
24485   echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487   cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24495 #define $ac_func innocuous_$ac_func
24496
24497 /* System header to define __stub macros and hopefully few prototypes,
24498     which can conflict with char $ac_func (); below.
24499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24500     <limits.h> exists even on freestanding compilers.  */
24501
24502 #ifdef __STDC__
24503 # include <limits.h>
24504 #else
24505 # include <assert.h>
24506 #endif
24507
24508 #undef $ac_func
24509
24510 /* Override any gcc2 internal prototype to avoid an error.  */
24511 #ifdef __cplusplus
24512 extern "C"
24513 {
24514 #endif
24515 /* We use char because int might match the return type of a gcc2
24516    builtin and then its argument prototype would still apply.  */
24517 char $ac_func ();
24518 /* The GNU C library defines this for functions which it implements
24519     to always fail with ENOSYS.  Some functions are actually named
24520     something starting with __ and the normal name is an alias.  */
24521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24522 choke me
24523 #else
24524 char (*f) () = $ac_func;
24525 #endif
24526 #ifdef __cplusplus
24527 }
24528 #endif
24529
24530 int
24531 main ()
24532 {
24533 return f != $ac_func;
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 rm -f conftest.$ac_objext conftest$ac_exeext
24539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24540   (eval $ac_link) 2>conftest.er1
24541   ac_status=$?
24542   grep -v '^ *+' conftest.er1 >conftest.err
24543   rm -f conftest.er1
24544   cat conftest.err >&5
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); } &&
24547          { ac_try='test -z "$ac_c_werror_flag"
24548                          || test ! -s conftest.err'
24549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550   (eval $ac_try) 2>&5
24551   ac_status=$?
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); }; } &&
24554          { ac_try='test -s conftest$ac_exeext'
24555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556   (eval $ac_try) 2>&5
24557   ac_status=$?
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); }; }; then
24560   eval "$as_ac_var=yes"
24561 else
24562   echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565 eval "$as_ac_var=no"
24566 fi
24567 rm -f conftest.err conftest.$ac_objext \
24568       conftest$ac_exeext conftest.$ac_ext
24569 fi
24570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24572 if test `eval echo '${'$as_ac_var'}'` = yes; then
24573   cat >>confdefs.h <<_ACEOF
24574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24575 _ACEOF
24576
24577 fi
24578 done
24579
24580 echo "$as_me:$LINENO: checking for working mmap" >&5
24581 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24582 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585   if test "$cross_compiling" = yes; then
24586   ac_cv_func_mmap_fixed_mapped=no
24587 else
24588   cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h.  */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h.  */
24594 $ac_includes_default
24595 /* malloc might have been renamed as rpl_malloc. */
24596 #undef malloc
24597
24598 /* Thanks to Mike Haertel and Jim Avera for this test.
24599    Here is a matrix of mmap possibilities:
24600         mmap private not fixed
24601         mmap private fixed at somewhere currently unmapped
24602         mmap private fixed at somewhere already mapped
24603         mmap shared not fixed
24604         mmap shared fixed at somewhere currently unmapped
24605         mmap shared fixed at somewhere already mapped
24606    For private mappings, we should verify that changes cannot be read()
24607    back from the file, nor mmap's back from the file at a different
24608    address.  (There have been systems where private was not correctly
24609    implemented like the infamous i386 svr4.0, and systems where the
24610    VM page cache was not coherent with the file system buffer cache
24611    like early versions of FreeBSD and possibly contemporary NetBSD.)
24612    For shared mappings, we should conversely verify that changes get
24613    propagated back to all the places they're supposed to be.
24614
24615    Grep wants private fixed already mapped.
24616    The main things grep needs to know about mmap are:
24617    * does it exist and is it safe to write into the mmap'd area
24618    * how to use it (BSD variants)  */
24619
24620 #include <fcntl.h>
24621 #include <sys/mman.h>
24622
24623 #if !STDC_HEADERS && !HAVE_STDLIB_H
24624 char *malloc ();
24625 #endif
24626
24627 /* This mess was copied from the GNU getpagesize.h.  */
24628 #if !HAVE_GETPAGESIZE
24629 /* Assume that all systems that can run configure have sys/param.h.  */
24630 # if !HAVE_SYS_PARAM_H
24631 #  define HAVE_SYS_PARAM_H 1
24632 # endif
24633
24634 # ifdef _SC_PAGESIZE
24635 #  define getpagesize() sysconf(_SC_PAGESIZE)
24636 # else /* no _SC_PAGESIZE */
24637 #  if HAVE_SYS_PARAM_H
24638 #   include <sys/param.h>
24639 #   ifdef EXEC_PAGESIZE
24640 #    define getpagesize() EXEC_PAGESIZE
24641 #   else /* no EXEC_PAGESIZE */
24642 #    ifdef NBPG
24643 #     define getpagesize() NBPG * CLSIZE
24644 #     ifndef CLSIZE
24645 #      define CLSIZE 1
24646 #     endif /* no CLSIZE */
24647 #    else /* no NBPG */
24648 #     ifdef NBPC
24649 #      define getpagesize() NBPC
24650 #     else /* no NBPC */
24651 #      ifdef PAGESIZE
24652 #       define getpagesize() PAGESIZE
24653 #      endif /* PAGESIZE */
24654 #     endif /* no NBPC */
24655 #    endif /* no NBPG */
24656 #   endif /* no EXEC_PAGESIZE */
24657 #  else /* no HAVE_SYS_PARAM_H */
24658 #   define getpagesize() 8192   /* punt totally */
24659 #  endif /* no HAVE_SYS_PARAM_H */
24660 # endif /* no _SC_PAGESIZE */
24661
24662 #endif /* no HAVE_GETPAGESIZE */
24663
24664 int
24665 main ()
24666 {
24667   char *data, *data2, *data3;
24668   int i, pagesize;
24669   int fd;
24670
24671   pagesize = getpagesize ();
24672
24673   /* First, make a file with some known garbage in it. */
24674   data = (char *) malloc (pagesize);
24675   if (!data)
24676     exit (1);
24677   for (i = 0; i < pagesize; ++i)
24678     *(data + i) = rand ();
24679   umask (0);
24680   fd = creat ("conftest.mmap", 0600);
24681   if (fd < 0)
24682     exit (1);
24683   if (write (fd, data, pagesize) != pagesize)
24684     exit (1);
24685   close (fd);
24686
24687   /* Next, try to mmap the file at a fixed address which already has
24688      something else allocated at it.  If we can, also make sure that
24689      we see the same garbage.  */
24690   fd = open ("conftest.mmap", O_RDWR);
24691   if (fd < 0)
24692     exit (1);
24693   data2 = (char *) malloc (2 * pagesize);
24694   if (!data2)
24695     exit (1);
24696   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24697   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24698                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24699     exit (1);
24700   for (i = 0; i < pagesize; ++i)
24701     if (*(data + i) != *(data2 + i))
24702       exit (1);
24703
24704   /* Finally, make sure that changes to the mapped area do not
24705      percolate back to the file as seen by read().  (This is a bug on
24706      some variants of i386 svr4.0.)  */
24707   for (i = 0; i < pagesize; ++i)
24708     *(data2 + i) = *(data2 + i) + 1;
24709   data3 = (char *) malloc (pagesize);
24710   if (!data3)
24711     exit (1);
24712   if (read (fd, data3, pagesize) != pagesize)
24713     exit (1);
24714   for (i = 0; i < pagesize; ++i)
24715     if (*(data + i) != *(data3 + i))
24716       exit (1);
24717   close (fd);
24718   exit (0);
24719 }
24720 _ACEOF
24721 rm -f conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723   (eval $ac_link) 2>&5
24724   ac_status=$?
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728   (eval $ac_try) 2>&5
24729   ac_status=$?
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); }; }; then
24732   ac_cv_func_mmap_fixed_mapped=yes
24733 else
24734   echo "$as_me: program exited with status $ac_status" >&5
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738 ( exit $ac_status )
24739 ac_cv_func_mmap_fixed_mapped=no
24740 fi
24741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24742 fi
24743 fi
24744 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24745 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24746 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24747
24748 cat >>confdefs.h <<\_ACEOF
24749 #define HAVE_MMAP 1
24750 _ACEOF
24751
24752 fi
24753 rm -f conftest.mmap
24754
24755 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24756 then
24757   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24758 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24759 fi
24760 echo "$as_me:$LINENO: checking for mmap of files" >&5
24761 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24762 if test "${ac_cv_func_mmap_file+set}" = set; then
24763   echo $ECHO_N "(cached) $ECHO_C" >&6
24764 else
24765    ac_ext=c
24766 ac_cpp='$CPP $CPPFLAGS'
24767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24770
24771   if test "$cross_compiling" = yes; then
24772   ac_cv_func_mmap_file=no
24773 else
24774   cat >conftest.$ac_ext <<_ACEOF
24775
24776     /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781
24782 #include <sys/types.h>
24783 #include <sys/mman.h>
24784 #include <fcntl.h>
24785
24786 int
24787 main ()
24788 {
24789
24790   int fd;
24791   fd = creat ("foo",0777);
24792   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24793   unlink ("foo");
24794   return (fd != (int) MAP_FAILED);
24795   ;
24796   return 0;
24797 }
24798 _ACEOF
24799 rm -f conftest$ac_exeext
24800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24801   (eval $ac_link) 2>&5
24802   ac_status=$?
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; }; then
24810   ac_cv_func_mmap_file=yes
24811 else
24812   echo "$as_me: program exited with status $ac_status" >&5
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816 ( exit $ac_status )
24817 ac_cv_func_mmap_file=no
24818 fi
24819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24820 fi
24821   ac_ext=c
24822 ac_cpp='$CPP $CPPFLAGS'
24823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24826
24827
24828 fi
24829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24830 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24831 if test "$ac_cv_func_mmap_file" = yes; then
24832
24833 cat >>confdefs.h <<\_ACEOF
24834 #define HAVE_MMAP_FILE
24835 _ACEOF
24836
24837    MMAP_FILE=yes
24838
24839 fi
24840
24841 if test "$ac_cv_func_mmap_file" = "no"
24842 then
24843   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24844 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24845 fi
24846
24847
24848
24849
24850
24851
24852
24853 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
24854 do
24855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24856 echo "$as_me:$LINENO: checking for $ac_func" >&5
24857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24858 if eval "test \"\${$as_ac_var+set}\" = set"; then
24859   echo $ECHO_N "(cached) $ECHO_C" >&6
24860 else
24861   cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h.  */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h.  */
24867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24869 #define $ac_func innocuous_$ac_func
24870
24871 /* System header to define __stub macros and hopefully few prototypes,
24872     which can conflict with char $ac_func (); below.
24873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24874     <limits.h> exists even on freestanding compilers.  */
24875
24876 #ifdef __STDC__
24877 # include <limits.h>
24878 #else
24879 # include <assert.h>
24880 #endif
24881
24882 #undef $ac_func
24883
24884 /* Override any gcc2 internal prototype to avoid an error.  */
24885 #ifdef __cplusplus
24886 extern "C"
24887 {
24888 #endif
24889 /* We use char because int might match the return type of a gcc2
24890    builtin and then its argument prototype would still apply.  */
24891 char $ac_func ();
24892 /* The GNU C library defines this for functions which it implements
24893     to always fail with ENOSYS.  Some functions are actually named
24894     something starting with __ and the normal name is an alias.  */
24895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24896 choke me
24897 #else
24898 char (*f) () = $ac_func;
24899 #endif
24900 #ifdef __cplusplus
24901 }
24902 #endif
24903
24904 int
24905 main ()
24906 {
24907 return f != $ac_func;
24908   ;
24909   return 0;
24910 }
24911 _ACEOF
24912 rm -f conftest.$ac_objext conftest$ac_exeext
24913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24914   (eval $ac_link) 2>conftest.er1
24915   ac_status=$?
24916   grep -v '^ *+' conftest.er1 >conftest.err
24917   rm -f conftest.er1
24918   cat conftest.err >&5
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); } &&
24921          { ac_try='test -z "$ac_c_werror_flag"
24922                          || test ! -s conftest.err'
24923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924   (eval $ac_try) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); }; } &&
24928          { ac_try='test -s conftest$ac_exeext'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; }; then
24934   eval "$as_ac_var=yes"
24935 else
24936   echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24938
24939 eval "$as_ac_var=no"
24940 fi
24941 rm -f conftest.err conftest.$ac_objext \
24942       conftest$ac_exeext conftest.$ac_ext
24943 fi
24944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24946 if test `eval echo '${'$as_ac_var'}'` = yes; then
24947   cat >>confdefs.h <<_ACEOF
24948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24949 _ACEOF
24950
24951 fi
24952 done
24953
24954
24955
24956 for ac_func in mkstemp getrusage
24957 do
24958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24959 echo "$as_me:$LINENO: checking for $ac_func" >&5
24960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24961 if eval "test \"\${$as_ac_var+set}\" = set"; then
24962   echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964   cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24972 #define $ac_func innocuous_$ac_func
24973
24974 /* System header to define __stub macros and hopefully few prototypes,
24975     which can conflict with char $ac_func (); below.
24976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977     <limits.h> exists even on freestanding compilers.  */
24978
24979 #ifdef __STDC__
24980 # include <limits.h>
24981 #else
24982 # include <assert.h>
24983 #endif
24984
24985 #undef $ac_func
24986
24987 /* Override any gcc2 internal prototype to avoid an error.  */
24988 #ifdef __cplusplus
24989 extern "C"
24990 {
24991 #endif
24992 /* We use char because int might match the return type of a gcc2
24993    builtin and then its argument prototype would still apply.  */
24994 char $ac_func ();
24995 /* The GNU C library defines this for functions which it implements
24996     to always fail with ENOSYS.  Some functions are actually named
24997     something starting with __ and the normal name is an alias.  */
24998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24999 choke me
25000 #else
25001 char (*f) () = $ac_func;
25002 #endif
25003 #ifdef __cplusplus
25004 }
25005 #endif
25006
25007 int
25008 main ()
25009 {
25010 return f != $ac_func;
25011   ;
25012   return 0;
25013 }
25014 _ACEOF
25015 rm -f conftest.$ac_objext conftest$ac_exeext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017   (eval $ac_link) 2>conftest.er1
25018   ac_status=$?
25019   grep -v '^ *+' conftest.er1 >conftest.err
25020   rm -f conftest.er1
25021   cat conftest.err >&5
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); } &&
25024          { ac_try='test -z "$ac_c_werror_flag"
25025                          || test ! -s conftest.err'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; } &&
25031          { ac_try='test -s conftest$ac_exeext'
25032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033   (eval $ac_try) 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037   eval "$as_ac_var=yes"
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 eval "$as_ac_var=no"
25043 fi
25044 rm -f conftest.err conftest.$ac_objext \
25045       conftest$ac_exeext conftest.$ac_ext
25046 fi
25047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049 if test `eval echo '${'$as_ac_var'}'` = yes; then
25050   cat >>confdefs.h <<_ACEOF
25051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25052 _ACEOF
25053
25054 fi
25055 done
25056
25057 echo "$as_me:$LINENO: checking for mprotect" >&5
25058 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25059 if test "${ac_cv_func_mprotect+set}" = set; then
25060   echo $ECHO_N "(cached) $ECHO_C" >&6
25061 else
25062   cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h.  */
25064 _ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h.  */
25068 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25070 #define mprotect innocuous_mprotect
25071
25072 /* System header to define __stub macros and hopefully few prototypes,
25073     which can conflict with char mprotect (); below.
25074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25075     <limits.h> exists even on freestanding compilers.  */
25076
25077 #ifdef __STDC__
25078 # include <limits.h>
25079 #else
25080 # include <assert.h>
25081 #endif
25082
25083 #undef mprotect
25084
25085 /* Override any gcc2 internal prototype to avoid an error.  */
25086 #ifdef __cplusplus
25087 extern "C"
25088 {
25089 #endif
25090 /* We use char because int might match the return type of a gcc2
25091    builtin and then its argument prototype would still apply.  */
25092 char mprotect ();
25093 /* The GNU C library defines this for functions which it implements
25094     to always fail with ENOSYS.  Some functions are actually named
25095     something starting with __ and the normal name is an alias.  */
25096 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25097 choke me
25098 #else
25099 char (*f) () = mprotect;
25100 #endif
25101 #ifdef __cplusplus
25102 }
25103 #endif
25104
25105 int
25106 main ()
25107 {
25108 return f != mprotect;
25109   ;
25110   return 0;
25111 }
25112 _ACEOF
25113 rm -f conftest.$ac_objext conftest$ac_exeext
25114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25115   (eval $ac_link) 2>conftest.er1
25116   ac_status=$?
25117   grep -v '^ *+' conftest.er1 >conftest.err
25118   rm -f conftest.er1
25119   cat conftest.err >&5
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); } &&
25122          { ac_try='test -z "$ac_c_werror_flag"
25123                          || test ! -s conftest.err'
25124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; } &&
25129          { ac_try='test -s conftest$ac_exeext'
25130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131   (eval $ac_try) 2>&5
25132   ac_status=$?
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); }; }; then
25135   ac_cv_func_mprotect=yes
25136 else
25137   echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_cv_func_mprotect=no
25141 fi
25142 rm -f conftest.err conftest.$ac_objext \
25143       conftest$ac_exeext conftest.$ac_ext
25144 fi
25145 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25146 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25147 if test $ac_cv_func_mprotect = yes; then
25148   :
25149 else
25150   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25151 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25152    { (exit 1); exit 1; }; }
25153 fi
25154
25155
25156 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25157 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25158 if test "${ac_cv_cxx_namespaces+set}" = set; then
25159   echo $ECHO_N "(cached) $ECHO_C" >&6
25160 else
25161   ac_ext=cc
25162 ac_cpp='$CXXCPP $CPPFLAGS'
25163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25166
25167  cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173 namespace Outer { namespace Inner { int i = 0; }}
25174 int
25175 main ()
25176 {
25177 using namespace Outer::Inner; return i;
25178   ;
25179   return 0;
25180 }
25181 _ACEOF
25182 rm -f conftest.$ac_objext
25183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184   (eval $ac_compile) 2>conftest.er1
25185   ac_status=$?
25186   grep -v '^ *+' conftest.er1 >conftest.err
25187   rm -f conftest.er1
25188   cat conftest.err >&5
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } &&
25191          { ac_try='test -z "$ac_cxx_werror_flag"
25192                          || test ! -s conftest.err'
25193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194   (eval $ac_try) 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); }; } &&
25198          { ac_try='test -s conftest.$ac_objext'
25199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200   (eval $ac_try) 2>&5
25201   ac_status=$?
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); }; }; then
25204   ac_cv_cxx_namespaces=yes
25205 else
25206   echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25208
25209 ac_cv_cxx_namespaces=no
25210 fi
25211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25212  ac_ext=c
25213 ac_cpp='$CPP $CPPFLAGS'
25214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25217
25218
25219 fi
25220 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25221 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25222 if test "$ac_cv_cxx_namespaces" = yes; then
25223
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_NAMESPACES
25226 _ACEOF
25227
25228 fi
25229
25230 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25231 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25232 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25233   echo $ECHO_N "(cached) $ECHO_C" >&6
25234 else
25235
25236   ac_ext=cc
25237 ac_cpp='$CXXCPP $CPPFLAGS'
25238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25241
25242   cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 #include <ext/hash_map>
25249 #ifdef HAVE_NAMESPACES
25250 using namespace std;
25251 #endif
25252 int
25253 main ()
25254 {
25255 hash_map<int, int> t;
25256   ;
25257   return 0;
25258 }
25259 _ACEOF
25260 rm -f conftest.$ac_objext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25262   (eval $ac_compile) 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } &&
25269          { ac_try='test -z "$ac_cxx_werror_flag"
25270                          || test ! -s conftest.err'
25271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272   (eval $ac_try) 2>&5
25273   ac_status=$?
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); }; } &&
25276          { ac_try='test -s conftest.$ac_objext'
25277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278   (eval $ac_try) 2>&5
25279   ac_status=$?
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); }; }; then
25282   ac_cv_cxx_have_std_ext_hash_map=yes
25283 else
25284   echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25286
25287 ac_cv_cxx_have_std_ext_hash_map=no
25288 fi
25289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25290   ac_ext=c
25291 ac_cpp='$CPP $CPPFLAGS'
25292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25295
25296 fi
25297 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25298 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25299  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25300  then
25301
25302 cat >>confdefs.h <<\_ACEOF
25303 #define HAVE_STD_EXT_HASH_MAP 1
25304 _ACEOF
25305
25306  else
25307
25308 cat >>confdefs.h <<\_ACEOF
25309 #define HAVE_STD_EXT_HASH_MAP 0
25310 _ACEOF
25311
25312  fi
25313
25314  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25315 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25316 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319
25320   ac_ext=cc
25321 ac_cpp='$CXXCPP $CPPFLAGS'
25322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25325
25326   cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h.  */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h.  */
25332 #include <ext/hash_map>
25333 #ifdef HAVE_NAMESPACES
25334 using namespace __gnu_cxx;
25335 #endif
25336 int
25337 main ()
25338 {
25339 hash_map<int,int> t;
25340   ;
25341   return 0;
25342 }
25343 _ACEOF
25344 rm -f conftest.$ac_objext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346   (eval $ac_compile) 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } &&
25353          { ac_try='test -z "$ac_cxx_werror_flag"
25354                          || test ! -s conftest.err'
25355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356   (eval $ac_try) 2>&5
25357   ac_status=$?
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); }; } &&
25360          { ac_try='test -s conftest.$ac_objext'
25361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); }; }; then
25366   ac_cv_cxx_have_gnu_ext_hash_map=yes
25367 else
25368   echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371 ac_cv_cxx_have_gnu_ext_hash_map=no
25372 fi
25373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25374   ac_ext=c
25375 ac_cpp='$CPP $CPPFLAGS'
25376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25379
25380 fi
25381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25382 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25383  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25384  then
25385
25386 cat >>confdefs.h <<\_ACEOF
25387 #define HAVE_GNU_EXT_HASH_MAP 1
25388 _ACEOF
25389
25390  else
25391
25392 cat >>confdefs.h <<\_ACEOF
25393 #define HAVE_GNU_EXT_HASH_MAP 0
25394 _ACEOF
25395
25396  fi
25397
25398  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25399 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25400 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403
25404   ac_ext=cc
25405 ac_cpp='$CXXCPP $CPPFLAGS'
25406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25409
25410   cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 #include <hash_map>
25417 int
25418 main ()
25419 {
25420 hash_map<int,int> t;
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 rm -f conftest.$ac_objext
25426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25427   (eval $ac_compile) 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } &&
25434          { ac_try='test -z "$ac_cxx_werror_flag"
25435                          || test ! -s conftest.err'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; } &&
25441          { ac_try='test -s conftest.$ac_objext'
25442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443   (eval $ac_try) 2>&5
25444   ac_status=$?
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); }; }; then
25447   ac_cv_cxx_have_global_hash_map=yes
25448 else
25449   echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ac_cv_cxx_have_global_hash_map=no
25453 fi
25454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25455   ac_ext=c
25456 ac_cpp='$CPP $CPPFLAGS'
25457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25460
25461 fi
25462 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25463 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25464  if test "$ac_cv_cxx_have_global_hash_map" = yes
25465  then
25466
25467 cat >>confdefs.h <<\_ACEOF
25468 #define HAVE_GLOBAL_HASH_MAP 1
25469 _ACEOF
25470
25471  else
25472
25473 cat >>confdefs.h <<\_ACEOF
25474 #define HAVE_GLOBAL_HASH_MAP 0
25475 _ACEOF
25476
25477  fi
25478
25479 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25480 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25481 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25482   echo $ECHO_N "(cached) $ECHO_C" >&6
25483 else
25484
25485   ac_ext=cc
25486 ac_cpp='$CXXCPP $CPPFLAGS'
25487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
25491   cat >conftest.$ac_ext <<_ACEOF
25492 /* confdefs.h.  */
25493 _ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h.  */
25497 #include <ext/hash_set>
25498 #ifdef HAVE_NAMESPACES
25499 using namespace std;
25500 #endif
25501 int
25502 main ()
25503 {
25504 hash_set<int> t;
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511   (eval $ac_compile) 2>conftest.er1
25512   ac_status=$?
25513   grep -v '^ *+' conftest.er1 >conftest.err
25514   rm -f conftest.er1
25515   cat conftest.err >&5
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } &&
25518          { ac_try='test -z "$ac_cxx_werror_flag"
25519                          || test ! -s conftest.err'
25520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521   (eval $ac_try) 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); }; } &&
25525          { ac_try='test -s conftest.$ac_objext'
25526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527   (eval $ac_try) 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; }; then
25531   ac_cv_cxx_have_std_ext_hash_set=yes
25532 else
25533   echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536 ac_cv_cxx_have_std_ext_hash_set=no
25537 fi
25538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25539   ac_ext=c
25540 ac_cpp='$CPP $CPPFLAGS'
25541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25544
25545 fi
25546 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25547 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25548  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25549  then
25550
25551 cat >>confdefs.h <<\_ACEOF
25552 #define HAVE_STD_EXT_HASH_SET 1
25553 _ACEOF
25554
25555  else
25556
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_STD_EXT_HASH_SET 0
25559 _ACEOF
25560
25561  fi
25562
25563  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25564 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25565 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568
25569   ac_ext=cc
25570 ac_cpp='$CXXCPP $CPPFLAGS'
25571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25574
25575   cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h.  */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h.  */
25581 #include <ext/hash_set>
25582 #ifdef HAVE_NAMESPACES
25583 using namespace __gnu_cxx;
25584 #endif
25585 int
25586 main ()
25587 {
25588 hash_set<int> t;
25589   ;
25590   return 0;
25591 }
25592 _ACEOF
25593 rm -f conftest.$ac_objext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595   (eval $ac_compile) 2>conftest.er1
25596   ac_status=$?
25597   grep -v '^ *+' conftest.er1 >conftest.err
25598   rm -f conftest.er1
25599   cat conftest.err >&5
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } &&
25602          { ac_try='test -z "$ac_cxx_werror_flag"
25603                          || test ! -s conftest.err'
25604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605   (eval $ac_try) 2>&5
25606   ac_status=$?
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); }; } &&
25609          { ac_try='test -s conftest.$ac_objext'
25610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611   (eval $ac_try) 2>&5
25612   ac_status=$?
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); }; }; then
25615   ac_cv_cxx_have_gnu_ext_hash_set=yes
25616 else
25617   echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25619
25620 ac_cv_cxx_have_gnu_ext_hash_set=no
25621 fi
25622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25623   ac_ext=c
25624 ac_cpp='$CPP $CPPFLAGS'
25625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25628
25629 fi
25630 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25631 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25632  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25633  then
25634
25635 cat >>confdefs.h <<\_ACEOF
25636 #define HAVE_GNU_EXT_HASH_SET 1
25637 _ACEOF
25638
25639  else
25640
25641 cat >>confdefs.h <<\_ACEOF
25642 #define HAVE_GNU_EXT_HASH_SET 0
25643 _ACEOF
25644
25645  fi
25646
25647  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25648 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25649 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25650   echo $ECHO_N "(cached) $ECHO_C" >&6
25651 else
25652
25653   ac_ext=cc
25654 ac_cpp='$CXXCPP $CPPFLAGS'
25655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25658
25659   cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 #include <hash_set>
25666 int
25667 main ()
25668 {
25669 hash_set<int> t; return 0;
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676   (eval $ac_compile) 2>conftest.er1
25677   ac_status=$?
25678   grep -v '^ *+' conftest.er1 >conftest.err
25679   rm -f conftest.er1
25680   cat conftest.err >&5
25681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); } &&
25683          { ac_try='test -z "$ac_cxx_werror_flag"
25684                          || test ! -s conftest.err'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; } &&
25690          { ac_try='test -s conftest.$ac_objext'
25691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692   (eval $ac_try) 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; }; then
25696   ac_cv_cxx_have_global_hash_set=yes
25697 else
25698   echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25700
25701 ac_cv_cxx_have_global_hash_set=no
25702 fi
25703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25704   ac_ext=c
25705 ac_cpp='$CPP $CPPFLAGS'
25706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25709
25710 fi
25711 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25712 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25713  if test "$ac_cv_cxx_have_global_hash_set" = yes
25714  then
25715
25716 cat >>confdefs.h <<\_ACEOF
25717 #define HAVE_GLOBAL_HASH_SET 1
25718 _ACEOF
25719
25720  else
25721
25722 cat >>confdefs.h <<\_ACEOF
25723 #define HAVE_GLOBAL_HASH_SET 0
25724 _ACEOF
25725
25726  fi
25727
25728 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25729 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25730 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733
25734   ac_ext=cc
25735 ac_cpp='$CXXCPP $CPPFLAGS'
25736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25739
25740   cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h.  */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h.  */
25746 #include <iterator>
25747 #ifdef HAVE_NAMESPACES
25748 using namespace std;
25749 #endif
25750 int
25751 main ()
25752 {
25753 iterator<int,int,int> t; return 0;
25754   ;
25755   return 0;
25756 }
25757 _ACEOF
25758 rm -f conftest.$ac_objext
25759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25760   (eval $ac_compile) 2>conftest.er1
25761   ac_status=$?
25762   grep -v '^ *+' conftest.er1 >conftest.err
25763   rm -f conftest.er1
25764   cat conftest.err >&5
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); } &&
25767          { ac_try='test -z "$ac_cxx_werror_flag"
25768                          || test ! -s conftest.err'
25769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770   (eval $ac_try) 2>&5
25771   ac_status=$?
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); }; } &&
25774          { ac_try='test -s conftest.$ac_objext'
25775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776   (eval $ac_try) 2>&5
25777   ac_status=$?
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); }; }; then
25780   ac_cv_cxx_have_std_iterator=yes
25781 else
25782   echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25784
25785 ac_cv_cxx_have_std_iterator=no
25786 fi
25787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788   ac_ext=c
25789 ac_cpp='$CPP $CPPFLAGS'
25790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25793
25794
25795 fi
25796 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
25797 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
25798 if test "$ac_cv_cxx_have_std_iterator" = yes
25799 then
25800
25801 cat >>confdefs.h <<\_ACEOF
25802 #define HAVE_STD_ITERATOR 1
25803 _ACEOF
25804
25805 else
25806
25807 cat >>confdefs.h <<\_ACEOF
25808 #define HAVE_STD_ITERATOR 0
25809 _ACEOF
25810
25811 fi
25812
25813 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
25814 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
25815 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818
25819   ac_ext=cc
25820 ac_cpp='$CXXCPP $CPPFLAGS'
25821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25824
25825   cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h.  */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h.  */
25831 #include <iterator>
25832 #ifdef HAVE_NAMESPACES
25833 using namespace std;
25834 #endif
25835 int
25836 main ()
25837 {
25838 bidirectional_iterator<int,int> t; return 0;
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845   (eval $ac_compile) 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } &&
25852          { ac_try='test -z "$ac_cxx_werror_flag"
25853                          || test ! -s conftest.err'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; } &&
25859          { ac_try='test -s conftest.$ac_objext'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; }; then
25865   ac_cv_cxx_have_bi_iterator=yes
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870 ac_cv_cxx_have_bi_iterator=no
25871 fi
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873   ac_ext=c
25874 ac_cpp='$CPP $CPPFLAGS'
25875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25878
25879
25880 fi
25881 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
25882 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
25883 if test "$ac_cv_cxx_have_bi_iterator" = yes
25884 then
25885
25886 cat >>confdefs.h <<\_ACEOF
25887 #define HAVE_BI_ITERATOR 1
25888 _ACEOF
25889
25890 else
25891
25892 cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_BI_ITERATOR 0
25894 _ACEOF
25895
25896 fi
25897
25898 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
25899 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
25900 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903
25904   ac_ext=cc
25905 ac_cpp='$CXXCPP $CPPFLAGS'
25906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25909
25910   cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916 #include <iterator>
25917 #ifdef HAVE_NAMESPACES
25918 using namespace std;
25919 #endif
25920 int
25921 main ()
25922 {
25923 forward_iterator<int,int> t; return 0;
25924   ;
25925   return 0;
25926 }
25927 _ACEOF
25928 rm -f conftest.$ac_objext
25929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25930   (eval $ac_compile) 2>conftest.er1
25931   ac_status=$?
25932   grep -v '^ *+' conftest.er1 >conftest.err
25933   rm -f conftest.er1
25934   cat conftest.err >&5
25935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936   (exit $ac_status); } &&
25937          { ac_try='test -z "$ac_cxx_werror_flag"
25938                          || test ! -s conftest.err'
25939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940   (eval $ac_try) 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); }; } &&
25944          { ac_try='test -s conftest.$ac_objext'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; }; then
25950   ac_cv_cxx_have_fwd_iterator=yes
25951 else
25952   echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 ac_cv_cxx_have_fwd_iterator=no
25956 fi
25957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958   ac_ext=c
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964
25965 fi
25966 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
25967 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
25968 if test "$ac_cv_cxx_have_fwd_iterator" = yes
25969 then
25970
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_FWD_ITERATOR 1
25973 _ACEOF
25974
25975 else
25976
25977 cat >>confdefs.h <<\_ACEOF
25978 #define HAVE_FWD_ITERATOR 0
25979 _ACEOF
25980
25981 fi
25982
25983
25984
25985   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
25986 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
25987   ac_ext=c
25988 ac_cpp='$CPP $CPPFLAGS'
25989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25992
25993   oldcflags="$CFLAGS"
25994   CFLAGS="$CFLAGS -Wl,-R."
25995   cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001
26002 int
26003 main ()
26004 {
26005 int main() { return 0; }
26006   ;
26007   return 0;
26008 }
26009 _ACEOF
26010 rm -f conftest.$ac_objext conftest$ac_exeext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012   (eval $ac_link) 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } &&
26019          { ac_try='test -z "$ac_c_werror_flag"
26020                          || test ! -s conftest.err'
26021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022   (eval $ac_try) 2>&5
26023   ac_status=$?
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); }; } &&
26026          { ac_try='test -s conftest$ac_exeext'
26027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028   (eval $ac_try) 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); }; }; then
26032   ac_cv_link_use_r=yes
26033 else
26034   echo "$as_me: failed program was:" >&5
26035 sed 's/^/| /' conftest.$ac_ext >&5
26036
26037 ac_cv_link_use_r=no
26038 fi
26039 rm -f conftest.err conftest.$ac_objext \
26040       conftest$ac_exeext conftest.$ac_ext
26041   CFLAGS="$oldcflags"
26042   ac_ext=c
26043 ac_cpp='$CPP $CPPFLAGS'
26044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26049 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26050   if test "$ac_cv_link_use_r" = yes
26051   then
26052
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_LINK_R 1
26055 _ACEOF
26056
26057   fi
26058
26059
26060
26061 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26062
26063 cat >>confdefs.h <<\_ACEOF
26064 #define HAVE_ZLIB 1
26065 _ACEOF
26066
26067   HAVE_ZLIB=1
26068
26069 else
26070   HAVE_ZLIB=0
26071
26072 fi
26073 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26074
26075 cat >>confdefs.h <<\_ACEOF
26076 #define HAVE_BZIP2 1
26077 _ACEOF
26078
26079   HAVE_BZIP2=1
26080
26081 else
26082   HAVE_BZIP2=0
26083
26084 fi
26085
26086 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26087 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26088 eval "SHLIBEXT=$shrext_cmds"
26089 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26090 echo "${ECHO_T}$SHLIBEXT" >&6
26091
26092 SHLIBEXT=$SHLIBEXT
26093
26094
26095 cat >>confdefs.h <<_ACEOF
26096 #define SHLIBEXT "$SHLIBEXT"
26097 _ACEOF
26098
26099
26100 # Translate the various configuration directories and other basic
26101 # information into substitutions that will end up in config.h.in so
26102 # that these configured values can be hard-wired into a program.
26103 eval LLVM_PREFIX="${prefix}";
26104 eval LLVM_BINDIR="${prefix}/bin";
26105 eval LLVM_LIBDIR="${prefix}/lib";
26106 eval LLVM_DATADIR="${prefix}/data";
26107 eval LLVM_DOCSDIR="${prefix}/docs";
26108 eval LLVM_ETCDIR="${prefix}/etc";
26109 eval LLVM_INCLUDEDIR="${prefix}/include";
26110 eval LLVM_INFODIR="${prefix}/info";
26111 eval LLVM_MANDIR="${prefix}/man";
26112 LLVM_CONFIGTIME=`date`
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126 cat >>confdefs.h <<_ACEOF
26127 #define LLVM_PREFIX "$LLVM_PREFIX"
26128 _ACEOF
26129
26130
26131 cat >>confdefs.h <<_ACEOF
26132 #define LLVM_BINDIR "$LLVM_BINDIR"
26133 _ACEOF
26134
26135
26136 cat >>confdefs.h <<_ACEOF
26137 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26138 _ACEOF
26139
26140
26141 cat >>confdefs.h <<_ACEOF
26142 #define LLVM_DATADIR "$LLVM_DATADIR"
26143 _ACEOF
26144
26145
26146 cat >>confdefs.h <<_ACEOF
26147 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26148 _ACEOF
26149
26150
26151 cat >>confdefs.h <<_ACEOF
26152 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26153 _ACEOF
26154
26155
26156 cat >>confdefs.h <<_ACEOF
26157 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26158 _ACEOF
26159
26160
26161 cat >>confdefs.h <<_ACEOF
26162 #define LLVM_INFODIR "$LLVM_INFODIR"
26163 _ACEOF
26164
26165
26166 cat >>confdefs.h <<_ACEOF
26167 #define LLVM_MANDIR "$LLVM_MANDIR"
26168 _ACEOF
26169
26170
26171 cat >>confdefs.h <<_ACEOF
26172 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26173 _ACEOF
26174
26175
26176
26177           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26178
26179           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26180
26181           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26182
26183           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26184
26185           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26186
26187           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26188
26189
26190           ac_config_files="$ac_config_files Makefile"
26191
26192           ac_config_files="$ac_config_files Makefile.rules"
26193
26194           ac_config_files="$ac_config_files lib/Makefile"
26195
26196           ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26197
26198           ac_config_files="$ac_config_files lib/Analysis/Makefile"
26199
26200           ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26201
26202           ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26203
26204           ac_config_files="$ac_config_files lib/System/Makefile"
26205
26206           ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26207
26208           ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26209
26210           ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26211
26212           ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26213
26214           ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26215
26216           ac_config_files="$ac_config_files lib/CodeGen/ModuloScheduling/Makefile"
26217
26218           ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26219
26220           ac_config_files="$ac_config_files lib/Debugger/Makefile"
26221
26222           ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26223
26224           ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26225
26226           ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26227
26228           ac_config_files="$ac_config_files lib/Support/Makefile"
26229
26230           ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26231
26232           ac_config_files="$ac_config_files lib/Target/Makefile"
26233
26234           ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26235
26236           ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26237
26238           ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26239
26240           ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26241
26242           ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26243
26244           ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26245
26246           ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26247
26248           ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26249
26250           ac_config_files="$ac_config_files lib/Transforms/Makefile"
26251
26252           ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26253
26254           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26255
26256           ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26257
26258           ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26259
26260           ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26261
26262           ac_config_files="$ac_config_files lib/VMCore/Makefile"
26263
26264           ac_config_files="$ac_config_files utils/Makefile"
26265
26266           ac_config_files="$ac_config_files utils/Burg/Makefile"
26267
26268           ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26269
26270           ac_config_files="$ac_config_files utils/TableGen/Makefile"
26271
26272           ac_config_files="$ac_config_files tools/Makefile"
26273
26274           ac_config_files="$ac_config_files tools/analyze/Makefile"
26275
26276           ac_config_files="$ac_config_files tools/llvmc/Makefile"
26277
26278           ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26279
26280           ac_config_files="$ac_config_files tools/extract/Makefile"
26281
26282           ac_config_files="$ac_config_files tools/gccas/Makefile"
26283
26284           ac_config_files="$ac_config_files tools/gccld/Makefile"
26285
26286           ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26287
26288           ac_config_files="$ac_config_files tools/llc/Makefile"
26289
26290           ac_config_files="$ac_config_files tools/llee/Makefile"
26291
26292           ac_config_files="$ac_config_files tools/lli/Makefile"
26293
26294           ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26295
26296           ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26297
26298           ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26299
26300           ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26301
26302           ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26303
26304           ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26305
26306           ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26307
26308           ac_config_files="$ac_config_files tools/opt/Makefile"
26309
26310           ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26311
26312           ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26313
26314
26315           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26316
26317
26318 for i in `ls ${srcdir}/projects`
26319 do
26320   if test -d ${srcdir}/projects/${i} ; then
26321     case ${i} in
26322       "CVS") ;;
26323       "sample")
26324
26325 subdirs="$subdirs projects/sample"
26326     ;;
26327       "Stacker")
26328
26329 subdirs="$subdirs projects/Stacker"
26330    ;;
26331       "llvm-test")
26332
26333 subdirs="$subdirs projects/llvm-test"
26334  ;;
26335       "llvm-reopt")
26336
26337 subdirs="$subdirs projects/llvm-reopt"
26338 ;;
26339       "llvm-gcc")
26340
26341 subdirs="$subdirs projects/llvm-gcc"
26342   ;;
26343       "Java")
26344
26345 subdirs="$subdirs projects/Java"
26346       ;;
26347       "llvm-tv")
26348
26349 subdirs="$subdirs projects/llvm-tv"
26350    ;;
26351       "llvm-fefw")
26352
26353 subdirs="$subdirs projects/llvm-fefw"
26354  ;;
26355       *)
26356         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26357 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26358         ;;
26359     esac
26360   fi
26361 done
26362 cat >confcache <<\_ACEOF
26363 # This file is a shell script that caches the results of configure
26364 # tests run on this system so they can be shared between configure
26365 # scripts and configure runs, see configure's option --config-cache.
26366 # It is not useful on other systems.  If it contains results you don't
26367 # want to keep, you may remove or edit it.
26368 #
26369 # config.status only pays attention to the cache file if you give it
26370 # the --recheck option to rerun configure.
26371 #
26372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26374 # following values.
26375
26376 _ACEOF
26377
26378 # The following way of writing the cache mishandles newlines in values,
26379 # but we know of no workaround that is simple, portable, and efficient.
26380 # So, don't put newlines in cache variables' values.
26381 # Ultrix sh set writes to stderr and can't be redirected directly,
26382 # and sets the high bit in the cache file unless we assign to the vars.
26383 {
26384   (set) 2>&1 |
26385     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26386     *ac_space=\ *)
26387       # `set' does not quote correctly, so add quotes (double-quote
26388       # substitution turns \\\\ into \\, and sed turns \\ into \).
26389       sed -n \
26390         "s/'/'\\\\''/g;
26391           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26392       ;;
26393     *)
26394       # `set' quotes correctly as required by POSIX, so do not add quotes.
26395       sed -n \
26396         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26397       ;;
26398     esac;
26399 } |
26400   sed '
26401      t clear
26402      : clear
26403      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26404      t end
26405      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26406      : end' >>confcache
26407 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26408   if test -w $cache_file; then
26409     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26410     cat confcache >$cache_file
26411   else
26412     echo "not updating unwritable cache $cache_file"
26413   fi
26414 fi
26415 rm -f confcache
26416
26417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26418 # Let make expand exec_prefix.
26419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26420
26421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26423 # trailing colons and then remove the whole line if VPATH becomes empty
26424 # (actually we leave an empty line to preserve line numbers).
26425 if test "x$srcdir" = x.; then
26426   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26427 s/:*\$(srcdir):*/:/;
26428 s/:*\${srcdir}:*/:/;
26429 s/:*@srcdir@:*/:/;
26430 s/^\([^=]*=[     ]*\):*/\1/;
26431 s/:*$//;
26432 s/^[^=]*=[       ]*$//;
26433 }'
26434 fi
26435
26436 DEFS=-DHAVE_CONFIG_H
26437
26438 ac_libobjs=
26439 ac_ltlibobjs=
26440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26441   # 1. Remove the extension, and $U if already installed.
26442   ac_i=`echo "$ac_i" |
26443          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26444   # 2. Add them.
26445   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26446   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26447 done
26448 LIBOBJS=$ac_libobjs
26449
26450 LTLIBOBJS=$ac_ltlibobjs
26451
26452
26453 if test -z "${ENABLE_OPTIMIZED_TRUE}" && test -z "${ENABLE_OPTIMIZED_FALSE}"; then
26454   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26455 Usually this means the macro was only invoked conditionally." >&5
26456 echo "$as_me: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&2;}
26458    { (exit 1); exit 1; }; }
26459 fi
26460 if test -z "${ENABLE_PROFILED_TRUE}" && test -z "${ENABLE_PROFILED_FALSE}"; then
26461   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROFILED\" was never defined.
26462 Usually this means the macro was only invoked conditionally." >&5
26463 echo "$as_me: error: conditional \"ENABLE_PROFILED\" was never defined.
26464 Usually this means the macro was only invoked conditionally." >&2;}
26465    { (exit 1); exit 1; }; }
26466 fi
26467 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26468   { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26469 Usually this means the macro was only invoked conditionally." >&5
26470 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26471 Usually this means the macro was only invoked conditionally." >&2;}
26472    { (exit 1); exit 1; }; }
26473 fi
26474 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26475   { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26476 Usually this means the macro was only invoked conditionally." >&5
26477 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26478 Usually this means the macro was only invoked conditionally." >&2;}
26479    { (exit 1); exit 1; }; }
26480 fi
26481 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26482   { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26483 Usually this means the macro was only invoked conditionally." >&5
26484 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26485 Usually this means the macro was only invoked conditionally." >&2;}
26486    { (exit 1); exit 1; }; }
26487 fi
26488 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26489   { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26490 Usually this means the macro was only invoked conditionally." >&5
26491 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26492 Usually this means the macro was only invoked conditionally." >&2;}
26493    { (exit 1); exit 1; }; }
26494 fi
26495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26496   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26497 Usually this means the macro was only invoked conditionally." >&5
26498 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26499 Usually this means the macro was only invoked conditionally." >&2;}
26500    { (exit 1); exit 1; }; }
26501 fi
26502 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26503   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26504 Usually this means the macro was only invoked conditionally." >&5
26505 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26506 Usually this means the macro was only invoked conditionally." >&2;}
26507    { (exit 1); exit 1; }; }
26508 fi
26509 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26510   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26511 Usually this means the macro was only invoked conditionally." >&5
26512 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26513 Usually this means the macro was only invoked conditionally." >&2;}
26514    { (exit 1); exit 1; }; }
26515 fi
26516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26517   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26518 Usually this means the macro was only invoked conditionally." >&5
26519 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26520 Usually this means the macro was only invoked conditionally." >&2;}
26521    { (exit 1); exit 1; }; }
26522 fi
26523
26524 : ${CONFIG_STATUS=./config.status}
26525 ac_clean_files_save=$ac_clean_files
26526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26527 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26528 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26529 cat >$CONFIG_STATUS <<_ACEOF
26530 #! $SHELL
26531 # Generated by $as_me.
26532 # Run this file to recreate the current configuration.
26533 # Compiler output produced by configure, useful for debugging
26534 # configure, is in config.log if it exists.
26535
26536 debug=false
26537 ac_cs_recheck=false
26538 ac_cs_silent=false
26539 SHELL=\${CONFIG_SHELL-$SHELL}
26540 _ACEOF
26541
26542 cat >>$CONFIG_STATUS <<\_ACEOF
26543 ## --------------------- ##
26544 ## M4sh Initialization.  ##
26545 ## --------------------- ##
26546
26547 # Be Bourne compatible
26548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26549   emulate sh
26550   NULLCMD=:
26551   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26552   # is contrary to our usage.  Disable this feature.
26553   alias -g '${1+"$@"}'='"$@"'
26554 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26555   set -o posix
26556 fi
26557 DUALCASE=1; export DUALCASE # for MKS sh
26558
26559 # Support unset when possible.
26560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26561   as_unset=unset
26562 else
26563   as_unset=false
26564 fi
26565
26566
26567 # Work around bugs in pre-3.0 UWIN ksh.
26568 $as_unset ENV MAIL MAILPATH
26569 PS1='$ '
26570 PS2='> '
26571 PS4='+ '
26572
26573 # NLS nuisances.
26574 for as_var in \
26575   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26576   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26577   LC_TELEPHONE LC_TIME
26578 do
26579   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26580     eval $as_var=C; export $as_var
26581   else
26582     $as_unset $as_var
26583   fi
26584 done
26585
26586 # Required to use basename.
26587 if expr a : '\(a\)' >/dev/null 2>&1; then
26588   as_expr=expr
26589 else
26590   as_expr=false
26591 fi
26592
26593 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26594   as_basename=basename
26595 else
26596   as_basename=false
26597 fi
26598
26599
26600 # Name of the executable.
26601 as_me=`$as_basename "$0" ||
26602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26603          X"$0" : 'X\(//\)$' \| \
26604          X"$0" : 'X\(/\)$' \| \
26605          .     : '\(.\)' 2>/dev/null ||
26606 echo X/"$0" |
26607     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26608           /^X\/\(\/\/\)$/{ s//\1/; q; }
26609           /^X\/\(\/\).*/{ s//\1/; q; }
26610           s/.*/./; q'`
26611
26612
26613 # PATH needs CR, and LINENO needs CR and PATH.
26614 # Avoid depending upon Character Ranges.
26615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26618 as_cr_digits='0123456789'
26619 as_cr_alnum=$as_cr_Letters$as_cr_digits
26620
26621 # The user is always right.
26622 if test "${PATH_SEPARATOR+set}" != set; then
26623   echo "#! /bin/sh" >conf$$.sh
26624   echo  "exit 0"   >>conf$$.sh
26625   chmod +x conf$$.sh
26626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26627     PATH_SEPARATOR=';'
26628   else
26629     PATH_SEPARATOR=:
26630   fi
26631   rm -f conf$$.sh
26632 fi
26633
26634
26635   as_lineno_1=$LINENO
26636   as_lineno_2=$LINENO
26637   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26638   test "x$as_lineno_1" != "x$as_lineno_2" &&
26639   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26640   # Find who we are.  Look in the path if we contain no path at all
26641   # relative or not.
26642   case $0 in
26643     *[\\/]* ) as_myself=$0 ;;
26644     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26645 for as_dir in $PATH
26646 do
26647   IFS=$as_save_IFS
26648   test -z "$as_dir" && as_dir=.
26649   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26650 done
26651
26652        ;;
26653   esac
26654   # We did not find ourselves, most probably we were run as `sh COMMAND'
26655   # in which case we are not to be found in the path.
26656   if test "x$as_myself" = x; then
26657     as_myself=$0
26658   fi
26659   if test ! -f "$as_myself"; then
26660     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26661 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26662    { (exit 1); exit 1; }; }
26663   fi
26664   case $CONFIG_SHELL in
26665   '')
26666     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26667 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26668 do
26669   IFS=$as_save_IFS
26670   test -z "$as_dir" && as_dir=.
26671   for as_base in sh bash ksh sh5; do
26672          case $as_dir in
26673          /*)
26674            if ("$as_dir/$as_base" -c '
26675   as_lineno_1=$LINENO
26676   as_lineno_2=$LINENO
26677   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26678   test "x$as_lineno_1" != "x$as_lineno_2" &&
26679   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26680              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26681              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26682              CONFIG_SHELL=$as_dir/$as_base
26683              export CONFIG_SHELL
26684              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26685            fi;;
26686          esac
26687        done
26688 done
26689 ;;
26690   esac
26691
26692   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26693   # uniformly replaced by the line number.  The first 'sed' inserts a
26694   # line-number line before each line; the second 'sed' does the real
26695   # work.  The second script uses 'N' to pair each line-number line
26696   # with the numbered line, and appends trailing '-' during
26697   # substitution so that $LINENO is not a special case at line end.
26698   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26699   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26700   sed '=' <$as_myself |
26701     sed '
26702       N
26703       s,$,-,
26704       : loop
26705       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26706       t loop
26707       s,-$,,
26708       s,^['$as_cr_digits']*\n,,
26709     ' >$as_me.lineno &&
26710   chmod +x $as_me.lineno ||
26711     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26712 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26713    { (exit 1); exit 1; }; }
26714
26715   # Don't try to exec as it changes $[0], causing all sort of problems
26716   # (the dirname of $[0] is not the place where we might find the
26717   # original and so on.  Autoconf is especially sensible to this).
26718   . ./$as_me.lineno
26719   # Exit status is that of the last command.
26720   exit
26721 }
26722
26723
26724 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26725   *c*,-n*) ECHO_N= ECHO_C='
26726 ' ECHO_T='      ' ;;
26727   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26728   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26729 esac
26730
26731 if expr a : '\(a\)' >/dev/null 2>&1; then
26732   as_expr=expr
26733 else
26734   as_expr=false
26735 fi
26736
26737 rm -f conf$$ conf$$.exe conf$$.file
26738 echo >conf$$.file
26739 if ln -s conf$$.file conf$$ 2>/dev/null; then
26740   # We could just check for DJGPP; but this test a) works b) is more generic
26741   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26742   if test -f conf$$.exe; then
26743     # Don't use ln at all; we don't have any links
26744     as_ln_s='cp -p'
26745   else
26746     as_ln_s='ln -s'
26747   fi
26748 elif ln conf$$.file conf$$ 2>/dev/null; then
26749   as_ln_s=ln
26750 else
26751   as_ln_s='cp -p'
26752 fi
26753 rm -f conf$$ conf$$.exe conf$$.file
26754
26755 if mkdir -p . 2>/dev/null; then
26756   as_mkdir_p=:
26757 else
26758   test -d ./-p && rmdir ./-p
26759   as_mkdir_p=false
26760 fi
26761
26762 as_executable_p="test -f"
26763
26764 # Sed expression to map a string onto a valid CPP name.
26765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26766
26767 # Sed expression to map a string onto a valid variable name.
26768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26769
26770
26771 # IFS
26772 # We need space, tab and new line, in precisely that order.
26773 as_nl='
26774 '
26775 IFS="   $as_nl"
26776
26777 # CDPATH.
26778 $as_unset CDPATH
26779
26780 exec 6>&1
26781
26782 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26783 # report actual input values of CONFIG_FILES etc. instead of their
26784 # values after options handling.  Logging --version etc. is OK.
26785 exec 5>>config.log
26786 {
26787   echo
26788   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26789 ## Running $as_me. ##
26790 _ASBOX
26791 } >&5
26792 cat >&5 <<_CSEOF
26793
26794 This file was extended by LLVM $as_me 1.4, which was
26795 generated by GNU Autoconf 2.59.  Invocation command line was
26796
26797   CONFIG_FILES    = $CONFIG_FILES
26798   CONFIG_HEADERS  = $CONFIG_HEADERS
26799   CONFIG_LINKS    = $CONFIG_LINKS
26800   CONFIG_COMMANDS = $CONFIG_COMMANDS
26801   $ $0 $@
26802
26803 _CSEOF
26804 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26805 echo >&5
26806 _ACEOF
26807
26808 # Files that config.status was made for.
26809 if test -n "$ac_config_files"; then
26810   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26811 fi
26812
26813 if test -n "$ac_config_headers"; then
26814   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26815 fi
26816
26817 if test -n "$ac_config_links"; then
26818   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26819 fi
26820
26821 if test -n "$ac_config_commands"; then
26822   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26823 fi
26824
26825 cat >>$CONFIG_STATUS <<\_ACEOF
26826
26827 ac_cs_usage="\
26828 \`$as_me' instantiates files from templates according to the
26829 current configuration.
26830
26831 Usage: $0 [OPTIONS] [FILE]...
26832
26833   -h, --help       print this help, then exit
26834   -V, --version    print version number, then exit
26835   -q, --quiet      do not print progress messages
26836   -d, --debug      don't remove temporary files
26837       --recheck    update $as_me by reconfiguring in the same conditions
26838   --file=FILE[:TEMPLATE]
26839                    instantiate the configuration file FILE
26840   --header=FILE[:TEMPLATE]
26841                    instantiate the configuration header FILE
26842
26843 Configuration files:
26844 $config_files
26845
26846 Configuration headers:
26847 $config_headers
26848
26849 Configuration links:
26850 $config_links
26851
26852 Configuration commands:
26853 $config_commands
26854
26855 Report bugs to <bug-autoconf@gnu.org>."
26856 _ACEOF
26857
26858 cat >>$CONFIG_STATUS <<_ACEOF
26859 ac_cs_version="\\
26860 LLVM config.status 1.4
26861 configured by $0, generated by GNU Autoconf 2.59,
26862   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26863
26864 Copyright (C) 2003 Free Software Foundation, Inc.
26865 This config.status script is free software; the Free Software Foundation
26866 gives unlimited permission to copy, distribute and modify it."
26867 srcdir=$srcdir
26868 INSTALL="$INSTALL"
26869 _ACEOF
26870
26871 cat >>$CONFIG_STATUS <<\_ACEOF
26872 # If no file are specified by the user, then we need to provide default
26873 # value.  By we need to know if files were specified by the user.
26874 ac_need_defaults=:
26875 while test $# != 0
26876 do
26877   case $1 in
26878   --*=*)
26879     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26880     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26881     ac_shift=:
26882     ;;
26883   -*)
26884     ac_option=$1
26885     ac_optarg=$2
26886     ac_shift=shift
26887     ;;
26888   *) # This is not an option, so the user has probably given explicit
26889      # arguments.
26890      ac_option=$1
26891      ac_need_defaults=false;;
26892   esac
26893
26894   case $ac_option in
26895   # Handling of the options.
26896 _ACEOF
26897 cat >>$CONFIG_STATUS <<\_ACEOF
26898   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26899     ac_cs_recheck=: ;;
26900   --version | --vers* | -V )
26901     echo "$ac_cs_version"; exit 0 ;;
26902   --he | --h)
26903     # Conflict between --help and --header
26904     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26905 Try \`$0 --help' for more information." >&5
26906 echo "$as_me: error: ambiguous option: $1
26907 Try \`$0 --help' for more information." >&2;}
26908    { (exit 1); exit 1; }; };;
26909   --help | --hel | -h )
26910     echo "$ac_cs_usage"; exit 0 ;;
26911   --debug | --d* | -d )
26912     debug=: ;;
26913   --file | --fil | --fi | --f )
26914     $ac_shift
26915     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26916     ac_need_defaults=false;;
26917   --header | --heade | --head | --hea )
26918     $ac_shift
26919     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26920     ac_need_defaults=false;;
26921   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26922   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26923     ac_cs_silent=: ;;
26924
26925   # This is an error.
26926   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26927 Try \`$0 --help' for more information." >&5
26928 echo "$as_me: error: unrecognized option: $1
26929 Try \`$0 --help' for more information." >&2;}
26930    { (exit 1); exit 1; }; } ;;
26931
26932   *) ac_config_targets="$ac_config_targets $1" ;;
26933
26934   esac
26935   shift
26936 done
26937
26938 ac_configure_extra_args=
26939
26940 if $ac_cs_silent; then
26941   exec 6>/dev/null
26942   ac_configure_extra_args="$ac_configure_extra_args --silent"
26943 fi
26944
26945 _ACEOF
26946 cat >>$CONFIG_STATUS <<_ACEOF
26947 if \$ac_cs_recheck; then
26948   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26949   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26950 fi
26951
26952 _ACEOF
26953
26954 cat >>$CONFIG_STATUS <<_ACEOF
26955 #
26956 # INIT-COMMANDS section.
26957 #
26958
26959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26960
26961 _ACEOF
26962
26963
26964
26965 cat >>$CONFIG_STATUS <<\_ACEOF
26966 for ac_config_target in $ac_config_targets
26967 do
26968   case "$ac_config_target" in
26969   # Handling of arguments.
26970   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26971   "Makefile.rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.rules" ;;
26972   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26973   "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
26974   "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
26975   "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
26976   "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
26977   "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
26978   "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
26979   "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
26980   "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
26981   "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
26982   "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
26983   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/ModuloScheduling/Makefile" ;;
26984   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
26985   "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
26986   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
26987   "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
26988   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
26989   "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
26990   "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
26991   "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
26992   "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
26993   "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
26994   "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
26995   "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
26996   "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
26997   "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
26998   "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
26999   "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27000   "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27001   "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27002   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27003   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27004   "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27005   "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27006   "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27007   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27008   "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27009   "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27010   "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27011   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27012   "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27013   "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27014   "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27015   "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27016   "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27017   "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27018   "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27019   "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27020   "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27021   "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27022   "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27023   "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27024   "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27025   "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27026   "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27027   "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27028   "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27029   "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27030   "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27031   "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27032   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27033   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27034   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27035   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27036   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27037   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27038   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27039   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27040   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27041 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27042    { (exit 1); exit 1; }; };;
27043   esac
27044 done
27045
27046 # If the user did not use the arguments to specify the items to instantiate,
27047 # then the envvar interface is used.  Set only those that are not.
27048 # We use the long form for the default assignment because of an extremely
27049 # bizarre bug on SunOS 4.1.3.
27050 if $ac_need_defaults; then
27051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27052   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27053   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27055 fi
27056
27057 # Have a temporary directory for convenience.  Make it in the build tree
27058 # simply because there is no reason to put it here, and in addition,
27059 # creating and moving files from /tmp can sometimes cause problems.
27060 # Create a temporary directory, and hook for its removal unless debugging.
27061 $debug ||
27062 {
27063   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27064   trap '{ (exit 1); exit 1; }' 1 2 13 15
27065 }
27066
27067 # Create a (secure) tmp directory for tmp files.
27068
27069 {
27070   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27071   test -n "$tmp" && test -d "$tmp"
27072 }  ||
27073 {
27074   tmp=./confstat$$-$RANDOM
27075   (umask 077 && mkdir $tmp)
27076 } ||
27077 {
27078    echo "$me: cannot create a temporary directory in ." >&2
27079    { (exit 1); exit 1; }
27080 }
27081
27082 _ACEOF
27083
27084 cat >>$CONFIG_STATUS <<_ACEOF
27085
27086 #
27087 # CONFIG_FILES section.
27088 #
27089
27090 # No need to generate the scripts if there are no CONFIG_FILES.
27091 # This happens for instance when ./config.status config.h
27092 if test -n "\$CONFIG_FILES"; then
27093   # Protect against being on the right side of a sed subst in config.status.
27094   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27095    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27096 s,@SHELL@,$SHELL,;t t
27097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27103 s,@exec_prefix@,$exec_prefix,;t t
27104 s,@prefix@,$prefix,;t t
27105 s,@program_transform_name@,$program_transform_name,;t t
27106 s,@bindir@,$bindir,;t t
27107 s,@sbindir@,$sbindir,;t t
27108 s,@libexecdir@,$libexecdir,;t t
27109 s,@datadir@,$datadir,;t t
27110 s,@sysconfdir@,$sysconfdir,;t t
27111 s,@sharedstatedir@,$sharedstatedir,;t t
27112 s,@localstatedir@,$localstatedir,;t t
27113 s,@libdir@,$libdir,;t t
27114 s,@includedir@,$includedir,;t t
27115 s,@oldincludedir@,$oldincludedir,;t t
27116 s,@infodir@,$infodir,;t t
27117 s,@mandir@,$mandir,;t t
27118 s,@build_alias@,$build_alias,;t t
27119 s,@host_alias@,$host_alias,;t t
27120 s,@target_alias@,$target_alias,;t t
27121 s,@DEFS@,$DEFS,;t t
27122 s,@ECHO_C@,$ECHO_C,;t t
27123 s,@ECHO_N@,$ECHO_N,;t t
27124 s,@ECHO_T@,$ECHO_T,;t t
27125 s,@LIBS@,$LIBS,;t t
27126 s,@build@,$build,;t t
27127 s,@build_cpu@,$build_cpu,;t t
27128 s,@build_vendor@,$build_vendor,;t t
27129 s,@build_os@,$build_os,;t t
27130 s,@host@,$host,;t t
27131 s,@host_cpu@,$host_cpu,;t t
27132 s,@host_vendor@,$host_vendor,;t t
27133 s,@host_os@,$host_os,;t t
27134 s,@target@,$target,;t t
27135 s,@target_cpu@,$target_cpu,;t t
27136 s,@target_vendor@,$target_vendor,;t t
27137 s,@target_os@,$target_os,;t t
27138 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27139 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27140 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27141 s,@CYGPATH_W@,$CYGPATH_W,;t t
27142 s,@PACKAGE@,$PACKAGE,;t t
27143 s,@VERSION@,$VERSION,;t t
27144 s,@ACLOCAL@,$ACLOCAL,;t t
27145 s,@AUTOCONF@,$AUTOCONF,;t t
27146 s,@AUTOMAKE@,$AUTOMAKE,;t t
27147 s,@AUTOHEADER@,$AUTOHEADER,;t t
27148 s,@MAKEINFO@,$MAKEINFO,;t t
27149 s,@install_sh@,$install_sh,;t t
27150 s,@STRIP@,$STRIP,;t t
27151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27152 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27153 s,@mkdir_p@,$mkdir_p,;t t
27154 s,@AWK@,$AWK,;t t
27155 s,@SET_MAKE@,$SET_MAKE,;t t
27156 s,@am__leading_dot@,$am__leading_dot,;t t
27157 s,@AMTAR@,$AMTAR,;t t
27158 s,@am__tar@,$am__tar,;t t
27159 s,@am__untar@,$am__untar,;t t
27160 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27161 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27162 s,@ENABLE_OPTIMIZED_TRUE@,$ENABLE_OPTIMIZED_TRUE,;t t
27163 s,@ENABLE_OPTIMIZED_FALSE@,$ENABLE_OPTIMIZED_FALSE,;t t
27164 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27165 s,@ENABLE_PROFILED_TRUE@,$ENABLE_PROFILED_TRUE,;t t
27166 s,@ENABLE_PROFILED_FALSE@,$ENABLE_PROFILED_FALSE,;t t
27167 s,@JIT@,$JIT,;t t
27168 s,@OS@,$OS,;t t
27169 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27170 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27171 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27172 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27173 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27174 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27175 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27176 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27177 s,@ARCH@,$ARCH,;t t
27178 s,@ENDIAN@,$ENDIAN,;t t
27179 s,@CC@,$CC,;t t
27180 s,@CFLAGS@,$CFLAGS,;t t
27181 s,@LDFLAGS@,$LDFLAGS,;t t
27182 s,@CPPFLAGS@,$CPPFLAGS,;t t
27183 s,@ac_ct_CC@,$ac_ct_CC,;t t
27184 s,@EXEEXT@,$EXEEXT,;t t
27185 s,@OBJEXT@,$OBJEXT,;t t
27186 s,@DEPDIR@,$DEPDIR,;t t
27187 s,@am__include@,$am__include,;t t
27188 s,@am__quote@,$am__quote,;t t
27189 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27190 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27191 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27192 s,@CCDEPMODE@,$CCDEPMODE,;t t
27193 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27194 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27195 s,@CXX@,$CXX,;t t
27196 s,@CXXFLAGS@,$CXXFLAGS,;t t
27197 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27198 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27199 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27200 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27201 s,@CPP@,$CPP,;t t
27202 s,@LEX@,$LEX,;t t
27203 s,@LEXLIB@,$LEXLIB,;t t
27204 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27205 s,@FLEX@,$FLEX,;t t
27206 s,@YACC@,$YACC,;t t
27207 s,@BISON@,$BISON,;t t
27208 s,@EGREP@,$EGREP,;t t
27209 s,@LN_S@,$LN_S,;t t
27210 s,@ECHO@,$ECHO,;t t
27211 s,@AR@,$AR,;t t
27212 s,@ac_ct_AR@,$ac_ct_AR,;t t
27213 s,@RANLIB@,$RANLIB,;t t
27214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27215 s,@CXXCPP@,$CXXCPP,;t t
27216 s,@F77@,$F77,;t t
27217 s,@FFLAGS@,$FFLAGS,;t t
27218 s,@ac_ct_F77@,$ac_ct_F77,;t t
27219 s,@LIBTOOL@,$LIBTOOL,;t t
27220 s,@DOT@,$DOT,;t t
27221 s,@ETAGS@,$ETAGS,;t t
27222 s,@PYTHON@,$PYTHON,;t t
27223 s,@QMTEST@,$QMTEST,;t t
27224 s,@ifGNUmake@,$ifGNUmake,;t t
27225 s,@LLVMCC1@,$LLVMCC1,;t t
27226 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27227 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27228 s,@ALLOCA@,$ALLOCA,;t t
27229 s,@MMAP_FILE@,$MMAP_FILE,;t t
27230 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27231 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27232 s,@SHLIBEXT@,$SHLIBEXT,;t t
27233 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27234 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27235 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27236 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27237 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27238 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27239 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27240 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27241 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27242 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27243 s,@subdirs@,$subdirs,;t t
27244 s,@LIBOBJS@,$LIBOBJS,;t t
27245 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27246 CEOF
27247
27248 _ACEOF
27249
27250   cat >>$CONFIG_STATUS <<\_ACEOF
27251   # Split the substitutions into bite-sized pieces for seds with
27252   # small command number limits, like on Digital OSF/1 and HP-UX.
27253   ac_max_sed_lines=48
27254   ac_sed_frag=1 # Number of current file.
27255   ac_beg=1 # First line for current file.
27256   ac_end=$ac_max_sed_lines # Line after last line for current file.
27257   ac_more_lines=:
27258   ac_sed_cmds=
27259   while $ac_more_lines; do
27260     if test $ac_beg -gt 1; then
27261       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27262     else
27263       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27264     fi
27265     if test ! -s $tmp/subs.frag; then
27266       ac_more_lines=false
27267     else
27268       # The purpose of the label and of the branching condition is to
27269       # speed up the sed processing (if there are no `@' at all, there
27270       # is no need to browse any of the substitutions).
27271       # These are the two extra sed commands mentioned above.
27272       (echo ':t
27273   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27274       if test -z "$ac_sed_cmds"; then
27275         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27276       else
27277         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27278       fi
27279       ac_sed_frag=`expr $ac_sed_frag + 1`
27280       ac_beg=$ac_end
27281       ac_end=`expr $ac_end + $ac_max_sed_lines`
27282     fi
27283   done
27284   if test -z "$ac_sed_cmds"; then
27285     ac_sed_cmds=cat
27286   fi
27287 fi # test -n "$CONFIG_FILES"
27288
27289 _ACEOF
27290 cat >>$CONFIG_STATUS <<\_ACEOF
27291 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27292   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27293   case $ac_file in
27294   - | *:- | *:-:* ) # input from stdin
27295         cat >$tmp/stdin
27296         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27298   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27299         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27300   * )   ac_file_in=$ac_file.in ;;
27301   esac
27302
27303   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27304   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27306          X"$ac_file" : 'X\(//\)[^/]' \| \
27307          X"$ac_file" : 'X\(//\)$' \| \
27308          X"$ac_file" : 'X\(/\)' \| \
27309          .     : '\(.\)' 2>/dev/null ||
27310 echo X"$ac_file" |
27311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27313           /^X\(\/\/\)$/{ s//\1/; q; }
27314           /^X\(\/\).*/{ s//\1/; q; }
27315           s/.*/./; q'`
27316   { if $as_mkdir_p; then
27317     mkdir -p "$ac_dir"
27318   else
27319     as_dir="$ac_dir"
27320     as_dirs=
27321     while test ! -d "$as_dir"; do
27322       as_dirs="$as_dir $as_dirs"
27323       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27325          X"$as_dir" : 'X\(//\)[^/]' \| \
27326          X"$as_dir" : 'X\(//\)$' \| \
27327          X"$as_dir" : 'X\(/\)' \| \
27328          .     : '\(.\)' 2>/dev/null ||
27329 echo X"$as_dir" |
27330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27332           /^X\(\/\/\)$/{ s//\1/; q; }
27333           /^X\(\/\).*/{ s//\1/; q; }
27334           s/.*/./; q'`
27335     done
27336     test ! -n "$as_dirs" || mkdir $as_dirs
27337   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27339    { (exit 1); exit 1; }; }; }
27340
27341   ac_builddir=.
27342
27343 if test "$ac_dir" != .; then
27344   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27345   # A "../" for each directory in $ac_dir_suffix.
27346   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27347 else
27348   ac_dir_suffix= ac_top_builddir=
27349 fi
27350
27351 case $srcdir in
27352   .)  # No --srcdir option.  We are building in place.
27353     ac_srcdir=.
27354     if test -z "$ac_top_builddir"; then
27355        ac_top_srcdir=.
27356     else
27357        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27358     fi ;;
27359   [\\/]* | ?:[\\/]* )  # Absolute path.
27360     ac_srcdir=$srcdir$ac_dir_suffix;
27361     ac_top_srcdir=$srcdir ;;
27362   *) # Relative path.
27363     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27364     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27365 esac
27366
27367 # Do not use `cd foo && pwd` to compute absolute paths, because
27368 # the directories may not exist.
27369 case `pwd` in
27370 .) ac_abs_builddir="$ac_dir";;
27371 *)
27372   case "$ac_dir" in
27373   .) ac_abs_builddir=`pwd`;;
27374   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27375   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27376   esac;;
27377 esac
27378 case $ac_abs_builddir in
27379 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27380 *)
27381   case ${ac_top_builddir}. in
27382   .) ac_abs_top_builddir=$ac_abs_builddir;;
27383   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27384   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27385   esac;;
27386 esac
27387 case $ac_abs_builddir in
27388 .) ac_abs_srcdir=$ac_srcdir;;
27389 *)
27390   case $ac_srcdir in
27391   .) ac_abs_srcdir=$ac_abs_builddir;;
27392   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27393   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27394   esac;;
27395 esac
27396 case $ac_abs_builddir in
27397 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27398 *)
27399   case $ac_top_srcdir in
27400   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27401   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27402   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27403   esac;;
27404 esac
27405
27406
27407   case $INSTALL in
27408   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27409   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27410   esac
27411
27412   if test x"$ac_file" != x-; then
27413     { echo "$as_me:$LINENO: creating $ac_file" >&5
27414 echo "$as_me: creating $ac_file" >&6;}
27415     rm -f "$ac_file"
27416   fi
27417   # Let's still pretend it is `configure' which instantiates (i.e., don't
27418   # use $as_me), people would be surprised to read:
27419   #    /* config.h.  Generated by config.status.  */
27420   if test x"$ac_file" = x-; then
27421     configure_input=
27422   else
27423     configure_input="$ac_file.  "
27424   fi
27425   configure_input=$configure_input"Generated from `echo $ac_file_in |
27426                                      sed 's,.*/,,'` by configure."
27427
27428   # First look for the input files in the build tree, otherwise in the
27429   # src tree.
27430   ac_file_inputs=`IFS=:
27431     for f in $ac_file_in; do
27432       case $f in
27433       -) echo $tmp/stdin ;;
27434       [\\/$]*)
27435          # Absolute (can't be DOS-style, as IFS=:)
27436          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27437 echo "$as_me: error: cannot find input file: $f" >&2;}
27438    { (exit 1); exit 1; }; }
27439          echo "$f";;
27440       *) # Relative
27441          if test -f "$f"; then
27442            # Build tree
27443            echo "$f"
27444          elif test -f "$srcdir/$f"; then
27445            # Source tree
27446            echo "$srcdir/$f"
27447          else
27448            # /dev/null tree
27449            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27450 echo "$as_me: error: cannot find input file: $f" >&2;}
27451    { (exit 1); exit 1; }; }
27452          fi;;
27453       esac
27454     done` || { (exit 1); exit 1; }
27455 _ACEOF
27456 cat >>$CONFIG_STATUS <<_ACEOF
27457   sed "$ac_vpsub
27458 $extrasub
27459 _ACEOF
27460 cat >>$CONFIG_STATUS <<\_ACEOF
27461 :t
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463 s,@configure_input@,$configure_input,;t t
27464 s,@srcdir@,$ac_srcdir,;t t
27465 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27466 s,@top_srcdir@,$ac_top_srcdir,;t t
27467 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27468 s,@builddir@,$ac_builddir,;t t
27469 s,@abs_builddir@,$ac_abs_builddir,;t t
27470 s,@top_builddir@,$ac_top_builddir,;t t
27471 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27472 s,@INSTALL@,$ac_INSTALL,;t t
27473 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27474   rm -f $tmp/stdin
27475   if test x"$ac_file" != x-; then
27476     mv $tmp/out $ac_file
27477   else
27478     cat $tmp/out
27479     rm -f $tmp/out
27480   fi
27481
27482 done
27483 _ACEOF
27484 cat >>$CONFIG_STATUS <<\_ACEOF
27485
27486 #
27487 # CONFIG_HEADER section.
27488 #
27489
27490 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27492 #
27493 # ac_d sets the value in "#define NAME VALUE" lines.
27494 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27495 ac_dB='[         ].*$,\1#\2'
27496 ac_dC=' '
27497 ac_dD=',;t'
27498 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27499 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27500 ac_uB='$,\1#\2define\3'
27501 ac_uC=' '
27502 ac_uD=',;t'
27503
27504 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27505   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27506   case $ac_file in
27507   - | *:- | *:-:* ) # input from stdin
27508         cat >$tmp/stdin
27509         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27510         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27511   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27512         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27513   * )   ac_file_in=$ac_file.in ;;
27514   esac
27515
27516   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27517 echo "$as_me: creating $ac_file" >&6;}
27518
27519   # First look for the input files in the build tree, otherwise in the
27520   # src tree.
27521   ac_file_inputs=`IFS=:
27522     for f in $ac_file_in; do
27523       case $f in
27524       -) echo $tmp/stdin ;;
27525       [\\/$]*)
27526          # Absolute (can't be DOS-style, as IFS=:)
27527          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27528 echo "$as_me: error: cannot find input file: $f" >&2;}
27529    { (exit 1); exit 1; }; }
27530          # Do quote $f, to prevent DOS paths from being IFS'd.
27531          echo "$f";;
27532       *) # Relative
27533          if test -f "$f"; then
27534            # Build tree
27535            echo "$f"
27536          elif test -f "$srcdir/$f"; then
27537            # Source tree
27538            echo "$srcdir/$f"
27539          else
27540            # /dev/null tree
27541            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27542 echo "$as_me: error: cannot find input file: $f" >&2;}
27543    { (exit 1); exit 1; }; }
27544          fi;;
27545       esac
27546     done` || { (exit 1); exit 1; }
27547   # Remove the trailing spaces.
27548   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27549
27550 _ACEOF
27551
27552 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27553 # `conftest.undefs', that substitutes the proper values into
27554 # config.h.in to produce config.h.  The first handles `#define'
27555 # templates, and the second `#undef' templates.
27556 # And first: Protect against being on the right side of a sed subst in
27557 # config.status.  Protect against being in an unquoted here document
27558 # in config.status.
27559 rm -f conftest.defines conftest.undefs
27560 # Using a here document instead of a string reduces the quoting nightmare.
27561 # Putting comments in sed scripts is not portable.
27562 #
27563 # `end' is used to avoid that the second main sed command (meant for
27564 # 0-ary CPP macros) applies to n-ary macro definitions.
27565 # See the Autoconf documentation for `clear'.
27566 cat >confdef2sed.sed <<\_ACEOF
27567 s/[\\&,]/\\&/g
27568 s,[\\$`],\\&,g
27569 t clear
27570 : clear
27571 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27572 t end
27573 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27574 : end
27575 _ACEOF
27576 # If some macros were called several times there might be several times
27577 # the same #defines, which is useless.  Nevertheless, we may not want to
27578 # sort them, since we want the *last* AC-DEFINE to be honored.
27579 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27580 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27581 rm -f confdef2sed.sed
27582
27583 # This sed command replaces #undef with comments.  This is necessary, for
27584 # example, in the case of _POSIX_SOURCE, which is predefined and required
27585 # on some systems where configure will not decide to define it.
27586 cat >>conftest.undefs <<\_ACEOF
27587 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27588 _ACEOF
27589
27590 # Break up conftest.defines because some shells have a limit on the size
27591 # of here documents, and old seds have small limits too (100 cmds).
27592 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27593 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27594 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27595 echo '  :' >>$CONFIG_STATUS
27596 rm -f conftest.tail
27597 while grep . conftest.defines >/dev/null
27598 do
27599   # Write a limited-size here document to $tmp/defines.sed.
27600   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27601   # Speed up: don't consider the non `#define' lines.
27602   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27603   # Work around the forget-to-reset-the-flag bug.
27604   echo 't clr' >>$CONFIG_STATUS
27605   echo ': clr' >>$CONFIG_STATUS
27606   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27607   echo 'CEOF
27608   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27609   rm -f $tmp/in
27610   mv $tmp/out $tmp/in
27611 ' >>$CONFIG_STATUS
27612   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27613   rm -f conftest.defines
27614   mv conftest.tail conftest.defines
27615 done
27616 rm -f conftest.defines
27617 echo '  fi # grep' >>$CONFIG_STATUS
27618 echo >>$CONFIG_STATUS
27619
27620 # Break up conftest.undefs because some shells have a limit on the size
27621 # of here documents, and old seds have small limits too (100 cmds).
27622 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27623 rm -f conftest.tail
27624 while grep . conftest.undefs >/dev/null
27625 do
27626   # Write a limited-size here document to $tmp/undefs.sed.
27627   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27628   # Speed up: don't consider the non `#undef'
27629   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27630   # Work around the forget-to-reset-the-flag bug.
27631   echo 't clr' >>$CONFIG_STATUS
27632   echo ': clr' >>$CONFIG_STATUS
27633   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27634   echo 'CEOF
27635   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27636   rm -f $tmp/in
27637   mv $tmp/out $tmp/in
27638 ' >>$CONFIG_STATUS
27639   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27640   rm -f conftest.undefs
27641   mv conftest.tail conftest.undefs
27642 done
27643 rm -f conftest.undefs
27644
27645 cat >>$CONFIG_STATUS <<\_ACEOF
27646   # Let's still pretend it is `configure' which instantiates (i.e., don't
27647   # use $as_me), people would be surprised to read:
27648   #    /* config.h.  Generated by config.status.  */
27649   if test x"$ac_file" = x-; then
27650     echo "/* Generated by configure.  */" >$tmp/config.h
27651   else
27652     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27653   fi
27654   cat $tmp/in >>$tmp/config.h
27655   rm -f $tmp/in
27656   if test x"$ac_file" != x-; then
27657     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27658       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27659 echo "$as_me: $ac_file is unchanged" >&6;}
27660     else
27661       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663          X"$ac_file" : 'X\(//\)[^/]' \| \
27664          X"$ac_file" : 'X\(//\)$' \| \
27665          X"$ac_file" : 'X\(/\)' \| \
27666          .     : '\(.\)' 2>/dev/null ||
27667 echo X"$ac_file" |
27668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27670           /^X\(\/\/\)$/{ s//\1/; q; }
27671           /^X\(\/\).*/{ s//\1/; q; }
27672           s/.*/./; q'`
27673       { if $as_mkdir_p; then
27674     mkdir -p "$ac_dir"
27675   else
27676     as_dir="$ac_dir"
27677     as_dirs=
27678     while test ! -d "$as_dir"; do
27679       as_dirs="$as_dir $as_dirs"
27680       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27682          X"$as_dir" : 'X\(//\)[^/]' \| \
27683          X"$as_dir" : 'X\(//\)$' \| \
27684          X"$as_dir" : 'X\(/\)' \| \
27685          .     : '\(.\)' 2>/dev/null ||
27686 echo X"$as_dir" |
27687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27689           /^X\(\/\/\)$/{ s//\1/; q; }
27690           /^X\(\/\).*/{ s//\1/; q; }
27691           s/.*/./; q'`
27692     done
27693     test ! -n "$as_dirs" || mkdir $as_dirs
27694   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27696    { (exit 1); exit 1; }; }; }
27697
27698       rm -f $ac_file
27699       mv $tmp/config.h $ac_file
27700     fi
27701   else
27702     cat $tmp/config.h
27703     rm -f $tmp/config.h
27704   fi
27705 # Compute $ac_file's index in $config_headers.
27706 _am_stamp_count=1
27707 for _am_header in $config_headers :; do
27708   case $_am_header in
27709     $ac_file | $ac_file:* )
27710       break ;;
27711     * )
27712       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27713   esac
27714 done
27715 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27716 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27717          X$ac_file : 'X\(//\)[^/]' \| \
27718          X$ac_file : 'X\(//\)$' \| \
27719          X$ac_file : 'X\(/\)' \| \
27720          .     : '\(.\)' 2>/dev/null ||
27721 echo X$ac_file |
27722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27724           /^X\(\/\/\)$/{ s//\1/; q; }
27725           /^X\(\/\).*/{ s//\1/; q; }
27726           s/.*/./; q'`/stamp-h$_am_stamp_count
27727 done
27728 _ACEOF
27729 cat >>$CONFIG_STATUS <<\_ACEOF
27730
27731 #
27732 # CONFIG_LINKS section.
27733 #
27734
27735 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27736   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27737   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27738
27739   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27740 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27741
27742   if test ! -r $srcdir/$ac_source; then
27743     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27744 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27745    { (exit 1); exit 1; }; }
27746   fi
27747   rm -f $ac_dest
27748
27749   # Make relative symlinks.
27750   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27752          X"$ac_dest" : 'X\(//\)[^/]' \| \
27753          X"$ac_dest" : 'X\(//\)$' \| \
27754          X"$ac_dest" : 'X\(/\)' \| \
27755          .     : '\(.\)' 2>/dev/null ||
27756 echo X"$ac_dest" |
27757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27758           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27759           /^X\(\/\/\)$/{ s//\1/; q; }
27760           /^X\(\/\).*/{ s//\1/; q; }
27761           s/.*/./; q'`
27762   { if $as_mkdir_p; then
27763     mkdir -p "$ac_dest_dir"
27764   else
27765     as_dir="$ac_dest_dir"
27766     as_dirs=
27767     while test ! -d "$as_dir"; do
27768       as_dirs="$as_dir $as_dirs"
27769       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27771          X"$as_dir" : 'X\(//\)[^/]' \| \
27772          X"$as_dir" : 'X\(//\)$' \| \
27773          X"$as_dir" : 'X\(/\)' \| \
27774          .     : '\(.\)' 2>/dev/null ||
27775 echo X"$as_dir" |
27776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27777           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27778           /^X\(\/\/\)$/{ s//\1/; q; }
27779           /^X\(\/\).*/{ s//\1/; q; }
27780           s/.*/./; q'`
27781     done
27782     test ! -n "$as_dirs" || mkdir $as_dirs
27783   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27784 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27785    { (exit 1); exit 1; }; }; }
27786
27787   ac_builddir=.
27788
27789 if test "$ac_dest_dir" != .; then
27790   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27791   # A "../" for each directory in $ac_dir_suffix.
27792   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27793 else
27794   ac_dir_suffix= ac_top_builddir=
27795 fi
27796
27797 case $srcdir in
27798   .)  # No --srcdir option.  We are building in place.
27799     ac_srcdir=.
27800     if test -z "$ac_top_builddir"; then
27801        ac_top_srcdir=.
27802     else
27803        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27804     fi ;;
27805   [\\/]* | ?:[\\/]* )  # Absolute path.
27806     ac_srcdir=$srcdir$ac_dir_suffix;
27807     ac_top_srcdir=$srcdir ;;
27808   *) # Relative path.
27809     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27810     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27811 esac
27812
27813 # Do not use `cd foo && pwd` to compute absolute paths, because
27814 # the directories may not exist.
27815 case `pwd` in
27816 .) ac_abs_builddir="$ac_dest_dir";;
27817 *)
27818   case "$ac_dest_dir" in
27819   .) ac_abs_builddir=`pwd`;;
27820   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27821   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27822   esac;;
27823 esac
27824 case $ac_abs_builddir in
27825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27826 *)
27827   case ${ac_top_builddir}. in
27828   .) ac_abs_top_builddir=$ac_abs_builddir;;
27829   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27830   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27831   esac;;
27832 esac
27833 case $ac_abs_builddir in
27834 .) ac_abs_srcdir=$ac_srcdir;;
27835 *)
27836   case $ac_srcdir in
27837   .) ac_abs_srcdir=$ac_abs_builddir;;
27838   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27839   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27840   esac;;
27841 esac
27842 case $ac_abs_builddir in
27843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27844 *)
27845   case $ac_top_srcdir in
27846   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27847   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27848   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27849   esac;;
27850 esac
27851
27852
27853   case $srcdir in
27854   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27855       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27856   esac
27857
27858   # Try a symlink, then a hard link, then a copy.
27859   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27860     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27861     cp -p $srcdir/$ac_source $ac_dest ||
27862     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27863 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27864    { (exit 1); exit 1; }; }
27865 done
27866 _ACEOF
27867 cat >>$CONFIG_STATUS <<\_ACEOF
27868
27869 #
27870 # CONFIG_COMMANDS section.
27871 #
27872 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27873   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27874   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27875   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27876 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27877          X"$ac_dest" : 'X\(//\)[^/]' \| \
27878          X"$ac_dest" : 'X\(//\)$' \| \
27879          X"$ac_dest" : 'X\(/\)' \| \
27880          .     : '\(.\)' 2>/dev/null ||
27881 echo X"$ac_dest" |
27882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27884           /^X\(\/\/\)$/{ s//\1/; q; }
27885           /^X\(\/\).*/{ s//\1/; q; }
27886           s/.*/./; q'`
27887   { if $as_mkdir_p; then
27888     mkdir -p "$ac_dir"
27889   else
27890     as_dir="$ac_dir"
27891     as_dirs=
27892     while test ! -d "$as_dir"; do
27893       as_dirs="$as_dir $as_dirs"
27894       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27896          X"$as_dir" : 'X\(//\)[^/]' \| \
27897          X"$as_dir" : 'X\(//\)$' \| \
27898          X"$as_dir" : 'X\(/\)' \| \
27899          .     : '\(.\)' 2>/dev/null ||
27900 echo X"$as_dir" |
27901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27902           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27903           /^X\(\/\/\)$/{ s//\1/; q; }
27904           /^X\(\/\).*/{ s//\1/; q; }
27905           s/.*/./; q'`
27906     done
27907     test ! -n "$as_dirs" || mkdir $as_dirs
27908   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27909 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27910    { (exit 1); exit 1; }; }; }
27911
27912   ac_builddir=.
27913
27914 if test "$ac_dir" != .; then
27915   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27916   # A "../" for each directory in $ac_dir_suffix.
27917   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27918 else
27919   ac_dir_suffix= ac_top_builddir=
27920 fi
27921
27922 case $srcdir in
27923   .)  # No --srcdir option.  We are building in place.
27924     ac_srcdir=.
27925     if test -z "$ac_top_builddir"; then
27926        ac_top_srcdir=.
27927     else
27928        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27929     fi ;;
27930   [\\/]* | ?:[\\/]* )  # Absolute path.
27931     ac_srcdir=$srcdir$ac_dir_suffix;
27932     ac_top_srcdir=$srcdir ;;
27933   *) # Relative path.
27934     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27935     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27936 esac
27937
27938 # Do not use `cd foo && pwd` to compute absolute paths, because
27939 # the directories may not exist.
27940 case `pwd` in
27941 .) ac_abs_builddir="$ac_dir";;
27942 *)
27943   case "$ac_dir" in
27944   .) ac_abs_builddir=`pwd`;;
27945   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27946   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27947   esac;;
27948 esac
27949 case $ac_abs_builddir in
27950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27951 *)
27952   case ${ac_top_builddir}. in
27953   .) ac_abs_top_builddir=$ac_abs_builddir;;
27954   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27955   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27956   esac;;
27957 esac
27958 case $ac_abs_builddir in
27959 .) ac_abs_srcdir=$ac_srcdir;;
27960 *)
27961   case $ac_srcdir in
27962   .) ac_abs_srcdir=$ac_abs_builddir;;
27963   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27964   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27965   esac;;
27966 esac
27967 case $ac_abs_builddir in
27968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27969 *)
27970   case $ac_top_srcdir in
27971   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27972   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27973   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27974   esac;;
27975 esac
27976
27977
27978   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27979 echo "$as_me: executing $ac_dest commands" >&6;}
27980   case $ac_dest in
27981     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27982   # Strip MF so we end up with the name of the file.
27983   mf=`echo "$mf" | sed -e 's/:.*$//'`
27984   # Check whether this is an Automake generated Makefile or not.
27985   # We used to match only the files named `Makefile.in', but
27986   # some people rename them; so instead we look at the file content.
27987   # Grep'ing the first line is not enough: some people post-process
27988   # each Makefile.in and add a new line on top of each file to say so.
27989   # So let's grep whole file.
27990   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27991     dirpart=`(dirname "$mf") 2>/dev/null ||
27992 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27993          X"$mf" : 'X\(//\)[^/]' \| \
27994          X"$mf" : 'X\(//\)$' \| \
27995          X"$mf" : 'X\(/\)' \| \
27996          .     : '\(.\)' 2>/dev/null ||
27997 echo X"$mf" |
27998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28000           /^X\(\/\/\)$/{ s//\1/; q; }
28001           /^X\(\/\).*/{ s//\1/; q; }
28002           s/.*/./; q'`
28003   else
28004     continue
28005   fi
28006   # Extract the definition of DEPDIR, am__include, and am__quote
28007   # from the Makefile without running `make'.
28008   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28009   test -z "$DEPDIR" && continue
28010   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28011   test -z "am__include" && continue
28012   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28013   # When using ansi2knr, U may be empty or an underscore; expand it
28014   U=`sed -n 's/^U = //p' < "$mf"`
28015   # Find all dependency output files, they are included files with
28016   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28017   # simplest approach to changing $(DEPDIR) to its actual value in the
28018   # expansion.
28019   for file in `sed -n "
28020     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28021        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28022     # Make sure the directory exists.
28023     test -f "$dirpart/$file" && continue
28024     fdir=`(dirname "$file") 2>/dev/null ||
28025 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28026          X"$file" : 'X\(//\)[^/]' \| \
28027          X"$file" : 'X\(//\)$' \| \
28028          X"$file" : 'X\(/\)' \| \
28029          .     : '\(.\)' 2>/dev/null ||
28030 echo X"$file" |
28031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28033           /^X\(\/\/\)$/{ s//\1/; q; }
28034           /^X\(\/\).*/{ s//\1/; q; }
28035           s/.*/./; q'`
28036     { if $as_mkdir_p; then
28037     mkdir -p $dirpart/$fdir
28038   else
28039     as_dir=$dirpart/$fdir
28040     as_dirs=
28041     while test ! -d "$as_dir"; do
28042       as_dirs="$as_dir $as_dirs"
28043       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28045          X"$as_dir" : 'X\(//\)[^/]' \| \
28046          X"$as_dir" : 'X\(//\)$' \| \
28047          X"$as_dir" : 'X\(/\)' \| \
28048          .     : '\(.\)' 2>/dev/null ||
28049 echo X"$as_dir" |
28050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28052           /^X\(\/\/\)$/{ s//\1/; q; }
28053           /^X\(\/\).*/{ s//\1/; q; }
28054           s/.*/./; q'`
28055     done
28056     test ! -n "$as_dirs" || mkdir $as_dirs
28057   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28058 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28059    { (exit 1); exit 1; }; }; }
28060
28061     # echo "creating $dirpart/$file"
28062     echo '# dummy' > "$dirpart/$file"
28063   done
28064 done
28065  ;;
28066   esac
28067 done
28068 _ACEOF
28069
28070 cat >>$CONFIG_STATUS <<\_ACEOF
28071
28072 { (exit 0); exit 0; }
28073 _ACEOF
28074 chmod +x $CONFIG_STATUS
28075 ac_clean_files=$ac_clean_files_save
28076
28077
28078 # configure is writing to config.log, and then calls config.status.
28079 # config.status does its own redirection, appending to config.log.
28080 # Unfortunately, on DOS this fails, as config.log is still kept open
28081 # by configure, so config.status won't be able to write to it; its
28082 # output is simply discarded.  So we exec the FD to /dev/null,
28083 # effectively closing config.log, so it can be properly (re)opened and
28084 # appended to by config.status.  When coming back to configure, we
28085 # need to make the FD available again.
28086 if test "$no_create" != yes; then
28087   ac_cs_success=:
28088   ac_config_status_args=
28089   test "$silent" = yes &&
28090     ac_config_status_args="$ac_config_status_args --quiet"
28091   exec 5>/dev/null
28092   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28093   exec 5>>config.log
28094   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28095   # would make configure fail if this is the last instruction.
28096   $ac_cs_success || { (exit 1); exit 1; }
28097 fi
28098
28099 #
28100 # CONFIG_SUBDIRS section.
28101 #
28102 if test "$no_recursion" != yes; then
28103
28104   # Remove --cache-file and --srcdir arguments so they do not pile up.
28105   ac_sub_configure_args=
28106   ac_prev=
28107   for ac_arg in $ac_configure_args; do
28108     if test -n "$ac_prev"; then
28109       ac_prev=
28110       continue
28111     fi
28112     case $ac_arg in
28113     -cache-file | --cache-file | --cache-fil | --cache-fi \
28114     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28115       ac_prev=cache_file ;;
28116     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28117     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28118     | --c=*)
28119       ;;
28120     --config-cache | -C)
28121       ;;
28122     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28123       ac_prev=srcdir ;;
28124     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28125       ;;
28126     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28127       ac_prev=prefix ;;
28128     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28129       ;;
28130     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28131     esac
28132   done
28133
28134   # Always prepend --prefix to ensure using the same prefix
28135   # in subdir configurations.
28136   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28137
28138   ac_popdir=`pwd`
28139   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28140
28141     # Do not complain, so a configure script can configure whichever
28142     # parts of a large source tree are present.
28143     test -d $srcdir/$ac_dir || continue
28144
28145     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28146 echo "$as_me: configuring in $ac_dir" >&6;}
28147     { if $as_mkdir_p; then
28148     mkdir -p "$ac_dir"
28149   else
28150     as_dir="$ac_dir"
28151     as_dirs=
28152     while test ! -d "$as_dir"; do
28153       as_dirs="$as_dir $as_dirs"
28154       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28156          X"$as_dir" : 'X\(//\)[^/]' \| \
28157          X"$as_dir" : 'X\(//\)$' \| \
28158          X"$as_dir" : 'X\(/\)' \| \
28159          .     : '\(.\)' 2>/dev/null ||
28160 echo X"$as_dir" |
28161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28163           /^X\(\/\/\)$/{ s//\1/; q; }
28164           /^X\(\/\).*/{ s//\1/; q; }
28165           s/.*/./; q'`
28166     done
28167     test ! -n "$as_dirs" || mkdir $as_dirs
28168   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28170    { (exit 1); exit 1; }; }; }
28171
28172     ac_builddir=.
28173
28174 if test "$ac_dir" != .; then
28175   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28176   # A "../" for each directory in $ac_dir_suffix.
28177   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28178 else
28179   ac_dir_suffix= ac_top_builddir=
28180 fi
28181
28182 case $srcdir in
28183   .)  # No --srcdir option.  We are building in place.
28184     ac_srcdir=.
28185     if test -z "$ac_top_builddir"; then
28186        ac_top_srcdir=.
28187     else
28188        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28189     fi ;;
28190   [\\/]* | ?:[\\/]* )  # Absolute path.
28191     ac_srcdir=$srcdir$ac_dir_suffix;
28192     ac_top_srcdir=$srcdir ;;
28193   *) # Relative path.
28194     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28195     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28196 esac
28197
28198 # Do not use `cd foo && pwd` to compute absolute paths, because
28199 # the directories may not exist.
28200 case `pwd` in
28201 .) ac_abs_builddir="$ac_dir";;
28202 *)
28203   case "$ac_dir" in
28204   .) ac_abs_builddir=`pwd`;;
28205   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28206   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28207   esac;;
28208 esac
28209 case $ac_abs_builddir in
28210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28211 *)
28212   case ${ac_top_builddir}. in
28213   .) ac_abs_top_builddir=$ac_abs_builddir;;
28214   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28215   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28216   esac;;
28217 esac
28218 case $ac_abs_builddir in
28219 .) ac_abs_srcdir=$ac_srcdir;;
28220 *)
28221   case $ac_srcdir in
28222   .) ac_abs_srcdir=$ac_abs_builddir;;
28223   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28224   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28225   esac;;
28226 esac
28227 case $ac_abs_builddir in
28228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28229 *)
28230   case $ac_top_srcdir in
28231   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28232   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28233   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28234   esac;;
28235 esac
28236
28237
28238     cd $ac_dir
28239
28240     # Check for guested configure; otherwise get Cygnus style configure.
28241     if test -f $ac_srcdir/configure.gnu; then
28242       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28243     elif test -f $ac_srcdir/configure; then
28244       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28245     elif test -f $ac_srcdir/configure.in; then
28246       ac_sub_configure=$ac_configure
28247     else
28248       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28249 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28250       ac_sub_configure=
28251     fi
28252
28253     # The recursion is here.
28254     if test -n "$ac_sub_configure"; then
28255       # Make the cache file name correct relative to the subdirectory.
28256       case $cache_file in
28257       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28258       *) # Relative path.
28259         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28260       esac
28261
28262       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28263 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28264       # The eval makes quoting arguments work.
28265       eval $ac_sub_configure $ac_sub_configure_args \
28266            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28267         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28268 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28269    { (exit 1); exit 1; }; }
28270     fi
28271
28272     cd $ac_popdir
28273   done
28274 fi
28275
28276
28277
28278 if test $bzip2_found -ne 1 ; then
28279   if test $zlib_found -ne 1 ; then
28280     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28281 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28282     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28283 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28284     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28285 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28286   fi
28287 fi
28288
28289 if test $llvmgccwarn = yes
28290 then
28291   { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28292 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28293   { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28294 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28295   { echo "$as_me:$LINENO: WARNING: ***** " >&5
28296 echo "$as_me: WARNING: ***** " >&2;}
28297   { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28298 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28299   { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28300 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28301   { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28302 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
28303 fi