Add a check for the tclsh program needed by dejagnu. This can have weird
[oota-llvm.git] / configure
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 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST tclsh TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.4:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039   --enable-doxygen        Build doxygen documentation (default is NO)
1040   --enable-ltdl-install   install libltdl
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049 Optional Packages:
1050   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053   --with-tclinclude       directory where tcl headers are
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1078 _ACEOF
1079 fi
1080
1081 if test "$ac_init_help" = "recursive"; then
1082   # If there are subdirs, report their specific --help.
1083   ac_popdir=`pwd`
1084   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085     test -d $ac_dir || continue
1086     ac_builddir=.
1087
1088 if test "$ac_dir" != .; then
1089   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090   # A "../" for each directory in $ac_dir_suffix.
1091   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093   ac_dir_suffix= ac_top_builddir=
1094 fi
1095
1096 case $srcdir in
1097   .)  # No --srcdir option.  We are building in place.
1098     ac_srcdir=.
1099     if test -z "$ac_top_builddir"; then
1100        ac_top_srcdir=.
1101     else
1102        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103     fi ;;
1104   [\\/]* | ?:[\\/]* )  # Absolute path.
1105     ac_srcdir=$srcdir$ac_dir_suffix;
1106     ac_top_srcdir=$srcdir ;;
1107   *) # Relative path.
1108     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1111
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117   case "$ac_dir" in
1118   .) ac_abs_builddir=`pwd`;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148   esac;;
1149 esac
1150
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd $ac_popdir
1167   done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 llvm configure 1.4
1174 generated by GNU Autoconf 2.59
1175
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179
1180 $LLVM_COPYRIGHT
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 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
1534 ac_aux_dir=
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536   if test -f $ac_dir/install-sh; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/install-sh -c"
1539     break
1540   elif test -f $ac_dir/install.sh; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/install.sh -c"
1543     break
1544   elif test -f $ac_dir/shtool; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/shtool install -c"
1547     break
1548   fi
1549 done
1550 if test -z "$ac_aux_dir"; then
1551   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553    { (exit 1); exit 1; }; }
1554 fi
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559
1560 if test ${srcdir} != "." ; then
1561   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564    { (exit 1); exit 1; }; }
1565   fi
1566 fi
1567
1568 for i in `ls ${srcdir}/projects`
1569 do
1570   if test -d ${srcdir}/projects/${i} ; then
1571     case ${i} in
1572       "CVS") ;;
1573       "sample")
1574
1575 subdirs="$subdirs projects/sample"
1576     ;;
1577       "Stacker")
1578
1579 subdirs="$subdirs projects/Stacker"
1580    ;;
1581       "llvm-test")
1582
1583 subdirs="$subdirs projects/llvm-test"
1584  ;;
1585       "llvm-reopt")
1586
1587 subdirs="$subdirs projects/llvm-reopt"
1588 ;;
1589       "llvm-gcc")
1590
1591 subdirs="$subdirs projects/llvm-gcc"
1592   ;;
1593       "Java")
1594
1595 subdirs="$subdirs projects/Java"
1596       ;;
1597       "llvm-tv")
1598
1599 subdirs="$subdirs projects/llvm-tv"
1600    ;;
1601       "llvm-fefw")
1602
1603 subdirs="$subdirs projects/llvm-fefw"
1604  ;;
1605       "poolalloc")
1606
1607 subdirs="$subdirs projects/poolalloc"
1608  ;;
1609       *)
1610         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1612         ;;
1613     esac
1614   fi
1615 done
1616
1617
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631   ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635    { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639    { (exit 1); exit 1; }; }
1640
1641 fi
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1644 build=$ac_cv_build
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657   ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661    { (exit 1); exit 1; }; }
1662
1663 fi
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1666 host=$ac_cv_host
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679   ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 fi
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697   test "$program_prefix$program_suffix$program_transform_name" = \
1698     NONENONEs,x,x, &&
1699   program_prefix=${target_alias}-
1700
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   case $build in
1707   *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708   *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709   *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710   *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711   *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712   *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713   *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714   *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715   *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716   *) llvm_cv_platform_type="Unknown" ;;
1717 esac
1718 fi
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1721
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723   { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725    { (exit 1); exit 1; }; }
1726 fi
1727
1728 OS=$llvm_cv_platform_type
1729
1730
1731           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1732
1733
1734 case $target in
1735   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1736
1737   ;;
1738 esac
1739
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   case $target in
1746   i*86-*)      llvm_cv_target_arch="x86" ;;
1747   sparc*-*)    llvm_cv_target_arch="Sparc" ;;
1748   powerpc*-*)  llvm_cv_target_arch="PowerPC" ;;
1749   *)           llvm_cv_target_arch="Unknown" ;;
1750 esac
1751 fi
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1754
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758 fi
1759
1760 ARCH=$llvm_cv_target_arch
1761
1762
1763 ac_ext=c
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   for ac_exec_ext in '' $ac_executable_extensions; do
1785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797   echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 fi
1805 if test -z "$ac_cv_prog_CC"; then
1806   ac_ct_CC=$CC
1807   # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$ac_ct_CC"; then
1815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_ac_ct_CC="gcc"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842   CC=$ac_ct_CC
1843 else
1844   CC="$ac_cv_prog_CC"
1845 fi
1846
1847 if test -z "$CC"; then
1848   if test -n "$ac_tool_prefix"; then
1849   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$CC"; then
1857   ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_CC="${ac_tool_prefix}cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 fi
1874 fi
1875 CC=$ac_cv_prog_CC
1876 if test -n "$CC"; then
1877   echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884 fi
1885 if test -z "$ac_cv_prog_CC"; then
1886   ac_ct_CC=$CC
1887   # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   if test -n "$ac_ct_CC"; then
1895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     ac_cv_prog_ac_ct_CC="cc"
1905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906     break 2
1907   fi
1908 done
1909 done
1910
1911 fi
1912 fi
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922   CC=$ac_ct_CC
1923 else
1924   CC="$ac_cv_prog_CC"
1925 fi
1926
1927 fi
1928 if test -z "$CC"; then
1929   # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$CC"; then
1937   ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939   ac_prog_rejected=no
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948        ac_prog_rejected=yes
1949        continue
1950      fi
1951     ac_cv_prog_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 if test $ac_prog_rejected = yes; then
1959   # We found a bogon in the path, so make sure we never use it.
1960   set dummy $ac_cv_prog_CC
1961   shift
1962   if test $# != 0; then
1963     # We chose a different compiler from the bogus one.
1964     # However, it has the same basename, so the bogon will be chosen
1965     # first if we set CC to just the basename; use the full file name.
1966     shift
1967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968   fi
1969 fi
1970 fi
1971 fi
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974   echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981 fi
1982 if test -z "$CC"; then
1983   if test -n "$ac_tool_prefix"; then
1984   for ac_prog in cl
1985   do
1986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in cl
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   CC=$ac_ct_CC
2067 fi
2068
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080      "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083   (eval $ac_compiler --version </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088   (eval $ac_compiler -v </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093   (eval $ac_compiler -V </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h.  */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h.  */
2104
2105 int
2106 main ()
2107 {
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2117 # of exeext.
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122   (eval $ac_link_default) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }; then
2126   # Find the output, starting from the most likely.  This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # resort.
2129
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 ac_cv_exeext=
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 do
2136   test -f "$ac_file" || continue
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139         ;;
2140     conftest.$ac_ext )
2141         # This is the source file.
2142         ;;
2143     [ab].out )
2144         # We found the default executable, but exeext='' is most
2145         # certainly right.
2146         break;;
2147     *.* )
2148         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149         # FIXME: I believe we export ac_cv_exeext for Libtool,
2150         # but it would be cool to find out if it's true.  Does anybody
2151         # maintain Libtool? --akim.
2152         export ac_cv_exeext
2153         break;;
2154     * )
2155         break;;
2156   esac
2157 done
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166    { (exit 77); exit 77; }; }
2167 fi
2168
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2172
2173 # Check the compiler produces executables we can run.  If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180   if { ac_try='./$ac_file'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186     cross_compiling=no
2187   else
2188     if test "$cross_compiling" = maybe; then
2189         cross_compiling=yes
2190     else
2191         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197    { (exit 1); exit 1; }; }
2198     fi
2199   fi
2200 fi
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2203
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2212
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216   (eval $ac_link) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; then
2220   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225   test -f "$ac_file" || continue
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229           export ac_cv_exeext
2230           break;;
2231     * ) break;;
2232   esac
2233 done
2234 else
2235   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2248 ac_exeext=$EXEEXT
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279        break;;
2280   esac
2281 done
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 fi
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2298 ac_objext=$OBJEXT
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314 #ifndef __GNUC__
2315        choke me
2316 #endif
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   ac_compiler_gnu=yes
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_compiler_gnu=no
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353
2354 fi
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2360 CFLAGS="-g"
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } &&
2390          { ac_try='test -z "$ac_c_werror_flag"
2391                          || test ! -s conftest.err'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; } &&
2397          { ac_try='test -s conftest.$ac_objext'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   ac_cv_prog_cc_g=yes
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_cv_prog_cc_g=no
2409 fi
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415   CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417   if test "$GCC" = yes; then
2418     CFLAGS="-g -O2"
2419   else
2420     CFLAGS="-g"
2421   fi
2422 else
2423   if test "$GCC" = yes; then
2424     CFLAGS="-O2"
2425   else
2426     CFLAGS=
2427   fi
2428 fi
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   ac_cv_prog_cc_stdc=no
2435 ac_save_CC=$CC
2436 cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442 #include <stdarg.h>
2443 #include <stdio.h>
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2450      char **p;
2451      int i;
2452 {
2453   return p[i];
2454 }
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2456 {
2457   char *s;
2458   va_list v;
2459   va_start (v,p);
2460   s = g (p, va_arg (v,int));
2461   va_end (v);
2462   return s;
2463 }
2464
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2466    function prototypes and stuff, but not '\xHH' hex character constants.
2467    These don't provoke an error unfortunately, instead are silently treated
2468    as 'x'.  The following induces an error, until -std1 is added to get
2469    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2470    array size at least.  It's necessary to write '\x00'==0 to get something
2471    that's true only with -std1.  */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 int argc;
2479 char **argv;
2480 int
2481 main ()
2482 {
2483 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX                   -qlanglvl=ansi
2491 # Ultrix and OSF/1      -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2494 # SVR4                  -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 do
2497   CC="$ac_save_CC $ac_arg"
2498   rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500   (eval $ac_compile) 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag"
2508                          || test ! -s conftest.err'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516   (eval $ac_try) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; }; then
2520   ac_cv_prog_cc_stdc=$ac_arg
2521 break
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 fi
2527 rm -f conftest.err conftest.$ac_objext
2528 done
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2530 CC=$ac_save_CC
2531
2532 fi
2533
2534 case "x$ac_cv_prog_cc_stdc" in
2535   x|xno)
2536     echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2538   *)
2539     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541     CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 esac
2543
2544 # Some people use a C++ compiler to compile C.  Since we use `exit',
2545 # in C++ we need to declare it.  In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 #ifndef __cplusplus
2550   choke me
2551 #endif
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>conftest.er1
2556   ac_status=$?
2557   grep -v '^ *+' conftest.er1 >conftest.err
2558   rm -f conftest.er1
2559   cat conftest.err >&5
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); } &&
2562          { ac_try='test -z "$ac_c_werror_flag"
2563                          || test ! -s conftest.err'
2564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565   (eval $ac_try) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   for ac_declaration in \
2576    '' \
2577    'extern "C" void std::exit (int) throw (); using std::exit;' \
2578    'extern "C" void std::exit (int); using std::exit;' \
2579    'extern "C" void exit (int) throw ();' \
2580    'extern "C" void exit (int);' \
2581    'void exit (int);'
2582 do
2583   cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589 $ac_declaration
2590 #include <stdlib.h>
2591 int
2592 main ()
2593 {
2594 exit (42);
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   :
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 continue
2627 fi
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 $ac_declaration
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_c_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   break
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 rm -f conftest*
2675 if test -n "$ac_declaration"; then
2676   echo '#ifdef __cplusplus' >>confdefs.h
2677   echo $ac_declaration      >>confdefs.h
2678   echo '#endif'             >>confdefs.h
2679 fi
2680
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2708
2709 int
2710 main ()
2711 {
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713  bogus endian macros
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2751
2752 int
2753 main ()
2754 {
2755 #if BYTE_ORDER != BIG_ENDIAN
2756  not big endian
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_c_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   ac_cv_c_bigendian=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 ac_cv_c_bigendian=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799   # try to guess the endianness by grepping values into an object file
2800   ac_cv_c_bigendian=unknown
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813 int
2814 main ()
2815 {
2816  _ascii (); _ebcdic ();
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>conftest.er1
2824   ac_status=$?
2825   grep -v '^ *+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } &&
2830          { ac_try='test -z "$ac_c_werror_flag"
2831                          || test ! -s conftest.err'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; } &&
2837          { ac_try='test -s conftest.$ac_objext'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; }; then
2843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844   ac_cv_c_bigendian=yes
2845 fi
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847   if test "$ac_cv_c_bigendian" = unknown; then
2848     ac_cv_c_bigendian=no
2849   else
2850     # finding both strings is unlikely to happen, but who knows?
2851     ac_cv_c_bigendian=unknown
2852   fi
2853 fi
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 fi
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 else
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 int
2868 main ()
2869 {
2870   /* Are we little or big endian?  From Harbison&Steele.  */
2871   union
2872   {
2873     long l;
2874     char c[sizeof (long)];
2875   } u;
2876   u.l = 1;
2877   exit (u.c[sizeof (long) - 1] == 1);
2878 }
2879 _ACEOF
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882   (eval $ac_link) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_c_bigendian=no
2892 else
2893   echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ( exit $ac_status )
2898 ac_cv_c_bigendian=yes
2899 fi
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901 fi
2902 fi
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 fi
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2908   yes)
2909     ENDIAN=big
2910  ;;
2911   no)
2912     ENDIAN=little
2913  ;;
2914   *)
2915     { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919    { (exit 1); exit 1; }; } ;;
2920 esac
2921
2922
2923
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926   enableval="$enable_optimized"
2927
2928 else
2929   enableval=no
2930 fi;
2931 if test ${enableval} = "no" ; then
2932   ENABLE_OPTIMIZED=
2933
2934 else
2935   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937 fi
2938
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941   enableval="$enable_jit"
2942
2943 else
2944   enableval=default
2945 fi;
2946 if test ${enableval} = "no"
2947 then
2948   JIT=
2949
2950 else
2951   case "$llvm_cv_target_arch" in
2952     x86)     JIT=TARGET_HAS_JIT=1
2953  ;;
2954     Sparc)   JIT=TARGET_HAS_JIT=1
2955  ;;
2956     PowerPC) JIT=TARGET_HAS_JIT=1
2957  ;;
2958     *)       JIT=
2959  ;;
2960   esac
2961 fi
2962
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965   enableval="$enable_doxygen"
2966
2967 else
2968   enableval=default
2969 fi;
2970 case "$enableval" in
2971   yes) ENABLE_DOXYGEN=1
2972  ;;
2973   no)  ENABLE_DOXYGEN=0
2974  ;;
2975   default) ENABLE_DOXYGEN=0
2976  ;;
2977   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979    { (exit 1); exit 1; }; } ;;
2980 esac
2981
2982
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985   withval="$with_llvmgccdir"
2986   LLVMGCCDIR=$withval
2987
2988 fi;
2989
2990 if test "x$LLVMGCCDIR" = x ; then
2991   case "$llvm_cv_platform_type" in
2992     Linux)
2993       if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994         LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996       fi
2997       ;;
2998     SunOS)
2999       if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000         LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002       fi
3003       ;;
3004   esac
3005 fi
3006
3007
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3017   CPP=
3018 fi
3019 if test -z "$CPP"; then
3020   if test "${ac_cv_prog_CPP+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023       # Double quotes because CPP needs to be expanded
3024     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025     do
3026       ac_preproc_ok=false
3027 for ac_c_preproc_warn_flag in '' yes
3028 do
3029   # Use a header file that comes with gcc, so configuring glibc
3030   # with a fresh cross-compiler works.
3031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032   # <limits.h> exists even on freestanding compilers.
3033   # On the NeXT, cc -E runs the code through the compiler's parser,
3034   # not just through cpp. "Syntax error" is here to catch this case.
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041 #ifdef __STDC__
3042 # include <limits.h>
3043 #else
3044 # include <assert.h>
3045 #endif
3046                      Syntax error
3047 _ACEOF
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } >/dev/null; then
3056   if test -s conftest.err; then
3057     ac_cpp_err=$ac_c_preproc_warn_flag
3058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059   else
3060     ac_cpp_err=
3061   fi
3062 else
3063   ac_cpp_err=yes
3064 fi
3065 if test -z "$ac_cpp_err"; then
3066   :
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071   # Broken: fails on valid input.
3072 continue
3073 fi
3074 rm -f conftest.err conftest.$ac_ext
3075
3076   # OK, works on sane cases.  Now check whether non-existent headers
3077   # can be detected and how.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #include <ac_nonexistent.h>
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097   else
3098     ac_cpp_err=
3099   fi
3100 else
3101   ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104   # Broken: success on invalid input.
3105 continue
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110   # Passes both tests.
3111 ac_preproc_ok=:
3112 break
3113 fi
3114 rm -f conftest.err conftest.$ac_ext
3115
3116 done
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3120   break
3121 fi
3122
3123     done
3124     ac_cv_prog_CPP=$CPP
3125
3126 fi
3127   CPP=$ac_cv_prog_CPP
3128 else
3129   ac_cv_prog_CPP=$CPP
3130 fi
3131 echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6
3133 ac_preproc_ok=false
3134 for ac_c_preproc_warn_flag in '' yes
3135 do
3136   # Use a header file that comes with gcc, so configuring glibc
3137   # with a fresh cross-compiler works.
3138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139   # <limits.h> exists even on freestanding compilers.
3140   # On the NeXT, cc -E runs the code through the compiler's parser,
3141   # not just through cpp. "Syntax error" is here to catch this case.
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 #ifdef __STDC__
3149 # include <limits.h>
3150 #else
3151 # include <assert.h>
3152 #endif
3153                      Syntax error
3154 _ACEOF
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } >/dev/null; then
3163   if test -s conftest.err; then
3164     ac_cpp_err=$ac_c_preproc_warn_flag
3165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166   else
3167     ac_cpp_err=
3168   fi
3169 else
3170   ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173   :
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178   # Broken: fails on valid input.
3179 continue
3180 fi
3181 rm -f conftest.err conftest.$ac_ext
3182
3183   # OK, works on sane cases.  Now check whether non-existent headers
3184   # can be detected and how.
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <ac_nonexistent.h>
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } >/dev/null; then
3201   if test -s conftest.err; then
3202     ac_cpp_err=$ac_c_preproc_warn_flag
3203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204   else
3205     ac_cpp_err=
3206   fi
3207 else
3208   ac_cpp_err=yes
3209 fi
3210 if test -z "$ac_cpp_err"; then
3211   # Broken: success on invalid input.
3212 continue
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217   # Passes both tests.
3218 ac_preproc_ok=:
3219 break
3220 fi
3221 rm -f conftest.err conftest.$ac_ext
3222
3223 done
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3227   :
3228 else
3229   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248   for ac_prog in gcc
3249   do
3250     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$CC"; then
3258   ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6
3280 else
3281   echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3283 fi
3284
3285     test -n "$CC" && break
3286   done
3287 fi
3288 if test -z "$CC"; then
3289   ac_ct_CC=$CC
3290   for ac_prog in gcc
3291 do
3292   # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   if test -n "$ac_ct_CC"; then
3300   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   for ac_exec_ext in '' $ac_executable_extensions; do
3308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_ac_ct_CC="$ac_prog"
3310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314 done
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321 echo "${ECHO_T}$ac_ct_CC" >&6
3322 else
3323   echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3325 fi
3326
3327   test -n "$ac_ct_CC" && break
3328 done
3329
3330   CC=$ac_ct_CC
3331 fi
3332
3333
3334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338    { (exit 1); exit 1; }; }
3339
3340 # Provide some information about the compiler.
3341 echo "$as_me:$LINENO:" \
3342      "checking for C compiler version" >&5
3343 ac_compiler=`set X $ac_compile; echo $2`
3344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345   (eval $ac_compiler --version </dev/null >&5) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }
3349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350   (eval $ac_compiler -v </dev/null >&5) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }
3354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355   (eval $ac_compiler -V </dev/null >&5) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }
3359
3360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375 #ifndef __GNUC__
3376        choke me
3377 #endif
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385   (eval $ac_compile) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -z "$ac_c_werror_flag"
3393                          || test ! -s conftest.err'
3394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395   (eval $ac_try) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; } &&
3399          { ac_try='test -s conftest.$ac_objext'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; }; then
3405   ac_compiler_gnu=yes
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 ac_compiler_gnu=no
3411 fi
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415 fi
3416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418 GCC=`test $ac_compiler_gnu = yes && echo yes`
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3421 CFLAGS="-g"
3422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_g+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } &&
3451          { ac_try='test -z "$ac_c_werror_flag"
3452                          || test ! -s conftest.err'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; } &&
3458          { ac_try='test -s conftest.$ac_objext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   ac_cv_prog_cc_g=yes
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_cv_prog_cc_g=no
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475 if test "$ac_test_CFLAGS" = set; then
3476   CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478   if test "$GCC" = yes; then
3479     CFLAGS="-g -O2"
3480   else
3481     CFLAGS="-g"
3482   fi
3483 else
3484   if test "$GCC" = yes; then
3485     CFLAGS="-O2"
3486   else
3487     CFLAGS=
3488   fi
3489 fi
3490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   ac_cv_prog_cc_stdc=no
3496 ac_save_CC=$CC
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <stdarg.h>
3504 #include <stdio.h>
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3511      char **p;
3512      int i;
3513 {
3514   return p[i];
3515 }
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3517 {
3518   char *s;
3519   va_list v;
3520   va_start (v,p);
3521   s = g (p, va_arg (v,int));
3522   va_end (v);
3523   return s;
3524 }
3525
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3527    function prototypes and stuff, but not '\xHH' hex character constants.
3528    These don't provoke an error unfortunately, instead are silently treated
3529    as 'x'.  The following induces an error, until -std1 is added to get
3530    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3531    array size at least.  It's necessary to write '\x00'==0 to get something
3532    that's true only with -std1.  */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 # Don't try gcc -ansi; that turns off useful extensions and
3550 # breaks some systems' header files.
3551 # AIX                   -qlanglvl=ansi
3552 # Ultrix and OSF/1      -std1
3553 # HP-UX 10.20 and later -Ae
3554 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3555 # SVR4                  -Xc -D__EXTENSIONS__
3556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557 do
3558   CC="$ac_save_CC $ac_arg"
3559   rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561   (eval $ac_compile) 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_c_werror_flag"
3569                          || test ! -s conftest.err'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; } &&
3575          { ac_try='test -s conftest.$ac_objext'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; }; then
3581   ac_cv_prog_cc_stdc=$ac_arg
3582 break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext
3589 done
3590 rm -f conftest.$ac_ext conftest.$ac_objext
3591 CC=$ac_save_CC
3592
3593 fi
3594
3595 case "x$ac_cv_prog_cc_stdc" in
3596   x|xno)
3597     echo "$as_me:$LINENO: result: none needed" >&5
3598 echo "${ECHO_T}none needed" >&6 ;;
3599   *)
3600     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602     CC="$CC $ac_cv_prog_cc_stdc" ;;
3603 esac
3604
3605 # Some people use a C++ compiler to compile C.  Since we use `exit',
3606 # in C++ we need to declare it.  In case someone uses the same compiler
3607 # for both compiling C and C++ we need to have the C++ compiler decide
3608 # the declaration of exit, since it's the most demanding environment.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #ifndef __cplusplus
3611   choke me
3612 #endif
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616   (eval $ac_compile) 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } &&
3623          { ac_try='test -z "$ac_c_werror_flag"
3624                          || test ! -s conftest.err'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; } &&
3630          { ac_try='test -s conftest.$ac_objext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   for ac_declaration in \
3637    '' \
3638    'extern "C" void std::exit (int) throw (); using std::exit;' \
3639    'extern "C" void std::exit (int); using std::exit;' \
3640    'extern "C" void exit (int) throw ();' \
3641    'extern "C" void exit (int);' \
3642    'void exit (int);'
3643 do
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 $ac_declaration
3651 #include <stdlib.h>
3652 int
3653 main ()
3654 {
3655 exit (42);
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -z "$ac_c_werror_flag"
3670                          || test ! -s conftest.err'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest.$ac_objext'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   :
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 continue
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 $ac_declaration
3697 int
3698 main ()
3699 {
3700 exit (42);
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707   (eval $ac_compile) 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -z "$ac_c_werror_flag"
3715                          || test ! -s conftest.err'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } &&
3721          { ac_try='test -s conftest.$ac_objext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   break
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 fi
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 done
3735 rm -f conftest*
3736 if test -n "$ac_declaration"; then
3737   echo '#ifdef __cplusplus' >>confdefs.h
3738   echo $ac_declaration      >>confdefs.h
3739   echo '#endif'             >>confdefs.h
3740 fi
3741
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 fi
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754 ac_ext=cc
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760   for ac_prog in $CCC g++
3761   do
3762     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$CXX"; then
3770   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 CXX=$ac_cv_prog_CXX
3789 if test -n "$CXX"; then
3790   echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797     test -n "$CXX" && break
3798   done
3799 fi
3800 if test -z "$CXX"; then
3801   ac_ct_CXX=$CXX
3802   for ac_prog in $CCC g++
3803 do
3804   # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   if test -n "$ac_ct_CXX"; then
3812   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817   IFS=$as_save_IFS
3818   test -z "$as_dir" && as_dir=.
3819   for ac_exec_ext in '' $ac_executable_extensions; do
3820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821     ac_cv_prog_ac_ct_CXX="$ac_prog"
3822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823     break 2
3824   fi
3825 done
3826 done
3827
3828 fi
3829 fi
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3834 else
3835   echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3837 fi
3838
3839   test -n "$ac_ct_CXX" && break
3840 done
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843   CXX=$ac_ct_CXX
3844 fi
3845
3846
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849      "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852   (eval $ac_compiler --version </dev/null >&5) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857   (eval $ac_compiler -v </dev/null >&5) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862   (eval $ac_compiler -V </dev/null >&5) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }
3866
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -z "$ac_cxx_werror_flag"
3900                          || test ! -s conftest.err'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest.$ac_objext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_compiler_gnu=yes
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_compiler_gnu=no
3918 fi
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922 fi
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3928 CXXFLAGS="-g"
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951   (eval $ac_compile) 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958          { ac_try='test -z "$ac_cxx_werror_flag"
3959                          || test ! -s conftest.err'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; } &&
3965          { ac_try='test -s conftest.$ac_objext'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; }; then
3971   ac_cv_prog_cxx_g=yes
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 ac_cv_prog_cxx_g=no
3977 fi
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983   CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985   if test "$GXX" = yes; then
3986     CXXFLAGS="-g -O2"
3987   else
3988     CXXFLAGS="-g"
3989   fi
3990 else
3991   if test "$GXX" = yes; then
3992     CXXFLAGS="-O2"
3993   else
3994     CXXFLAGS=
3995   fi
3996 fi
3997 for ac_declaration in \
3998    '' \
3999    'extern "C" void std::exit (int) throw (); using std::exit;' \
4000    'extern "C" void std::exit (int); using std::exit;' \
4001    'extern "C" void exit (int) throw ();' \
4002    'extern "C" void exit (int);' \
4003    'void exit (int);'
4004 do
4005   cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 $ac_declaration
4012 #include <stdlib.h>
4013 int
4014 main ()
4015 {
4016 exit (42);
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023   (eval $ac_compile) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } &&
4030          { ac_try='test -z "$ac_cxx_werror_flag"
4031                          || test ! -s conftest.err'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   :
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048 continue
4049 fi
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 $ac_declaration
4058 int
4059 main ()
4060 {
4061 exit (42);
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068   (eval $ac_compile) 2>conftest.er1
4069   ac_status=$?
4070   grep -v '^ *+' conftest.er1 >conftest.err
4071   rm -f conftest.er1
4072   cat conftest.err >&5
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } &&
4075          { ac_try='test -z "$ac_cxx_werror_flag"
4076                          || test ! -s conftest.err'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   break
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096 rm -f conftest*
4097 if test -n "$ac_declaration"; then
4098   echo '#ifdef __cplusplus' >>confdefs.h
4099   echo $ac_declaration      >>confdefs.h
4100   echo '#endif'             >>confdefs.h
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109 echo "$as_me:$LINENO: checking " >&5
4110 echo $ECHO_N "checking ... $ECHO_C" >&6
4111 if test "${ac_cv_has_flex+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   for ac_prog in flex lex
4115 do
4116   # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LEX"; then
4124   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LEX="$ac_prog"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LEX=$ac_cv_prog_LEX
4143 if test -n "$LEX"; then
4144   echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151   test -n "$LEX" && break
4152 done
4153 test -n "$LEX" || LEX=":"
4154
4155 if test -z "$LEXLIB"
4156 then
4157   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   ac_check_lib_save_LIBS=$LIBS
4163 LIBS="-lfl  $LIBS"
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170
4171 /* Override any gcc2 internal prototype to avoid an error.  */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 /* We use char because int might match the return type of a gcc2
4176    builtin and then its argument prototype would still apply.  */
4177 char yywrap ();
4178 int
4179 main ()
4180 {
4181 yywrap ();
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188   (eval $ac_link) 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } &&
4195          { ac_try='test -z "$ac_c_werror_flag"
4196                          || test ! -s conftest.err'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest$ac_exeext'
4203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204   (eval $ac_try) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   ac_cv_lib_fl_yywrap=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ac_cv_lib_fl_yywrap=no
4214 fi
4215 rm -f conftest.err conftest.$ac_objext \
4216       conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4218 fi
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221 if test $ac_cv_lib_fl_yywrap = yes; then
4222   LEXLIB="-lfl"
4223 else
4224   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   ac_check_lib_save_LIBS=$LIBS
4230 LIBS="-ll  $LIBS"
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 /* Override any gcc2 internal prototype to avoid an error.  */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 /* We use char because int might match the return type of a gcc2
4243    builtin and then its argument prototype would still apply.  */
4244 char yywrap ();
4245 int
4246 main ()
4247 {
4248 yywrap ();
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_cv_lib_l_yywrap=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_cv_lib_l_yywrap=no
4281 fi
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4285 fi
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288 if test $ac_cv_lib_l_yywrap = yes; then
4289   LEXLIB="-ll"
4290 fi
4291
4292 fi
4293
4294 fi
4295
4296 if test "x$LEX" != "x:"; then
4297   echo "$as_me:$LINENO: checking lex output file root" >&5
4298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299 if test "${ac_cv_prog_lex_root+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   # The minimal lex program is just a single line: %%.  But some broken lexes
4303 # (Solaris, I think it was) want two %% lines, so accommodate them.
4304 cat >conftest.l <<_ACEOF
4305 %%
4306 %%
4307 _ACEOF
4308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309   (eval $LEX conftest.l) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }
4313 if test -f lex.yy.c; then
4314   ac_cv_prog_lex_root=lex.yy
4315 elif test -f lexyy.c; then
4316   ac_cv_prog_lex_root=lexyy
4317 else
4318   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325 rm -f conftest.l
4326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   # POSIX says lex can declare yytext either as a pointer or an array; the
4334 # default is implementation-dependent. Figure out which it is, since
4335 # not all implementations provide the %pointer and %array declarations.
4336 ac_cv_prog_lex_yytext_pointer=no
4337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338 ac_save_LIBS=$LIBS
4339 LIBS="$LIBS $LEXLIB"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 `cat $LEX_OUTPUT_ROOT.c`
4342 _ACEOF
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345   (eval $ac_link) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest$ac_exeext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_prog_lex_yytext_pointer=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 fi
4371 rm -f conftest.err conftest.$ac_objext \
4372       conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_save_LIBS
4374 rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define YYTEXT_POINTER 1
4383 _ACEOF
4384
4385 fi
4386
4387 fi
4388
4389 fi
4390 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391 echo "${ECHO_T}$ac_cv_has_flex" >&6
4392 if test "$LEX" != "flex"; then
4393   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394 echo "$as_me: error: flex not found but required" >&2;}
4395    { (exit 1); exit 1; }; }
4396 else
4397   FLEX=flex
4398
4399 fi
4400
4401 echo "$as_me:$LINENO: checking " >&5
4402 echo $ECHO_N "checking ... $ECHO_C" >&6
4403 if test "${llvm_cv_has_bison+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   for ac_prog in 'bison -y' byacc
4407 do
4408   # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_YACC+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$YACC"; then
4416   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_YACC="$ac_prog"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432 fi
4433 fi
4434 YACC=$ac_cv_prog_YACC
4435 if test -n "$YACC"; then
4436   echo "$as_me:$LINENO: result: $YACC" >&5
4437 echo "${ECHO_T}$YACC" >&6
4438 else
4439   echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443   test -n "$YACC" && break
4444 done
4445 test -n "$YACC" || YACC="yacc"
4446
4447
4448 fi
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454    { (exit 1); exit 1; }; }
4455 else
4456   BISON=bison
4457
4458 fi
4459
4460
4461 echo "$as_me:$LINENO: checking for GNU make" >&5
4462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463 if test "${llvm_cv_gnu_make_command+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   llvm_cv_gnu_make_command=''
4467  for a in "$MAKE" make gmake gnumake ; do
4468   if test -z "$a" ; then continue ; fi ;
4469   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470   then
4471    llvm_cv_gnu_make_command=$a ;
4472    break;
4473   fi
4474  done
4475 fi
4476 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4479    ifGNUmake='' ;
4480  else
4481    ifGNUmake='#' ;
4482    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483 echo "${ECHO_T}\"Not found\"" >&6;
4484  fi
4485
4486
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 LN_S=$as_ln_s
4490 if test "$LN_S" = "ln -s"; then
4491   echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4496 fi
4497
4498 # Extract the first word of "date", so it can be a program name with args.
4499 set dummy date; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_path_DATE+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $DATE in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523
4524   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4525   ;;
4526 esac
4527 fi
4528 DATE=$ac_cv_path_DATE
4529
4530 if test -n "$DATE"; then
4531   echo "$as_me:$LINENO: result: $DATE" >&5
4532 echo "${ECHO_T}$DATE" >&6
4533 else
4534   echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536 fi
4537
4538 # Extract the first word of "find", so it can be a program name with args.
4539 set dummy find; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_path_FIND+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $FIND in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563
4564   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565   ;;
4566 esac
4567 fi
4568 FIND=$ac_cv_path_FIND
4569
4570 if test -n "$FIND"; then
4571   echo "$as_me:$LINENO: result: $FIND" >&5
4572 echo "${ECHO_T}$FIND" >&6
4573 else
4574   echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578 # Extract the first word of "grep", so it can be a program name with args.
4579 set dummy grep; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   case $GREP in
4586   [\\/]* | ?:[\\/]*)
4587   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588   ;;
4589   *)
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603
4604   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605   ;;
4606 esac
4607 fi
4608 GREP=$ac_cv_path_GREP
4609
4610 if test -n "$GREP"; then
4611   echo "$as_me:$LINENO: result: $GREP" >&5
4612 echo "${ECHO_T}$GREP" >&6
4613 else
4614   echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616 fi
4617
4618 # Extract the first word of "mkdir", so it can be a program name with args.
4619 set dummy mkdir; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_MKDIR+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   case $MKDIR in
4626   [\\/]* | ?:[\\/]*)
4627   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628   ;;
4629   *)
4630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643
4644   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645   ;;
4646 esac
4647 fi
4648 MKDIR=$ac_cv_path_MKDIR
4649
4650 if test -n "$MKDIR"; then
4651   echo "$as_me:$LINENO: result: $MKDIR" >&5
4652 echo "${ECHO_T}$MKDIR" >&6
4653 else
4654   echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4656 fi
4657
4658 # Extract the first word of "mv", so it can be a program name with args.
4659 set dummy mv; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_path_MV+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   case $MV in
4666   [\\/]* | ?:[\\/]*)
4667   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668   ;;
4669   *)
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683
4684   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685   ;;
4686 esac
4687 fi
4688 MV=$ac_cv_path_MV
4689
4690 if test -n "$MV"; then
4691   echo "$as_me:$LINENO: result: $MV" >&5
4692 echo "${ECHO_T}$MV" >&6
4693 else
4694   echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4696 fi
4697
4698 # Extract the first word of "pax", so it can be a program name with args.
4699 set dummy pax; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_path_PAX+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   case $PAX in
4706   [\\/]* | ?:[\\/]*)
4707   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708   ;;
4709   *)
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715   for ac_exec_ext in '' $ac_executable_extensions; do
4716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719     break 2
4720   fi
4721 done
4722 done
4723
4724   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725   ;;
4726 esac
4727 fi
4728 PAX=$ac_cv_path_PAX
4729
4730 if test -n "$PAX"; then
4731   echo "$as_me:$LINENO: result: $PAX" >&5
4732 echo "${ECHO_T}$PAX" >&6
4733 else
4734   echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 if test -n "$ac_tool_prefix"; then
4739   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$RANLIB"; then
4747   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763 fi
4764 fi
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767   echo "$as_me:$LINENO: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 fi
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776   ac_ct_RANLIB=$RANLIB
4777   # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$ac_ct_RANLIB"; then
4785   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_ac_ct_RANLIB="ranlib"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802 fi
4803 fi
4804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805 if test -n "$ac_ct_RANLIB"; then
4806   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808 else
4809   echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813   RANLIB=$ac_ct_RANLIB
4814 else
4815   RANLIB="$ac_cv_prog_RANLIB"
4816 fi
4817
4818 # Extract the first word of "rm", so it can be a program name with args.
4819 set dummy rm; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_path_RM+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   case $RM in
4826   [\\/]* | ?:[\\/]*)
4827   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828   ;;
4829   *)
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843
4844   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845   ;;
4846 esac
4847 fi
4848 RM=$ac_cv_path_RM
4849
4850 if test -n "$RM"; then
4851   echo "$as_me:$LINENO: result: $RM" >&5
4852 echo "${ECHO_T}$RM" >&6
4853 else
4854   echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 fi
4857
4858 # Extract the first word of "sed", so it can be a program name with args.
4859 set dummy sed; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_path_SED+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case $SED in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883
4884   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885   ;;
4886 esac
4887 fi
4888 SED=$ac_cv_path_SED
4889
4890 if test -n "$SED"; then
4891   echo "$as_me:$LINENO: result: $SED" >&5
4892 echo "${ECHO_T}$SED" >&6
4893 else
4894   echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 # Extract the first word of "tar", so it can be a program name with args.
4899 set dummy tar; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_TAR+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $TAR in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923
4924   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925   ;;
4926 esac
4927 fi
4928 TAR=$ac_cv_path_TAR
4929
4930 if test -n "$TAR"; then
4931   echo "$as_me:$LINENO: result: $TAR" >&5
4932 echo "${ECHO_T}$TAR" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 # Find a good install program.  We prefer a C program (faster),
4940 # so one script is as good as another.  But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4945 # AIX /bin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954 if test -z "$INSTALL"; then
4955 if test "${ac_cv_path_install+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   # Account for people who put trailing slashes in PATH elements.
4964 case $as_dir/ in
4965   ./ | .// | /cC/* | \
4966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968   /usr/ucb/* ) ;;
4969   *)
4970     # OSF1 and SCO ODT 3.0 have their own names for install.
4971     # Don't use installbsd from OSF since it installs stuff as root
4972     # by default.
4973     for ac_prog in ginstall scoinst install; do
4974       for ac_exec_ext in '' $ac_executable_extensions; do
4975         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976           if test $ac_prog = install &&
4977             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978             # AIX install.  It has an incompatible calling convention.
4979             :
4980           elif test $ac_prog = install &&
4981             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982             # program-specific install script used by HP pwplus--don't use.
4983             :
4984           else
4985             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986             break 3
4987           fi
4988         fi
4989       done
4990     done
4991     ;;
4992 esac
4993 done
4994
4995
4996 fi
4997   if test "${ac_cv_path_install+set}" = set; then
4998     INSTALL=$ac_cv_path_install
4999   else
5000     # As a last resort, use the slow shell script.  We don't cache a
5001     # path for INSTALL within a source directory, because that will
5002     # break other packages using the cache if that directory is
5003     # removed, or if the path is relative.
5004     INSTALL=$ac_install_sh
5005   fi
5006 fi
5007 echo "$as_me:$LINENO: result: $INSTALL" >&5
5008 echo "${ECHO_T}$INSTALL" >&6
5009
5010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011 # It thinks the first close brace ends the variable substitution.
5012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019 # Extract the first word of "bzip2", so it can be a program name with args.
5020 set dummy bzip2; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_BZIP2+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   case $BZIP2 in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044
5045   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046   ;;
5047 esac
5048 fi
5049 BZIP2=$ac_cv_path_BZIP2
5050
5051 if test -n "$BZIP2"; then
5052   echo "$as_me:$LINENO: result: $BZIP2" >&5
5053 echo "${ECHO_T}$BZIP2" >&6
5054 else
5055   echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 fi
5058
5059 # Extract the first word of "dot", so it can be a program name with args.
5060 set dummy dot; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_DOT+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $DOT in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086   ;;
5087 esac
5088 fi
5089 DOT=$ac_cv_path_DOT
5090
5091 if test -n "$DOT"; then
5092   echo "$as_me:$LINENO: result: $DOT" >&5
5093 echo "${ECHO_T}$DOT" >&6
5094 else
5095   echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099 # Extract the first word of "doxygen", so it can be a program name with args.
5100 set dummy doxygen; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   case $DOXYGEN in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124
5125   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126   ;;
5127 esac
5128 fi
5129 DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131 if test -n "$DOXYGEN"; then
5132   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133 echo "${ECHO_T}$DOXYGEN" >&6
5134 else
5135   echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139 # Extract the first word of "etags", so it can be a program name with args.
5140 set dummy etags; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_path_ETAGS+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   case $ETAGS in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164
5165   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166   ;;
5167 esac
5168 fi
5169 ETAGS=$ac_cv_path_ETAGS
5170
5171 if test -n "$ETAGS"; then
5172   echo "$as_me:$LINENO: result: $ETAGS" >&5
5173 echo "${ECHO_T}$ETAGS" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179 # Extract the first word of "groff", so it can be a program name with args.
5180 set dummy groff; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_path_GROFF+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   case $GROFF in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204
5205   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206   ;;
5207 esac
5208 fi
5209 GROFF=$ac_cv_path_GROFF
5210
5211 if test -n "$GROFF"; then
5212   echo "$as_me:$LINENO: result: $GROFF" >&5
5213 echo "${ECHO_T}$GROFF" >&6
5214 else
5215   echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5217 fi
5218
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_path_GZIP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   case $GZIP in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244
5245   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246   ;;
5247 esac
5248 fi
5249 GZIP=$ac_cv_path_GZIP
5250
5251 if test -n "$GZIP"; then
5252   echo "$as_me:$LINENO: result: $GZIP" >&5
5253 echo "${ECHO_T}$GZIP" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259 # Extract the first word of "pod2html", so it can be a program name with args.
5260 set dummy pod2html; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_path_POD2HTML+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   case $POD2HTML in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284
5285   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286   ;;
5287 esac
5288 fi
5289 POD2HTML=$ac_cv_path_POD2HTML
5290
5291 if test -n "$POD2HTML"; then
5292   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293 echo "${ECHO_T}$POD2HTML" >&6
5294 else
5295   echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297 fi
5298
5299 # Extract the first word of "pod2man", so it can be a program name with args.
5300 set dummy pod2man; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_POD2MAN+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   case $POD2MAN in
5307   [\\/]* | ?:[\\/]*)
5308   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309   ;;
5310   *)
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324
5325   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326   ;;
5327 esac
5328 fi
5329 POD2MAN=$ac_cv_path_POD2MAN
5330
5331 if test -n "$POD2MAN"; then
5332   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333 echo "${ECHO_T}$POD2MAN" >&6
5334 else
5335   echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337 fi
5338
5339 # Extract the first word of "python", so it can be a program name with args.
5340 set dummy python; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_path_PYTHON+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   case $PYTHON in
5347   [\\/]* | ?:[\\/]*)
5348   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5349   ;;
5350   *)
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5366   ;;
5367 esac
5368 fi
5369 PYTHON=$ac_cv_path_PYTHON
5370
5371 if test -n "$PYTHON"; then
5372   echo "$as_me:$LINENO: result: $PYTHON" >&5
5373 echo "${ECHO_T}$PYTHON" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 # Extract the first word of "qmtest", so it can be a program name with args.
5380 set dummy qmtest; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_path_QMTEST+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   case $QMTEST in
5387   [\\/]* | ?:[\\/]*)
5388   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5389   ;;
5390   *)
5391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403 done
5404
5405   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5406   ;;
5407 esac
5408 fi
5409 QMTEST=$ac_cv_path_QMTEST
5410
5411 if test -n "$QMTEST"; then
5412   echo "$as_me:$LINENO: result: $QMTEST" >&5
5413 echo "${ECHO_T}$QMTEST" >&6
5414 else
5415   echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418
5419 # Extract the first word of "runtest", so it can be a program name with args.
5420 set dummy runtest; ac_word=$2
5421 echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_path_RUNTEST+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   case $RUNTEST in
5427   [\\/]* | ?:[\\/]*)
5428   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5429   ;;
5430   *)
5431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436   for ac_exec_ext in '' $ac_executable_extensions; do
5437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443 done
5444
5445   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5446   ;;
5447 esac
5448 fi
5449 RUNTEST=$ac_cv_path_RUNTEST
5450
5451 if test -n "$RUNTEST"; then
5452   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5453 echo "${ECHO_T}$RUNTEST" >&6
5454 else
5455   echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459
5460 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
5461 ../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
5462 /../../../../../.."
5463 no_itcl=true
5464 echo "$as_me:$LINENO: checking for the tclsh program" >&5
5465 echo $ECHO_N "checking for the tclsh program... $ECHO_C" >&6
5466
5467 # Check whether --with-tclinclude or --without-tclinclude was given.
5468 if test "${with_tclinclude+set}" = set; then
5469   withval="$with_tclinclude"
5470   with_tclinclude=${withval}
5471 fi;
5472 if test "${ac_cv_path_tclsh+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475
5476 if test x"${with_tclinclude}" != x ; then
5477   if test -f ${with_tclinclude}/tclsh ; then
5478     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5479   elif test -f ${with_tclinclude}/src/tclsh ; then
5480     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5481   else
5482     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5483 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5484    { (exit 1); exit 1; }; }
5485   fi
5486 fi
5487
5488 fi
5489
5490
5491 if test x"${ac_cv_path_tclsh}" = x ; then
5492         for i in $dirlist; do
5493         if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
5494             tclpath=$srcdir/$i
5495             break
5496         fi
5497     done
5498
5499             for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
5500         if test -f $i/src/tclsh ; then
5501           ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
5502           break
5503         fi
5504     done
5505 fi
5506
5507 if test x"${ac_cv_path_tclsh}" = x ; then
5508    echo "$as_me:$LINENO: result: none" >&5
5509 echo "${ECHO_T}none" >&6
5510    # Extract the first word of "tclsh", so it can be a program name with args.
5511 set dummy tclsh; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_tclsh+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   case $tclsh in
5518   [\\/]* | ?:[\\/]*)
5519   ac_cv_path_tclsh="$tclsh" # Let the user override the test with a path.
5520   ;;
5521   *)
5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_exec_ext in '' $ac_executable_extensions; do
5528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_path_tclsh="$as_dir/$ac_word$ac_exec_ext"
5530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534 done
5535
5536   ;;
5537 esac
5538 fi
5539 tclsh=$ac_cv_path_tclsh
5540
5541 if test -n "$tclsh"; then
5542   echo "$as_me:$LINENO: result: $tclsh" >&5
5543 echo "${ECHO_T}$tclsh" >&6
5544 else
5545   echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5547 fi
5548
5549 else
5550    echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5551 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5552 fi
5553 TCLSH="${ac_cv_path_tclsh}"
5554
5555
5556 # Extract the first word of "zip", so it can be a program name with args.
5557 set dummy zip; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_path_ZIP+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   case $ZIP in
5564   [\\/]* | ?:[\\/]*)
5565   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5566   ;;
5567   *)
5568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573   for ac_exec_ext in '' $ac_executable_extensions; do
5574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580 done
5581
5582   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5583   ;;
5584 esac
5585 fi
5586 ZIP=$ac_cv_path_ZIP
5587
5588 if test -n "$ZIP"; then
5589   echo "$as_me:$LINENO: result: $ZIP" >&5
5590 echo "${ECHO_T}$ZIP" >&6
5591 else
5592   echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595
5596
5597 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5598 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5599 if test "${llvm_cv_link_use_r+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602    ac_ext=c
5603 ac_cpp='$CPP $CPPFLAGS'
5604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607
5608   oldcflags="$CFLAGS"
5609   CFLAGS="$CFLAGS -Wl,-R."
5610   cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616
5617 int
5618 main ()
5619 {
5620 int main() { return 0; }
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627   (eval $ac_link) 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -z "$ac_c_werror_flag"
5635                          || test ! -s conftest.err'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; } &&
5641          { ac_try='test -s conftest$ac_exeext'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; }; then
5647   llvm_cv_link_use_r=yes
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 llvm_cv_link_use_r=no
5653 fi
5654 rm -f conftest.err conftest.$ac_objext \
5655       conftest$ac_exeext conftest.$ac_ext
5656   CFLAGS="$oldcflags"
5657   ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662
5663
5664 fi
5665 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5666 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5667 if test "$llvm_cv_link_use_r" = yes ; then
5668
5669 cat >>confdefs.h <<\_ACEOF
5670 #define HAVE_LINK_R 1
5671 _ACEOF
5672
5673   fi
5674
5675
5676
5677
5678 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5680 if test "${ac_cv_c_const+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689
5690 int
5691 main ()
5692 {
5693 /* FIXME: Include the comments suggested by Paul. */
5694 #ifndef __cplusplus
5695   /* Ultrix mips cc rejects this.  */
5696   typedef int charset[2];
5697   const charset x;
5698   /* SunOS 4.1.1 cc rejects this.  */
5699   char const *const *ccp;
5700   char **p;
5701   /* NEC SVR4.0.2 mips cc rejects this.  */
5702   struct point {int x, y;};
5703   static struct point const zero = {0,0};
5704   /* AIX XL C 1.02.0.0 rejects this.
5705      It does not let you subtract one const X* pointer from another in
5706      an arm of an if-expression whose if-part is not a constant
5707      expression */
5708   const char *g = "string";
5709   ccp = &g + (g ? g-g : 0);
5710   /* HPUX 7.0 cc rejects these. */
5711   ++ccp;
5712   p = (char**) ccp;
5713   ccp = (char const *const *) p;
5714   { /* SCO 3.2v4 cc rejects this.  */
5715     char *t;
5716     char const *s = 0 ? (char *) 0 : (char const *) 0;
5717
5718     *t++ = 0;
5719   }
5720   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5721     int x[] = {25, 17};
5722     const int *foo = &x[0];
5723     ++foo;
5724   }
5725   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5726     typedef const int *iptr;
5727     iptr p = 0;
5728     ++p;
5729   }
5730   { /* AIX XL C 1.02.0.0 rejects this saying
5731        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5732     struct s { int j; const int *ap[3]; };
5733     struct s *b; b->j = 5;
5734   }
5735   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5736     const int foo = 10;
5737   }
5738 #endif
5739
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746   (eval $ac_compile) 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } &&
5753          { ac_try='test -z "$ac_c_werror_flag"
5754                          || test ! -s conftest.err'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; } &&
5760          { ac_try='test -s conftest.$ac_objext'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; }; then
5766   ac_cv_c_const=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771 ac_cv_c_const=no
5772 fi
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5776 echo "${ECHO_T}$ac_cv_c_const" >&6
5777 if test $ac_cv_c_const = no; then
5778
5779 cat >>confdefs.h <<\_ACEOF
5780 #define const
5781 _ACEOF
5782
5783 fi
5784
5785
5786 echo "$as_me:$LINENO: checking for egrep" >&5
5787 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5788 if test "${ac_cv_prog_egrep+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5792     then ac_cv_prog_egrep='grep -E'
5793     else ac_cv_prog_egrep='egrep'
5794     fi
5795 fi
5796 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5797 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5798  EGREP=$ac_cv_prog_egrep
5799
5800
5801 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5803 if test "${ac_cv_header_stdc+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812 #include <stdlib.h>
5813 #include <stdarg.h>
5814 #include <string.h>
5815 #include <float.h>
5816
5817 int
5818 main ()
5819 {
5820
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_c_werror_flag"
5835                          || test ! -s conftest.err'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; } &&
5841          { ac_try='test -s conftest.$ac_objext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_header_stdc=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cv_header_stdc=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855
5856 if test $ac_cv_header_stdc = yes; then
5857   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5858   cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 #include <string.h>
5865
5866 _ACEOF
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868   $EGREP "memchr" >/dev/null 2>&1; then
5869   :
5870 else
5871   ac_cv_header_stdc=no
5872 fi
5873 rm -f conftest*
5874
5875 fi
5876
5877 if test $ac_cv_header_stdc = yes; then
5878   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5879   cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h.  */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h.  */
5885 #include <stdlib.h>
5886
5887 _ACEOF
5888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889   $EGREP "free" >/dev/null 2>&1; then
5890   :
5891 else
5892   ac_cv_header_stdc=no
5893 fi
5894 rm -f conftest*
5895
5896 fi
5897
5898 if test $ac_cv_header_stdc = yes; then
5899   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5900   if test "$cross_compiling" = yes; then
5901   :
5902 else
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 #include <ctype.h>
5910 #if ((' ' & 0x0FF) == 0x020)
5911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5913 #else
5914 # define ISLOWER(c) \
5915                    (('a' <= (c) && (c) <= 'i') \
5916                      || ('j' <= (c) && (c) <= 'r') \
5917                      || ('s' <= (c) && (c) <= 'z'))
5918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5919 #endif
5920
5921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 int
5923 main ()
5924 {
5925   int i;
5926   for (i = 0; i < 256; i++)
5927     if (XOR (islower (i), ISLOWER (i))
5928         || toupper (i) != TOUPPER (i))
5929       exit(2);
5930   exit (0);
5931 }
5932 _ACEOF
5933 rm -f conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940   (eval $ac_try) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; }; then
5944   :
5945 else
5946   echo "$as_me: program exited with status $ac_status" >&5
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ( exit $ac_status )
5951 ac_cv_header_stdc=no
5952 fi
5953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 fi
5956 fi
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5958 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5959 if test $ac_cv_header_stdc = yes; then
5960
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STDC_HEADERS 1
5963 _ACEOF
5964
5965 fi
5966
5967
5968
5969
5970
5971
5972 ac_header_dirent=no
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h.  */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h.  */
5986 #include <sys/types.h>
5987 #include <$ac_hdr>
5988
5989 int
5990 main ()
5991 {
5992 if ((DIR *) 0)
5993 return 0;
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000   (eval $ac_compile) 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } &&
6007          { ac_try='test -z "$ac_c_werror_flag"
6008                          || test ! -s conftest.err'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; } &&
6014          { ac_try='test -s conftest.$ac_objext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020   eval "$as_ac_Header=yes"
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 eval "$as_ac_Header=no"
6026 fi
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 fi
6029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032   cat >>confdefs.h <<_ACEOF
6033 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6034 _ACEOF
6035
6036 ac_header_dirent=$ac_hdr; break
6037 fi
6038
6039 done
6040 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6041 if test $ac_header_dirent = dirent.h; then
6042   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6044 if test "${ac_cv_search_opendir+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_func_search_save_LIBS=$LIBS
6048 ac_cv_search_opendir=no
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055
6056 /* Override any gcc2 internal prototype to avoid an error.  */
6057 #ifdef __cplusplus
6058 extern "C"
6059 #endif
6060 /* We use char because int might match the return type of a gcc2
6061    builtin and then its argument prototype would still apply.  */
6062 char opendir ();
6063 int
6064 main ()
6065 {
6066 opendir ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073   (eval $ac_link) 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -z "$ac_c_werror_flag"
6081                          || test ! -s conftest.err'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; } &&
6087          { ac_try='test -s conftest$ac_exeext'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; }; then
6093   ac_cv_search_opendir="none required"
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 fi
6099 rm -f conftest.err conftest.$ac_objext \
6100       conftest$ac_exeext conftest.$ac_ext
6101 if test "$ac_cv_search_opendir" = no; then
6102   for ac_lib in dir; do
6103     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6104     cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110
6111 /* Override any gcc2 internal prototype to avoid an error.  */
6112 #ifdef __cplusplus
6113 extern "C"
6114 #endif
6115 /* We use char because int might match the return type of a gcc2
6116    builtin and then its argument prototype would still apply.  */
6117 char opendir ();
6118 int
6119 main ()
6120 {
6121 opendir ();
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128   (eval $ac_link) 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } &&
6135          { ac_try='test -z "$ac_c_werror_flag"
6136                          || test ! -s conftest.err'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; } &&
6142          { ac_try='test -s conftest$ac_exeext'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; }; then
6148   ac_cv_search_opendir="-l$ac_lib"
6149 break
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 fi
6155 rm -f conftest.err conftest.$ac_objext \
6156       conftest$ac_exeext conftest.$ac_ext
6157   done
6158 fi
6159 LIBS=$ac_func_search_save_LIBS
6160 fi
6161 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6162 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6163 if test "$ac_cv_search_opendir" != no; then
6164   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6165
6166 fi
6167
6168 else
6169   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6171 if test "${ac_cv_search_opendir+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   ac_func_search_save_LIBS=$LIBS
6175 ac_cv_search_opendir=no
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h.  */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h.  */
6182
6183 /* Override any gcc2 internal prototype to avoid an error.  */
6184 #ifdef __cplusplus
6185 extern "C"
6186 #endif
6187 /* We use char because int might match the return type of a gcc2
6188    builtin and then its argument prototype would still apply.  */
6189 char opendir ();
6190 int
6191 main ()
6192 {
6193 opendir ();
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -z "$ac_c_werror_flag"
6208                          || test ! -s conftest.err'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; } &&
6214          { ac_try='test -s conftest$ac_exeext'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   ac_cv_search_opendir="none required"
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 fi
6226 rm -f conftest.err conftest.$ac_objext \
6227       conftest$ac_exeext conftest.$ac_ext
6228 if test "$ac_cv_search_opendir" = no; then
6229   for ac_lib in x; do
6230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6231     cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237
6238 /* Override any gcc2 internal prototype to avoid an error.  */
6239 #ifdef __cplusplus
6240 extern "C"
6241 #endif
6242 /* We use char because int might match the return type of a gcc2
6243    builtin and then its argument prototype would still apply.  */
6244 char opendir ();
6245 int
6246 main ()
6247 {
6248 opendir ();
6249   ;
6250   return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255   (eval $ac_link) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } &&
6262          { ac_try='test -z "$ac_c_werror_flag"
6263                          || test ! -s conftest.err'
6264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265   (eval $ac_try) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; } &&
6269          { ac_try='test -s conftest$ac_exeext'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; }; then
6275   ac_cv_search_opendir="-l$ac_lib"
6276 break
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 fi
6282 rm -f conftest.err conftest.$ac_objext \
6283       conftest$ac_exeext conftest.$ac_ext
6284   done
6285 fi
6286 LIBS=$ac_func_search_save_LIBS
6287 fi
6288 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6289 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6290 if test "$ac_cv_search_opendir" != no; then
6291   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6292
6293 fi
6294
6295 fi
6296
6297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6308                   inttypes.h stdint.h unistd.h
6309 do
6310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6311 echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 $ac_includes_default
6323
6324 #include <$ac_header>
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328   (eval $ac_compile) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -z "$ac_c_werror_flag"
6336                          || test ! -s conftest.err'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; } &&
6342          { ac_try='test -s conftest.$ac_objext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   eval "$as_ac_Header=yes"
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353 eval "$as_ac_Header=no"
6354 fi
6355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360   cat >>confdefs.h <<_ACEOF
6361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362 _ACEOF
6363
6364 fi
6365
6366 done
6367
6368
6369
6370 for ac_header in dlfcn.h
6371 do
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374   echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 else
6382   # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 $ac_includes_default
6392 #include <$ac_header>
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396   (eval $ac_compile) 2>conftest.er1
6397   ac_status=$?
6398   grep -v '^ *+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -z "$ac_c_werror_flag"
6404                          || test ! -s conftest.err'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; } &&
6410          { ac_try='test -s conftest.$ac_objext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_header_compiler=yes
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_header_compiler=no
6422 fi
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6426
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <$ac_header>
6437 _ACEOF
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440   ac_status=$?
6441   grep -v '^ *+' conftest.er1 >conftest.err
6442   rm -f conftest.er1
6443   cat conftest.err >&5
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } >/dev/null; then
6446   if test -s conftest.err; then
6447     ac_cpp_err=$ac_c_preproc_warn_flag
6448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6449   else
6450     ac_cpp_err=
6451   fi
6452 else
6453   ac_cpp_err=yes
6454 fi
6455 if test -z "$ac_cpp_err"; then
6456   ac_header_preproc=yes
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461   ac_header_preproc=no
6462 fi
6463 rm -f conftest.err conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6466
6467 # So?  What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469   yes:no: )
6470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474     ac_header_preproc=yes
6475     ;;
6476   no:yes:* )
6477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6489     (
6490       cat <<\_ASBOX
6491 ## ----------------------------------- ##
6492 ## Report this to llvmbugs@cs.uiuc.edu ##
6493 ## ----------------------------------- ##
6494 _ASBOX
6495     ) |
6496       sed "s/^/$as_me: WARNING:     /" >&2
6497     ;;
6498 esac
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   eval "$as_ac_Header=\$ac_header_preproc"
6505 fi
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6508
6509 fi
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511   cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6514
6515 fi
6516
6517 done
6518
6519 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6520 if test "${enable_ltdl_install+set}" = set; then
6521   enableval="$enable_ltdl_install"
6522
6523 fi;
6524
6525
6526
6527 if test x"${enable_ltdl_install-no}" != xno; then
6528   INSTALL_LTDL_TRUE=
6529   INSTALL_LTDL_FALSE='#'
6530 else
6531   INSTALL_LTDL_TRUE='#'
6532   INSTALL_LTDL_FALSE=
6533 fi
6534
6535
6536
6537 if test x"${enable_ltdl_convenience-no}" != xno; then
6538   CONVENIENCE_LTDL_TRUE=
6539   CONVENIENCE_LTDL_FALSE='#'
6540 else
6541   CONVENIENCE_LTDL_TRUE='#'
6542   CONVENIENCE_LTDL_FALSE=
6543 fi
6544
6545
6546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6548 library_names_spec=
6549 libname_spec='lib$name'
6550 soname_spec=
6551 shrext_cmds=".so"
6552 postinstall_cmds=
6553 postuninstall_cmds=
6554 finish_cmds=
6555 finish_eval=
6556 shlibpath_var=
6557 shlibpath_overrides_runpath=unknown
6558 version_type=none
6559 dynamic_linker="$host_os ld.so"
6560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6561 if test "$GCC" = yes; then
6562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6564     # if the path contains ";" then we assume it to be the separator
6565     # otherwise default to the standard path separator (i.e. ":") - it is
6566     # assumed that no part of a normal pathname contains ";" but that should
6567     # okay in the real world where ";" in dirpaths is itself problematic.
6568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6569   else
6570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6571   fi
6572 else
6573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6574 fi
6575 need_lib_prefix=unknown
6576 hardcode_into_libs=no
6577
6578 # when you set need_version to no, make sure it does not cause -set_version
6579 # flags to be left without arguments
6580 need_version=unknown
6581
6582 case $host_os in
6583 aix3*)
6584   version_type=linux
6585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6586   shlibpath_var=LIBPATH
6587
6588   # AIX 3 has no versioning support, so we append a major version to the name.
6589   soname_spec='${libname}${release}${shared_ext}$major'
6590   ;;
6591
6592 aix4* | aix5*)
6593   version_type=linux
6594   need_lib_prefix=no
6595   need_version=no
6596   hardcode_into_libs=yes
6597   if test "$host_cpu" = ia64; then
6598     # AIX 5 supports IA64
6599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6600     shlibpath_var=LD_LIBRARY_PATH
6601   else
6602     # With GCC up to 2.95.x, collect2 would create an import file
6603     # for dependence libraries.  The import file would start with
6604     # the line `#! .'.  This would cause the generated library to
6605     # depend on `.', always an invalid library.  This was fixed in
6606     # development snapshots of GCC prior to 3.0.
6607     case $host_os in
6608       aix4 | aix4.[01] | aix4.[01].*)
6609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6610            echo ' yes '
6611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6612         :
6613       else
6614         can_build_shared=no
6615       fi
6616       ;;
6617     esac
6618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6619     # soname into executable. Probably we can add versioning support to
6620     # collect2, so additional links can be useful in future.
6621     if test "$aix_use_runtimelinking" = yes; then
6622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6623       # instead of lib<name>.a to let people know that these are not
6624       # typical AIX shared libraries.
6625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6626     else
6627       # We preserve .a as extension for shared libraries through AIX4.2
6628       # and later when we are not doing run time linking.
6629       library_names_spec='${libname}${release}.a $libname.a'
6630       soname_spec='${libname}${release}${shared_ext}$major'
6631     fi
6632     shlibpath_var=LIBPATH
6633   fi
6634   ;;
6635
6636 amigaos*)
6637   library_names_spec='$libname.ixlibrary $libname.a'
6638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6639   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'
6640   ;;
6641
6642 beos*)
6643   library_names_spec='${libname}${shared_ext}'
6644   dynamic_linker="$host_os ld.so"
6645   shlibpath_var=LIBRARY_PATH
6646   ;;
6647
6648 bsdi[45]*)
6649   version_type=linux
6650   need_version=no
6651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6652   soname_spec='${libname}${release}${shared_ext}$major'
6653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6654   shlibpath_var=LD_LIBRARY_PATH
6655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6657   # the default ld.so.conf also contains /usr/contrib/lib and
6658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6659   # libtool to hard-code these into programs
6660   ;;
6661
6662 cygwin* | mingw* | pw32*)
6663   version_type=windows
6664   shrext_cmds=".dll"
6665   need_version=no
6666   need_lib_prefix=no
6667
6668   case $GCC,$host_os in
6669   yes,cygwin* | yes,mingw* | yes,pw32*)
6670     library_names_spec='$libname.dll.a'
6671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6672     postinstall_cmds='base_file=`basename \${file}`~
6673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6674       dldir=$destdir/`dirname \$dlpath`~
6675       test -d \$dldir || mkdir -p \$dldir~
6676       $install_prog $dir/$dlname \$dldir/$dlname'
6677     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6678       dlpath=$dir/\$dldll~
6679        $rm \$dlpath'
6680     shlibpath_overrides_runpath=yes
6681
6682     case $host_os in
6683     cygwin*)
6684       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6685       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6686       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6687       ;;
6688     mingw*)
6689       # MinGW DLLs use traditional 'lib' prefix
6690       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6691       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6692       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6693         # It is most probably a Windows format PATH printed by
6694         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6695         # path with ; separators, and with drive letters. We can handle the
6696         # drive letters (cygwin fileutils understands them), so leave them,
6697         # especially as we might pass files found there to a mingw objdump,
6698         # which wouldn't understand a cygwinified path. Ahh.
6699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6700       else
6701         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6702       fi
6703       ;;
6704     pw32*)
6705       # pw32 DLLs use 'pw' prefix rather than 'lib'
6706       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6707       ;;
6708     esac
6709     ;;
6710
6711   *)
6712     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6713     ;;
6714   esac
6715   dynamic_linker='Win32 ld.exe'
6716   # FIXME: first we should search . and the directory the executable is in
6717   shlibpath_var=PATH
6718   ;;
6719
6720 darwin* | rhapsody*)
6721   dynamic_linker="$host_os dyld"
6722   version_type=darwin
6723   need_lib_prefix=no
6724   need_version=no
6725   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6726   soname_spec='${libname}${release}${major}$shared_ext'
6727   shlibpath_overrides_runpath=yes
6728   shlibpath_var=DYLD_LIBRARY_PATH
6729   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6730   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6731   if test "$GCC" = yes; then
6732     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"`
6733   else
6734     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6735   fi
6736   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6737   ;;
6738
6739 dgux*)
6740   version_type=linux
6741   need_lib_prefix=no
6742   need_version=no
6743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6744   soname_spec='${libname}${release}${shared_ext}$major'
6745   shlibpath_var=LD_LIBRARY_PATH
6746   ;;
6747
6748 freebsd1*)
6749   dynamic_linker=no
6750   ;;
6751
6752 kfreebsd*-gnu)
6753   version_type=linux
6754   need_lib_prefix=no
6755   need_version=no
6756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6757   soname_spec='${libname}${release}${shared_ext}$major'
6758   shlibpath_var=LD_LIBRARY_PATH
6759   shlibpath_overrides_runpath=no
6760   hardcode_into_libs=yes
6761   dynamic_linker='GNU ld.so'
6762   ;;
6763
6764 freebsd*)
6765   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6766   version_type=freebsd-$objformat
6767   case $version_type in
6768     freebsd-elf*)
6769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6770       need_version=no
6771       need_lib_prefix=no
6772       ;;
6773     freebsd-*)
6774       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6775       need_version=yes
6776       ;;
6777   esac
6778   shlibpath_var=LD_LIBRARY_PATH
6779   case $host_os in
6780   freebsd2*)
6781     shlibpath_overrides_runpath=yes
6782     ;;
6783   freebsd3.01* | freebsdelf3.01*)
6784     shlibpath_overrides_runpath=yes
6785     hardcode_into_libs=yes
6786     ;;
6787   *) # from 3.2 on
6788     shlibpath_overrides_runpath=no
6789     hardcode_into_libs=yes
6790     ;;
6791   esac
6792   ;;
6793
6794 gnu*)
6795   version_type=linux
6796   need_lib_prefix=no
6797   need_version=no
6798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6799   soname_spec='${libname}${release}${shared_ext}$major'
6800   shlibpath_var=LD_LIBRARY_PATH
6801   hardcode_into_libs=yes
6802   ;;
6803
6804 hpux9* | hpux10* | hpux11*)
6805   # Give a soname corresponding to the major version so that dld.sl refuses to
6806   # link against other versions.
6807   version_type=sunos
6808   need_lib_prefix=no
6809   need_version=no
6810   case "$host_cpu" in
6811   ia64*)
6812     shrext_cmds='.so'
6813     hardcode_into_libs=yes
6814     dynamic_linker="$host_os dld.so"
6815     shlibpath_var=LD_LIBRARY_PATH
6816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6818     soname_spec='${libname}${release}${shared_ext}$major'
6819     if test "X$HPUX_IA64_MODE" = X32; then
6820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6821     else
6822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6823     fi
6824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6825     ;;
6826    hppa*64*)
6827      shrext_cmds='.sl'
6828      hardcode_into_libs=yes
6829      dynamic_linker="$host_os dld.sl"
6830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6833      soname_spec='${libname}${release}${shared_ext}$major'
6834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6836      ;;
6837    *)
6838     shrext_cmds='.sl'
6839     dynamic_linker="$host_os dld.sl"
6840     shlibpath_var=SHLIB_PATH
6841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6843     soname_spec='${libname}${release}${shared_ext}$major'
6844     ;;
6845   esac
6846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6847   postinstall_cmds='chmod 555 $lib'
6848   ;;
6849
6850 irix5* | irix6* | nonstopux*)
6851   case $host_os in
6852     nonstopux*) version_type=nonstopux ;;
6853     *)
6854         if test "$lt_cv_prog_gnu_ld" = yes; then
6855                 version_type=linux
6856         else
6857                 version_type=irix
6858         fi ;;
6859   esac
6860   need_lib_prefix=no
6861   need_version=no
6862   soname_spec='${libname}${release}${shared_ext}$major'
6863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6864   case $host_os in
6865   irix5* | nonstopux*)
6866     libsuff= shlibsuff=
6867     ;;
6868   *)
6869     case $LD in # libtool.m4 will add one of these switches to LD
6870     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6871       libsuff= shlibsuff= libmagic=32-bit;;
6872     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6873       libsuff=32 shlibsuff=N32 libmagic=N32;;
6874     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6875       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6876     *) libsuff= shlibsuff= libmagic=never-match;;
6877     esac
6878     ;;
6879   esac
6880   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6881   shlibpath_overrides_runpath=no
6882   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6883   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6884   hardcode_into_libs=yes
6885   ;;
6886
6887 # No shared lib support for Linux oldld, aout, or coff.
6888 linux*oldld* | linux*aout* | linux*coff*)
6889   dynamic_linker=no
6890   ;;
6891
6892 # This must be Linux ELF.
6893 linux*)
6894   version_type=linux
6895   need_lib_prefix=no
6896   need_version=no
6897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6898   soname_spec='${libname}${release}${shared_ext}$major'
6899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6900   shlibpath_var=LD_LIBRARY_PATH
6901   shlibpath_overrides_runpath=no
6902   # This implies no fast_install, which is unacceptable.
6903   # Some rework will be needed to allow for fast_install
6904   # before this can be enabled.
6905   hardcode_into_libs=yes
6906
6907   # Append ld.so.conf contents to the search path
6908   if test -f /etc/ld.so.conf; then
6909     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6910     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6911   fi
6912
6913   # We used to test for /lib/ld.so.1 and disable shared libraries on
6914   # powerpc, because MkLinux only supported shared libraries with the
6915   # GNU dynamic linker.  Since this was broken with cross compilers,
6916   # most powerpc-linux boxes support dynamic linking these days and
6917   # people can always --disable-shared, the test was removed, and we
6918   # assume the GNU/Linux dynamic linker is in use.
6919   dynamic_linker='GNU/Linux ld.so'
6920   ;;
6921
6922 knetbsd*-gnu)
6923   version_type=linux
6924   need_lib_prefix=no
6925   need_version=no
6926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6927   soname_spec='${libname}${release}${shared_ext}$major'
6928   shlibpath_var=LD_LIBRARY_PATH
6929   shlibpath_overrides_runpath=no
6930   hardcode_into_libs=yes
6931   dynamic_linker='GNU ld.so'
6932   ;;
6933
6934 netbsd*)
6935   version_type=sunos
6936   need_lib_prefix=no
6937   need_version=no
6938   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6940     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6941     dynamic_linker='NetBSD (a.out) ld.so'
6942   else
6943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6944     soname_spec='${libname}${release}${shared_ext}$major'
6945     dynamic_linker='NetBSD ld.elf_so'
6946   fi
6947   shlibpath_var=LD_LIBRARY_PATH
6948   shlibpath_overrides_runpath=yes
6949   hardcode_into_libs=yes
6950   ;;
6951
6952 newsos6)
6953   version_type=linux
6954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955   shlibpath_var=LD_LIBRARY_PATH
6956   shlibpath_overrides_runpath=yes
6957   ;;
6958
6959 nto-qnx*)
6960   version_type=linux
6961   need_lib_prefix=no
6962   need_version=no
6963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6964   soname_spec='${libname}${release}${shared_ext}$major'
6965   shlibpath_var=LD_LIBRARY_PATH
6966   shlibpath_overrides_runpath=yes
6967   ;;
6968
6969 openbsd*)
6970   version_type=sunos
6971   need_lib_prefix=no
6972   need_version=no
6973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975   shlibpath_var=LD_LIBRARY_PATH
6976   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6977     case $host_os in
6978       openbsd2.[89] | openbsd2.[89].*)
6979         shlibpath_overrides_runpath=no
6980         ;;
6981       *)
6982         shlibpath_overrides_runpath=yes
6983         ;;
6984       esac
6985   else
6986     shlibpath_overrides_runpath=yes
6987   fi
6988   ;;
6989
6990 os2*)
6991   libname_spec='$name'
6992   shrext_cmds=".dll"
6993   need_lib_prefix=no
6994   library_names_spec='$libname${shared_ext} $libname.a'
6995   dynamic_linker='OS/2 ld.exe'
6996   shlibpath_var=LIBPATH
6997   ;;
6998
6999 osf3* | osf4* | osf5*)
7000   version_type=osf
7001   need_lib_prefix=no
7002   need_version=no
7003   soname_spec='${libname}${release}${shared_ext}$major'
7004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005   shlibpath_var=LD_LIBRARY_PATH
7006   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7007   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7008   ;;
7009
7010 sco3.2v5*)
7011   version_type=osf
7012   soname_spec='${libname}${release}${shared_ext}$major'
7013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7014   shlibpath_var=LD_LIBRARY_PATH
7015   ;;
7016
7017 solaris*)
7018   version_type=linux
7019   need_lib_prefix=no
7020   need_version=no
7021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022   soname_spec='${libname}${release}${shared_ext}$major'
7023   shlibpath_var=LD_LIBRARY_PATH
7024   shlibpath_overrides_runpath=yes
7025   hardcode_into_libs=yes
7026   # ldd complains unless libraries are executable
7027   postinstall_cmds='chmod +x $lib'
7028   ;;
7029
7030 sunos4*)
7031   version_type=sunos
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7033   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7034   shlibpath_var=LD_LIBRARY_PATH
7035   shlibpath_overrides_runpath=yes
7036   if test "$with_gnu_ld" = yes; then
7037     need_lib_prefix=no
7038   fi
7039   need_version=yes
7040   ;;
7041
7042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7043   version_type=linux
7044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045   soname_spec='${libname}${release}${shared_ext}$major'
7046   shlibpath_var=LD_LIBRARY_PATH
7047   case $host_vendor in
7048     sni)
7049       shlibpath_overrides_runpath=no
7050       need_lib_prefix=no
7051       export_dynamic_flag_spec='${wl}-Blargedynsym'
7052       runpath_var=LD_RUN_PATH
7053       ;;
7054     siemens)
7055       need_lib_prefix=no
7056       ;;
7057     motorola)
7058       need_lib_prefix=no
7059       need_version=no
7060       shlibpath_overrides_runpath=no
7061       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7062       ;;
7063   esac
7064   ;;
7065
7066 sysv4*MP*)
7067   if test -d /usr/nec ;then
7068     version_type=linux
7069     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7070     soname_spec='$libname${shared_ext}.$major'
7071     shlibpath_var=LD_LIBRARY_PATH
7072   fi
7073   ;;
7074
7075 uts4*)
7076   version_type=linux
7077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7078   soname_spec='${libname}${release}${shared_ext}$major'
7079   shlibpath_var=LD_LIBRARY_PATH
7080   ;;
7081
7082 *)
7083   dynamic_linker=no
7084   ;;
7085 esac
7086 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7087 echo "${ECHO_T}$dynamic_linker" >&6
7088 test "$dynamic_linker" = no && can_build_shared=no
7089
7090
7091 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7092 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7093 if test "${libltdl_cv_shlibext+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096
7097 module=yes
7098 eval libltdl_cv_shlibext=$shrext_cmds
7099
7100 fi
7101 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7102 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7103 if test -n "$libltdl_cv_shlibext"; then
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7107 _ACEOF
7108
7109 fi
7110
7111
7112 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7113 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7114 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   libltdl_cv_shlibpath_var="$shlibpath_var"
7118 fi
7119 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7120 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7121 if test -n "$libltdl_cv_shlibpath_var"; then
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7125 _ACEOF
7126
7127 fi
7128
7129
7130 echo "$as_me:$LINENO: checking for the default library search path" >&5
7131 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7132 if test "${libltdl_cv_sys_search_path+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7136 fi
7137 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7138 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7139 if test -n "$libltdl_cv_sys_search_path"; then
7140   sys_search_path=
7141   for dir in $libltdl_cv_sys_search_path; do
7142     if test -z "$sys_search_path"; then
7143       sys_search_path="$dir"
7144     else
7145       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7146     fi
7147   done
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7151 _ACEOF
7152
7153 fi
7154
7155 echo "$as_me:$LINENO: checking for objdir" >&5
7156 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7157 if test "${libltdl_cv_objdir+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   libltdl_cv_objdir="$objdir"
7161   if test -n "$objdir"; then
7162     :
7163   else
7164     rm -f .libs 2>/dev/null
7165     mkdir .libs 2>/dev/null
7166     if test -d .libs; then
7167       libltdl_cv_objdir=.libs
7168     else
7169       # MS-DOS does not allow filenames that begin with a dot.
7170       libltdl_cv_objdir=_libs
7171     fi
7172   rmdir .libs 2>/dev/null
7173   fi
7174
7175 fi
7176 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7177 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7178
7179 cat >>confdefs.h <<_ACEOF
7180 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7181 _ACEOF
7182
7183
7184 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7185 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7186 if test "${lt_cv_path_NM+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   if test -n "$NM"; then
7190   # Let the user override the test.
7191   lt_cv_path_NM="$NM"
7192 else
7193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7195     IFS="$lt_save_ifs"
7196     test -z "$ac_dir" && ac_dir=.
7197     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7198     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7199       # Check to see if the nm accepts a BSD-compat flag.
7200       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7201       #   nm: unknown option "B" ignored
7202       # Tru64's nm complains that /dev/null is an invalid object file
7203       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7204       */dev/null* | *'Invalid file or object type'*)
7205         lt_cv_path_NM="$tmp_nm -B"
7206         break
7207         ;;
7208       *)
7209         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7210         */dev/null*)
7211           lt_cv_path_NM="$tmp_nm -p"
7212           break
7213           ;;
7214         *)
7215           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7216           continue # so that we can try to find one that supports BSD flags
7217           ;;
7218         esac
7219       esac
7220     fi
7221   done
7222   IFS="$lt_save_ifs"
7223   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7224 fi
7225 fi
7226 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7227 echo "${ECHO_T}$lt_cv_path_NM" >&6
7228 NM="$lt_cv_path_NM"
7229
7230
7231
7232
7233
7234 # Check for command to grab the raw symbol name followed by C symbol from nm.
7235 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7236 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7237 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240
7241 # These are sane defaults that work on at least a few old systems.
7242 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7243
7244 # Character class describing NM global symbol codes.
7245 symcode='[BCDEGRST]'
7246
7247 # Regexp to match symbols that can be accessed directly from C.
7248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7249
7250 # Transform the above into a raw symbol and a C symbol.
7251 symxfrm='\1 \2\3 \3'
7252
7253 # Transform an extracted symbol line into a proper C declaration
7254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7255
7256 # Transform an extracted symbol line into symbol name and symbol address
7257 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'"
7258
7259 # Define system-specific variables.
7260 case $host_os in
7261 aix*)
7262   symcode='[BCDT]'
7263   ;;
7264 cygwin* | mingw* | pw32*)
7265   symcode='[ABCDGISTW]'
7266   ;;
7267 hpux*) # Its linker distinguishes data from code symbols
7268   if test "$host_cpu" = ia64; then
7269     symcode='[ABCDEGRST]'
7270   fi
7271   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7272   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'"
7273   ;;
7274 linux*)
7275   if test "$host_cpu" = ia64; then
7276     symcode='[ABCDGIRSTW]'
7277     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7278     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'"
7279   fi
7280   ;;
7281 irix* | nonstopux*)
7282   symcode='[BCDEGRST]'
7283   ;;
7284 osf*)
7285   symcode='[BCDEGQRST]'
7286   ;;
7287 solaris* | sysv5*)
7288   symcode='[BDRT]'
7289   ;;
7290 sysv4)
7291   symcode='[DFNSTU]'
7292   ;;
7293 esac
7294
7295 # Handle CRLF in mingw tool chain
7296 opt_cr=
7297 case $build_os in
7298 mingw*)
7299   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7300   ;;
7301 esac
7302
7303 # If we're using GNU nm, then use its standard symbol codes.
7304 case `$NM -V 2>&1` in
7305 *GNU* | *'with BFD'*)
7306   symcode='[ABCDGIRSTW]' ;;
7307 esac
7308
7309 # Try without a prefix undercore, then with it.
7310 for ac_symprfx in "" "_"; do
7311
7312   # Write the raw and C identifiers.
7313   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7314
7315   # Check to see that the pipe works correctly.
7316   pipe_works=no
7317
7318   rm -f conftest*
7319   cat > conftest.$ac_ext <<EOF
7320 #ifdef __cplusplus
7321 extern "C" {
7322 #endif
7323 char nm_test_var;
7324 void nm_test_func(){}
7325 #ifdef __cplusplus
7326 }
7327 #endif
7328 int main(){nm_test_var='a';nm_test_func();return(0);}
7329 EOF
7330
7331   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332   (eval $ac_compile) 2>&5
7333   ac_status=$?
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); }; then
7336     # Now try to grab the symbols.
7337     nlist=conftest.nm
7338     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7339   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } && test -s "$nlist"; then
7343       # Try sorting and uniquifying the output.
7344       if sort "$nlist" | uniq > "$nlist"T; then
7345         mv -f "$nlist"T "$nlist"
7346       else
7347         rm -f "$nlist"T
7348       fi
7349
7350       # Make sure that we snagged all the symbols we need.
7351       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7352         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7353           cat <<EOF > conftest.$ac_ext
7354 #ifdef __cplusplus
7355 extern "C" {
7356 #endif
7357
7358 EOF
7359           # Now generate the symbol file.
7360           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7361
7362           cat <<EOF >> conftest.$ac_ext
7363 #if defined (__STDC__) && __STDC__
7364 # define lt_ptr_t void *
7365 #else
7366 # define lt_ptr_t char *
7367 # define const
7368 #endif
7369
7370 /* The mapping between symbol names and symbols. */
7371 const struct {
7372   const char *name;
7373   lt_ptr_t address;
7374 }
7375 lt_preloaded_symbols[] =
7376 {
7377 EOF
7378           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7379           cat <<\EOF >> conftest.$ac_ext
7380   {0, (lt_ptr_t) 0}
7381 };
7382
7383 #ifdef __cplusplus
7384 }
7385 #endif
7386 EOF
7387           # Now try linking the two files.
7388           mv conftest.$ac_objext conftstm.$ac_objext
7389           lt_save_LIBS="$LIBS"
7390           lt_save_CFLAGS="$CFLAGS"
7391           LIBS="conftstm.$ac_objext"
7392           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7393           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394   (eval $ac_link) 2>&5
7395   ac_status=$?
7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7398             pipe_works=yes
7399           fi
7400           LIBS="$lt_save_LIBS"
7401           CFLAGS="$lt_save_CFLAGS"
7402         else
7403           echo "cannot find nm_test_func in $nlist" >&5
7404         fi
7405       else
7406         echo "cannot find nm_test_var in $nlist" >&5
7407       fi
7408     else
7409       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7410     fi
7411   else
7412     echo "$progname: failed program was:" >&5
7413     cat conftest.$ac_ext >&5
7414   fi
7415   rm -f conftest* conftst*
7416
7417   # Do not use the global_symbol_pipe unless it works.
7418   if test "$pipe_works" = yes; then
7419     break
7420   else
7421     lt_cv_sys_global_symbol_pipe=
7422   fi
7423 done
7424
7425 fi
7426
7427 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7428   lt_cv_sys_global_symbol_to_cdecl=
7429 fi
7430 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7431   echo "$as_me:$LINENO: result: failed" >&5
7432 echo "${ECHO_T}failed" >&6
7433 else
7434   echo "$as_me:$LINENO: result: ok" >&5
7435 echo "${ECHO_T}ok" >&6
7436 fi
7437
7438
7439 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7440 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7441 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7445     libltdl_cv_preloaded_symbols=yes
7446   else
7447     libltdl_cv_preloaded_symbols=no
7448   fi
7449
7450 fi
7451 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7452 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7453 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7454
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_PRELOADED_SYMBOLS 1
7457 _ACEOF
7458
7459 fi
7460
7461 LIBADD_DL=
7462
7463 ac_ext=c
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
7470 echo "$as_me:$LINENO: checking for shl_load" >&5
7471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7472 if test "${ac_cv_func_shl_load+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h.  */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h.  */
7481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7483 #define shl_load innocuous_shl_load
7484
7485 /* System header to define __stub macros and hopefully few prototypes,
7486     which can conflict with char shl_load (); below.
7487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7488     <limits.h> exists even on freestanding compilers.  */
7489
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7495
7496 #undef shl_load
7497
7498 /* Override any gcc2 internal prototype to avoid an error.  */
7499 #ifdef __cplusplus
7500 extern "C"
7501 {
7502 #endif
7503 /* We use char because int might match the return type of a gcc2
7504    builtin and then its argument prototype would still apply.  */
7505 char shl_load ();
7506 /* The GNU C library defines this for functions which it implements
7507     to always fail with ENOSYS.  Some functions are actually named
7508     something starting with __ and the normal name is an alias.  */
7509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7510 choke me
7511 #else
7512 char (*f) () = shl_load;
7513 #endif
7514 #ifdef __cplusplus
7515 }
7516 #endif
7517
7518 int
7519 main ()
7520 {
7521 return f != shl_load;
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528   (eval $ac_link) 2>conftest.er1
7529   ac_status=$?
7530   grep -v '^ *+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -z "$ac_c_werror_flag"
7536                          || test ! -s conftest.err'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; } &&
7542          { ac_try='test -s conftest$ac_exeext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548   ac_cv_func_shl_load=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_cv_func_shl_load=no
7554 fi
7555 rm -f conftest.err conftest.$ac_objext \
7556       conftest$ac_exeext conftest.$ac_ext
7557 fi
7558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7560 if test $ac_cv_func_shl_load = yes; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_SHL_LOAD 1
7564 _ACEOF
7565
7566 else
7567   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   ac_check_lib_save_LIBS=$LIBS
7573 LIBS="-ldld  $LIBS"
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580
7581 /* Override any gcc2 internal prototype to avoid an error.  */
7582 #ifdef __cplusplus
7583 extern "C"
7584 #endif
7585 /* We use char because int might match the return type of a gcc2
7586    builtin and then its argument prototype would still apply.  */
7587 char shl_load ();
7588 int
7589 main ()
7590 {
7591 shl_load ();
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598   (eval $ac_link) 2>conftest.er1
7599   ac_status=$?
7600   grep -v '^ *+' conftest.er1 >conftest.err
7601   rm -f conftest.er1
7602   cat conftest.err >&5
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } &&
7605          { ac_try='test -z "$ac_c_werror_flag"
7606                          || test ! -s conftest.err'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; } &&
7612          { ac_try='test -s conftest$ac_exeext'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; }; then
7618   ac_cv_lib_dld_shl_load=yes
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_cv_lib_dld_shl_load=no
7624 fi
7625 rm -f conftest.err conftest.$ac_objext \
7626       conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7628 fi
7629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7631 if test $ac_cv_lib_dld_shl_load = yes; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_SHL_LOAD 1
7635 _ACEOF
7636
7637         LIBADD_DL="$LIBADD_DL -ldld"
7638 else
7639   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-ldl  $LIBS"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h.  */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h.  */
7652
7653 /* Override any gcc2 internal prototype to avoid an error.  */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 /* We use char because int might match the return type of a gcc2
7658    builtin and then its argument prototype would still apply.  */
7659 char dlopen ();
7660 int
7661 main ()
7662 {
7663 dlopen ();
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670   (eval $ac_link) 2>conftest.er1
7671   ac_status=$?
7672   grep -v '^ *+' conftest.er1 >conftest.err
7673   rm -f conftest.er1
7674   cat conftest.err >&5
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } &&
7677          { ac_try='test -z "$ac_c_werror_flag"
7678                          || test ! -s conftest.err'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; } &&
7684          { ac_try='test -s conftest$ac_exeext'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; }; then
7690   ac_cv_lib_dl_dlopen=yes
7691 else
7692   echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 ac_cv_lib_dl_dlopen=no
7696 fi
7697 rm -f conftest.err conftest.$ac_objext \
7698       conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7700 fi
7701 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7703 if test $ac_cv_lib_dl_dlopen = yes; then
7704
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_LIBDL 1
7707 _ACEOF
7708
7709                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7710 else
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 #if HAVE_DLFCN_H
7718 #  include <dlfcn.h>
7719 #endif
7720
7721 int
7722 main ()
7723 {
7724 dlopen(0, 0);
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7731   (eval $ac_link) 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } &&
7738          { ac_try='test -z "$ac_c_werror_flag"
7739                          || test ! -s conftest.err'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; } &&
7745          { ac_try='test -s conftest$ac_exeext'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_LIBDL 1
7754 _ACEOF
7755  libltdl_cv_func_dlopen="yes"
7756 else
7757   echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7761 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7762 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-lsvld  $LIBS"
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 /* Override any gcc2 internal prototype to avoid an error.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 /* We use char because int might match the return type of a gcc2
7779    builtin and then its argument prototype would still apply.  */
7780 char dlopen ();
7781 int
7782 main ()
7783 {
7784 dlopen ();
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791   (eval $ac_link) 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -z "$ac_c_werror_flag"
7799                          || test ! -s conftest.err'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest$ac_exeext'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; }; then
7811   ac_cv_lib_svld_dlopen=yes
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_cv_lib_svld_dlopen=no
7817 fi
7818 rm -f conftest.err conftest.$ac_objext \
7819       conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7821 fi
7822 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7823 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7824 if test $ac_cv_lib_svld_dlopen = yes; then
7825
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_LIBDL 1
7828 _ACEOF
7829
7830                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7831 else
7832   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7833 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   ac_check_lib_save_LIBS=$LIBS
7838 LIBS="-ldld  $LIBS"
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845
7846 /* Override any gcc2 internal prototype to avoid an error.  */
7847 #ifdef __cplusplus
7848 extern "C"
7849 #endif
7850 /* We use char because int might match the return type of a gcc2
7851    builtin and then its argument prototype would still apply.  */
7852 char dld_link ();
7853 int
7854 main ()
7855 {
7856 dld_link ();
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863   (eval $ac_link) 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -z "$ac_c_werror_flag"
7871                          || test ! -s conftest.err'
7872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873   (eval $ac_try) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest$ac_exeext'
7878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879   (eval $ac_try) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; }; then
7883   ac_cv_lib_dld_dld_link=yes
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_cv_lib_dld_dld_link=no
7889 fi
7890 rm -f conftest.err conftest.$ac_objext \
7891       conftest$ac_exeext conftest.$ac_ext
7892 LIBS=$ac_check_lib_save_LIBS
7893 fi
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7895 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7896 if test $ac_cv_lib_dld_dld_link = yes; then
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_DLD 1
7900 _ACEOF
7901
7902                 LIBADD_DL="$LIBADD_DL -ldld"
7903 else
7904   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7905 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7906 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7917 #define _dyld_func_lookup innocuous__dyld_func_lookup
7918
7919 /* System header to define __stub macros and hopefully few prototypes,
7920     which can conflict with char _dyld_func_lookup (); below.
7921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922     <limits.h> exists even on freestanding compilers.  */
7923
7924 #ifdef __STDC__
7925 # include <limits.h>
7926 #else
7927 # include <assert.h>
7928 #endif
7929
7930 #undef _dyld_func_lookup
7931
7932 /* Override any gcc2 internal prototype to avoid an error.  */
7933 #ifdef __cplusplus
7934 extern "C"
7935 {
7936 #endif
7937 /* We use char because int might match the return type of a gcc2
7938    builtin and then its argument prototype would still apply.  */
7939 char _dyld_func_lookup ();
7940 /* The GNU C library defines this for functions which it implements
7941     to always fail with ENOSYS.  Some functions are actually named
7942     something starting with __ and the normal name is an alias.  */
7943 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7944 choke me
7945 #else
7946 char (*f) () = _dyld_func_lookup;
7947 #endif
7948 #ifdef __cplusplus
7949 }
7950 #endif
7951
7952 int
7953 main ()
7954 {
7955 return f != _dyld_func_lookup;
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag"
7970                          || test ! -s conftest.err'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_cv_func__dyld_func_lookup=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_cv_func__dyld_func_lookup=no
7988 fi
7989 rm -f conftest.err conftest.$ac_objext \
7990       conftest$ac_exeext conftest.$ac_ext
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7993 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7994 if test $ac_cv_func__dyld_func_lookup = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_DYLD 1
7998 _ACEOF
7999
8000 fi
8001
8002
8003 fi
8004
8005
8006 fi
8007
8008
8009 fi
8010 rm -f conftest.err conftest.$ac_objext \
8011       conftest$ac_exeext conftest.$ac_ext
8012
8013 fi
8014
8015
8016 fi
8017
8018
8019 fi
8020
8021
8022 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8023 then
8024   lt_save_LIBS="$LIBS"
8025   LIBS="$LIBS $LIBADD_DL"
8026
8027 for ac_func in dlerror
8028 do
8029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030 echo "$as_me:$LINENO: checking for $ac_func" >&5
8031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8032 if eval "test \"\${$as_ac_var+set}\" = set"; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8043 #define $ac_func innocuous_$ac_func
8044
8045 /* System header to define __stub macros and hopefully few prototypes,
8046     which can conflict with char $ac_func (); below.
8047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8048     <limits.h> exists even on freestanding compilers.  */
8049
8050 #ifdef __STDC__
8051 # include <limits.h>
8052 #else
8053 # include <assert.h>
8054 #endif
8055
8056 #undef $ac_func
8057
8058 /* Override any gcc2 internal prototype to avoid an error.  */
8059 #ifdef __cplusplus
8060 extern "C"
8061 {
8062 #endif
8063 /* We use char because int might match the return type of a gcc2
8064    builtin and then its argument prototype would still apply.  */
8065 char $ac_func ();
8066 /* The GNU C library defines this for functions which it implements
8067     to always fail with ENOSYS.  Some functions are actually named
8068     something starting with __ and the normal name is an alias.  */
8069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8070 choke me
8071 #else
8072 char (*f) () = $ac_func;
8073 #endif
8074 #ifdef __cplusplus
8075 }
8076 #endif
8077
8078 int
8079 main ()
8080 {
8081 return f != $ac_func;
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088   (eval $ac_link) 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -z "$ac_c_werror_flag"
8096                          || test ! -s conftest.err'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; } &&
8102          { ac_try='test -s conftest$ac_exeext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   eval "$as_ac_var=yes"
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 eval "$as_ac_var=no"
8114 fi
8115 rm -f conftest.err conftest.$ac_objext \
8116       conftest$ac_exeext conftest.$ac_ext
8117 fi
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8120 if test `eval echo '${'$as_ac_var'}'` = yes; then
8121   cat >>confdefs.h <<_ACEOF
8122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8123 _ACEOF
8124
8125 fi
8126 done
8127
8128   LIBS="$lt_save_LIBS"
8129 fi
8130 ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136
8137
8138 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8139 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8140 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   ac_cv_sys_symbol_underscore=no
8144   cat > conftest.$ac_ext <<EOF
8145 void nm_test_func(){}
8146 int main(){nm_test_func;return 0;}
8147 EOF
8148   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149   (eval $ac_compile) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; then
8153     # Now try to grab the symbols.
8154     ac_nlist=conftest.nm
8155     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8156   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } && test -s "$ac_nlist"; then
8160       # See whether the symbols have a leading underscore.
8161       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8162         ac_cv_sys_symbol_underscore=yes
8163       else
8164         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8165           :
8166         else
8167           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8168         fi
8169       fi
8170     else
8171       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8172     fi
8173   else
8174     echo "configure: failed program was:" >&5
8175     cat conftest.c >&5
8176   fi
8177   rm -rf conftest*
8178
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8181 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8182
8183
8184 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8185   if test x"$libltdl_cv_func_dlopen" = xyes ||
8186      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8187         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8188 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8189 if test "${libltdl_cv_need_uscore+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   libltdl_cv_need_uscore=unknown
8193           save_LIBS="$LIBS"
8194           LIBS="$LIBS $LIBADD_DL"
8195           if test "$cross_compiling" = yes; then :
8196   libltdl_cv_need_uscore=cross
8197 else
8198   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199   lt_status=$lt_dlunknown
8200   cat > conftest.$ac_ext <<EOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8203
8204 #if HAVE_DLFCN_H
8205 #include <dlfcn.h>
8206 #endif
8207
8208 #include <stdio.h>
8209
8210 #ifdef RTLD_GLOBAL
8211 #  define LT_DLGLOBAL           RTLD_GLOBAL
8212 #else
8213 #  ifdef DL_GLOBAL
8214 #    define LT_DLGLOBAL         DL_GLOBAL
8215 #  else
8216 #    define LT_DLGLOBAL         0
8217 #  endif
8218 #endif
8219
8220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221    find out it does not work in some platform. */
8222 #ifndef LT_DLLAZY_OR_NOW
8223 #  ifdef RTLD_LAZY
8224 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8225 #  else
8226 #    ifdef DL_LAZY
8227 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8228 #    else
8229 #      ifdef RTLD_NOW
8230 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8231 #      else
8232 #        ifdef DL_NOW
8233 #          define LT_DLLAZY_OR_NOW      DL_NOW
8234 #        else
8235 #          define LT_DLLAZY_OR_NOW      0
8236 #        endif
8237 #      endif
8238 #    endif
8239 #  endif
8240 #endif
8241
8242 #ifdef __cplusplus
8243 extern "C" void exit (int);
8244 #endif
8245
8246 void fnord() { int i=42;}
8247 int main ()
8248 {
8249   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250   int status = $lt_dlunknown;
8251
8252   if (self)
8253     {
8254       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8255       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256       /* dlclose (self); */
8257     }
8258
8259     exit (status);
8260 }
8261 EOF
8262   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263   (eval $ac_link) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267     (./conftest; exit; ) 2>/dev/null
8268     lt_status=$?
8269     case x$lt_status in
8270       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8271       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8272       x$lt_unknown|x*)  ;;
8273     esac
8274   else :
8275     # compilation failed
8276
8277   fi
8278 fi
8279 rm -fr conftest*
8280
8281           LIBS="$save_LIBS"
8282
8283 fi
8284 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8285 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8286   fi
8287 fi
8288
8289 if test x"$libltdl_cv_need_uscore" = xyes; then
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define NEED_USCORE 1
8293 _ACEOF
8294
8295 fi
8296
8297
8298 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8299 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8300 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   # PORTME does your system automatically load deplibs for dlopen?
8304   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8305   # For now, we just catch OSes we know something about -- in the
8306   # future, we'll try test this programmatically.
8307   libltdl_cv_sys_dlopen_deplibs=unknown
8308   case "$host_os" in
8309   aix3*|aix4.1.*|aix4.2.*)
8310     # Unknown whether this is true for these versions of AIX, but
8311     # we want this `case' here to explicitly catch those versions.
8312     libltdl_cv_sys_dlopen_deplibs=unknown
8313     ;;
8314   aix[45]*)
8315     libltdl_cv_sys_dlopen_deplibs=yes
8316     ;;
8317   darwin*)
8318     # Assuming the user has installed a libdl from somewhere, this is true
8319     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8320     libltdl_cv_sys_dlopen_deplibs=yes
8321     ;;
8322   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8323     # GNU and its variants, using gnu ld.so (Glibc)
8324     libltdl_cv_sys_dlopen_deplibs=yes
8325     ;;
8326   hpux10*|hpux11*)
8327     libltdl_cv_sys_dlopen_deplibs=yes
8328     ;;
8329   irix[12345]*|irix6.[01]*)
8330     # Catch all versions of IRIX before 6.2, and indicate that we don't
8331     # know how it worked for any of those versions.
8332     libltdl_cv_sys_dlopen_deplibs=unknown
8333     ;;
8334   irix*)
8335     # The case above catches anything before 6.2, and it's known that
8336     # at 6.2 and later dlopen does load deplibs.
8337     libltdl_cv_sys_dlopen_deplibs=yes
8338     ;;
8339   netbsd*)
8340     libltdl_cv_sys_dlopen_deplibs=yes
8341     ;;
8342   openbsd*)
8343     libltdl_cv_sys_dlopen_deplibs=yes
8344     ;;
8345   osf[1234]*)
8346     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8347     # it did *not* use an RPATH in a shared library to find objects the
8348     # library depends on, so we explictly say `no'.
8349     libltdl_cv_sys_dlopen_deplibs=no
8350     ;;
8351   osf5.0|osf5.0a|osf5.1)
8352     # dlopen *does* load deplibs and with the right loader patch applied
8353     # it even uses RPATH in a shared library to search for shared objects
8354     # that the library depends on, but there's no easy way to know if that
8355     # patch is installed.  Since this is the case, all we can really
8356     # say is unknown -- it depends on the patch being installed.  If
8357     # it is, this changes to `yes'.  Without it, it would be `no'.
8358     libltdl_cv_sys_dlopen_deplibs=unknown
8359     ;;
8360   osf*)
8361     # the two cases above should catch all versions of osf <= 5.1.  Read
8362     # the comments above for what we know about them.
8363     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8364     # is used to find them so we can finally say `yes'.
8365     libltdl_cv_sys_dlopen_deplibs=yes
8366     ;;
8367   solaris*)
8368     libltdl_cv_sys_dlopen_deplibs=yes
8369     ;;
8370   esac
8371
8372 fi
8373 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8374 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8375 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8376
8377 cat >>confdefs.h <<\_ACEOF
8378 #define LTDL_DLOPEN_DEPLIBS 1
8379 _ACEOF
8380
8381 fi
8382
8383
8384 for ac_header in argz.h
8385 do
8386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 fi
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395 else
8396   # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 $ac_includes_default
8406 #include <$ac_header>
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410   (eval $ac_compile) 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -z "$ac_c_werror_flag"
8418                          || test ! -s conftest.err'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest.$ac_objext'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_header_compiler=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_header_compiler=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8440
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450 #include <$ac_header>
8451 _ACEOF
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } >/dev/null; then
8460   if test -s conftest.err; then
8461     ac_cpp_err=$ac_c_preproc_warn_flag
8462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463   else
8464     ac_cpp_err=
8465   fi
8466 else
8467   ac_cpp_err=yes
8468 fi
8469 if test -z "$ac_cpp_err"; then
8470   ac_header_preproc=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475   ac_header_preproc=no
8476 fi
8477 rm -f conftest.err conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6
8480
8481 # So?  What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483   yes:no: )
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488     ac_header_preproc=yes
8489     ;;
8490   no:yes:* )
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503     (
8504       cat <<\_ASBOX
8505 ## ----------------------------------- ##
8506 ## Report this to llvmbugs@cs.uiuc.edu ##
8507 ## ----------------------------------- ##
8508 _ASBOX
8509     ) |
8510       sed "s/^/$as_me: WARNING:     /" >&2
8511     ;;
8512 esac
8513 echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   eval "$as_ac_Header=\$ac_header_preproc"
8519 fi
8520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522
8523 fi
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525   cat >>confdefs.h <<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 _ACEOF
8528
8529 fi
8530
8531 done
8532
8533
8534 echo "$as_me:$LINENO: checking for error_t" >&5
8535 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8536 if test "${ac_cv_type_error_t+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545 #if HAVE_ARGZ_H
8546 #  include <argz.h>
8547 #endif
8548
8549 int
8550 main ()
8551 {
8552 if ((error_t *) 0)
8553   return 0;
8554 if (sizeof (error_t))
8555   return 0;
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562   (eval $ac_compile) 2>conftest.er1
8563   ac_status=$?
8564   grep -v '^ *+' conftest.er1 >conftest.err
8565   rm -f conftest.er1
8566   cat conftest.err >&5
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } &&
8569          { ac_try='test -z "$ac_c_werror_flag"
8570                          || test ! -s conftest.err'
8571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572   (eval $ac_try) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; } &&
8576          { ac_try='test -s conftest.$ac_objext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_type_error_t=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 ac_cv_type_error_t=no
8588 fi
8589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590 fi
8591 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8592 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8593 if test $ac_cv_type_error_t = yes; then
8594
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_ERROR_T 1
8597 _ACEOF
8598
8599
8600 else
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define error_t int
8604 _ACEOF
8605
8606 fi
8607
8608
8609
8610
8611
8612
8613
8614 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8615 do
8616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 echo "$as_me:$LINENO: checking for $ac_func" >&5
8618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_var+set}\" = set"; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8630 #define $ac_func innocuous_$ac_func
8631
8632 /* System header to define __stub macros and hopefully few prototypes,
8633     which can conflict with char $ac_func (); below.
8634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8635     <limits.h> exists even on freestanding compilers.  */
8636
8637 #ifdef __STDC__
8638 # include <limits.h>
8639 #else
8640 # include <assert.h>
8641 #endif
8642
8643 #undef $ac_func
8644
8645 /* Override any gcc2 internal prototype to avoid an error.  */
8646 #ifdef __cplusplus
8647 extern "C"
8648 {
8649 #endif
8650 /* We use char because int might match the return type of a gcc2
8651    builtin and then its argument prototype would still apply.  */
8652 char $ac_func ();
8653 /* The GNU C library defines this for functions which it implements
8654     to always fail with ENOSYS.  Some functions are actually named
8655     something starting with __ and the normal name is an alias.  */
8656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8657 choke me
8658 #else
8659 char (*f) () = $ac_func;
8660 #endif
8661 #ifdef __cplusplus
8662 }
8663 #endif
8664
8665 int
8666 main ()
8667 {
8668 return f != $ac_func;
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675   (eval $ac_link) 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -z "$ac_c_werror_flag"
8683                          || test ! -s conftest.err'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; } &&
8689          { ac_try='test -s conftest$ac_exeext'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; }; then
8695   eval "$as_ac_var=yes"
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 eval "$as_ac_var=no"
8701 fi
8702 rm -f conftest.err conftest.$ac_objext \
8703       conftest$ac_exeext conftest.$ac_ext
8704 fi
8705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8707 if test `eval echo '${'$as_ac_var'}'` = yes; then
8708   cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8710 _ACEOF
8711
8712 fi
8713 done
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8743                   stdio.h unistd.h
8744 do
8745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8747   echo "$as_me:$LINENO: checking for $ac_header" >&5
8748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 fi
8752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8754 else
8755   # Is the header compilable?
8756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 $ac_includes_default
8765 #include <$ac_header>
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769   (eval $ac_compile) 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag"
8777                          || test ! -s conftest.err'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest.$ac_objext'
8784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785   (eval $ac_try) 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; }; then
8789   ac_header_compiler=yes
8790 else
8791   echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794 ac_header_compiler=no
8795 fi
8796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6
8799
8800 # Is the header present?
8801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 #include <$ac_header>
8810 _ACEOF
8811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8813   ac_status=$?
8814   grep -v '^ *+' conftest.er1 >conftest.err
8815   rm -f conftest.er1
8816   cat conftest.err >&5
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); } >/dev/null; then
8819   if test -s conftest.err; then
8820     ac_cpp_err=$ac_c_preproc_warn_flag
8821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8822   else
8823     ac_cpp_err=
8824   fi
8825 else
8826   ac_cpp_err=yes
8827 fi
8828 if test -z "$ac_cpp_err"; then
8829   ac_header_preproc=yes
8830 else
8831   echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834   ac_header_preproc=no
8835 fi
8836 rm -f conftest.err conftest.$ac_ext
8837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8838 echo "${ECHO_T}$ac_header_preproc" >&6
8839
8840 # So?  What about this header?
8841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8842   yes:no: )
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8847     ac_header_preproc=yes
8848     ;;
8849   no:yes:* )
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8862     (
8863       cat <<\_ASBOX
8864 ## ----------------------------------- ##
8865 ## Report this to llvmbugs@cs.uiuc.edu ##
8866 ## ----------------------------------- ##
8867 _ASBOX
8868     ) |
8869       sed "s/^/$as_me: WARNING:     /" >&2
8870     ;;
8871 esac
8872 echo "$as_me:$LINENO: checking for $ac_header" >&5
8873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   eval "$as_ac_Header=\$ac_header_preproc"
8878 fi
8879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8881
8882 fi
8883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8884   cat >>confdefs.h <<_ACEOF
8885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8886 _ACEOF
8887
8888 fi
8889
8890 done
8891
8892
8893
8894
8895
8896 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8897 do
8898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900   echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 fi
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907 else
8908   # Is the header compilable?
8909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917 $ac_includes_default
8918 #include <$ac_header>
8919 _ACEOF
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922   (eval $ac_compile) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"
8930                          || test ! -s conftest.err'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest.$ac_objext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_header_compiler=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_header_compiler=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951 echo "${ECHO_T}$ac_header_compiler" >&6
8952
8953 # Is the header present?
8954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 #include <$ac_header>
8963 _ACEOF
8964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } >/dev/null; then
8972   if test -s conftest.err; then
8973     ac_cpp_err=$ac_c_preproc_warn_flag
8974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975   else
8976     ac_cpp_err=
8977   fi
8978 else
8979   ac_cpp_err=yes
8980 fi
8981 if test -z "$ac_cpp_err"; then
8982   ac_header_preproc=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987   ac_header_preproc=no
8988 fi
8989 rm -f conftest.err conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8991 echo "${ECHO_T}$ac_header_preproc" >&6
8992
8993 # So?  What about this header?
8994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8995   yes:no: )
8996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9000     ac_header_preproc=yes
9001     ;;
9002   no:yes:* )
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9015     (
9016       cat <<\_ASBOX
9017 ## ----------------------------------- ##
9018 ## Report this to llvmbugs@cs.uiuc.edu ##
9019 ## ----------------------------------- ##
9020 _ASBOX
9021     ) |
9022       sed "s/^/$as_me: WARNING:     /" >&2
9023     ;;
9024 esac
9025 echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   eval "$as_ac_Header=\$ac_header_preproc"
9031 fi
9032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034
9035 fi
9036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037   cat >>confdefs.h <<_ACEOF
9038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039 _ACEOF
9040
9041 fi
9042
9043 done
9044
9045
9046
9047 for ac_header in string.h strings.h
9048 do
9049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051   echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 fi
9056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9058 else
9059   # Is the header compilable?
9060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068 $ac_includes_default
9069 #include <$ac_header>
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073   (eval $ac_compile) 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -z "$ac_c_werror_flag"
9081                          || test ! -s conftest.err'
9082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083   (eval $ac_try) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; } &&
9087          { ac_try='test -s conftest.$ac_objext'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   ac_header_compiler=yes
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 ac_header_compiler=no
9099 fi
9100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102 echo "${ECHO_T}$ac_header_compiler" >&6
9103
9104 # Is the header present?
9105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113 #include <$ac_header>
9114 _ACEOF
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117   ac_status=$?
9118   grep -v '^ *+' conftest.er1 >conftest.err
9119   rm -f conftest.er1
9120   cat conftest.err >&5
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } >/dev/null; then
9123   if test -s conftest.err; then
9124     ac_cpp_err=$ac_c_preproc_warn_flag
9125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9126   else
9127     ac_cpp_err=
9128   fi
9129 else
9130   ac_cpp_err=yes
9131 fi
9132 if test -z "$ac_cpp_err"; then
9133   ac_header_preproc=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138   ac_header_preproc=no
9139 fi
9140 rm -f conftest.err conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142 echo "${ECHO_T}$ac_header_preproc" >&6
9143
9144 # So?  What about this header?
9145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146   yes:no: )
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9151     ac_header_preproc=yes
9152     ;;
9153   no:yes:* )
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9166     (
9167       cat <<\_ASBOX
9168 ## ----------------------------------- ##
9169 ## Report this to llvmbugs@cs.uiuc.edu ##
9170 ## ----------------------------------- ##
9171 _ASBOX
9172     ) |
9173       sed "s/^/$as_me: WARNING:     /" >&2
9174     ;;
9175 esac
9176 echo "$as_me:$LINENO: checking for $ac_header" >&5
9177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   eval "$as_ac_Header=\$ac_header_preproc"
9182 fi
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9185
9186 fi
9187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9188   cat >>confdefs.h <<_ACEOF
9189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 _ACEOF
9191  break
9192 fi
9193
9194 done
9195
9196
9197
9198
9199 for ac_func in strchr index
9200 do
9201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_var+set}\" = set"; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9215 #define $ac_func innocuous_$ac_func
9216
9217 /* System header to define __stub macros and hopefully few prototypes,
9218     which can conflict with char $ac_func (); below.
9219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9220     <limits.h> exists even on freestanding compilers.  */
9221
9222 #ifdef __STDC__
9223 # include <limits.h>
9224 #else
9225 # include <assert.h>
9226 #endif
9227
9228 #undef $ac_func
9229
9230 /* Override any gcc2 internal prototype to avoid an error.  */
9231 #ifdef __cplusplus
9232 extern "C"
9233 {
9234 #endif
9235 /* We use char because int might match the return type of a gcc2
9236    builtin and then its argument prototype would still apply.  */
9237 char $ac_func ();
9238 /* The GNU C library defines this for functions which it implements
9239     to always fail with ENOSYS.  Some functions are actually named
9240     something starting with __ and the normal name is an alias.  */
9241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9242 choke me
9243 #else
9244 char (*f) () = $ac_func;
9245 #endif
9246 #ifdef __cplusplus
9247 }
9248 #endif
9249
9250 int
9251 main ()
9252 {
9253 return f != $ac_func;
9254   ;
9255   return 0;
9256 }
9257 _ACEOF
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260   (eval $ac_link) 2>conftest.er1
9261   ac_status=$?
9262   grep -v '^ *+' conftest.er1 >conftest.err
9263   rm -f conftest.er1
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } &&
9267          { ac_try='test -z "$ac_c_werror_flag"
9268                          || test ! -s conftest.err'
9269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270   (eval $ac_try) 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); }; } &&
9274          { ac_try='test -s conftest$ac_exeext'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; }; then
9280   eval "$as_ac_var=yes"
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 eval "$as_ac_var=no"
9286 fi
9287 rm -f conftest.err conftest.$ac_objext \
9288       conftest$ac_exeext conftest.$ac_ext
9289 fi
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9292 if test `eval echo '${'$as_ac_var'}'` = yes; then
9293   cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295 _ACEOF
9296  break
9297 fi
9298 done
9299
9300
9301
9302 for ac_func in strrchr rindex
9303 do
9304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305 echo "$as_me:$LINENO: checking for $ac_func" >&5
9306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307 if eval "test \"\${$as_ac_var+set}\" = set"; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9318 #define $ac_func innocuous_$ac_func
9319
9320 /* System header to define __stub macros and hopefully few prototypes,
9321     which can conflict with char $ac_func (); below.
9322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323     <limits.h> exists even on freestanding compilers.  */
9324
9325 #ifdef __STDC__
9326 # include <limits.h>
9327 #else
9328 # include <assert.h>
9329 #endif
9330
9331 #undef $ac_func
9332
9333 /* Override any gcc2 internal prototype to avoid an error.  */
9334 #ifdef __cplusplus
9335 extern "C"
9336 {
9337 #endif
9338 /* We use char because int might match the return type of a gcc2
9339    builtin and then its argument prototype would still apply.  */
9340 char $ac_func ();
9341 /* The GNU C library defines this for functions which it implements
9342     to always fail with ENOSYS.  Some functions are actually named
9343     something starting with __ and the normal name is an alias.  */
9344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9345 choke me
9346 #else
9347 char (*f) () = $ac_func;
9348 #endif
9349 #ifdef __cplusplus
9350 }
9351 #endif
9352
9353 int
9354 main ()
9355 {
9356 return f != $ac_func;
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363   (eval $ac_link) 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } &&
9370          { ac_try='test -z "$ac_c_werror_flag"
9371                          || test ! -s conftest.err'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest$ac_exeext'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; }; then
9383   eval "$as_ac_var=yes"
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 eval "$as_ac_var=no"
9389 fi
9390 rm -f conftest.err conftest.$ac_objext \
9391       conftest$ac_exeext conftest.$ac_ext
9392 fi
9393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9395 if test `eval echo '${'$as_ac_var'}'` = yes; then
9396   cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9398 _ACEOF
9399  break
9400 fi
9401 done
9402
9403
9404
9405 for ac_func in memcpy bcopy
9406 do
9407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9408 echo "$as_me:$LINENO: checking for $ac_func" >&5
9409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_var+set}\" = set"; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9421 #define $ac_func innocuous_$ac_func
9422
9423 /* System header to define __stub macros and hopefully few prototypes,
9424     which can conflict with char $ac_func (); below.
9425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426     <limits.h> exists even on freestanding compilers.  */
9427
9428 #ifdef __STDC__
9429 # include <limits.h>
9430 #else
9431 # include <assert.h>
9432 #endif
9433
9434 #undef $ac_func
9435
9436 /* Override any gcc2 internal prototype to avoid an error.  */
9437 #ifdef __cplusplus
9438 extern "C"
9439 {
9440 #endif
9441 /* We use char because int might match the return type of a gcc2
9442    builtin and then its argument prototype would still apply.  */
9443 char $ac_func ();
9444 /* The GNU C library defines this for functions which it implements
9445     to always fail with ENOSYS.  Some functions are actually named
9446     something starting with __ and the normal name is an alias.  */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 choke me
9449 #else
9450 char (*f) () = $ac_func;
9451 #endif
9452 #ifdef __cplusplus
9453 }
9454 #endif
9455
9456 int
9457 main ()
9458 {
9459 return f != $ac_func;
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } &&
9473          { ac_try='test -z "$ac_c_werror_flag"
9474                          || test ! -s conftest.err'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   eval "$as_ac_var=yes"
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 eval "$as_ac_var=no"
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494       conftest$ac_exeext conftest.$ac_ext
9495 fi
9496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9498 if test `eval echo '${'$as_ac_var'}'` = yes; then
9499   cat >>confdefs.h <<_ACEOF
9500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9501 _ACEOF
9502  break
9503 fi
9504 done
9505
9506
9507
9508 for ac_func in memmove strcmp
9509 do
9510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9511 echo "$as_me:$LINENO: checking for $ac_func" >&5
9512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9513 if eval "test \"\${$as_ac_var+set}\" = set"; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9524 #define $ac_func innocuous_$ac_func
9525
9526 /* System header to define __stub macros and hopefully few prototypes,
9527     which can conflict with char $ac_func (); below.
9528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529     <limits.h> exists even on freestanding compilers.  */
9530
9531 #ifdef __STDC__
9532 # include <limits.h>
9533 #else
9534 # include <assert.h>
9535 #endif
9536
9537 #undef $ac_func
9538
9539 /* Override any gcc2 internal prototype to avoid an error.  */
9540 #ifdef __cplusplus
9541 extern "C"
9542 {
9543 #endif
9544 /* We use char because int might match the return type of a gcc2
9545    builtin and then its argument prototype would still apply.  */
9546 char $ac_func ();
9547 /* The GNU C library defines this for functions which it implements
9548     to always fail with ENOSYS.  Some functions are actually named
9549     something starting with __ and the normal name is an alias.  */
9550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9551 choke me
9552 #else
9553 char (*f) () = $ac_func;
9554 #endif
9555 #ifdef __cplusplus
9556 }
9557 #endif
9558
9559 int
9560 main ()
9561 {
9562 return f != $ac_func;
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569   (eval $ac_link) 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag"
9577                          || test ! -s conftest.err'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; } &&
9583          { ac_try='test -s conftest$ac_exeext'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   eval "$as_ac_var=yes"
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 eval "$as_ac_var=no"
9595 fi
9596 rm -f conftest.err conftest.$ac_objext \
9597       conftest$ac_exeext conftest.$ac_ext
9598 fi
9599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9601 if test `eval echo '${'$as_ac_var'}'` = yes; then
9602   cat >>confdefs.h <<_ACEOF
9603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9604 _ACEOF
9605
9606 fi
9607 done
9608
9609
9610
9611
9612 for ac_func in closedir opendir readdir
9613 do
9614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615 echo "$as_me:$LINENO: checking for $ac_func" >&5
9616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9617 if eval "test \"\${$as_ac_var+set}\" = set"; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9628 #define $ac_func innocuous_$ac_func
9629
9630 /* System header to define __stub macros and hopefully few prototypes,
9631     which can conflict with char $ac_func (); below.
9632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633     <limits.h> exists even on freestanding compilers.  */
9634
9635 #ifdef __STDC__
9636 # include <limits.h>
9637 #else
9638 # include <assert.h>
9639 #endif
9640
9641 #undef $ac_func
9642
9643 /* Override any gcc2 internal prototype to avoid an error.  */
9644 #ifdef __cplusplus
9645 extern "C"
9646 {
9647 #endif
9648 /* We use char because int might match the return type of a gcc2
9649    builtin and then its argument prototype would still apply.  */
9650 char $ac_func ();
9651 /* The GNU C library defines this for functions which it implements
9652     to always fail with ENOSYS.  Some functions are actually named
9653     something starting with __ and the normal name is an alias.  */
9654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9655 choke me
9656 #else
9657 char (*f) () = $ac_func;
9658 #endif
9659 #ifdef __cplusplus
9660 }
9661 #endif
9662
9663 int
9664 main ()
9665 {
9666 return f != $ac_func;
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673   (eval $ac_link) 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } &&
9680          { ac_try='test -z "$ac_c_werror_flag"
9681                          || test ! -s conftest.err'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; } &&
9687          { ac_try='test -s conftest$ac_exeext'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; }; then
9693   eval "$as_ac_var=yes"
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698 eval "$as_ac_var=no"
9699 fi
9700 rm -f conftest.err conftest.$ac_objext \
9701       conftest$ac_exeext conftest.$ac_ext
9702 fi
9703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706   cat >>confdefs.h <<_ACEOF
9707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9708 _ACEOF
9709
9710 fi
9711 done
9712
9713
9714 # Check whether --enable-shared or --disable-shared was given.
9715 if test "${enable_shared+set}" = set; then
9716   enableval="$enable_shared"
9717   p=${PACKAGE-default}
9718     case $enableval in
9719     yes) enable_shared=yes ;;
9720     no) enable_shared=no ;;
9721     *)
9722       enable_shared=no
9723       # Look at the argument we got.  We use all the common list separators.
9724       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725       for pkg in $enableval; do
9726         IFS="$lt_save_ifs"
9727         if test "X$pkg" = "X$p"; then
9728           enable_shared=yes
9729         fi
9730       done
9731       IFS="$lt_save_ifs"
9732       ;;
9733     esac
9734 else
9735   enable_shared=yes
9736 fi;
9737
9738 # Check whether --enable-static or --disable-static was given.
9739 if test "${enable_static+set}" = set; then
9740   enableval="$enable_static"
9741   p=${PACKAGE-default}
9742     case $enableval in
9743     yes) enable_static=yes ;;
9744     no) enable_static=no ;;
9745     *)
9746      enable_static=no
9747       # Look at the argument we got.  We use all the common list separators.
9748       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9749       for pkg in $enableval; do
9750         IFS="$lt_save_ifs"
9751         if test "X$pkg" = "X$p"; then
9752           enable_static=yes
9753         fi
9754       done
9755       IFS="$lt_save_ifs"
9756       ;;
9757     esac
9758 else
9759   enable_static=yes
9760 fi;
9761
9762 # Check whether --enable-fast-install or --disable-fast-install was given.
9763 if test "${enable_fast_install+set}" = set; then
9764   enableval="$enable_fast_install"
9765   p=${PACKAGE-default}
9766     case $enableval in
9767     yes) enable_fast_install=yes ;;
9768     no) enable_fast_install=no ;;
9769     *)
9770       enable_fast_install=no
9771       # Look at the argument we got.  We use all the common list separators.
9772       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773       for pkg in $enableval; do
9774         IFS="$lt_save_ifs"
9775         if test "X$pkg" = "X$p"; then
9776           enable_fast_install=yes
9777         fi
9778       done
9779       IFS="$lt_save_ifs"
9780       ;;
9781     esac
9782 else
9783   enable_fast_install=yes
9784 fi;
9785
9786 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9787 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9788 if test "${lt_cv_path_SED+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   # Loop through the user's path and test for sed and gsed.
9792 # Then use that list of sed's as ones to test for truncation.
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796   IFS=$as_save_IFS
9797   test -z "$as_dir" && as_dir=.
9798   for lt_ac_prog in sed gsed; do
9799     for ac_exec_ext in '' $ac_executable_extensions; do
9800       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9801         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9802       fi
9803     done
9804   done
9805 done
9806 lt_ac_max=0
9807 lt_ac_count=0
9808 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9809 # along with /bin/sed that truncates output.
9810 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9811   test ! -f $lt_ac_sed && break
9812   cat /dev/null > conftest.in
9813   lt_ac_count=0
9814   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9815   # Check for GNU sed and select it if it is found.
9816   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9817     lt_cv_path_SED=$lt_ac_sed
9818     break
9819   fi
9820   while true; do
9821     cat conftest.in conftest.in >conftest.tmp
9822     mv conftest.tmp conftest.in
9823     cp conftest.in conftest.nl
9824     echo >>conftest.nl
9825     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9826     cmp -s conftest.out conftest.nl || break
9827     # 10000 chars as input seems more than enough
9828     test $lt_ac_count -gt 10 && break
9829     lt_ac_count=`expr $lt_ac_count + 1`
9830     if test $lt_ac_count -gt $lt_ac_max; then
9831       lt_ac_max=$lt_ac_count
9832       lt_cv_path_SED=$lt_ac_sed
9833     fi
9834   done
9835 done
9836
9837 fi
9838
9839 SED=$lt_cv_path_SED
9840 echo "$as_me:$LINENO: result: $SED" >&5
9841 echo "${ECHO_T}$SED" >&6
9842
9843
9844 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9845 if test "${with_gnu_ld+set}" = set; then
9846   withval="$with_gnu_ld"
9847   test "$withval" = no || with_gnu_ld=yes
9848 else
9849   with_gnu_ld=no
9850 fi;
9851 ac_prog=ld
9852 if test "$GCC" = yes; then
9853   # Check if gcc -print-prog-name=ld gives a path.
9854   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9855 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9856   case $host in
9857   *-*-mingw*)
9858     # gcc leaves a trailing carriage return which upsets mingw
9859     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9860   *)
9861     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9862   esac
9863   case $ac_prog in
9864     # Accept absolute paths.
9865     [\\/]* | ?:[\\/]*)
9866       re_direlt='/[^/][^/]*/\.\./'
9867       # Canonicalize the pathname of ld
9868       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9869       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9870         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9871       done
9872       test -z "$LD" && LD="$ac_prog"
9873       ;;
9874   "")
9875     # If it fails, then pretend we aren't using GCC.
9876     ac_prog=ld
9877     ;;
9878   *)
9879     # If it is relative, then search for the first ld in PATH.
9880     with_gnu_ld=unknown
9881     ;;
9882   esac
9883 elif test "$with_gnu_ld" = yes; then
9884   echo "$as_me:$LINENO: checking for GNU ld" >&5
9885 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9886 else
9887   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9888 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9889 fi
9890 if test "${lt_cv_path_LD+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   if test -z "$LD"; then
9894   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9895   for ac_dir in $PATH; do
9896     IFS="$lt_save_ifs"
9897     test -z "$ac_dir" && ac_dir=.
9898     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9899       lt_cv_path_LD="$ac_dir/$ac_prog"
9900       # Check to see if the program is GNU ld.  I'd rather use --version,
9901       # but apparently some GNU ld's only accept -v.
9902       # Break only if it was the GNU/non-GNU ld that we prefer.
9903       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9904       *GNU* | *'with BFD'*)
9905         test "$with_gnu_ld" != no && break
9906         ;;
9907       *)
9908         test "$with_gnu_ld" != yes && break
9909         ;;
9910       esac
9911     fi
9912   done
9913   IFS="$lt_save_ifs"
9914 else
9915   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9916 fi
9917 fi
9918
9919 LD="$lt_cv_path_LD"
9920 if test -n "$LD"; then
9921   echo "$as_me:$LINENO: result: $LD" >&5
9922 echo "${ECHO_T}$LD" >&6
9923 else
9924   echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9926 fi
9927 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9928 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9929    { (exit 1); exit 1; }; }
9930 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9931 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9932 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9936 case `$LD -v 2>&1 </dev/null` in
9937 *GNU* | *'with BFD'*)
9938   lt_cv_prog_gnu_ld=yes
9939   ;;
9940 *)
9941   lt_cv_prog_gnu_ld=no
9942   ;;
9943 esac
9944 fi
9945 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9946 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9947 with_gnu_ld=$lt_cv_prog_gnu_ld
9948
9949
9950 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9951 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9952 if test "${lt_cv_ld_reload_flag+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   lt_cv_ld_reload_flag='-r'
9956 fi
9957 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9958 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9959 reload_flag=$lt_cv_ld_reload_flag
9960 case $reload_flag in
9961 "" | " "*) ;;
9962 *) reload_flag=" $reload_flag" ;;
9963 esac
9964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9965 case $host_os in
9966   darwin*)
9967     if test "$GCC" = yes; then
9968       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9969     else
9970       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9971     fi
9972     ;;
9973 esac
9974
9975 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9977 if test "${lt_cv_deplibs_check_method+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   lt_cv_file_magic_cmd='$MAGIC_CMD'
9981 lt_cv_file_magic_test_file=
9982 lt_cv_deplibs_check_method='unknown'
9983 # Need to set the preceding variable on all platforms that support
9984 # interlibrary dependencies.
9985 # 'none' -- dependencies not supported.
9986 # `unknown' -- same as none, but documents that we really don't know.
9987 # 'pass_all' -- all dependencies passed with no checks.
9988 # 'test_compile' -- check by making test program.
9989 # 'file_magic [[regex]]' -- check by looking for files in library path
9990 # which responds to the $file_magic_cmd with a given extended regex.
9991 # If you have `file' or equivalent on your system and you're not sure
9992 # whether `pass_all' will *always* work, you probably want this one.
9993
9994 case $host_os in
9995 aix4* | aix5*)
9996   lt_cv_deplibs_check_method=pass_all
9997   ;;
9998
9999 beos*)
10000   lt_cv_deplibs_check_method=pass_all
10001   ;;
10002
10003 bsdi[45]*)
10004   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10005   lt_cv_file_magic_cmd='/usr/bin/file -L'
10006   lt_cv_file_magic_test_file=/shlib/libc.so
10007   ;;
10008
10009 cygwin*)
10010   # func_win32_libid is a shell function defined in ltmain.sh
10011   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10012   lt_cv_file_magic_cmd='func_win32_libid'
10013   ;;
10014
10015 mingw* | pw32*)
10016   # Base MSYS/MinGW do not provide the 'file' command needed by
10017   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10018   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10019   lt_cv_file_magic_cmd='$OBJDUMP -f'
10020   ;;
10021
10022 darwin* | rhapsody*)
10023   lt_cv_deplibs_check_method=pass_all
10024   ;;
10025
10026 freebsd* | kfreebsd*-gnu)
10027   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10028     case $host_cpu in
10029     i*86 )
10030       # Not sure whether the presence of OpenBSD here was a mistake.
10031       # Let's accept both of them until this is cleared up.
10032       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10033       lt_cv_file_magic_cmd=/usr/bin/file
10034       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10035       ;;
10036     esac
10037   else
10038     lt_cv_deplibs_check_method=pass_all
10039   fi
10040   ;;
10041
10042 gnu*)
10043   lt_cv_deplibs_check_method=pass_all
10044   ;;
10045
10046 hpux10.20* | hpux11*)
10047   lt_cv_file_magic_cmd=/usr/bin/file
10048   case "$host_cpu" in
10049   ia64*)
10050     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10051     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10052     ;;
10053   hppa*64*)
10054     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]'
10055     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10056     ;;
10057   *)
10058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10059     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10060     ;;
10061   esac
10062   ;;
10063
10064 irix5* | irix6* | nonstopux*)
10065   case $LD in
10066   *-32|*"-32 ") libmagic=32-bit;;
10067   *-n32|*"-n32 ") libmagic=N32;;
10068   *-64|*"-64 ") libmagic=64-bit;;
10069   *) libmagic=never-match;;
10070   esac
10071   lt_cv_deplibs_check_method=pass_all
10072   ;;
10073
10074 # This must be Linux ELF.
10075 linux*)
10076   lt_cv_deplibs_check_method=pass_all
10077   ;;
10078
10079 netbsd*)
10080   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10082   else
10083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10084   fi
10085   ;;
10086
10087 newos6*)
10088   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10089   lt_cv_file_magic_cmd=/usr/bin/file
10090   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10091   ;;
10092
10093 nto-qnx*)
10094   lt_cv_deplibs_check_method=unknown
10095   ;;
10096
10097 openbsd*)
10098   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10100   else
10101     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10102   fi
10103   ;;
10104
10105 osf3* | osf4* | osf5*)
10106   lt_cv_deplibs_check_method=pass_all
10107   ;;
10108
10109 sco3.2v5*)
10110   lt_cv_deplibs_check_method=pass_all
10111   ;;
10112
10113 solaris*)
10114   lt_cv_deplibs_check_method=pass_all
10115   ;;
10116
10117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10118   case $host_vendor in
10119   motorola)
10120     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]'
10121     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10122     ;;
10123   ncr)
10124     lt_cv_deplibs_check_method=pass_all
10125     ;;
10126   sequent)
10127     lt_cv_file_magic_cmd='/bin/file'
10128     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10129     ;;
10130   sni)
10131     lt_cv_file_magic_cmd='/bin/file'
10132     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10133     lt_cv_file_magic_test_file=/lib/libc.so
10134     ;;
10135   siemens)
10136     lt_cv_deplibs_check_method=pass_all
10137     ;;
10138   esac
10139   ;;
10140
10141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10142   lt_cv_deplibs_check_method=pass_all
10143   ;;
10144 esac
10145
10146 fi
10147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10149 file_magic_cmd=$lt_cv_file_magic_cmd
10150 deplibs_check_method=$lt_cv_deplibs_check_method
10151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10152
10153
10154
10155 # If no C compiler was specified, use CC.
10156 LTCC=${LTCC-"$CC"}
10157
10158 # Allow CC to be a program name with arguments.
10159 compiler=$CC
10160
10161 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10162 if test "${enable_libtool_lock+set}" = set; then
10163   enableval="$enable_libtool_lock"
10164
10165 fi;
10166 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10167
10168 # Some flags need to be propagated to the compiler or linker for good
10169 # libtool support.
10170 case $host in
10171 ia64-*-hpux*)
10172   # Find out which ABI we are using.
10173   echo 'int i;' > conftest.$ac_ext
10174   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175   (eval $ac_compile) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; then
10179     case `/usr/bin/file conftest.$ac_objext` in
10180     *ELF-32*)
10181       HPUX_IA64_MODE="32"
10182       ;;
10183     *ELF-64*)
10184       HPUX_IA64_MODE="64"
10185       ;;
10186     esac
10187   fi
10188   rm -rf conftest*
10189   ;;
10190 *-*-irix6*)
10191   # Find out which ABI we are using.
10192   echo '#line 10192 "configure"' > conftest.$ac_ext
10193   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; then
10198    if test "$lt_cv_prog_gnu_ld" = yes; then
10199     case `/usr/bin/file conftest.$ac_objext` in
10200     *32-bit*)
10201       LD="${LD-ld} -melf32bsmip"
10202       ;;
10203     *N32*)
10204       LD="${LD-ld} -melf32bmipn32"
10205       ;;
10206     *64-bit*)
10207       LD="${LD-ld} -melf64bmip"
10208       ;;
10209     esac
10210    else
10211     case `/usr/bin/file conftest.$ac_objext` in
10212     *32-bit*)
10213       LD="${LD-ld} -32"
10214       ;;
10215     *N32*)
10216       LD="${LD-ld} -n32"
10217       ;;
10218     *64-bit*)
10219       LD="${LD-ld} -64"
10220       ;;
10221     esac
10222    fi
10223   fi
10224   rm -rf conftest*
10225   ;;
10226
10227 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10228   # Find out which ABI we are using.
10229   echo 'int i;' > conftest.$ac_ext
10230   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231   (eval $ac_compile) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; then
10235     case "`/usr/bin/file conftest.o`" in
10236     *32-bit*)
10237       case $host in
10238         x86_64-*linux*)
10239           LD="${LD-ld} -m elf_i386"
10240           ;;
10241         ppc64-*linux*|powerpc64-*linux*)
10242           LD="${LD-ld} -m elf32ppclinux"
10243           ;;
10244         s390x-*linux*)
10245           LD="${LD-ld} -m elf_s390"
10246           ;;
10247         sparc64-*linux*)
10248           LD="${LD-ld} -m elf32_sparc"
10249           ;;
10250       esac
10251       ;;
10252     *64-bit*)
10253       case $host in
10254         x86_64-*linux*)
10255           LD="${LD-ld} -m elf_x86_64"
10256           ;;
10257         ppc*-*linux*|powerpc*-*linux*)
10258           LD="${LD-ld} -m elf64ppc"
10259           ;;
10260         s390*-*linux*)
10261           LD="${LD-ld} -m elf64_s390"
10262           ;;
10263         sparc*-*linux*)
10264           LD="${LD-ld} -m elf64_sparc"
10265           ;;
10266       esac
10267       ;;
10268     esac
10269   fi
10270   rm -rf conftest*
10271   ;;
10272
10273 *-*-sco3.2v5*)
10274   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10275   SAVE_CFLAGS="$CFLAGS"
10276   CFLAGS="$CFLAGS -belf"
10277   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10278 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10279 if test "${lt_cv_cc_needs_belf+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_ext=c
10283 ac_cpp='$CPP $CPPFLAGS'
10284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287
10288      cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>conftest.er1
10299   ac_status=$?
10300   grep -v '^ *+' conftest.er1 >conftest.err
10301   rm -f conftest.er1
10302   cat conftest.err >&5
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } &&
10305          { ac_try='test -z "$ac_c_werror_flag"
10306                          || test ! -s conftest.err'
10307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308   (eval $ac_try) 2>&5
10309   ac_status=$?
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); }; } &&
10312          { ac_try='test -s conftest$ac_exeext'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; }; then
10318   lt_cv_cc_needs_belf=yes
10319 else
10320   echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 lt_cv_cc_needs_belf=no
10324 fi
10325 rm -f conftest.err conftest.$ac_objext \
10326       conftest$ac_exeext conftest.$ac_ext
10327      ac_ext=c
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333 fi
10334 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10335 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10336   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10337     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10338     CFLAGS="$SAVE_CFLAGS"
10339   fi
10340   ;;
10341
10342 esac
10343
10344 need_locks="$enable_libtool_lock"
10345
10346
10347
10348
10349 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10350     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10351     (test "X$CXX" != "Xg++"))) ; then
10352   ac_ext=cc
10353 ac_cpp='$CXXCPP $CPPFLAGS'
10354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10357 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10358 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10359 if test -z "$CXXCPP"; then
10360   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363       # Double quotes because CXXCPP needs to be expanded
10364     for CXXCPP in "$CXX -E" "/lib/cpp"
10365     do
10366       ac_preproc_ok=false
10367 for ac_cxx_preproc_warn_flag in '' yes
10368 do
10369   # Use a header file that comes with gcc, so configuring glibc
10370   # with a fresh cross-compiler works.
10371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372   # <limits.h> exists even on freestanding compilers.
10373   # On the NeXT, cc -E runs the code through the compiler's parser,
10374   # not just through cpp. "Syntax error" is here to catch this case.
10375   cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 #ifdef __STDC__
10382 # include <limits.h>
10383 #else
10384 # include <assert.h>
10385 #endif
10386                      Syntax error
10387 _ACEOF
10388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } >/dev/null; then
10396   if test -s conftest.err; then
10397     ac_cpp_err=$ac_cxx_preproc_warn_flag
10398     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10399   else
10400     ac_cpp_err=
10401   fi
10402 else
10403   ac_cpp_err=yes
10404 fi
10405 if test -z "$ac_cpp_err"; then
10406   :
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411   # Broken: fails on valid input.
10412 continue
10413 fi
10414 rm -f conftest.err conftest.$ac_ext
10415
10416   # OK, works on sane cases.  Now check whether non-existent headers
10417   # can be detected and how.
10418   cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h.  */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h.  */
10424 #include <ac_nonexistent.h>
10425 _ACEOF
10426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } >/dev/null; then
10434   if test -s conftest.err; then
10435     ac_cpp_err=$ac_cxx_preproc_warn_flag
10436     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10437   else
10438     ac_cpp_err=
10439   fi
10440 else
10441   ac_cpp_err=yes
10442 fi
10443 if test -z "$ac_cpp_err"; then
10444   # Broken: success on invalid input.
10445 continue
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450   # Passes both tests.
10451 ac_preproc_ok=:
10452 break
10453 fi
10454 rm -f conftest.err conftest.$ac_ext
10455
10456 done
10457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10458 rm -f conftest.err conftest.$ac_ext
10459 if $ac_preproc_ok; then
10460   break
10461 fi
10462
10463     done
10464     ac_cv_prog_CXXCPP=$CXXCPP
10465
10466 fi
10467   CXXCPP=$ac_cv_prog_CXXCPP
10468 else
10469   ac_cv_prog_CXXCPP=$CXXCPP
10470 fi
10471 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10472 echo "${ECHO_T}$CXXCPP" >&6
10473 ac_preproc_ok=false
10474 for ac_cxx_preproc_warn_flag in '' yes
10475 do
10476   # Use a header file that comes with gcc, so configuring glibc
10477   # with a fresh cross-compiler works.
10478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10479   # <limits.h> exists even on freestanding compilers.
10480   # On the NeXT, cc -E runs the code through the compiler's parser,
10481   # not just through cpp. "Syntax error" is here to catch this case.
10482   cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488 #ifdef __STDC__
10489 # include <limits.h>
10490 #else
10491 # include <assert.h>
10492 #endif
10493                      Syntax error
10494 _ACEOF
10495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10497   ac_status=$?
10498   grep -v '^ *+' conftest.er1 >conftest.err
10499   rm -f conftest.er1
10500   cat conftest.err >&5
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); } >/dev/null; then
10503   if test -s conftest.err; then
10504     ac_cpp_err=$ac_cxx_preproc_warn_flag
10505     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10506   else
10507     ac_cpp_err=
10508   fi
10509 else
10510   ac_cpp_err=yes
10511 fi
10512 if test -z "$ac_cpp_err"; then
10513   :
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518   # Broken: fails on valid input.
10519 continue
10520 fi
10521 rm -f conftest.err conftest.$ac_ext
10522
10523   # OK, works on sane cases.  Now check whether non-existent headers
10524   # can be detected and how.
10525   cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531 #include <ac_nonexistent.h>
10532 _ACEOF
10533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } >/dev/null; then
10541   if test -s conftest.err; then
10542     ac_cpp_err=$ac_cxx_preproc_warn_flag
10543     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10544   else
10545     ac_cpp_err=
10546   fi
10547 else
10548   ac_cpp_err=yes
10549 fi
10550 if test -z "$ac_cpp_err"; then
10551   # Broken: success on invalid input.
10552 continue
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557   # Passes both tests.
10558 ac_preproc_ok=:
10559 break
10560 fi
10561 rm -f conftest.err conftest.$ac_ext
10562
10563 done
10564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10565 rm -f conftest.err conftest.$ac_ext
10566 if $ac_preproc_ok; then
10567   :
10568 else
10569   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10570 See \`config.log' for more details." >&5
10571 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10572 See \`config.log' for more details." >&2;}
10573    { (exit 1); exit 1; }; }
10574 fi
10575
10576 ac_ext=cc
10577 ac_cpp='$CXXCPP $CPPFLAGS'
10578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10581
10582 fi
10583
10584
10585 ac_ext=f
10586 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10587 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10588 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10589 if test -n "$ac_tool_prefix"; then
10590   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10591   do
10592     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10594 echo "$as_me:$LINENO: checking for $ac_word" >&5
10595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10596 if test "${ac_cv_prog_F77+set}" = set; then
10597   echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599   if test -n "$F77"; then
10600   ac_cv_prog_F77="$F77" # Let the user override the test.
10601 else
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10604 do
10605   IFS=$as_save_IFS
10606   test -z "$as_dir" && as_dir=.
10607   for ac_exec_ext in '' $ac_executable_extensions; do
10608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10611     break 2
10612   fi
10613 done
10614 done
10615
10616 fi
10617 fi
10618 F77=$ac_cv_prog_F77
10619 if test -n "$F77"; then
10620   echo "$as_me:$LINENO: result: $F77" >&5
10621 echo "${ECHO_T}$F77" >&6
10622 else
10623   echo "$as_me:$LINENO: result: no" >&5
10624 echo "${ECHO_T}no" >&6
10625 fi
10626
10627     test -n "$F77" && break
10628   done
10629 fi
10630 if test -z "$F77"; then
10631   ac_ct_F77=$F77
10632   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10633 do
10634   # Extract the first word of "$ac_prog", so it can be a program name with args.
10635 set dummy $ac_prog; ac_word=$2
10636 echo "$as_me:$LINENO: checking for $ac_word" >&5
10637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10638 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   if test -n "$ac_ct_F77"; then
10642   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10643 else
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10646 do
10647   IFS=$as_save_IFS
10648   test -z "$as_dir" && as_dir=.
10649   for ac_exec_ext in '' $ac_executable_extensions; do
10650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651     ac_cv_prog_ac_ct_F77="$ac_prog"
10652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10653     break 2
10654   fi
10655 done
10656 done
10657
10658 fi
10659 fi
10660 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10661 if test -n "$ac_ct_F77"; then
10662   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10663 echo "${ECHO_T}$ac_ct_F77" >&6
10664 else
10665   echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6
10667 fi
10668
10669   test -n "$ac_ct_F77" && break
10670 done
10671
10672   F77=$ac_ct_F77
10673 fi
10674
10675
10676 # Provide some information about the compiler.
10677 echo "$as_me:10677:" \
10678      "checking for Fortran 77 compiler version" >&5
10679 ac_compiler=`set X $ac_compile; echo $2`
10680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10681   (eval $ac_compiler --version </dev/null >&5) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }
10685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10686   (eval $ac_compiler -v </dev/null >&5) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }
10690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10691   (eval $ac_compiler -V </dev/null >&5) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }
10695 rm -f a.out
10696
10697 # If we don't use `.F' as extension, the preprocessor is not run on the
10698 # input file.  (Note that this only needs to work for GNU compilers.)
10699 ac_save_ext=$ac_ext
10700 ac_ext=F
10701 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10702 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10703 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10704   echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706   cat >conftest.$ac_ext <<_ACEOF
10707       program main
10708 #ifndef __GNUC__
10709        choke me
10710 #endif
10711
10712       end
10713 _ACEOF
10714 rm -f conftest.$ac_objext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10716   (eval $ac_compile) 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -z "$ac_f77_werror_flag"
10724                          || test ! -s conftest.err'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest.$ac_objext'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_compiler_gnu=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_compiler_gnu=no
10742 fi
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10744 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10745
10746 fi
10747 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10748 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10749 ac_ext=$ac_save_ext
10750 ac_test_FFLAGS=${FFLAGS+set}
10751 ac_save_FFLAGS=$FFLAGS
10752 FFLAGS=
10753 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10754 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10755 if test "${ac_cv_prog_f77_g+set}" = set; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   FFLAGS=-g
10759 cat >conftest.$ac_ext <<_ACEOF
10760       program main
10761
10762       end
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766   (eval $ac_compile) 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_f77_werror_flag"
10774                          || test ! -s conftest.err'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest.$ac_objext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_prog_f77_g=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_cv_prog_f77_g=no
10792 fi
10793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10794
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10797 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10798 if test "$ac_test_FFLAGS" = set; then
10799   FFLAGS=$ac_save_FFLAGS
10800 elif test $ac_cv_prog_f77_g = yes; then
10801   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10802     FFLAGS="-g -O2"
10803   else
10804     FFLAGS="-g"
10805   fi
10806 else
10807   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10808     FFLAGS="-O2"
10809   else
10810     FFLAGS=
10811   fi
10812 fi
10813
10814 G77=`test $ac_compiler_gnu = yes && echo yes`
10815 ac_ext=c
10816 ac_cpp='$CPP $CPPFLAGS'
10817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10820
10821
10822
10823 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10824
10825 # find the maximum length of command line arguments
10826 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10827 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10828 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831     i=0
10832   teststring="ABCD"
10833
10834   case $build_os in
10835   msdosdjgpp*)
10836     # On DJGPP, this test can blow up pretty badly due to problems in libc
10837     # (any single argument exceeding 2000 bytes causes a buffer overrun
10838     # during glob expansion).  Even if it were fixed, the result of this
10839     # check would be larger than it should be.
10840     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10841     ;;
10842
10843   gnu*)
10844     # Under GNU Hurd, this test is not required because there is
10845     # no limit to the length of command line arguments.
10846     # Libtool will interpret -1 as no limit whatsoever
10847     lt_cv_sys_max_cmd_len=-1;
10848     ;;
10849
10850   cygwin* | mingw*)
10851     # On Win9x/ME, this test blows up -- it succeeds, but takes
10852     # about 5 minutes as the teststring grows exponentially.
10853     # Worse, since 9x/ME are not pre-emptively multitasking,
10854     # you end up with a "frozen" computer, even though with patience
10855     # the test eventually succeeds (with a max line length of 256k).
10856     # Instead, let's just punt: use the minimum linelength reported by
10857     # all of the supported platforms: 8192 (on NT/2K/XP).
10858     lt_cv_sys_max_cmd_len=8192;
10859     ;;
10860
10861   amigaos*)
10862     # On AmigaOS with pdksh, this test takes hours, literally.
10863     # So we just punt and use a minimum line length of 8192.
10864     lt_cv_sys_max_cmd_len=8192;
10865     ;;
10866
10867   netbsd* | freebsd* | openbsd* | darwin* )
10868     # This has been around since 386BSD, at least.  Likely further.
10869     if test -x /sbin/sysctl; then
10870       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10871     elif test -x /usr/sbin/sysctl; then
10872       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10873     else
10874       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10875     fi
10876     # And add a safety zone
10877     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10878     ;;
10879
10880  *)
10881     # If test is not a shell built-in, we'll probably end up computing a
10882     # maximum length that is only half of the actual maximum length, but
10883     # we can't tell.
10884     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10885     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10886                = "XX$teststring") >/dev/null 2>&1 &&
10887             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10888             lt_cv_sys_max_cmd_len=$new_result &&
10889             test $i != 17 # 1/2 MB should be enough
10890     do
10891       i=`expr $i + 1`
10892       teststring=$teststring$teststring
10893     done
10894     teststring=
10895     # Add a significant safety factor because C++ compilers can tack on massive
10896     # amounts of additional arguments before passing them to the linker.
10897     # It appears as though 1/2 is a usable value.
10898     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10899     ;;
10900   esac
10901
10902 fi
10903
10904 if test -n $lt_cv_sys_max_cmd_len ; then
10905   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10906 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10907 else
10908   echo "$as_me:$LINENO: result: none" >&5
10909 echo "${ECHO_T}none" >&6
10910 fi
10911
10912
10913
10914
10915 # Check for command to grab the raw symbol name followed by C symbol from nm.
10916 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10917 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10918 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921
10922 # These are sane defaults that work on at least a few old systems.
10923 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10924
10925 # Character class describing NM global symbol codes.
10926 symcode='[BCDEGRST]'
10927
10928 # Regexp to match symbols that can be accessed directly from C.
10929 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10930
10931 # Transform the above into a raw symbol and a C symbol.
10932 symxfrm='\1 \2\3 \3'
10933
10934 # Transform an extracted symbol line into a proper C declaration
10935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10936
10937 # Transform an extracted symbol line into symbol name and symbol address
10938 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'"
10939
10940 # Define system-specific variables.
10941 case $host_os in
10942 aix*)
10943   symcode='[BCDT]'
10944   ;;
10945 cygwin* | mingw* | pw32*)
10946   symcode='[ABCDGISTW]'
10947   ;;
10948 hpux*) # Its linker distinguishes data from code symbols
10949   if test "$host_cpu" = ia64; then
10950     symcode='[ABCDEGRST]'
10951   fi
10952   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10953   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'"
10954   ;;
10955 linux*)
10956   if test "$host_cpu" = ia64; then
10957     symcode='[ABCDGIRSTW]'
10958     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10959     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'"
10960   fi
10961   ;;
10962 irix* | nonstopux*)
10963   symcode='[BCDEGRST]'
10964   ;;
10965 osf*)
10966   symcode='[BCDEGQRST]'
10967   ;;
10968 solaris* | sysv5*)
10969   symcode='[BDRT]'
10970   ;;
10971 sysv4)
10972   symcode='[DFNSTU]'
10973   ;;
10974 esac
10975
10976 # Handle CRLF in mingw tool chain
10977 opt_cr=
10978 case $build_os in
10979 mingw*)
10980   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10981   ;;
10982 esac
10983
10984 # If we're using GNU nm, then use its standard symbol codes.
10985 case `$NM -V 2>&1` in
10986 *GNU* | *'with BFD'*)
10987   symcode='[ABCDGIRSTW]' ;;
10988 esac
10989
10990 # Try without a prefix undercore, then with it.
10991 for ac_symprfx in "" "_"; do
10992
10993   # Write the raw and C identifiers.
10994   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10995
10996   # Check to see that the pipe works correctly.
10997   pipe_works=no
10998
10999   rm -f conftest*
11000   cat > conftest.$ac_ext <<EOF
11001 #ifdef __cplusplus
11002 extern "C" {
11003 #endif
11004 char nm_test_var;
11005 void nm_test_func(){}
11006 #ifdef __cplusplus
11007 }
11008 #endif
11009 int main(){nm_test_var='a';nm_test_func();return(0);}
11010 EOF
11011
11012   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013   (eval $ac_compile) 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; then
11017     # Now try to grab the symbols.
11018     nlist=conftest.nm
11019     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11020   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } && test -s "$nlist"; then
11024       # Try sorting and uniquifying the output.
11025       if sort "$nlist" | uniq > "$nlist"T; then
11026         mv -f "$nlist"T "$nlist"
11027       else
11028         rm -f "$nlist"T
11029       fi
11030
11031       # Make sure that we snagged all the symbols we need.
11032       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11033         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11034           cat <<EOF > conftest.$ac_ext
11035 #ifdef __cplusplus
11036 extern "C" {
11037 #endif
11038
11039 EOF
11040           # Now generate the symbol file.
11041           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11042
11043           cat <<EOF >> conftest.$ac_ext
11044 #if defined (__STDC__) && __STDC__
11045 # define lt_ptr_t void *
11046 #else
11047 # define lt_ptr_t char *
11048 # define const
11049 #endif
11050
11051 /* The mapping between symbol names and symbols. */
11052 const struct {
11053   const char *name;
11054   lt_ptr_t address;
11055 }
11056 lt_preloaded_symbols[] =
11057 {
11058 EOF
11059           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11060           cat <<\EOF >> conftest.$ac_ext
11061   {0, (lt_ptr_t) 0}
11062 };
11063
11064 #ifdef __cplusplus
11065 }
11066 #endif
11067 EOF
11068           # Now try linking the two files.
11069           mv conftest.$ac_objext conftstm.$ac_objext
11070           lt_save_LIBS="$LIBS"
11071           lt_save_CFLAGS="$CFLAGS"
11072           LIBS="conftstm.$ac_objext"
11073           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11074           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075   (eval $ac_link) 2>&5
11076   ac_status=$?
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11079             pipe_works=yes
11080           fi
11081           LIBS="$lt_save_LIBS"
11082           CFLAGS="$lt_save_CFLAGS"
11083         else
11084           echo "cannot find nm_test_func in $nlist" >&5
11085         fi
11086       else
11087         echo "cannot find nm_test_var in $nlist" >&5
11088       fi
11089     else
11090       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11091     fi
11092   else
11093     echo "$progname: failed program was:" >&5
11094     cat conftest.$ac_ext >&5
11095   fi
11096   rm -f conftest* conftst*
11097
11098   # Do not use the global_symbol_pipe unless it works.
11099   if test "$pipe_works" = yes; then
11100     break
11101   else
11102     lt_cv_sys_global_symbol_pipe=
11103   fi
11104 done
11105
11106 fi
11107
11108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11109   lt_cv_sys_global_symbol_to_cdecl=
11110 fi
11111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11112   echo "$as_me:$LINENO: result: failed" >&5
11113 echo "${ECHO_T}failed" >&6
11114 else
11115   echo "$as_me:$LINENO: result: ok" >&5
11116 echo "${ECHO_T}ok" >&6
11117 fi
11118
11119 echo "$as_me:$LINENO: checking for objdir" >&5
11120 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11121 if test "${lt_cv_objdir+set}" = set; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   rm -f .libs 2>/dev/null
11125 mkdir .libs 2>/dev/null
11126 if test -d .libs; then
11127   lt_cv_objdir=.libs
11128 else
11129   # MS-DOS does not allow filenames that begin with a dot.
11130   lt_cv_objdir=_libs
11131 fi
11132 rmdir .libs 2>/dev/null
11133 fi
11134 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11135 echo "${ECHO_T}$lt_cv_objdir" >&6
11136 objdir=$lt_cv_objdir
11137
11138
11139
11140
11141
11142 case $host_os in
11143 aix3*)
11144   # AIX sometimes has problems with the GCC collect2 program.  For some
11145   # reason, if we set the COLLECT_NAMES environment variable, the problems
11146   # vanish in a puff of smoke.
11147   if test "X${COLLECT_NAMES+set}" != Xset; then
11148     COLLECT_NAMES=
11149     export COLLECT_NAMES
11150   fi
11151   ;;
11152 esac
11153
11154 # Sed substitution that helps us do robust quoting.  It backslashifies
11155 # metacharacters that are still active within double-quoted strings.
11156 Xsed='sed -e s/^X//'
11157 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11158
11159 # Same as above, but do not quote variable references.
11160 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11161
11162 # Sed substitution to delay expansion of an escaped shell variable in a
11163 # double_quote_subst'ed string.
11164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11165
11166 # Sed substitution to avoid accidental globbing in evaled expressions
11167 no_glob_subst='s/\*/\\\*/g'
11168
11169 # Constants:
11170 rm="rm -f"
11171
11172 # Global variables:
11173 default_ofile=mklib
11174 can_build_shared=yes
11175
11176 # All known linkers require a `.a' archive for static linking (except M$VC,
11177 # which needs '.lib').
11178 libext=a
11179 ltmain="$ac_aux_dir/ltmain.sh"
11180 ofile="$default_ofile"
11181 with_gnu_ld="$lt_cv_prog_gnu_ld"
11182
11183 if test -n "$ac_tool_prefix"; then
11184   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11185 set dummy ${ac_tool_prefix}ar; ac_word=$2
11186 echo "$as_me:$LINENO: checking for $ac_word" >&5
11187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188 if test "${ac_cv_prog_AR+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   if test -n "$AR"; then
11192   ac_cv_prog_AR="$AR" # Let the user override the test.
11193 else
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11196 do
11197   IFS=$as_save_IFS
11198   test -z "$as_dir" && as_dir=.
11199   for ac_exec_ext in '' $ac_executable_extensions; do
11200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201     ac_cv_prog_AR="${ac_tool_prefix}ar"
11202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11203     break 2
11204   fi
11205 done
11206 done
11207
11208 fi
11209 fi
11210 AR=$ac_cv_prog_AR
11211 if test -n "$AR"; then
11212   echo "$as_me:$LINENO: result: $AR" >&5
11213 echo "${ECHO_T}$AR" >&6
11214 else
11215   echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6
11217 fi
11218
11219 fi
11220 if test -z "$ac_cv_prog_AR"; then
11221   ac_ct_AR=$AR
11222   # Extract the first word of "ar", so it can be a program name with args.
11223 set dummy ar; ac_word=$2
11224 echo "$as_me:$LINENO: checking for $ac_word" >&5
11225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229   if test -n "$ac_ct_AR"; then
11230   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235   IFS=$as_save_IFS
11236   test -z "$as_dir" && as_dir=.
11237   for ac_exec_ext in '' $ac_executable_extensions; do
11238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239     ac_cv_prog_ac_ct_AR="ar"
11240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11241     break 2
11242   fi
11243 done
11244 done
11245
11246   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11247 fi
11248 fi
11249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11250 if test -n "$ac_ct_AR"; then
11251   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11252 echo "${ECHO_T}$ac_ct_AR" >&6
11253 else
11254   echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11256 fi
11257
11258   AR=$ac_ct_AR
11259 else
11260   AR="$ac_cv_prog_AR"
11261 fi
11262
11263 if test -n "$ac_tool_prefix"; then
11264   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11266 echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268 if test "${ac_cv_prog_RANLIB+set}" = set; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   if test -n "$RANLIB"; then
11272   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279   for ac_exec_ext in '' $ac_executable_extensions; do
11280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286 done
11287
11288 fi
11289 fi
11290 RANLIB=$ac_cv_prog_RANLIB
11291 if test -n "$RANLIB"; then
11292   echo "$as_me:$LINENO: result: $RANLIB" >&5
11293 echo "${ECHO_T}$RANLIB" >&6
11294 else
11295   echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11297 fi
11298
11299 fi
11300 if test -z "$ac_cv_prog_RANLIB"; then
11301   ac_ct_RANLIB=$RANLIB
11302   # Extract the first word of "ranlib", so it can be a program name with args.
11303 set dummy ranlib; ac_word=$2
11304 echo "$as_me:$LINENO: checking for $ac_word" >&5
11305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   if test -n "$ac_ct_RANLIB"; then
11310   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11311 else
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315   IFS=$as_save_IFS
11316   test -z "$as_dir" && as_dir=.
11317   for ac_exec_ext in '' $ac_executable_extensions; do
11318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319     ac_cv_prog_ac_ct_RANLIB="ranlib"
11320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321     break 2
11322   fi
11323 done
11324 done
11325
11326   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11327 fi
11328 fi
11329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11330 if test -n "$ac_ct_RANLIB"; then
11331   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11332 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11333 else
11334   echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6
11336 fi
11337
11338   RANLIB=$ac_ct_RANLIB
11339 else
11340   RANLIB="$ac_cv_prog_RANLIB"
11341 fi
11342
11343 if test -n "$ac_tool_prefix"; then
11344   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11345 set dummy ${ac_tool_prefix}strip; ac_word=$2
11346 echo "$as_me:$LINENO: checking for $ac_word" >&5
11347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11348 if test "${ac_cv_prog_STRIP+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   if test -n "$STRIP"; then
11352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357   IFS=$as_save_IFS
11358   test -z "$as_dir" && as_dir=.
11359   for ac_exec_ext in '' $ac_executable_extensions; do
11360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363     break 2
11364   fi
11365 done
11366 done
11367
11368 fi
11369 fi
11370 STRIP=$ac_cv_prog_STRIP
11371 if test -n "$STRIP"; then
11372   echo "$as_me:$LINENO: result: $STRIP" >&5
11373 echo "${ECHO_T}$STRIP" >&6
11374 else
11375   echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6
11377 fi
11378
11379 fi
11380 if test -z "$ac_cv_prog_STRIP"; then
11381   ac_ct_STRIP=$STRIP
11382   # Extract the first word of "strip", so it can be a program name with args.
11383 set dummy strip; ac_word=$2
11384 echo "$as_me:$LINENO: checking for $ac_word" >&5
11385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11386 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   if test -n "$ac_ct_STRIP"; then
11390   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11391 else
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395   IFS=$as_save_IFS
11396   test -z "$as_dir" && as_dir=.
11397   for ac_exec_ext in '' $ac_executable_extensions; do
11398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399     ac_cv_prog_ac_ct_STRIP="strip"
11400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401     break 2
11402   fi
11403 done
11404 done
11405
11406   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11407 fi
11408 fi
11409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11410 if test -n "$ac_ct_STRIP"; then
11411   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11412 echo "${ECHO_T}$ac_ct_STRIP" >&6
11413 else
11414   echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6
11416 fi
11417
11418   STRIP=$ac_ct_STRIP
11419 else
11420   STRIP="$ac_cv_prog_STRIP"
11421 fi
11422
11423
11424 old_CC="$CC"
11425 old_CFLAGS="$CFLAGS"
11426
11427 # Set sane defaults for various variables
11428 test -z "$AR" && AR=ar
11429 test -z "$AR_FLAGS" && AR_FLAGS=cru
11430 test -z "$AS" && AS=as
11431 test -z "$CC" && CC=cc
11432 test -z "$LTCC" && LTCC=$CC
11433 test -z "$DLLTOOL" && DLLTOOL=dlltool
11434 test -z "$LD" && LD=ld
11435 test -z "$LN_S" && LN_S="ln -s"
11436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11437 test -z "$NM" && NM=nm
11438 test -z "$SED" && SED=sed
11439 test -z "$OBJDUMP" && OBJDUMP=objdump
11440 test -z "$RANLIB" && RANLIB=:
11441 test -z "$STRIP" && STRIP=:
11442 test -z "$ac_objext" && ac_objext=o
11443
11444 # Determine commands to create old-style static archives.
11445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11446 old_postinstall_cmds='chmod 644 $oldlib'
11447 old_postuninstall_cmds=
11448
11449 if test -n "$RANLIB"; then
11450   case $host_os in
11451   openbsd*)
11452     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11453     ;;
11454   *)
11455     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11456     ;;
11457   esac
11458   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11459 fi
11460
11461 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11462
11463 # Only perform the check for file, if the check method requires it
11464 case $deplibs_check_method in
11465 file_magic*)
11466   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11467     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11468 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   case $MAGIC_CMD in
11473 [\\/*] |  ?:[\\/]*)
11474   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11475   ;;
11476 *)
11477   lt_save_MAGIC_CMD="$MAGIC_CMD"
11478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11479   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11480   for ac_dir in $ac_dummy; do
11481     IFS="$lt_save_ifs"
11482     test -z "$ac_dir" && ac_dir=.
11483     if test -f $ac_dir/${ac_tool_prefix}file; then
11484       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11485       if test -n "$file_magic_test_file"; then
11486         case $deplibs_check_method in
11487         "file_magic "*)
11488           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11489           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11490           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11491             $EGREP "$file_magic_regex" > /dev/null; then
11492             :
11493           else
11494             cat <<EOF 1>&2
11495
11496 *** Warning: the command libtool uses to detect shared libraries,
11497 *** $file_magic_cmd, produces output that libtool cannot recognize.
11498 *** The result is that libtool may fail to recognize shared libraries
11499 *** as such.  This will affect the creation of libtool libraries that
11500 *** depend on shared libraries, but programs linked with such libtool
11501 *** libraries will work regardless of this problem.  Nevertheless, you
11502 *** may want to report the problem to your system manager and/or to
11503 *** bug-libtool@gnu.org
11504
11505 EOF
11506           fi ;;
11507         esac
11508       fi
11509       break
11510     fi
11511   done
11512   IFS="$lt_save_ifs"
11513   MAGIC_CMD="$lt_save_MAGIC_CMD"
11514   ;;
11515 esac
11516 fi
11517
11518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11519 if test -n "$MAGIC_CMD"; then
11520   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11521 echo "${ECHO_T}$MAGIC_CMD" >&6
11522 else
11523   echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11525 fi
11526
11527 if test -z "$lt_cv_path_MAGIC_CMD"; then
11528   if test -n "$ac_tool_prefix"; then
11529     echo "$as_me:$LINENO: checking for file" >&5
11530 echo $ECHO_N "checking for file... $ECHO_C" >&6
11531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534   case $MAGIC_CMD in
11535 [\\/*] |  ?:[\\/]*)
11536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11537   ;;
11538 *)
11539   lt_save_MAGIC_CMD="$MAGIC_CMD"
11540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11541   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11542   for ac_dir in $ac_dummy; do
11543     IFS="$lt_save_ifs"
11544     test -z "$ac_dir" && ac_dir=.
11545     if test -f $ac_dir/file; then
11546       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11547       if test -n "$file_magic_test_file"; then
11548         case $deplibs_check_method in
11549         "file_magic "*)
11550           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11551           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11552           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11553             $EGREP "$file_magic_regex" > /dev/null; then
11554             :
11555           else
11556             cat <<EOF 1>&2
11557
11558 *** Warning: the command libtool uses to detect shared libraries,
11559 *** $file_magic_cmd, produces output that libtool cannot recognize.
11560 *** The result is that libtool may fail to recognize shared libraries
11561 *** as such.  This will affect the creation of libtool libraries that
11562 *** depend on shared libraries, but programs linked with such libtool
11563 *** libraries will work regardless of this problem.  Nevertheless, you
11564 *** may want to report the problem to your system manager and/or to
11565 *** bug-libtool@gnu.org
11566
11567 EOF
11568           fi ;;
11569         esac
11570       fi
11571       break
11572     fi
11573   done
11574   IFS="$lt_save_ifs"
11575   MAGIC_CMD="$lt_save_MAGIC_CMD"
11576   ;;
11577 esac
11578 fi
11579
11580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11581 if test -n "$MAGIC_CMD"; then
11582   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11583 echo "${ECHO_T}$MAGIC_CMD" >&6
11584 else
11585   echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6
11587 fi
11588
11589   else
11590     MAGIC_CMD=:
11591   fi
11592 fi
11593
11594   fi
11595   ;;
11596 esac
11597
11598 enable_dlopen=yes
11599 enable_win32_dll=no
11600
11601 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11602 if test "${enable_libtool_lock+set}" = set; then
11603   enableval="$enable_libtool_lock"
11604
11605 fi;
11606 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11607
11608
11609 # Check whether --with-pic or --without-pic was given.
11610 if test "${with_pic+set}" = set; then
11611   withval="$with_pic"
11612   pic_mode="$withval"
11613 else
11614   pic_mode=default
11615 fi;
11616 test -z "$pic_mode" && pic_mode=default
11617
11618 # Use C for the default configuration in the libtool script
11619 tagname=
11620 lt_save_CC="$CC"
11621 ac_ext=c
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627
11628 # Source file extension for C test sources.
11629 ac_ext=c
11630
11631 # Object file extension for compiled C test sources.
11632 objext=o
11633 objext=$objext
11634
11635 # Code to be used in simple compile tests
11636 lt_simple_compile_test_code="int some_variable = 0;\n"
11637
11638 # Code to be used in simple link tests
11639 lt_simple_link_test_code='int main(){return(0);}\n'
11640
11641
11642 # If no C compiler was specified, use CC.
11643 LTCC=${LTCC-"$CC"}
11644
11645 # Allow CC to be a program name with arguments.
11646 compiler=$CC
11647
11648
11649 #
11650 # Check for any special shared library compilation flags.
11651 #
11652 lt_prog_cc_shlib=
11653 if test "$GCC" = no; then
11654   case $host_os in
11655   sco3.2v5*)
11656     lt_prog_cc_shlib='-belf'
11657     ;;
11658   esac
11659 fi
11660 if test -n "$lt_prog_cc_shlib"; then
11661   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11662 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11663   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11664   else
11665     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11666 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11667     lt_cv_prog_cc_can_build_shared=no
11668   fi
11669 fi
11670
11671
11672 #
11673 # Check to make sure the static flag actually works.
11674 #
11675 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11676 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11677 if test "${lt_prog_compiler_static_works+set}" = set; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   lt_prog_compiler_static_works=no
11681    save_LDFLAGS="$LDFLAGS"
11682    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11683    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11684    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11685      # The compiler can only warn and ignore the option if not recognized
11686      # So say no if there are warnings
11687      if test -s conftest.err; then
11688        # Append any errors to the config.log.
11689        cat conftest.err 1>&5
11690      else
11691        lt_prog_compiler_static_works=yes
11692      fi
11693    fi
11694    $rm conftest*
11695    LDFLAGS="$save_LDFLAGS"
11696
11697 fi
11698 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11699 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11700
11701 if test x"$lt_prog_compiler_static_works" = xyes; then
11702     :
11703 else
11704     lt_prog_compiler_static=
11705 fi
11706
11707
11708
11709
11710 lt_prog_compiler_no_builtin_flag=
11711
11712 if test "$GCC" = yes; then
11713   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11714
11715
11716 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11717 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11718 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   lt_cv_prog_compiler_rtti_exceptions=no
11722   ac_outfile=conftest.$ac_objext
11723    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11724    lt_compiler_flag="-fno-rtti -fno-exceptions"
11725    # Insert the option either (1) after the last *FLAGS variable, or
11726    # (2) before a word containing "conftest.", or (3) at the end.
11727    # Note that $ac_compile itself does not contain backslashes and begins
11728    # with a dollar sign (not a hyphen), so the echo should work correctly.
11729    # The option is referenced via a variable to avoid confusing sed.
11730    lt_compile=`echo "$ac_compile" | $SED \
11731    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11733    -e 's:$: $lt_compiler_flag:'`
11734    (eval echo "\"\$as_me:11734: $lt_compile\"" >&5)
11735    (eval "$lt_compile" 2>conftest.err)
11736    ac_status=$?
11737    cat conftest.err >&5
11738    echo "$as_me:11738: \$? = $ac_status" >&5
11739    if (exit $ac_status) && test -s "$ac_outfile"; then
11740      # The compiler can only warn and ignore the option if not recognized
11741      # So say no if there are warnings
11742      if test ! -s conftest.err; then
11743        lt_cv_prog_compiler_rtti_exceptions=yes
11744      fi
11745    fi
11746    $rm conftest*
11747
11748 fi
11749 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11750 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11751
11752 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11753     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11754 else
11755     :
11756 fi
11757
11758 fi
11759
11760 lt_prog_compiler_wl=
11761 lt_prog_compiler_pic=
11762 lt_prog_compiler_static=
11763
11764 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11765 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11766
11767   if test "$GCC" = yes; then
11768     lt_prog_compiler_wl='-Wl,'
11769     lt_prog_compiler_static='-static'
11770
11771     case $host_os in
11772       aix*)
11773       # All AIX code is PIC.
11774       if test "$host_cpu" = ia64; then
11775         # AIX 5 now supports IA64 processor
11776         lt_prog_compiler_static='-Bstatic'
11777       fi
11778       ;;
11779
11780     amigaos*)
11781       # FIXME: we need at least 68020 code to build shared libraries, but
11782       # adding the `-m68020' flag to GCC prevents building anything better,
11783       # like `-m68040'.
11784       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11785       ;;
11786
11787     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11788       # PIC is the default for these OSes.
11789       ;;
11790
11791     mingw* | pw32* | os2*)
11792       # This hack is so that the source file can tell whether it is being
11793       # built for inclusion in a dll (and should export symbols for example).
11794       lt_prog_compiler_pic='-DDLL_EXPORT'
11795       ;;
11796
11797     darwin* | rhapsody*)
11798       # PIC is the default on this platform
11799       # Common symbols not allowed in MH_DYLIB files
11800       lt_prog_compiler_pic='-fno-common'
11801       ;;
11802
11803     msdosdjgpp*)
11804       # Just because we use GCC doesn't mean we suddenly get shared libraries
11805       # on systems that don't support them.
11806       lt_prog_compiler_can_build_shared=no
11807       enable_shared=no
11808       ;;
11809
11810     sysv4*MP*)
11811       if test -d /usr/nec; then
11812         lt_prog_compiler_pic=-Kconform_pic
11813       fi
11814       ;;
11815
11816     hpux*)
11817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11818       # not for PA HP-UX.
11819       case "$host_cpu" in
11820       hppa*64*|ia64*)
11821         # +Z the default
11822         ;;
11823       *)
11824         lt_prog_compiler_pic='-fPIC'
11825         ;;
11826       esac
11827       ;;
11828
11829     *)
11830       lt_prog_compiler_pic='-fPIC'
11831       ;;
11832     esac
11833   else
11834     # PORTME Check for flag to pass linker flags through the system compiler.
11835     case $host_os in
11836     aix*)
11837       lt_prog_compiler_wl='-Wl,'
11838       if test "$host_cpu" = ia64; then
11839         # AIX 5 now supports IA64 processor
11840         lt_prog_compiler_static='-Bstatic'
11841       else
11842         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11843       fi
11844       ;;
11845       darwin*)
11846         # PIC is the default on this platform
11847         # Common symbols not allowed in MH_DYLIB files
11848        case "$cc_basename" in
11849          xlc*)
11850          lt_prog_compiler_pic='-qnocommon'
11851          lt_prog_compiler_wl='-Wl,'
11852          ;;
11853        esac
11854        ;;
11855
11856     mingw* | pw32* | os2*)
11857       # This hack is so that the source file can tell whether it is being
11858       # built for inclusion in a dll (and should export symbols for example).
11859       lt_prog_compiler_pic='-DDLL_EXPORT'
11860       ;;
11861
11862     hpux9* | hpux10* | hpux11*)
11863       lt_prog_compiler_wl='-Wl,'
11864       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11865       # not for PA HP-UX.
11866       case "$host_cpu" in
11867       hppa*64*|ia64*)
11868         # +Z the default
11869         ;;
11870       *)
11871         lt_prog_compiler_pic='+Z'
11872         ;;
11873       esac
11874       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11875       lt_prog_compiler_static='${wl}-a ${wl}archive'
11876       ;;
11877
11878     irix5* | irix6* | nonstopux*)
11879       lt_prog_compiler_wl='-Wl,'
11880       # PIC (with -KPIC) is the default.
11881       lt_prog_compiler_static='-non_shared'
11882       ;;
11883
11884     newsos6)
11885       lt_prog_compiler_pic='-KPIC'
11886       lt_prog_compiler_static='-Bstatic'
11887       ;;
11888
11889     linux*)
11890       case $CC in
11891       icc* | ecc*)
11892         lt_prog_compiler_wl='-Wl,'
11893         lt_prog_compiler_pic='-KPIC'
11894         lt_prog_compiler_static='-static'
11895         ;;
11896       ccc*)
11897         lt_prog_compiler_wl='-Wl,'
11898         # All Alpha code is PIC.
11899         lt_prog_compiler_static='-non_shared'
11900         ;;
11901       esac
11902       ;;
11903
11904     osf3* | osf4* | osf5*)
11905       lt_prog_compiler_wl='-Wl,'
11906       # All OSF/1 code is PIC.
11907       lt_prog_compiler_static='-non_shared'
11908       ;;
11909
11910     sco3.2v5*)
11911       lt_prog_compiler_pic='-Kpic'
11912       lt_prog_compiler_static='-dn'
11913       ;;
11914
11915     solaris*)
11916       lt_prog_compiler_wl='-Wl,'
11917       lt_prog_compiler_pic='-KPIC'
11918       lt_prog_compiler_static='-Bstatic'
11919       ;;
11920
11921     sunos4*)
11922       lt_prog_compiler_wl='-Qoption ld '
11923       lt_prog_compiler_pic='-PIC'
11924       lt_prog_compiler_static='-Bstatic'
11925       ;;
11926
11927     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11928       lt_prog_compiler_wl='-Wl,'
11929       lt_prog_compiler_pic='-KPIC'
11930       lt_prog_compiler_static='-Bstatic'
11931       ;;
11932
11933     sysv4*MP*)
11934       if test -d /usr/nec ;then
11935         lt_prog_compiler_pic='-Kconform_pic'
11936         lt_prog_compiler_static='-Bstatic'
11937       fi
11938       ;;
11939
11940     uts4*)
11941       lt_prog_compiler_pic='-pic'
11942       lt_prog_compiler_static='-Bstatic'
11943       ;;
11944
11945     *)
11946       lt_prog_compiler_can_build_shared=no
11947       ;;
11948     esac
11949   fi
11950
11951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11952 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11953
11954 #
11955 # Check to make sure the PIC flag actually works.
11956 #
11957 if test -n "$lt_prog_compiler_pic"; then
11958
11959 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11960 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11961 if test "${lt_prog_compiler_pic_works+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   lt_prog_compiler_pic_works=no
11965   ac_outfile=conftest.$ac_objext
11966    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11967    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11968    # Insert the option either (1) after the last *FLAGS variable, or
11969    # (2) before a word containing "conftest.", or (3) at the end.
11970    # Note that $ac_compile itself does not contain backslashes and begins
11971    # with a dollar sign (not a hyphen), so the echo should work correctly.
11972    # The option is referenced via a variable to avoid confusing sed.
11973    lt_compile=`echo "$ac_compile" | $SED \
11974    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11976    -e 's:$: $lt_compiler_flag:'`
11977    (eval echo "\"\$as_me:11977: $lt_compile\"" >&5)
11978    (eval "$lt_compile" 2>conftest.err)
11979    ac_status=$?
11980    cat conftest.err >&5
11981    echo "$as_me:11981: \$? = $ac_status" >&5
11982    if (exit $ac_status) && test -s "$ac_outfile"; then
11983      # The compiler can only warn and ignore the option if not recognized
11984      # So say no if there are warnings
11985      if test ! -s conftest.err; then
11986        lt_prog_compiler_pic_works=yes
11987      fi
11988    fi
11989    $rm conftest*
11990
11991 fi
11992 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11993 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11994
11995 if test x"$lt_prog_compiler_pic_works" = xyes; then
11996     case $lt_prog_compiler_pic in
11997      "" | " "*) ;;
11998      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11999      esac
12000 else
12001     lt_prog_compiler_pic=
12002      lt_prog_compiler_can_build_shared=no
12003 fi
12004
12005 fi
12006 case "$host_os" in
12007   # For platforms which do not support PIC, -DPIC is meaningless:
12008   *djgpp*)
12009     lt_prog_compiler_pic=
12010     ;;
12011   *)
12012     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12013     ;;
12014 esac
12015
12016 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12017 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12018 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   lt_cv_prog_compiler_c_o=no
12022    $rm -r conftest 2>/dev/null
12023    mkdir conftest
12024    cd conftest
12025    mkdir out
12026    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
12028    lt_compiler_flag="-o out/conftest2.$ac_objext"
12029    # Insert the option either (1) after the last *FLAGS variable, or
12030    # (2) before a word containing "conftest.", or (3) at the end.
12031    # Note that $ac_compile itself does not contain backslashes and begins
12032    # with a dollar sign (not a hyphen), so the echo should work correctly.
12033    lt_compile=`echo "$ac_compile" | $SED \
12034    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036    -e 's:$: $lt_compiler_flag:'`
12037    (eval echo "\"\$as_me:12037: $lt_compile\"" >&5)
12038    (eval "$lt_compile" 2>out/conftest.err)
12039    ac_status=$?
12040    cat out/conftest.err >&5
12041    echo "$as_me:12041: \$? = $ac_status" >&5
12042    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043    then
12044      # The compiler can only warn and ignore the option if not recognized
12045      # So say no if there are warnings
12046      if test ! -s out/conftest.err; then
12047        lt_cv_prog_compiler_c_o=yes
12048      fi
12049    fi
12050    chmod u+w .
12051    $rm conftest*
12052    # SGI C++ compiler will create directory out/ii_files/ for
12053    # template instantiation
12054    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12055    $rm out/* && rmdir out
12056    cd ..
12057    rmdir conftest
12058    $rm conftest*
12059
12060 fi
12061 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12062 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12063
12064
12065 hard_links="nottested"
12066 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12067   # do not overwrite the value of need_locks provided by the user
12068   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12069 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12070   hard_links=yes
12071   $rm conftest*
12072   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12073   touch conftest.a
12074   ln conftest.a conftest.b 2>&5 || hard_links=no
12075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076   echo "$as_me:$LINENO: result: $hard_links" >&5
12077 echo "${ECHO_T}$hard_links" >&6
12078   if test "$hard_links" = no; then
12079     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12080 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12081     need_locks=warn
12082   fi
12083 else
12084   need_locks=no
12085 fi
12086
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12089
12090   runpath_var=
12091   allow_undefined_flag=
12092   enable_shared_with_static_runtimes=no
12093   archive_cmds=
12094   archive_expsym_cmds=
12095   old_archive_From_new_cmds=
12096   old_archive_from_expsyms_cmds=
12097   export_dynamic_flag_spec=
12098   whole_archive_flag_spec=
12099   thread_safe_flag_spec=
12100   hardcode_libdir_flag_spec=
12101   hardcode_libdir_flag_spec_ld=
12102   hardcode_libdir_separator=
12103   hardcode_direct=no
12104   hardcode_minus_L=no
12105   hardcode_shlibpath_var=unsupported
12106   link_all_deplibs=unknown
12107   hardcode_automatic=no
12108   module_cmds=
12109   module_expsym_cmds=
12110   always_export_symbols=no
12111   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112   # include_expsyms should be a list of space-separated symbols to be *always*
12113   # included in the symbol list
12114   include_expsyms=
12115   # exclude_expsyms can be an extended regexp of symbols to exclude
12116   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12117   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12118   # as well as any symbol that contains `d'.
12119   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12120   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12121   # platforms (ab)use it in PIC code, but their linkers get confused if
12122   # the symbol is explicitly referenced.  Since portable code cannot
12123   # rely on this symbol name, it's probably fine to never include it in
12124   # preloaded symbol tables.
12125   extract_expsyms_cmds=
12126
12127   case $host_os in
12128   cygwin* | mingw* | pw32*)
12129     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12130     # When not using gcc, we currently assume that we are using
12131     # Microsoft Visual C++.
12132     if test "$GCC" != yes; then
12133       with_gnu_ld=no
12134     fi
12135     ;;
12136   openbsd*)
12137     with_gnu_ld=no
12138     ;;
12139   esac
12140
12141   ld_shlibs=yes
12142   if test "$with_gnu_ld" = yes; then
12143     # If archive_cmds runs LD, not CC, wlarc should be empty
12144     wlarc='${wl}'
12145
12146     # See if GNU ld supports shared libraries.
12147     case $host_os in
12148     aix3* | aix4* | aix5*)
12149       # On AIX/PPC, the GNU linker is very broken
12150       if test "$host_cpu" != ia64; then
12151         ld_shlibs=no
12152         cat <<EOF 1>&2
12153
12154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12155 *** to be unable to reliably create shared libraries on AIX.
12156 *** Therefore, libtool is disabling shared libraries support.  If you
12157 *** really care for shared libraries, you may want to modify your PATH
12158 *** so that a non-GNU linker is found, and then restart.
12159
12160 EOF
12161       fi
12162       ;;
12163
12164     amigaos*)
12165       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)'
12166       hardcode_libdir_flag_spec='-L$libdir'
12167       hardcode_minus_L=yes
12168
12169       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12170       # that the semantics of dynamic libraries on AmigaOS, at least up
12171       # to version 4, is to share data among multiple programs linked
12172       # with the same dynamic library.  Since this doesn't match the
12173       # behavior of shared libraries on other platforms, we can't use
12174       # them.
12175       ld_shlibs=no
12176       ;;
12177
12178     beos*)
12179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12180         allow_undefined_flag=unsupported
12181         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12182         # support --undefined.  This deserves some investigation.  FIXME
12183         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12184       else
12185         ld_shlibs=no
12186       fi
12187       ;;
12188
12189     cygwin* | mingw* | pw32*)
12190       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12191       # as there is no search path for DLLs.
12192       hardcode_libdir_flag_spec='-L$libdir'
12193       allow_undefined_flag=unsupported
12194       always_export_symbols=no
12195       enable_shared_with_static_runtimes=yes
12196       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12197
12198       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12200         # If the export-symbols file already is a .def file (1st line
12201         # is EXPORTS), use it as is; otherwise, prepend...
12202         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12203           cp $export_symbols $output_objdir/$soname.def;
12204         else
12205           echo EXPORTS > $output_objdir/$soname.def;
12206           cat $export_symbols >> $output_objdir/$soname.def;
12207         fi~
12208         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12209       else
12210         ld_shlibs=no
12211       fi
12212       ;;
12213
12214     netbsd*)
12215       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12216         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12217         wlarc=
12218       else
12219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12221       fi
12222       ;;
12223
12224     solaris* | sysv5*)
12225       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12226         ld_shlibs=no
12227         cat <<EOF 1>&2
12228
12229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12230 *** create shared libraries on Solaris systems.  Therefore, libtool
12231 *** is disabling shared libraries support.  We urge you to upgrade GNU
12232 *** binutils to release 2.9.1 or newer.  Another option is to modify
12233 *** your PATH or compiler configuration so that the native linker is
12234 *** used, and then restart.
12235
12236 EOF
12237       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240       else
12241         ld_shlibs=no
12242       fi
12243       ;;
12244
12245     sunos4*)
12246       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12247       wlarc=
12248       hardcode_direct=yes
12249       hardcode_shlibpath_var=no
12250       ;;
12251
12252   linux*)
12253     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12254         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255         archive_cmds="$tmp_archive_cmds"
12256       supports_anon_versioning=no
12257       case `$LD -v 2>/dev/null` in
12258         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12259         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12260         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12261         *\ 2.11.*) ;; # other 2.11 versions
12262         *) supports_anon_versioning=yes ;;
12263       esac
12264       if test $supports_anon_versioning = yes; then
12265         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267 $echo "local: *; };" >> $output_objdir/$libname.ver~
12268         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12269       else
12270         archive_expsym_cmds="$tmp_archive_cmds"
12271       fi
12272     else
12273       ld_shlibs=no
12274     fi
12275     ;;
12276
12277     *)
12278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12279         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12281       else
12282         ld_shlibs=no
12283       fi
12284       ;;
12285     esac
12286
12287     if test "$ld_shlibs" = yes; then
12288       runpath_var=LD_RUN_PATH
12289       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12290       export_dynamic_flag_spec='${wl}--export-dynamic'
12291       # ancient GNU ld didn't support --whole-archive et. al.
12292       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12293         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12294       else
12295         whole_archive_flag_spec=
12296       fi
12297     fi
12298   else
12299     # PORTME fill in a description of your system's linker (not GNU ld)
12300     case $host_os in
12301     aix3*)
12302       allow_undefined_flag=unsupported
12303       always_export_symbols=yes
12304       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'
12305       # Note: this linker hardcodes the directories in LIBPATH if there
12306       # are no directories specified by -L.
12307       hardcode_minus_L=yes
12308       if test "$GCC" = yes && test -z "$link_static_flag"; then
12309         # Neither direct hardcoding nor static linking is supported with a
12310         # broken collect2.
12311         hardcode_direct=unsupported
12312       fi
12313       ;;
12314
12315     aix4* | aix5*)
12316       if test "$host_cpu" = ia64; then
12317         # On IA64, the linker does run time linking by default, so we don't
12318         # have to do anything special.
12319         aix_use_runtimelinking=no
12320         exp_sym_flag='-Bexport'
12321         no_entry_flag=""
12322       else
12323         # If we're using GNU nm, then we don't want the "-C" option.
12324         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12325         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12326           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'
12327         else
12328           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'
12329         fi
12330         aix_use_runtimelinking=no
12331
12332         # Test if we are trying to use run time linking or normal
12333         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12334         # need to do runtime linking.
12335         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12336           for ld_flag in $LDFLAGS; do
12337           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12338             aix_use_runtimelinking=yes
12339             break
12340           fi
12341           done
12342         esac
12343
12344         exp_sym_flag='-bexport'
12345         no_entry_flag='-bnoentry'
12346       fi
12347
12348       # When large executables or shared objects are built, AIX ld can
12349       # have problems creating the table of contents.  If linking a library
12350       # or program results in "error TOC overflow" add -mminimal-toc to
12351       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12352       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12353
12354       archive_cmds=''
12355       hardcode_direct=yes
12356       hardcode_libdir_separator=':'
12357       link_all_deplibs=yes
12358
12359       if test "$GCC" = yes; then
12360         case $host_os in aix4.012|aix4.012.*)
12361         # We only want to do this on AIX 4.2 and lower, the check
12362         # below for broken collect2 doesn't work under 4.3+
12363           collect2name=`${CC} -print-prog-name=collect2`
12364           if test -f "$collect2name" && \
12365            strings "$collect2name" | grep resolve_lib_name >/dev/null
12366           then
12367           # We have reworked collect2
12368           hardcode_direct=yes
12369           else
12370           # We have old collect2
12371           hardcode_direct=unsupported
12372           # It fails to find uninstalled libraries when the uninstalled
12373           # path is not listed in the libpath.  Setting hardcode_minus_L
12374           # to unsupported forces relinking
12375           hardcode_minus_L=yes
12376           hardcode_libdir_flag_spec='-L$libdir'
12377           hardcode_libdir_separator=
12378           fi
12379         esac
12380         shared_flag='-shared'
12381       else
12382         # not using gcc
12383         if test "$host_cpu" = ia64; then
12384         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12385         # chokes on -Wl,-G. The following line is correct:
12386           shared_flag='-G'
12387         else
12388         if test "$aix_use_runtimelinking" = yes; then
12389             shared_flag='${wl}-G'
12390           else
12391             shared_flag='${wl}-bM:SRE'
12392         fi
12393         fi
12394       fi
12395
12396       # It seems that -bexpall does not export symbols beginning with
12397       # underscore (_), so it is better to generate a list of symbols to export.
12398       always_export_symbols=yes
12399       if test "$aix_use_runtimelinking" = yes; then
12400         # Warning - without using the other runtime loading flags (-brtl),
12401         # -berok will link without error, but may produce a broken library.
12402         allow_undefined_flag='-berok'
12403        # Determine the default libpath from the value encoded in an empty executable.
12404        cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410
12411 int
12412 main ()
12413 {
12414
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421   (eval $ac_link) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag"
12429                          || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441
12442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12443 }'`
12444 # Check for a 64-bit object if we didn't find anything.
12445 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; }
12446 }'`; fi
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 fi
12452 rm -f conftest.err conftest.$ac_objext \
12453       conftest$ac_exeext conftest.$ac_ext
12454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12455
12456        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12457         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"
12458        else
12459         if test "$host_cpu" = ia64; then
12460           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12461           allow_undefined_flag="-z nodefs"
12462           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"
12463         else
12464          # Determine the default libpath from the value encoded in an empty executable.
12465          cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471
12472 int
12473 main ()
12474 {
12475
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag"
12490                          || test ! -s conftest.err'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; } &&
12496          { ac_try='test -s conftest$ac_exeext'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502
12503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12504 }'`
12505 # Check for a 64-bit object if we didn't find anything.
12506 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; }
12507 }'`; fi
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 fi
12513 rm -f conftest.err conftest.$ac_objext \
12514       conftest$ac_exeext conftest.$ac_ext
12515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12516
12517          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12518           # Warning - without using the other run time loading flags,
12519           # -berok will link without error, but may produce a broken library.
12520           no_undefined_flag=' ${wl}-bernotok'
12521           allow_undefined_flag=' ${wl}-berok'
12522           # -bexpall does not export symbols beginning with underscore (_)
12523           always_export_symbols=yes
12524           # Exported symbols can be pulled into shared objects from archives
12525           whole_archive_flag_spec=' '
12526           archive_cmds_need_lc=yes
12527           # This is similar to how AIX traditionally builds it's shared libraries.
12528           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'
12529         fi
12530       fi
12531       ;;
12532
12533     amigaos*)
12534       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)'
12535       hardcode_libdir_flag_spec='-L$libdir'
12536       hardcode_minus_L=yes
12537       # see comment about different semantics on the GNU ld section
12538       ld_shlibs=no
12539       ;;
12540
12541     bsdi[45]*)
12542       export_dynamic_flag_spec=-rdynamic
12543       ;;
12544
12545     cygwin* | mingw* | pw32*)
12546       # When not using gcc, we currently assume that we are using
12547       # Microsoft Visual C++.
12548       # hardcode_libdir_flag_spec is actually meaningless, as there is
12549       # no search path for DLLs.
12550       hardcode_libdir_flag_spec=' '
12551       allow_undefined_flag=unsupported
12552       # Tell ltmain to make .lib files, not .a files.
12553       libext=lib
12554       # Tell ltmain to make .dll files, not .so files.
12555       shrext_cmds=".dll"
12556       # FIXME: Setting linknames here is a bad hack.
12557       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12558       # The linker will automatically build a .lib file if we build a DLL.
12559       old_archive_From_new_cmds='true'
12560       # FIXME: Should let the user specify the lib program.
12561       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12562       fix_srcfile_path='`cygpath -w "$srcfile"`'
12563       enable_shared_with_static_runtimes=yes
12564       ;;
12565
12566     darwin* | rhapsody*)
12567       case "$host_os" in
12568         rhapsody* | darwin1.[012])
12569          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12570          ;;
12571        *) # Darwin 1.3 on
12572          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12573            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12574          else
12575            case ${MACOSX_DEPLOYMENT_TARGET} in
12576              10.[012])
12577                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12578                ;;
12579              10.*)
12580                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12581                ;;
12582            esac
12583          fi
12584          ;;
12585       esac
12586       archive_cmds_need_lc=no
12587       hardcode_direct=no
12588       hardcode_automatic=yes
12589       hardcode_shlibpath_var=unsupported
12590       whole_archive_flag_spec=''
12591       link_all_deplibs=yes
12592     if test "$GCC" = yes ; then
12593         output_verbose_link_cmd='echo'
12594         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12595       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12596       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12597       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}'
12598       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}'
12599     else
12600       case "$cc_basename" in
12601         xlc*)
12602          output_verbose_link_cmd='echo'
12603          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12604          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12605           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12606          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}'
12607           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}'
12608           ;;
12609        *)
12610          ld_shlibs=no
12611           ;;
12612       esac
12613     fi
12614       ;;
12615
12616     dgux*)
12617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12618       hardcode_libdir_flag_spec='-L$libdir'
12619       hardcode_shlibpath_var=no
12620       ;;
12621
12622     freebsd1*)
12623       ld_shlibs=no
12624       ;;
12625
12626     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12627     # support.  Future versions do this automatically, but an explicit c++rt0.o
12628     # does not break anything, and helps significantly (at the cost of a little
12629     # extra space).
12630     freebsd2.2*)
12631       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12632       hardcode_libdir_flag_spec='-R$libdir'
12633       hardcode_direct=yes
12634       hardcode_shlibpath_var=no
12635       ;;
12636
12637     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12638     freebsd2*)
12639       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12640       hardcode_direct=yes
12641       hardcode_minus_L=yes
12642       hardcode_shlibpath_var=no
12643       ;;
12644
12645     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12646     freebsd* | kfreebsd*-gnu)
12647       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12648       hardcode_libdir_flag_spec='-R$libdir'
12649       hardcode_direct=yes
12650       hardcode_shlibpath_var=no
12651       ;;
12652
12653     hpux9*)
12654       if test "$GCC" = yes; then
12655         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'
12656       else
12657         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'
12658       fi
12659       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12660       hardcode_libdir_separator=:
12661       hardcode_direct=yes
12662
12663       # hardcode_minus_L: Not really in the search PATH,
12664       # but as the default location of the library.
12665       hardcode_minus_L=yes
12666       export_dynamic_flag_spec='${wl}-E'
12667       ;;
12668
12669     hpux10* | hpux11*)
12670       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12671         case "$host_cpu" in
12672         hppa*64*|ia64*)
12673           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12674           ;;
12675         *)
12676           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12677           ;;
12678         esac
12679       else
12680         case "$host_cpu" in
12681         hppa*64*|ia64*)
12682           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12683           ;;
12684         *)
12685           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12686           ;;
12687         esac
12688       fi
12689       if test "$with_gnu_ld" = no; then
12690         case "$host_cpu" in
12691         hppa*64*)
12692           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12693           hardcode_libdir_flag_spec_ld='+b $libdir'
12694           hardcode_libdir_separator=:
12695           hardcode_direct=no
12696           hardcode_shlibpath_var=no
12697           ;;
12698         ia64*)
12699           hardcode_libdir_flag_spec='-L$libdir'
12700           hardcode_direct=no
12701           hardcode_shlibpath_var=no
12702
12703           # hardcode_minus_L: Not really in the search PATH,
12704           # but as the default location of the library.
12705           hardcode_minus_L=yes
12706           ;;
12707         *)
12708           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12709           hardcode_libdir_separator=:
12710           hardcode_direct=yes
12711           export_dynamic_flag_spec='${wl}-E'
12712
12713           # hardcode_minus_L: Not really in the search PATH,
12714           # but as the default location of the library.
12715           hardcode_minus_L=yes
12716           ;;
12717         esac
12718       fi
12719       ;;
12720
12721     irix5* | irix6* | nonstopux*)
12722       if test "$GCC" = yes; then
12723         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'
12724       else
12725         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'
12726         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12727       fi
12728       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12729       hardcode_libdir_separator=:
12730       link_all_deplibs=yes
12731       ;;
12732
12733     netbsd*)
12734       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12735         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12736       else
12737         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12738       fi
12739       hardcode_libdir_flag_spec='-R$libdir'
12740       hardcode_direct=yes
12741       hardcode_shlibpath_var=no
12742       ;;
12743
12744     newsos6)
12745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12746       hardcode_direct=yes
12747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748       hardcode_libdir_separator=:
12749       hardcode_shlibpath_var=no
12750       ;;
12751
12752     openbsd*)
12753       hardcode_direct=yes
12754       hardcode_shlibpath_var=no
12755       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12756         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12758         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12759         export_dynamic_flag_spec='${wl}-E'
12760       else
12761        case $host_os in
12762          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12763            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12764            hardcode_libdir_flag_spec='-R$libdir'
12765            ;;
12766          *)
12767            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12768            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12769            ;;
12770        esac
12771       fi
12772       ;;
12773
12774     os2*)
12775       hardcode_libdir_flag_spec='-L$libdir'
12776       hardcode_minus_L=yes
12777       allow_undefined_flag=unsupported
12778       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'
12779       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12780       ;;
12781
12782     osf3*)
12783       if test "$GCC" = yes; then
12784         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785         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'
12786       else
12787         allow_undefined_flag=' -expect_unresolved \*'
12788         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'
12789       fi
12790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791       hardcode_libdir_separator=:
12792       ;;
12793
12794     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12795       if test "$GCC" = yes; then
12796         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12797         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'
12798         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12799       else
12800         allow_undefined_flag=' -expect_unresolved \*'
12801         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'
12802         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12803         $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'
12804
12805         # Both c and cxx compiler support -rpath directly
12806         hardcode_libdir_flag_spec='-rpath $libdir'
12807       fi
12808       hardcode_libdir_separator=:
12809       ;;
12810
12811     sco3.2v5*)
12812       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813       hardcode_shlibpath_var=no
12814       export_dynamic_flag_spec='${wl}-Bexport'
12815       runpath_var=LD_RUN_PATH
12816       hardcode_runpath_var=yes
12817       ;;
12818
12819     solaris*)
12820       no_undefined_flag=' -z text'
12821       if test "$GCC" = yes; then
12822         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12823         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12824           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12825       else
12826         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12827         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12828         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12829       fi
12830       hardcode_libdir_flag_spec='-R$libdir'
12831       hardcode_shlibpath_var=no
12832       case $host_os in
12833       solaris2.[0-5] | solaris2.[0-5].*) ;;
12834       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12835         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12836       esac
12837       link_all_deplibs=yes
12838       ;;
12839
12840     sunos4*)
12841       if test "x$host_vendor" = xsequent; then
12842         # Use $CC to link under sequent, because it throws in some extra .o
12843         # files that make .init and .fini sections work.
12844         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12845       else
12846         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12847       fi
12848       hardcode_libdir_flag_spec='-L$libdir'
12849       hardcode_direct=yes
12850       hardcode_minus_L=yes
12851       hardcode_shlibpath_var=no
12852       ;;
12853
12854     sysv4)
12855       case $host_vendor in
12856         sni)
12857           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858           hardcode_direct=yes # is this really true???
12859         ;;
12860         siemens)
12861           ## LD is ld it makes a PLAMLIB
12862           ## CC just makes a GrossModule.
12863           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12864           reload_cmds='$CC -r -o $output$reload_objs'
12865           hardcode_direct=no
12866         ;;
12867         motorola)
12868           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12870         ;;
12871       esac
12872       runpath_var='LD_RUN_PATH'
12873       hardcode_shlibpath_var=no
12874       ;;
12875
12876     sysv4.3*)
12877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12878       hardcode_shlibpath_var=no
12879       export_dynamic_flag_spec='-Bexport'
12880       ;;
12881
12882     sysv4*MP*)
12883       if test -d /usr/nec; then
12884         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885         hardcode_shlibpath_var=no
12886         runpath_var=LD_RUN_PATH
12887         hardcode_runpath_var=yes
12888         ld_shlibs=yes
12889       fi
12890       ;;
12891
12892     sysv4.2uw2*)
12893       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12894       hardcode_direct=yes
12895       hardcode_minus_L=no
12896       hardcode_shlibpath_var=no
12897       hardcode_runpath_var=yes
12898       runpath_var=LD_RUN_PATH
12899       ;;
12900
12901    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12902       no_undefined_flag='${wl}-z ${wl}text'
12903       if test "$GCC" = yes; then
12904         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12905       else
12906         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12907       fi
12908       runpath_var='LD_RUN_PATH'
12909       hardcode_shlibpath_var=no
12910       ;;
12911
12912     sysv5*)
12913       no_undefined_flag=' -z text'
12914       # $CC -shared without GNU ld will not create a library from C++
12915       # object files and a static libstdc++, better avoid it by now
12916       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12918                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12919       hardcode_libdir_flag_spec=
12920       hardcode_shlibpath_var=no
12921       runpath_var='LD_RUN_PATH'
12922       ;;
12923
12924     uts4*)
12925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926       hardcode_libdir_flag_spec='-L$libdir'
12927       hardcode_shlibpath_var=no
12928       ;;
12929
12930     *)
12931       ld_shlibs=no
12932       ;;
12933     esac
12934   fi
12935
12936 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12937 echo "${ECHO_T}$ld_shlibs" >&6
12938 test "$ld_shlibs" = no && can_build_shared=no
12939
12940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12941 if test "$GCC" = yes; then
12942   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12943 fi
12944
12945 #
12946 # Do we need to explicitly link libc?
12947 #
12948 case "x$archive_cmds_need_lc" in
12949 x|xyes)
12950   # Assume -lc should be added
12951   archive_cmds_need_lc=yes
12952
12953   if test "$enable_shared" = yes && test "$GCC" = yes; then
12954     case $archive_cmds in
12955     *'~'*)
12956       # FIXME: we may have to deal with multi-command sequences.
12957       ;;
12958     '$CC '*)
12959       # Test whether the compiler implicitly links with -lc since on some
12960       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12961       # to ld, don't add -lc before -lgcc.
12962       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12964       $rm conftest*
12965       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12966
12967       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968   (eval $ac_compile) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } 2>conftest.err; then
12972         soname=conftest
12973         lib=conftest
12974         libobjs=conftest.$ac_objext
12975         deplibs=
12976         wl=$lt_prog_compiler_wl
12977         compiler_flags=-v
12978         linker_flags=-v
12979         verstring=
12980         output_objdir=.
12981         libname=conftest
12982         lt_save_allow_undefined_flag=$allow_undefined_flag
12983         allow_undefined_flag=
12984         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12985   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }
12989         then
12990           archive_cmds_need_lc=no
12991         else
12992           archive_cmds_need_lc=yes
12993         fi
12994         allow_undefined_flag=$lt_save_allow_undefined_flag
12995       else
12996         cat conftest.err 1>&5
12997       fi
12998       $rm conftest*
12999       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13000 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13001       ;;
13002     esac
13003   fi
13004   ;;
13005 esac
13006
13007 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13008 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13009 library_names_spec=
13010 libname_spec='lib$name'
13011 soname_spec=
13012 shrext_cmds=".so"
13013 postinstall_cmds=
13014 postuninstall_cmds=
13015 finish_cmds=
13016 finish_eval=
13017 shlibpath_var=
13018 shlibpath_overrides_runpath=unknown
13019 version_type=none
13020 dynamic_linker="$host_os ld.so"
13021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13022 if test "$GCC" = yes; then
13023   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13024   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13025     # if the path contains ";" then we assume it to be the separator
13026     # otherwise default to the standard path separator (i.e. ":") - it is
13027     # assumed that no part of a normal pathname contains ";" but that should
13028     # okay in the real world where ";" in dirpaths is itself problematic.
13029     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13030   else
13031     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13032   fi
13033 else
13034   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13035 fi
13036 need_lib_prefix=unknown
13037 hardcode_into_libs=no
13038
13039 # when you set need_version to no, make sure it does not cause -set_version
13040 # flags to be left without arguments
13041 need_version=unknown
13042
13043 case $host_os in
13044 aix3*)
13045   version_type=linux
13046   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13047   shlibpath_var=LIBPATH
13048
13049   # AIX 3 has no versioning support, so we append a major version to the name.
13050   soname_spec='${libname}${release}${shared_ext}$major'
13051   ;;
13052
13053 aix4* | aix5*)
13054   version_type=linux
13055   need_lib_prefix=no
13056   need_version=no
13057   hardcode_into_libs=yes
13058   if test "$host_cpu" = ia64; then
13059     # AIX 5 supports IA64
13060     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13061     shlibpath_var=LD_LIBRARY_PATH
13062   else
13063     # With GCC up to 2.95.x, collect2 would create an import file
13064     # for dependence libraries.  The import file would start with
13065     # the line `#! .'.  This would cause the generated library to
13066     # depend on `.', always an invalid library.  This was fixed in
13067     # development snapshots of GCC prior to 3.0.
13068     case $host_os in
13069       aix4 | aix4.[01] | aix4.[01].*)
13070       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13071            echo ' yes '
13072            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13073         :
13074       else
13075         can_build_shared=no
13076       fi
13077       ;;
13078     esac
13079     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13080     # soname into executable. Probably we can add versioning support to
13081     # collect2, so additional links can be useful in future.
13082     if test "$aix_use_runtimelinking" = yes; then
13083       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13084       # instead of lib<name>.a to let people know that these are not
13085       # typical AIX shared libraries.
13086       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087     else
13088       # We preserve .a as extension for shared libraries through AIX4.2
13089       # and later when we are not doing run time linking.
13090       library_names_spec='${libname}${release}.a $libname.a'
13091       soname_spec='${libname}${release}${shared_ext}$major'
13092     fi
13093     shlibpath_var=LIBPATH
13094   fi
13095   ;;
13096
13097 amigaos*)
13098   library_names_spec='$libname.ixlibrary $libname.a'
13099   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13100   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'
13101   ;;
13102
13103 beos*)
13104   library_names_spec='${libname}${shared_ext}'
13105   dynamic_linker="$host_os ld.so"
13106   shlibpath_var=LIBRARY_PATH
13107   ;;
13108
13109 bsdi[45]*)
13110   version_type=linux
13111   need_version=no
13112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113   soname_spec='${libname}${release}${shared_ext}$major'
13114   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13115   shlibpath_var=LD_LIBRARY_PATH
13116   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13117   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13118   # the default ld.so.conf also contains /usr/contrib/lib and
13119   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13120   # libtool to hard-code these into programs
13121   ;;
13122
13123 cygwin* | mingw* | pw32*)
13124   version_type=windows
13125   shrext_cmds=".dll"
13126   need_version=no
13127   need_lib_prefix=no
13128
13129   case $GCC,$host_os in
13130   yes,cygwin* | yes,mingw* | yes,pw32*)
13131     library_names_spec='$libname.dll.a'
13132     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13133     postinstall_cmds='base_file=`basename \${file}`~
13134       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13135       dldir=$destdir/`dirname \$dlpath`~
13136       test -d \$dldir || mkdir -p \$dldir~
13137       $install_prog $dir/$dlname \$dldir/$dlname'
13138     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13139       dlpath=$dir/\$dldll~
13140        $rm \$dlpath'
13141     shlibpath_overrides_runpath=yes
13142
13143     case $host_os in
13144     cygwin*)
13145       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13146       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13147       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13148       ;;
13149     mingw*)
13150       # MinGW DLLs use traditional 'lib' prefix
13151       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13153       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13154         # It is most probably a Windows format PATH printed by
13155         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13156         # path with ; separators, and with drive letters. We can handle the
13157         # drive letters (cygwin fileutils understands them), so leave them,
13158         # especially as we might pass files found there to a mingw objdump,
13159         # which wouldn't understand a cygwinified path. Ahh.
13160         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13161       else
13162         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13163       fi
13164       ;;
13165     pw32*)
13166       # pw32 DLLs use 'pw' prefix rather than 'lib'
13167       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13168       ;;
13169     esac
13170     ;;
13171
13172   *)
13173     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13174     ;;
13175   esac
13176   dynamic_linker='Win32 ld.exe'
13177   # FIXME: first we should search . and the directory the executable is in
13178   shlibpath_var=PATH
13179   ;;
13180
13181 darwin* | rhapsody*)
13182   dynamic_linker="$host_os dyld"
13183   version_type=darwin
13184   need_lib_prefix=no
13185   need_version=no
13186   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13187   soname_spec='${libname}${release}${major}$shared_ext'
13188   shlibpath_overrides_runpath=yes
13189   shlibpath_var=DYLD_LIBRARY_PATH
13190   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13191   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13192   if test "$GCC" = yes; then
13193     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"`
13194   else
13195     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13196   fi
13197   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13198   ;;
13199
13200 dgux*)
13201   version_type=linux
13202   need_lib_prefix=no
13203   need_version=no
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13205   soname_spec='${libname}${release}${shared_ext}$major'
13206   shlibpath_var=LD_LIBRARY_PATH
13207   ;;
13208
13209 freebsd1*)
13210   dynamic_linker=no
13211   ;;
13212
13213 kfreebsd*-gnu)
13214   version_type=linux
13215   need_lib_prefix=no
13216   need_version=no
13217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13218   soname_spec='${libname}${release}${shared_ext}$major'
13219   shlibpath_var=LD_LIBRARY_PATH
13220   shlibpath_overrides_runpath=no
13221   hardcode_into_libs=yes
13222   dynamic_linker='GNU ld.so'
13223   ;;
13224
13225 freebsd*)
13226   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13227   version_type=freebsd-$objformat
13228   case $version_type in
13229     freebsd-elf*)
13230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13231       need_version=no
13232       need_lib_prefix=no
13233       ;;
13234     freebsd-*)
13235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13236       need_version=yes
13237       ;;
13238   esac
13239   shlibpath_var=LD_LIBRARY_PATH
13240   case $host_os in
13241   freebsd2*)
13242     shlibpath_overrides_runpath=yes
13243     ;;
13244   freebsd3.01* | freebsdelf3.01*)
13245     shlibpath_overrides_runpath=yes
13246     hardcode_into_libs=yes
13247     ;;
13248   *) # from 3.2 on
13249     shlibpath_overrides_runpath=no
13250     hardcode_into_libs=yes
13251     ;;
13252   esac
13253   ;;
13254
13255 gnu*)
13256   version_type=linux
13257   need_lib_prefix=no
13258   need_version=no
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13260   soname_spec='${libname}${release}${shared_ext}$major'
13261   shlibpath_var=LD_LIBRARY_PATH
13262   hardcode_into_libs=yes
13263   ;;
13264
13265 hpux9* | hpux10* | hpux11*)
13266   # Give a soname corresponding to the major version so that dld.sl refuses to
13267   # link against other versions.
13268   version_type=sunos
13269   need_lib_prefix=no
13270   need_version=no
13271   case "$host_cpu" in
13272   ia64*)
13273     shrext_cmds='.so'
13274     hardcode_into_libs=yes
13275     dynamic_linker="$host_os dld.so"
13276     shlibpath_var=LD_LIBRARY_PATH
13277     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
13281       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13282     else
13283       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13284     fi
13285     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13286     ;;
13287    hppa*64*)
13288      shrext_cmds='.sl'
13289      hardcode_into_libs=yes
13290      dynamic_linker="$host_os dld.sl"
13291      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13292      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294      soname_spec='${libname}${release}${shared_ext}$major'
13295      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13296      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13297      ;;
13298    *)
13299     shrext_cmds='.sl'
13300     dynamic_linker="$host_os dld.sl"
13301     shlibpath_var=SHLIB_PATH
13302     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304     soname_spec='${libname}${release}${shared_ext}$major'
13305     ;;
13306   esac
13307   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13308   postinstall_cmds='chmod 555 $lib'
13309   ;;
13310
13311 irix5* | irix6* | nonstopux*)
13312   case $host_os in
13313     nonstopux*) version_type=nonstopux ;;
13314     *)
13315         if test "$lt_cv_prog_gnu_ld" = yes; then
13316                 version_type=linux
13317         else
13318                 version_type=irix
13319         fi ;;
13320   esac
13321   need_lib_prefix=no
13322   need_version=no
13323   soname_spec='${libname}${release}${shared_ext}$major'
13324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13325   case $host_os in
13326   irix5* | nonstopux*)
13327     libsuff= shlibsuff=
13328     ;;
13329   *)
13330     case $LD in # libtool.m4 will add one of these switches to LD
13331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13332       libsuff= shlibsuff= libmagic=32-bit;;
13333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13334       libsuff=32 shlibsuff=N32 libmagic=N32;;
13335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13337     *) libsuff= shlibsuff= libmagic=never-match;;
13338     esac
13339     ;;
13340   esac
13341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13342   shlibpath_overrides_runpath=no
13343   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13344   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13345   hardcode_into_libs=yes
13346   ;;
13347
13348 # No shared lib support for Linux oldld, aout, or coff.
13349 linux*oldld* | linux*aout* | linux*coff*)
13350   dynamic_linker=no
13351   ;;
13352
13353 # This must be Linux ELF.
13354 linux*)
13355   version_type=linux
13356   need_lib_prefix=no
13357   need_version=no
13358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359   soname_spec='${libname}${release}${shared_ext}$major'
13360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13361   shlibpath_var=LD_LIBRARY_PATH
13362   shlibpath_overrides_runpath=no
13363   # This implies no fast_install, which is unacceptable.
13364   # Some rework will be needed to allow for fast_install
13365   # before this can be enabled.
13366   hardcode_into_libs=yes
13367
13368   # Append ld.so.conf contents to the search path
13369   if test -f /etc/ld.so.conf; then
13370     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13371     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13372   fi
13373
13374   # We used to test for /lib/ld.so.1 and disable shared libraries on
13375   # powerpc, because MkLinux only supported shared libraries with the
13376   # GNU dynamic linker.  Since this was broken with cross compilers,
13377   # most powerpc-linux boxes support dynamic linking these days and
13378   # people can always --disable-shared, the test was removed, and we
13379   # assume the GNU/Linux dynamic linker is in use.
13380   dynamic_linker='GNU/Linux ld.so'
13381   ;;
13382
13383 knetbsd*-gnu)
13384   version_type=linux
13385   need_lib_prefix=no
13386   need_version=no
13387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13388   soname_spec='${libname}${release}${shared_ext}$major'
13389   shlibpath_var=LD_LIBRARY_PATH
13390   shlibpath_overrides_runpath=no
13391   hardcode_into_libs=yes
13392   dynamic_linker='GNU ld.so'
13393   ;;
13394
13395 netbsd*)
13396   version_type=sunos
13397   need_lib_prefix=no
13398   need_version=no
13399   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13401     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402     dynamic_linker='NetBSD (a.out) ld.so'
13403   else
13404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13405     soname_spec='${libname}${release}${shared_ext}$major'
13406     dynamic_linker='NetBSD ld.elf_so'
13407   fi
13408   shlibpath_var=LD_LIBRARY_PATH
13409   shlibpath_overrides_runpath=yes
13410   hardcode_into_libs=yes
13411   ;;
13412
13413 newsos6)
13414   version_type=linux
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416   shlibpath_var=LD_LIBRARY_PATH
13417   shlibpath_overrides_runpath=yes
13418   ;;
13419
13420 nto-qnx*)
13421   version_type=linux
13422   need_lib_prefix=no
13423   need_version=no
13424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   shlibpath_var=LD_LIBRARY_PATH
13427   shlibpath_overrides_runpath=yes
13428   ;;
13429
13430 openbsd*)
13431   version_type=sunos
13432   need_lib_prefix=no
13433   need_version=no
13434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436   shlibpath_var=LD_LIBRARY_PATH
13437   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13438     case $host_os in
13439       openbsd2.[89] | openbsd2.[89].*)
13440         shlibpath_overrides_runpath=no
13441         ;;
13442       *)
13443         shlibpath_overrides_runpath=yes
13444         ;;
13445       esac
13446   else
13447     shlibpath_overrides_runpath=yes
13448   fi
13449   ;;
13450
13451 os2*)
13452   libname_spec='$name'
13453   shrext_cmds=".dll"
13454   need_lib_prefix=no
13455   library_names_spec='$libname${shared_ext} $libname.a'
13456   dynamic_linker='OS/2 ld.exe'
13457   shlibpath_var=LIBPATH
13458   ;;
13459
13460 osf3* | osf4* | osf5*)
13461   version_type=osf
13462   need_lib_prefix=no
13463   need_version=no
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13468   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13469   ;;
13470
13471 sco3.2v5*)
13472   version_type=osf
13473   soname_spec='${libname}${release}${shared_ext}$major'
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   ;;
13477
13478 solaris*)
13479   version_type=linux
13480   need_lib_prefix=no
13481   need_version=no
13482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483   soname_spec='${libname}${release}${shared_ext}$major'
13484   shlibpath_var=LD_LIBRARY_PATH
13485   shlibpath_overrides_runpath=yes
13486   hardcode_into_libs=yes
13487   # ldd complains unless libraries are executable
13488   postinstall_cmds='chmod +x $lib'
13489   ;;
13490
13491 sunos4*)
13492   version_type=sunos
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13494   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13495   shlibpath_var=LD_LIBRARY_PATH
13496   shlibpath_overrides_runpath=yes
13497   if test "$with_gnu_ld" = yes; then
13498     need_lib_prefix=no
13499   fi
13500   need_version=yes
13501   ;;
13502
13503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13504   version_type=linux
13505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506   soname_spec='${libname}${release}${shared_ext}$major'
13507   shlibpath_var=LD_LIBRARY_PATH
13508   case $host_vendor in
13509     sni)
13510       shlibpath_overrides_runpath=no
13511       need_lib_prefix=no
13512       export_dynamic_flag_spec='${wl}-Blargedynsym'
13513       runpath_var=LD_RUN_PATH
13514       ;;
13515     siemens)
13516       need_lib_prefix=no
13517       ;;
13518     motorola)
13519       need_lib_prefix=no
13520       need_version=no
13521       shlibpath_overrides_runpath=no
13522       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13523       ;;
13524   esac
13525   ;;
13526
13527 sysv4*MP*)
13528   if test -d /usr/nec ;then
13529     version_type=linux
13530     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13531     soname_spec='$libname${shared_ext}.$major'
13532     shlibpath_var=LD_LIBRARY_PATH
13533   fi
13534   ;;
13535
13536 uts4*)
13537   version_type=linux
13538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539   soname_spec='${libname}${release}${shared_ext}$major'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   ;;
13542
13543 *)
13544   dynamic_linker=no
13545   ;;
13546 esac
13547 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13548 echo "${ECHO_T}$dynamic_linker" >&6
13549 test "$dynamic_linker" = no && can_build_shared=no
13550
13551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13553 hardcode_action=
13554 if test -n "$hardcode_libdir_flag_spec" || \
13555    test -n "$runpath_var" || \
13556    test "X$hardcode_automatic" = "Xyes" ; then
13557
13558   # We can hardcode non-existant directories.
13559   if test "$hardcode_direct" != no &&
13560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13561      # have to relink, otherwise we might link with an installed library
13562      # when we should be linking with a yet-to-be-installed one
13563      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13564      test "$hardcode_minus_L" != no; then
13565     # Linking always hardcodes the temporary library directory.
13566     hardcode_action=relink
13567   else
13568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13569     hardcode_action=immediate
13570   fi
13571 else
13572   # We cannot hardcode anything, or else we can only hardcode existing
13573   # directories.
13574   hardcode_action=unsupported
13575 fi
13576 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13577 echo "${ECHO_T}$hardcode_action" >&6
13578
13579 if test "$hardcode_action" = relink; then
13580   # Fast installation is not supported
13581   enable_fast_install=no
13582 elif test "$shlibpath_overrides_runpath" = yes ||
13583      test "$enable_shared" = no; then
13584   # Fast installation is not necessary
13585   enable_fast_install=needless
13586 fi
13587
13588 striplib=
13589 old_striplib=
13590 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13591 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13593   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13594   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13595   echo "$as_me:$LINENO: result: yes" >&5
13596 echo "${ECHO_T}yes" >&6
13597 else
13598 # FIXME - insert some real tests, host_os isn't really good enough
13599   case $host_os in
13600    darwin*)
13601        if test -n "$STRIP" ; then
13602          striplib="$STRIP -x"
13603          echo "$as_me:$LINENO: result: yes" >&5
13604 echo "${ECHO_T}yes" >&6
13605        else
13606   echo "$as_me:$LINENO: result: no" >&5
13607 echo "${ECHO_T}no" >&6
13608 fi
13609        ;;
13610    *)
13611   echo "$as_me:$LINENO: result: no" >&5
13612 echo "${ECHO_T}no" >&6
13613     ;;
13614   esac
13615 fi
13616
13617 if test "x$enable_dlopen" != xyes; then
13618   enable_dlopen=unknown
13619   enable_dlopen_self=unknown
13620   enable_dlopen_self_static=unknown
13621 else
13622   lt_cv_dlopen=no
13623   lt_cv_dlopen_libs=
13624
13625   case $host_os in
13626   beos*)
13627     lt_cv_dlopen="load_add_on"
13628     lt_cv_dlopen_libs=
13629     lt_cv_dlopen_self=yes
13630     ;;
13631
13632   mingw* | pw32*)
13633     lt_cv_dlopen="LoadLibrary"
13634     lt_cv_dlopen_libs=
13635    ;;
13636
13637   cygwin*)
13638     lt_cv_dlopen="dlopen"
13639     lt_cv_dlopen_libs=
13640    ;;
13641
13642   darwin*)
13643   # if libdl is installed we need to link against it
13644     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   ac_check_lib_save_LIBS=$LIBS
13650 LIBS="-ldl  $LIBS"
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657
13658 /* Override any gcc2 internal prototype to avoid an error.  */
13659 #ifdef __cplusplus
13660 extern "C"
13661 #endif
13662 /* We use char because int might match the return type of a gcc2
13663    builtin and then its argument prototype would still apply.  */
13664 char dlopen ();
13665 int
13666 main ()
13667 {
13668 dlopen ();
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675   (eval $ac_link) 2>conftest.er1
13676   ac_status=$?
13677   grep -v '^ *+' conftest.er1 >conftest.err
13678   rm -f conftest.er1
13679   cat conftest.err >&5
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -z "$ac_c_werror_flag"
13683                          || test ! -s conftest.err'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest$ac_exeext'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   ac_cv_lib_dl_dlopen=yes
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_cv_lib_dl_dlopen=no
13701 fi
13702 rm -f conftest.err conftest.$ac_objext \
13703       conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13705 fi
13706 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13708 if test $ac_cv_lib_dl_dlopen = yes; then
13709   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13710 else
13711
13712     lt_cv_dlopen="dyld"
13713     lt_cv_dlopen_libs=
13714     lt_cv_dlopen_self=yes
13715
13716 fi
13717
13718    ;;
13719
13720   *)
13721     echo "$as_me:$LINENO: checking for shl_load" >&5
13722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13723 if test "${ac_cv_func_shl_load+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13734 #define shl_load innocuous_shl_load
13735
13736 /* System header to define __stub macros and hopefully few prototypes,
13737     which can conflict with char shl_load (); below.
13738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13739     <limits.h> exists even on freestanding compilers.  */
13740
13741 #ifdef __STDC__
13742 # include <limits.h>
13743 #else
13744 # include <assert.h>
13745 #endif
13746
13747 #undef shl_load
13748
13749 /* Override any gcc2 internal prototype to avoid an error.  */
13750 #ifdef __cplusplus
13751 extern "C"
13752 {
13753 #endif
13754 /* We use char because int might match the return type of a gcc2
13755    builtin and then its argument prototype would still apply.  */
13756 char shl_load ();
13757 /* The GNU C library defines this for functions which it implements
13758     to always fail with ENOSYS.  Some functions are actually named
13759     something starting with __ and the normal name is an alias.  */
13760 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13761 choke me
13762 #else
13763 char (*f) () = shl_load;
13764 #endif
13765 #ifdef __cplusplus
13766 }
13767 #endif
13768
13769 int
13770 main ()
13771 {
13772 return f != shl_load;
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779   (eval $ac_link) 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -z "$ac_c_werror_flag"
13787                          || test ! -s conftest.err'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; } &&
13793          { ac_try='test -s conftest$ac_exeext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   ac_cv_func_shl_load=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_cv_func_shl_load=no
13805 fi
13806 rm -f conftest.err conftest.$ac_objext \
13807       conftest$ac_exeext conftest.$ac_ext
13808 fi
13809 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13811 if test $ac_cv_func_shl_load = yes; then
13812   lt_cv_dlopen="shl_load"
13813 else
13814   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-ldld  $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 shl_load ();
13835 int
13836 main ()
13837 {
13838 shl_load ();
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_c_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_dld_shl_load=yes
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
13877 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13878 if test $ac_cv_lib_dld_shl_load = yes; then
13879   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13880 else
13881   echo "$as_me:$LINENO: checking for dlopen" >&5
13882 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13883 if test "${ac_cv_func_dlopen+set}" = set; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886   cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13894 #define dlopen innocuous_dlopen
13895
13896 /* System header to define __stub macros and hopefully few prototypes,
13897     which can conflict with char dlopen (); below.
13898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899     <limits.h> exists even on freestanding compilers.  */
13900
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13906
13907 #undef dlopen
13908
13909 /* Override any gcc2 internal prototype to avoid an error.  */
13910 #ifdef __cplusplus
13911 extern "C"
13912 {
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915    builtin and then its argument prototype would still apply.  */
13916 char dlopen ();
13917 /* The GNU C library defines this for functions which it implements
13918     to always fail with ENOSYS.  Some functions are actually named
13919     something starting with __ and the normal name is an alias.  */
13920 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13921 choke me
13922 #else
13923 char (*f) () = dlopen;
13924 #endif
13925 #ifdef __cplusplus
13926 }
13927 #endif
13928
13929 int
13930 main ()
13931 {
13932 return f != dlopen;
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939   (eval $ac_link) 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag"
13947                          || test ! -s conftest.err'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest$ac_exeext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_cv_func_dlopen=yes
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 ac_cv_func_dlopen=no
13965 fi
13966 rm -f conftest.err conftest.$ac_objext \
13967       conftest$ac_exeext conftest.$ac_ext
13968 fi
13969 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13970 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13971 if test $ac_cv_func_dlopen = yes; then
13972   lt_cv_dlopen="dlopen"
13973 else
13974   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13975 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-ldl  $LIBS"
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987
13988 /* Override any gcc2 internal prototype to avoid an error.  */
13989 #ifdef __cplusplus
13990 extern "C"
13991 #endif
13992 /* We use char because int might match the return type of a gcc2
13993    builtin and then its argument prototype would still apply.  */
13994 char dlopen ();
13995 int
13996 main ()
13997 {
13998 dlopen ();
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005   (eval $ac_link) 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -z "$ac_c_werror_flag"
14013                          || test ! -s conftest.err'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; } &&
14019          { ac_try='test -s conftest$ac_exeext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_cv_lib_dl_dlopen=yes
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_cv_lib_dl_dlopen=no
14031 fi
14032 rm -f conftest.err conftest.$ac_objext \
14033       conftest$ac_exeext conftest.$ac_ext
14034 LIBS=$ac_check_lib_save_LIBS
14035 fi
14036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14038 if test $ac_cv_lib_dl_dlopen = yes; then
14039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14040 else
14041   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lsvld  $LIBS"
14048 cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054
14055 /* Override any gcc2 internal prototype to avoid an error.  */
14056 #ifdef __cplusplus
14057 extern "C"
14058 #endif
14059 /* We use char because int might match the return type of a gcc2
14060    builtin and then its argument prototype would still apply.  */
14061 char dlopen ();
14062 int
14063 main ()
14064 {
14065 dlopen ();
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072   (eval $ac_link) 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -z "$ac_c_werror_flag"
14080                          || test ! -s conftest.err'
14081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082   (eval $ac_try) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; } &&
14086          { ac_try='test -s conftest$ac_exeext'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   ac_cv_lib_svld_dlopen=yes
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_cv_lib_svld_dlopen=no
14098 fi
14099 rm -f conftest.err conftest.$ac_objext \
14100       conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14102 fi
14103 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14104 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14105 if test $ac_cv_lib_svld_dlopen = yes; then
14106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14107 else
14108   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14109 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14111   echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113   ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-ldld  $LIBS"
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121
14122 /* Override any gcc2 internal prototype to avoid an error.  */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 /* We use char because int might match the return type of a gcc2
14127    builtin and then its argument prototype would still apply.  */
14128 char dld_link ();
14129 int
14130 main ()
14131 {
14132 dld_link ();
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139   (eval $ac_link) 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_c_werror_flag"
14147                          || test ! -s conftest.err'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; } &&
14153          { ac_try='test -s conftest$ac_exeext'
14154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155   (eval $ac_try) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_lib_dld_dld_link=yes
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 ac_cv_lib_dld_dld_link=no
14165 fi
14166 rm -f conftest.err conftest.$ac_objext \
14167       conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14169 fi
14170 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14172 if test $ac_cv_lib_dld_dld_link = yes; then
14173   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14174 fi
14175
14176
14177 fi
14178
14179
14180 fi
14181
14182
14183 fi
14184
14185
14186 fi
14187
14188
14189 fi
14190
14191     ;;
14192   esac
14193
14194   if test "x$lt_cv_dlopen" != xno; then
14195     enable_dlopen=yes
14196   else
14197     enable_dlopen=no
14198   fi
14199
14200   case $lt_cv_dlopen in
14201   dlopen)
14202     save_CPPFLAGS="$CPPFLAGS"
14203     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14204
14205     save_LDFLAGS="$LDFLAGS"
14206     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14207
14208     save_LIBS="$LIBS"
14209     LIBS="$lt_cv_dlopen_libs $LIBS"
14210
14211     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14212 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14213 if test "${lt_cv_dlopen_self+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216           if test "$cross_compiling" = yes; then :
14217   lt_cv_dlopen_self=cross
14218 else
14219   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14220   lt_status=$lt_dlunknown
14221   cat > conftest.$ac_ext <<EOF
14222 #line 14222 "configure"
14223 #include "confdefs.h"
14224
14225 #if HAVE_DLFCN_H
14226 #include <dlfcn.h>
14227 #endif
14228
14229 #include <stdio.h>
14230
14231 #ifdef RTLD_GLOBAL
14232 #  define LT_DLGLOBAL           RTLD_GLOBAL
14233 #else
14234 #  ifdef DL_GLOBAL
14235 #    define LT_DLGLOBAL         DL_GLOBAL
14236 #  else
14237 #    define LT_DLGLOBAL         0
14238 #  endif
14239 #endif
14240
14241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242    find out it does not work in some platform. */
14243 #ifndef LT_DLLAZY_OR_NOW
14244 #  ifdef RTLD_LAZY
14245 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14246 #  else
14247 #    ifdef DL_LAZY
14248 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14249 #    else
14250 #      ifdef RTLD_NOW
14251 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14252 #      else
14253 #        ifdef DL_NOW
14254 #          define LT_DLLAZY_OR_NOW      DL_NOW
14255 #        else
14256 #          define LT_DLLAZY_OR_NOW      0
14257 #        endif
14258 #      endif
14259 #    endif
14260 #  endif
14261 #endif
14262
14263 #ifdef __cplusplus
14264 extern "C" void exit (int);
14265 #endif
14266
14267 void fnord() { int i=42;}
14268 int main ()
14269 {
14270   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271   int status = $lt_dlunknown;
14272
14273   if (self)
14274     {
14275       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14276       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277       /* dlclose (self); */
14278     }
14279
14280     exit (status);
14281 }
14282 EOF
14283   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284   (eval $ac_link) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288     (./conftest; exit; ) 2>/dev/null
14289     lt_status=$?
14290     case x$lt_status in
14291       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14292       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14293       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14294     esac
14295   else :
14296     # compilation failed
14297     lt_cv_dlopen_self=no
14298   fi
14299 fi
14300 rm -fr conftest*
14301
14302
14303 fi
14304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14305 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14306
14307     if test "x$lt_cv_dlopen_self" = xyes; then
14308       LDFLAGS="$LDFLAGS $link_static_flag"
14309       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14310 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14311 if test "${lt_cv_dlopen_self_static+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314           if test "$cross_compiling" = yes; then :
14315   lt_cv_dlopen_self_static=cross
14316 else
14317   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14318   lt_status=$lt_dlunknown
14319   cat > conftest.$ac_ext <<EOF
14320 #line 14320 "configure"
14321 #include "confdefs.h"
14322
14323 #if HAVE_DLFCN_H
14324 #include <dlfcn.h>
14325 #endif
14326
14327 #include <stdio.h>
14328
14329 #ifdef RTLD_GLOBAL
14330 #  define LT_DLGLOBAL           RTLD_GLOBAL
14331 #else
14332 #  ifdef DL_GLOBAL
14333 #    define LT_DLGLOBAL         DL_GLOBAL
14334 #  else
14335 #    define LT_DLGLOBAL         0
14336 #  endif
14337 #endif
14338
14339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14340    find out it does not work in some platform. */
14341 #ifndef LT_DLLAZY_OR_NOW
14342 #  ifdef RTLD_LAZY
14343 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14344 #  else
14345 #    ifdef DL_LAZY
14346 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14347 #    else
14348 #      ifdef RTLD_NOW
14349 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14350 #      else
14351 #        ifdef DL_NOW
14352 #          define LT_DLLAZY_OR_NOW      DL_NOW
14353 #        else
14354 #          define LT_DLLAZY_OR_NOW      0
14355 #        endif
14356 #      endif
14357 #    endif
14358 #  endif
14359 #endif
14360
14361 #ifdef __cplusplus
14362 extern "C" void exit (int);
14363 #endif
14364
14365 void fnord() { int i=42;}
14366 int main ()
14367 {
14368   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14369   int status = $lt_dlunknown;
14370
14371   if (self)
14372     {
14373       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14374       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14375       /* dlclose (self); */
14376     }
14377
14378     exit (status);
14379 }
14380 EOF
14381   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382   (eval $ac_link) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14386     (./conftest; exit; ) 2>/dev/null
14387     lt_status=$?
14388     case x$lt_status in
14389       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14390       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14391       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14392     esac
14393   else :
14394     # compilation failed
14395     lt_cv_dlopen_self_static=no
14396   fi
14397 fi
14398 rm -fr conftest*
14399
14400
14401 fi
14402 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14403 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14404     fi
14405
14406     CPPFLAGS="$save_CPPFLAGS"
14407     LDFLAGS="$save_LDFLAGS"
14408     LIBS="$save_LIBS"
14409     ;;
14410   esac
14411
14412   case $lt_cv_dlopen_self in
14413   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14414   *) enable_dlopen_self=unknown ;;
14415   esac
14416
14417   case $lt_cv_dlopen_self_static in
14418   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14419   *) enable_dlopen_self_static=unknown ;;
14420   esac
14421 fi
14422
14423
14424 # Report which librarie types wil actually be built
14425 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14427 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14428 echo "${ECHO_T}$can_build_shared" >&6
14429
14430 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14432 test "$can_build_shared" = "no" && enable_shared=no
14433
14434 # On AIX, shared libraries and static libraries use the same namespace, and
14435 # are all built from PIC.
14436 case "$host_os" in
14437 aix3*)
14438   test "$enable_shared" = yes && enable_static=no
14439   if test -n "$RANLIB"; then
14440     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14441     postinstall_cmds='$RANLIB $lib'
14442   fi
14443   ;;
14444
14445 aix4* | aix5*)
14446   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14447     test "$enable_shared" = yes && enable_static=no
14448   fi
14449     ;;
14450 esac
14451 echo "$as_me:$LINENO: result: $enable_shared" >&5
14452 echo "${ECHO_T}$enable_shared" >&6
14453
14454 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14456 # Make sure either enable_shared or enable_static is yes.
14457 test "$enable_shared" = yes || enable_static=yes
14458 echo "$as_me:$LINENO: result: $enable_static" >&5
14459 echo "${ECHO_T}$enable_static" >&6
14460
14461 # The else clause should only fire when bootstrapping the
14462 # libtool distribution, otherwise you forgot to ship ltmain.sh
14463 # with your package, and you will get complaints that there are
14464 # no rules to generate ltmain.sh.
14465 if test -f "$ltmain"; then
14466   # See if we are running on zsh, and set the options which allow our commands through
14467   # without removal of \ escapes.
14468   if test -n "${ZSH_VERSION+set}" ; then
14469     setopt NO_GLOB_SUBST
14470   fi
14471   # Now quote all the things that may contain metacharacters while being
14472   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14473   # variables and quote the copies for generation of the libtool script.
14474   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14475     SED SHELL STRIP \
14476     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14477     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14478     deplibs_check_method reload_flag reload_cmds need_locks \
14479     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14480     lt_cv_sys_global_symbol_to_c_name_address \
14481     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14482     old_postinstall_cmds old_postuninstall_cmds \
14483     compiler \
14484     CC \
14485     LD \
14486     lt_prog_compiler_wl \
14487     lt_prog_compiler_pic \
14488     lt_prog_compiler_static \
14489     lt_prog_compiler_no_builtin_flag \
14490     export_dynamic_flag_spec \
14491     thread_safe_flag_spec \
14492     whole_archive_flag_spec \
14493     enable_shared_with_static_runtimes \
14494     old_archive_cmds \
14495     old_archive_from_new_cmds \
14496     predep_objects \
14497     postdep_objects \
14498     predeps \
14499     postdeps \
14500     compiler_lib_search_path \
14501     archive_cmds \
14502     archive_expsym_cmds \
14503     postinstall_cmds \
14504     postuninstall_cmds \
14505     old_archive_from_expsyms_cmds \
14506     allow_undefined_flag \
14507     no_undefined_flag \
14508     export_symbols_cmds \
14509     hardcode_libdir_flag_spec \
14510     hardcode_libdir_flag_spec_ld \
14511     hardcode_libdir_separator \
14512     hardcode_automatic \
14513     module_cmds \
14514     module_expsym_cmds \
14515     lt_cv_prog_compiler_c_o \
14516     exclude_expsyms \
14517     include_expsyms; do
14518
14519     case $var in
14520     old_archive_cmds | \
14521     old_archive_from_new_cmds | \
14522     archive_cmds | \
14523     archive_expsym_cmds | \
14524     module_cmds | \
14525     module_expsym_cmds | \
14526     old_archive_from_expsyms_cmds | \
14527     export_symbols_cmds | \
14528     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14529     postinstall_cmds | postuninstall_cmds | \
14530     old_postinstall_cmds | old_postuninstall_cmds | \
14531     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14532       # Double-quote double-evaled strings.
14533       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14534       ;;
14535     *)
14536       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14537       ;;
14538     esac
14539   done
14540
14541   case $lt_echo in
14542   *'\$0 --fallback-echo"')
14543     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14544     ;;
14545   esac
14546
14547 cfgfile="${ofile}T"
14548   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14549   $rm -f "$cfgfile"
14550   { echo "$as_me:$LINENO: creating $ofile" >&5
14551 echo "$as_me: creating $ofile" >&6;}
14552
14553   cat <<__EOF__ >> "$cfgfile"
14554 #! $SHELL
14555
14556 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14557 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14559 #
14560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14561 # Free Software Foundation, Inc.
14562 #
14563 # This file is part of GNU Libtool:
14564 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14565 #
14566 # This program is free software; you can redistribute it and/or modify
14567 # it under the terms of the GNU General Public License as published by
14568 # the Free Software Foundation; either version 2 of the License, or
14569 # (at your option) any later version.
14570 #
14571 # This program is distributed in the hope that it will be useful, but
14572 # WITHOUT ANY WARRANTY; without even the implied warranty of
14573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14574 # General Public License for more details.
14575 #
14576 # You should have received a copy of the GNU General Public License
14577 # along with this program; if not, write to the Free Software
14578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14579 #
14580 # As a special exception to the GNU General Public License, if you
14581 # distribute this file as part of a program that contains a
14582 # configuration script generated by Autoconf, you may include it under
14583 # the same distribution terms that you use for the rest of that program.
14584
14585 # A sed program that does not truncate output.
14586 SED=$lt_SED
14587
14588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14589 Xsed="$SED -e s/^X//"
14590
14591 # The HP-UX ksh and POSIX shell print the target directory to stdout
14592 # if CDPATH is set.
14593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14594
14595 # The names of the tagged configurations supported by this script.
14596 available_tags=
14597
14598 # ### BEGIN LIBTOOL CONFIG
14599
14600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14601
14602 # Shell to use when invoking shell scripts.
14603 SHELL=$lt_SHELL
14604
14605 # Whether or not to build shared libraries.
14606 build_libtool_libs=$enable_shared
14607
14608 # Whether or not to build static libraries.
14609 build_old_libs=$enable_static
14610
14611 # Whether or not to add -lc for building shared libraries.
14612 build_libtool_need_lc=$archive_cmds_need_lc
14613
14614 # Whether or not to disallow shared libs when runtime libs are static
14615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14616
14617 # Whether or not to optimize for fast installation.
14618 fast_install=$enable_fast_install
14619
14620 # The host system.
14621 host_alias=$host_alias
14622 host=$host
14623
14624 # An echo program that does not interpret backslashes.
14625 echo=$lt_echo
14626
14627 # The archiver.
14628 AR=$lt_AR
14629 AR_FLAGS=$lt_AR_FLAGS
14630
14631 # A C compiler.
14632 LTCC=$lt_LTCC
14633
14634 # A language-specific compiler.
14635 CC=$lt_compiler
14636
14637 # Is the compiler the GNU C compiler?
14638 with_gcc=$GCC
14639
14640 # An ERE matcher.
14641 EGREP=$lt_EGREP
14642
14643 # The linker used to build libraries.
14644 LD=$lt_LD
14645
14646 # Whether we need hard or soft links.
14647 LN_S=$lt_LN_S
14648
14649 # A BSD-compatible nm program.
14650 NM=$lt_NM
14651
14652 # A symbol stripping program
14653 STRIP=$lt_STRIP
14654
14655 # Used to examine libraries when file_magic_cmd begins "file"
14656 MAGIC_CMD=$MAGIC_CMD
14657
14658 # Used on cygwin: DLL creation program.
14659 DLLTOOL="$DLLTOOL"
14660
14661 # Used on cygwin: object dumper.
14662 OBJDUMP="$OBJDUMP"
14663
14664 # Used on cygwin: assembler.
14665 AS="$AS"
14666
14667 # The name of the directory that contains temporary libtool files.
14668 objdir=$objdir
14669
14670 # How to create reloadable object files.
14671 reload_flag=$lt_reload_flag
14672 reload_cmds=$lt_reload_cmds
14673
14674 # How to pass a linker flag through the compiler.
14675 wl=$lt_lt_prog_compiler_wl
14676
14677 # Object file suffix (normally "o").
14678 objext="$ac_objext"
14679
14680 # Old archive suffix (normally "a").
14681 libext="$libext"
14682
14683 # Shared library suffix (normally ".so").
14684 shrext_cmds='$shrext_cmds'
14685
14686 # Executable file suffix (normally "").
14687 exeext="$exeext"
14688
14689 # Additional compiler flags for building library objects.
14690 pic_flag=$lt_lt_prog_compiler_pic
14691 pic_mode=$pic_mode
14692
14693 # What is the maximum length of a command?
14694 max_cmd_len=$lt_cv_sys_max_cmd_len
14695
14696 # Does compiler simultaneously support -c and -o options?
14697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14698
14699 # Must we lock files when doing compilation ?
14700 need_locks=$lt_need_locks
14701
14702 # Do we need the lib prefix for modules?
14703 need_lib_prefix=$need_lib_prefix
14704
14705 # Do we need a version for libraries?
14706 need_version=$need_version
14707
14708 # Whether dlopen is supported.
14709 dlopen_support=$enable_dlopen
14710
14711 # Whether dlopen of programs is supported.
14712 dlopen_self=$enable_dlopen_self
14713
14714 # Whether dlopen of statically linked programs is supported.
14715 dlopen_self_static=$enable_dlopen_self_static
14716
14717 # Compiler flag to prevent dynamic linking.
14718 link_static_flag=$lt_lt_prog_compiler_static
14719
14720 # Compiler flag to turn off builtin functions.
14721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14722
14723 # Compiler flag to allow reflexive dlopens.
14724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14725
14726 # Compiler flag to generate shared objects directly from archives.
14727 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14728
14729 # Compiler flag to generate thread-safe objects.
14730 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14731
14732 # Library versioning type.
14733 version_type=$version_type
14734
14735 # Format of library name prefix.
14736 libname_spec=$lt_libname_spec
14737
14738 # List of archive names.  First name is the real one, the rest are links.
14739 # The last name is the one that the linker finds with -lNAME.
14740 library_names_spec=$lt_library_names_spec
14741
14742 # The coded name of the library, if different from the real name.
14743 soname_spec=$lt_soname_spec
14744
14745 # Commands used to build and install an old-style archive.
14746 RANLIB=$lt_RANLIB
14747 old_archive_cmds=$lt_old_archive_cmds
14748 old_postinstall_cmds=$lt_old_postinstall_cmds
14749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14750
14751 # Create an old-style archive from a shared archive.
14752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14753
14754 # Create a temporary old-style archive to link instead of a shared archive.
14755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14756
14757 # Commands used to build and install a shared archive.
14758 archive_cmds=$lt_archive_cmds
14759 archive_expsym_cmds=$lt_archive_expsym_cmds
14760 postinstall_cmds=$lt_postinstall_cmds
14761 postuninstall_cmds=$lt_postuninstall_cmds
14762
14763 # Commands used to build a loadable module (assumed same as above if empty)
14764 module_cmds=$lt_module_cmds
14765 module_expsym_cmds=$lt_module_expsym_cmds
14766
14767 # Commands to strip libraries.
14768 old_striplib=$lt_old_striplib
14769 striplib=$lt_striplib
14770
14771 # Dependencies to place before the objects being linked to create a
14772 # shared library.
14773 predep_objects=$lt_predep_objects
14774
14775 # Dependencies to place after the objects being linked to create a
14776 # shared library.
14777 postdep_objects=$lt_postdep_objects
14778
14779 # Dependencies to place before the objects being linked to create a
14780 # shared library.
14781 predeps=$lt_predeps
14782
14783 # Dependencies to place after the objects being linked to create a
14784 # shared library.
14785 postdeps=$lt_postdeps
14786
14787 # The library search path used internally by the compiler when linking
14788 # a shared library.
14789 compiler_lib_search_path=$lt_compiler_lib_search_path
14790
14791 # Method to check whether dependent libraries are shared objects.
14792 deplibs_check_method=$lt_deplibs_check_method
14793
14794 # Command to use when deplibs_check_method == file_magic.
14795 file_magic_cmd=$lt_file_magic_cmd
14796
14797 # Flag that allows shared libraries with undefined symbols to be built.
14798 allow_undefined_flag=$lt_allow_undefined_flag
14799
14800 # Flag that forces no undefined symbols.
14801 no_undefined_flag=$lt_no_undefined_flag
14802
14803 # Commands used to finish a libtool library installation in a directory.
14804 finish_cmds=$lt_finish_cmds
14805
14806 # Same as above, but a single script fragment to be evaled but not shown.
14807 finish_eval=$lt_finish_eval
14808
14809 # Take the output of nm and produce a listing of raw symbols and C names.
14810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14811
14812 # Transform the output of nm in a proper C declaration
14813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14814
14815 # Transform the output of nm in a C name address pair
14816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14817
14818 # This is the shared library runtime path variable.
14819 runpath_var=$runpath_var
14820
14821 # This is the shared library path variable.
14822 shlibpath_var=$shlibpath_var
14823
14824 # Is shlibpath searched before the hard-coded library search path?
14825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14826
14827 # How to hardcode a shared library path into an executable.
14828 hardcode_action=$hardcode_action
14829
14830 # Whether we should hardcode library paths into libraries.
14831 hardcode_into_libs=$hardcode_into_libs
14832
14833 # Flag to hardcode \$libdir into a binary during linking.
14834 # This must work even if \$libdir does not exist.
14835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14836
14837 # If ld is used when linking, flag to hardcode \$libdir into
14838 # a binary during linking. This must work even if \$libdir does
14839 # not exist.
14840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14841
14842 # Whether we need a single -rpath flag with a separated argument.
14843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14844
14845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14846 # resulting binary.
14847 hardcode_direct=$hardcode_direct
14848
14849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14850 # resulting binary.
14851 hardcode_minus_L=$hardcode_minus_L
14852
14853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14854 # the resulting binary.
14855 hardcode_shlibpath_var=$hardcode_shlibpath_var
14856
14857 # Set to yes if building a shared library automatically hardcodes DIR into the library
14858 # and all subsequent libraries and executables linked against it.
14859 hardcode_automatic=$hardcode_automatic
14860
14861 # Variables whose values should be saved in libtool wrapper scripts and
14862 # restored at relink time.
14863 variables_saved_for_relink="$variables_saved_for_relink"
14864
14865 # Whether libtool must link a program against all its dependency libraries.
14866 link_all_deplibs=$link_all_deplibs
14867
14868 # Compile-time system search path for libraries
14869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14870
14871 # Run-time system search path for libraries
14872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14873
14874 # Fix the shell variable \$srcfile for the compiler.
14875 fix_srcfile_path="$fix_srcfile_path"
14876
14877 # Set to yes if exported symbols are required.
14878 always_export_symbols=$always_export_symbols
14879
14880 # The commands to list exported symbols.
14881 export_symbols_cmds=$lt_export_symbols_cmds
14882
14883 # The commands to extract the exported symbol list from a shared archive.
14884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14885
14886 # Symbols that should not be listed in the preloaded symbols.
14887 exclude_expsyms=$lt_exclude_expsyms
14888
14889 # Symbols that must always be exported.
14890 include_expsyms=$lt_include_expsyms
14891
14892 # ### END LIBTOOL CONFIG
14893
14894 __EOF__
14895
14896
14897   case $host_os in
14898   aix3*)
14899     cat <<\EOF >> "$cfgfile"
14900
14901 # AIX sometimes has problems with the GCC collect2 program.  For some
14902 # reason, if we set the COLLECT_NAMES environment variable, the problems
14903 # vanish in a puff of smoke.
14904 if test "X${COLLECT_NAMES+set}" != Xset; then
14905   COLLECT_NAMES=
14906   export COLLECT_NAMES
14907 fi
14908 EOF
14909     ;;
14910   esac
14911
14912   # We use sed instead of cat because bash on DJGPP gets confused if
14913   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14914   # text mode, it properly converts lines to CR/LF.  This bash problem
14915   # is reportedly fixed, but why not run on old versions too?
14916   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14917
14918   mv -f "$cfgfile" "$ofile" || \
14919     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14920   chmod +x "$ofile"
14921
14922 else
14923   # If there is no Makefile yet, we rely on a make rule to execute
14924   # `config.status --recheck' to rerun these tests and create the
14925   # libtool script then.
14926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14927   if test -f "$ltmain_in"; then
14928     test -f Makefile && make "$ltmain"
14929   fi
14930 fi
14931
14932
14933 ac_ext=c
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938
14939 CC="$lt_save_CC"
14940
14941
14942 # Check whether --with-tags or --without-tags was given.
14943 if test "${with_tags+set}" = set; then
14944   withval="$with_tags"
14945   tagnames="$withval"
14946 fi;
14947
14948 if test -f "$ltmain" && test -n "$tagnames"; then
14949   if test ! -f "${ofile}"; then
14950     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14952   fi
14953
14954   if test -z "$LTCC"; then
14955     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14956     if test -z "$LTCC"; then
14957       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14959     else
14960       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14962     fi
14963   fi
14964
14965   # Extract list of available tagged configurations in $ofile.
14966   # Note that this assumes the entire list is on one line.
14967   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14968
14969   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14970   for tagname in $tagnames; do
14971     IFS="$lt_save_ifs"
14972     # Check whether tagname contains only valid characters
14973     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14974     "") ;;
14975     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14976 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14977    { (exit 1); exit 1; }; }
14978         ;;
14979     esac
14980
14981     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14982     then
14983       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14984 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14985    { (exit 1); exit 1; }; }
14986     fi
14987
14988     # Update the list of available tags.
14989     if test -n "$tagname"; then
14990       echo appending configuration tag "$tagname" to $ofile
14991
14992       case $tagname in
14993       CXX)
14994         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14995             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14996             (test "X$CXX" != "Xg++"))) ; then
14997           ac_ext=cc
14998 ac_cpp='$CXXCPP $CPPFLAGS'
14999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15002
15003
15004
15005
15006 archive_cmds_need_lc_CXX=no
15007 allow_undefined_flag_CXX=
15008 always_export_symbols_CXX=no
15009 archive_expsym_cmds_CXX=
15010 export_dynamic_flag_spec_CXX=
15011 hardcode_direct_CXX=no
15012 hardcode_libdir_flag_spec_CXX=
15013 hardcode_libdir_flag_spec_ld_CXX=
15014 hardcode_libdir_separator_CXX=
15015 hardcode_minus_L_CXX=no
15016 hardcode_automatic_CXX=no
15017 module_cmds_CXX=
15018 module_expsym_cmds_CXX=
15019 link_all_deplibs_CXX=unknown
15020 old_archive_cmds_CXX=$old_archive_cmds
15021 no_undefined_flag_CXX=
15022 whole_archive_flag_spec_CXX=
15023 enable_shared_with_static_runtimes_CXX=no
15024
15025 # Dependencies to place before and after the object being linked:
15026 predep_objects_CXX=
15027 postdep_objects_CXX=
15028 predeps_CXX=
15029 postdeps_CXX=
15030 compiler_lib_search_path_CXX=
15031
15032 # Source file extension for C++ test sources.
15033 ac_ext=cc
15034
15035 # Object file extension for compiled C++ test sources.
15036 objext=o
15037 objext_CXX=$objext
15038
15039 # Code to be used in simple compile tests
15040 lt_simple_compile_test_code="int some_variable = 0;\n"
15041
15042 # Code to be used in simple link tests
15043 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15044
15045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15046
15047 # If no C compiler was specified, use CC.
15048 LTCC=${LTCC-"$CC"}
15049
15050 # Allow CC to be a program name with arguments.
15051 compiler=$CC
15052
15053
15054 # Allow CC to be a program name with arguments.
15055 lt_save_CC=$CC
15056 lt_save_LD=$LD
15057 lt_save_GCC=$GCC
15058 GCC=$GXX
15059 lt_save_with_gnu_ld=$with_gnu_ld
15060 lt_save_path_LD=$lt_cv_path_LD
15061 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15062   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15063 else
15064   unset lt_cv_prog_gnu_ld
15065 fi
15066 if test -n "${lt_cv_path_LDCXX+set}"; then
15067   lt_cv_path_LD=$lt_cv_path_LDCXX
15068 else
15069   unset lt_cv_path_LD
15070 fi
15071 test -z "${LDCXX+set}" || LD=$LDCXX
15072 CC=${CXX-"c++"}
15073 compiler=$CC
15074 compiler_CXX=$CC
15075 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15076
15077 # We don't want -fno-exception wen compiling C++ code, so set the
15078 # no_builtin_flag separately
15079 if test "$GXX" = yes; then
15080   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15081 else
15082   lt_prog_compiler_no_builtin_flag_CXX=
15083 fi
15084
15085 if test "$GXX" = yes; then
15086   # Set up default GNU C++ configuration
15087
15088
15089 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15090 if test "${with_gnu_ld+set}" = set; then
15091   withval="$with_gnu_ld"
15092   test "$withval" = no || with_gnu_ld=yes
15093 else
15094   with_gnu_ld=no
15095 fi;
15096 ac_prog=ld
15097 if test "$GCC" = yes; then
15098   # Check if gcc -print-prog-name=ld gives a path.
15099   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15100 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15101   case $host in
15102   *-*-mingw*)
15103     # gcc leaves a trailing carriage return which upsets mingw
15104     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15105   *)
15106     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15107   esac
15108   case $ac_prog in
15109     # Accept absolute paths.
15110     [\\/]* | ?:[\\/]*)
15111       re_direlt='/[^/][^/]*/\.\./'
15112       # Canonicalize the pathname of ld
15113       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15114       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15115         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15116       done
15117       test -z "$LD" && LD="$ac_prog"
15118       ;;
15119   "")
15120     # If it fails, then pretend we aren't using GCC.
15121     ac_prog=ld
15122     ;;
15123   *)
15124     # If it is relative, then search for the first ld in PATH.
15125     with_gnu_ld=unknown
15126     ;;
15127   esac
15128 elif test "$with_gnu_ld" = yes; then
15129   echo "$as_me:$LINENO: checking for GNU ld" >&5
15130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15131 else
15132   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15134 fi
15135 if test "${lt_cv_path_LD+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   if test -z "$LD"; then
15139   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15140   for ac_dir in $PATH; do
15141     IFS="$lt_save_ifs"
15142     test -z "$ac_dir" && ac_dir=.
15143     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15144       lt_cv_path_LD="$ac_dir/$ac_prog"
15145       # Check to see if the program is GNU ld.  I'd rather use --version,
15146       # but apparently some GNU ld's only accept -v.
15147       # Break only if it was the GNU/non-GNU ld that we prefer.
15148       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15149       *GNU* | *'with BFD'*)
15150         test "$with_gnu_ld" != no && break
15151         ;;
15152       *)
15153         test "$with_gnu_ld" != yes && break
15154         ;;
15155       esac
15156     fi
15157   done
15158   IFS="$lt_save_ifs"
15159 else
15160   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15161 fi
15162 fi
15163
15164 LD="$lt_cv_path_LD"
15165 if test -n "$LD"; then
15166   echo "$as_me:$LINENO: result: $LD" >&5
15167 echo "${ECHO_T}$LD" >&6
15168 else
15169   echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6
15171 fi
15172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15174    { (exit 1); exit 1; }; }
15175 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15181 case `$LD -v 2>&1 </dev/null` in
15182 *GNU* | *'with BFD'*)
15183   lt_cv_prog_gnu_ld=yes
15184   ;;
15185 *)
15186   lt_cv_prog_gnu_ld=no
15187   ;;
15188 esac
15189 fi
15190 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15191 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15192 with_gnu_ld=$lt_cv_prog_gnu_ld
15193
15194
15195
15196   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15197   # archiving commands below assume that GNU ld is being used.
15198   if test "$with_gnu_ld" = yes; then
15199     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200     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'
15201
15202     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15203     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15204
15205     # If archive_cmds runs LD, not CC, wlarc should be empty
15206     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15207     #     investigate it a little bit more. (MM)
15208     wlarc='${wl}'
15209
15210     # ancient GNU ld didn't support --whole-archive et. al.
15211     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15212         grep 'no-whole-archive' > /dev/null; then
15213       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15214     else
15215       whole_archive_flag_spec_CXX=
15216     fi
15217   else
15218     with_gnu_ld=no
15219     wlarc=
15220
15221     # A generic and very simple default shared library creation
15222     # command for GNU C++ for the case where it uses the native
15223     # linker, instead of GNU ld.  If possible, this setting should
15224     # overridden to take advantage of the native linker features on
15225     # the platform it is being used on.
15226     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15227   fi
15228
15229   # Commands to make compiler produce verbose output that lists
15230   # what "hidden" libraries, object files and flags are used when
15231   # linking a shared library.
15232   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15233
15234 else
15235   GXX=no
15236   with_gnu_ld=no
15237   wlarc=
15238 fi
15239
15240 # PORTME: fill in a description of your system's C++ link characteristics
15241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15243 ld_shlibs_CXX=yes
15244 case $host_os in
15245   aix3*)
15246     # FIXME: insert proper C++ library support
15247     ld_shlibs_CXX=no
15248     ;;
15249   aix4* | aix5*)
15250     if test "$host_cpu" = ia64; then
15251       # On IA64, the linker does run time linking by default, so we don't
15252       # have to do anything special.
15253       aix_use_runtimelinking=no
15254       exp_sym_flag='-Bexport'
15255       no_entry_flag=""
15256     else
15257       aix_use_runtimelinking=no
15258
15259       # Test if we are trying to use run time linking or normal
15260       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261       # need to do runtime linking.
15262       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15263         for ld_flag in $LDFLAGS; do
15264           case $ld_flag in
15265           *-brtl*)
15266             aix_use_runtimelinking=yes
15267             break
15268             ;;
15269           esac
15270         done
15271       esac
15272
15273       exp_sym_flag='-bexport'
15274       no_entry_flag='-bnoentry'
15275     fi
15276
15277     # When large executables or shared objects are built, AIX ld can
15278     # have problems creating the table of contents.  If linking a library
15279     # or program results in "error TOC overflow" add -mminimal-toc to
15280     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15281     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15282
15283     archive_cmds_CXX=''
15284     hardcode_direct_CXX=yes
15285     hardcode_libdir_separator_CXX=':'
15286     link_all_deplibs_CXX=yes
15287
15288     if test "$GXX" = yes; then
15289       case $host_os in aix4.012|aix4.012.*)
15290       # We only want to do this on AIX 4.2 and lower, the check
15291       # below for broken collect2 doesn't work under 4.3+
15292         collect2name=`${CC} -print-prog-name=collect2`
15293         if test -f "$collect2name" && \
15294            strings "$collect2name" | grep resolve_lib_name >/dev/null
15295         then
15296           # We have reworked collect2
15297           hardcode_direct_CXX=yes
15298         else
15299           # We have old collect2
15300           hardcode_direct_CXX=unsupported
15301           # It fails to find uninstalled libraries when the uninstalled
15302           # path is not listed in the libpath.  Setting hardcode_minus_L
15303           # to unsupported forces relinking
15304           hardcode_minus_L_CXX=yes
15305           hardcode_libdir_flag_spec_CXX='-L$libdir'
15306           hardcode_libdir_separator_CXX=
15307         fi
15308       esac
15309       shared_flag='-shared'
15310     else
15311       # not using gcc
15312       if test "$host_cpu" = ia64; then
15313         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314         # chokes on -Wl,-G. The following line is correct:
15315         shared_flag='-G'
15316       else
15317         if test "$aix_use_runtimelinking" = yes; then
15318           shared_flag='${wl}-G'
15319         else
15320           shared_flag='${wl}-bM:SRE'
15321         fi
15322       fi
15323     fi
15324
15325     # It seems that -bexpall does not export symbols beginning with
15326     # underscore (_), so it is better to generate a list of symbols to export.
15327     always_export_symbols_CXX=yes
15328     if test "$aix_use_runtimelinking" = yes; then
15329       # Warning - without using the other runtime loading flags (-brtl),
15330       # -berok will link without error, but may produce a broken library.
15331       allow_undefined_flag_CXX='-berok'
15332       # Determine the default libpath from the value encoded in an empty executable.
15333       cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339
15340 int
15341 main ()
15342 {
15343
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350   (eval $ac_link) 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_cxx_werror_flag"
15358                          || test ! -s conftest.err'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest$ac_exeext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370
15371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15372 }'`
15373 # Check for a 64-bit object if we didn't find anything.
15374 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; }
15375 }'`; fi
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 fi
15381 rm -f conftest.err conftest.$ac_objext \
15382       conftest$ac_exeext conftest.$ac_ext
15383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15384
15385       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15386
15387       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"
15388      else
15389       if test "$host_cpu" = ia64; then
15390         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15391         allow_undefined_flag_CXX="-z nodefs"
15392         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"
15393       else
15394         # Determine the default libpath from the value encoded in an empty executable.
15395         cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401
15402 int
15403 main ()
15404 {
15405
15406   ;
15407   return 0;
15408 }
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_cxx_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_CXX='${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_CXX=' ${wl}-bernotok'
15451         allow_undefined_flag_CXX=' ${wl}-berok'
15452         # -bexpall does not export symbols beginning with underscore (_)
15453         always_export_symbols_CXX=yes
15454         # Exported symbols can be pulled into shared objects from archives
15455         whole_archive_flag_spec_CXX=' '
15456         archive_cmds_need_lc_CXX=yes
15457         # This is similar to how AIX traditionally builds it's shared libraries.
15458         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'
15459       fi
15460     fi
15461     ;;
15462   chorus*)
15463     case $cc_basename in
15464       *)
15465         # FIXME: insert proper C++ library support
15466         ld_shlibs_CXX=no
15467         ;;
15468     esac
15469     ;;
15470
15471
15472   cygwin* | mingw* | pw32*)
15473     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15474     # as there is no search path for DLLs.
15475     hardcode_libdir_flag_spec_CXX='-L$libdir'
15476     allow_undefined_flag_CXX=unsupported
15477     always_export_symbols_CXX=no
15478     enable_shared_with_static_runtimes_CXX=yes
15479
15480     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15481       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'
15482       # If the export-symbols file already is a .def file (1st line
15483       # is EXPORTS), use it as is; otherwise, prepend...
15484       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15485         cp $export_symbols $output_objdir/$soname.def;
15486       else
15487         echo EXPORTS > $output_objdir/$soname.def;
15488         cat $export_symbols >> $output_objdir/$soname.def;
15489       fi~
15490       $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'
15491     else
15492       ld_shlibs_CXX=no
15493     fi
15494   ;;
15495       darwin* | rhapsody*)
15496         case "$host_os" in
15497         rhapsody* | darwin1.[012])
15498          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15499          ;;
15500        *) # Darwin 1.3 on
15501          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15502            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15503          else
15504            case ${MACOSX_DEPLOYMENT_TARGET} in
15505              10.[012])
15506                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15507                ;;
15508              10.*)
15509                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15510                ;;
15511            esac
15512          fi
15513          ;;
15514         esac
15515       archive_cmds_need_lc_CXX=no
15516       hardcode_direct_CXX=no
15517       hardcode_automatic_CXX=yes
15518       hardcode_shlibpath_var_CXX=unsupported
15519       whole_archive_flag_spec_CXX=''
15520       link_all_deplibs_CXX=yes
15521
15522     if test "$GXX" = yes ; then
15523       lt_int_apple_cc_single_mod=no
15524       output_verbose_link_cmd='echo'
15525       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15526        lt_int_apple_cc_single_mod=yes
15527       fi
15528       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15529        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15530       else
15531           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'
15532         fi
15533         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15534         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15535           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15536             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}'
15537           else
15538             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}'
15539           fi
15540             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}'
15541       else
15542       case "$cc_basename" in
15543         xlc*)
15544          output_verbose_link_cmd='echo'
15545           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'
15546           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15548           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}'
15549           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}'
15550           ;;
15551        *)
15552          ld_shlibs_CXX=no
15553           ;;
15554       esac
15555       fi
15556         ;;
15557
15558   dgux*)
15559     case $cc_basename in
15560       ec++)
15561         # FIXME: insert proper C++ library support
15562         ld_shlibs_CXX=no
15563         ;;
15564       ghcx)
15565         # Green Hills C++ Compiler
15566         # FIXME: insert proper C++ library support
15567         ld_shlibs_CXX=no
15568         ;;
15569       *)
15570         # FIXME: insert proper C++ library support
15571         ld_shlibs_CXX=no
15572         ;;
15573     esac
15574     ;;
15575   freebsd12*)
15576     # C++ shared libraries reported to be fairly broken before switch to ELF
15577     ld_shlibs_CXX=no
15578     ;;
15579   freebsd-elf*)
15580     archive_cmds_need_lc_CXX=no
15581     ;;
15582   freebsd* | kfreebsd*-gnu)
15583     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15584     # conventions
15585     ld_shlibs_CXX=yes
15586     ;;
15587   gnu*)
15588     ;;
15589   hpux9*)
15590     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15591     hardcode_libdir_separator_CXX=:
15592     export_dynamic_flag_spec_CXX='${wl}-E'
15593     hardcode_direct_CXX=yes
15594     hardcode_minus_L_CXX=yes # Not in the search PATH,
15595                                 # but as the default
15596                                 # location of the library.
15597
15598     case $cc_basename in
15599     CC)
15600       # FIXME: insert proper C++ library support
15601       ld_shlibs_CXX=no
15602       ;;
15603     aCC)
15604       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'
15605       # Commands to make compiler produce verbose output that lists
15606       # what "hidden" libraries, object files and flags are used when
15607       # linking a shared library.
15608       #
15609       # There doesn't appear to be a way to prevent this compiler from
15610       # explicitly linking system object files so we need to strip them
15611       # from the output so that they don't get included in the library
15612       # dependencies.
15613       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'
15614       ;;
15615     *)
15616       if test "$GXX" = yes; then
15617         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'
15618       else
15619         # FIXME: insert proper C++ library support
15620         ld_shlibs_CXX=no
15621       fi
15622       ;;
15623     esac
15624     ;;
15625   hpux10*|hpux11*)
15626     if test $with_gnu_ld = no; then
15627       case "$host_cpu" in
15628       hppa*64*)
15629         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15631         hardcode_libdir_separator_CXX=:
15632         ;;
15633       ia64*)
15634         hardcode_libdir_flag_spec_CXX='-L$libdir'
15635         ;;
15636       *)
15637         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15638         hardcode_libdir_separator_CXX=:
15639         export_dynamic_flag_spec_CXX='${wl}-E'
15640         ;;
15641       esac
15642     fi
15643     case "$host_cpu" in
15644     hppa*64*)
15645       hardcode_direct_CXX=no
15646       hardcode_shlibpath_var_CXX=no
15647       ;;
15648     ia64*)
15649       hardcode_direct_CXX=no
15650       hardcode_shlibpath_var_CXX=no
15651       hardcode_minus_L_CXX=yes # Not in the search PATH,
15652                                               # but as the default
15653                                               # location of the library.
15654       ;;
15655     *)
15656       hardcode_direct_CXX=yes
15657       hardcode_minus_L_CXX=yes # Not in the search PATH,
15658                                               # but as the default
15659                                               # location of the library.
15660       ;;
15661     esac
15662
15663     case $cc_basename in
15664       CC)
15665         # FIXME: insert proper C++ library support
15666         ld_shlibs_CXX=no
15667         ;;
15668       aCC)
15669         case "$host_cpu" in
15670         hppa*64*|ia64*)
15671           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15672           ;;
15673         *)
15674           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15675           ;;
15676         esac
15677         # Commands to make compiler produce verbose output that lists
15678         # what "hidden" libraries, object files and flags are used when
15679         # linking a shared library.
15680         #
15681         # There doesn't appear to be a way to prevent this compiler from
15682         # explicitly linking system object files so we need to strip them
15683         # from the output so that they don't get included in the library
15684         # dependencies.
15685         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'
15686         ;;
15687       *)
15688         if test "$GXX" = yes; then
15689           if test $with_gnu_ld = no; then
15690             case "$host_cpu" in
15691             ia64*|hppa*64*)
15692               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15693               ;;
15694             *)
15695               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'
15696               ;;
15697             esac
15698           fi
15699         else
15700           # FIXME: insert proper C++ library support
15701           ld_shlibs_CXX=no
15702         fi
15703         ;;
15704     esac
15705     ;;
15706   irix5* | irix6*)
15707     case $cc_basename in
15708       CC)
15709         # SGI C++
15710         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'
15711
15712         # Archives containing C++ object files must be created using
15713         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15714         # necessary to make sure instantiated templates are included
15715         # in the archive.
15716         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15717         ;;
15718       *)
15719         if test "$GXX" = yes; then
15720           if test "$with_gnu_ld" = no; then
15721             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'
15722           else
15723             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'
15724           fi
15725         fi
15726         link_all_deplibs_CXX=yes
15727         ;;
15728     esac
15729     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15730     hardcode_libdir_separator_CXX=:
15731     ;;
15732   linux*)
15733     case $cc_basename in
15734       KCC)
15735         # Kuck and Associates, Inc. (KAI) C++ Compiler
15736
15737         # KCC will only create a shared library if the output file
15738         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15739         # to its proper name (with version) after linking.
15740         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'
15741         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'
15742         # Commands to make compiler produce verbose output that lists
15743         # what "hidden" libraries, object files and flags are used when
15744         # linking a shared library.
15745         #
15746         # There doesn't appear to be a way to prevent this compiler from
15747         # explicitly linking system object files so we need to strip them
15748         # from the output so that they don't get included in the library
15749         # dependencies.
15750         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'
15751
15752         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15753         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15754
15755         # Archives containing C++ object files must be created using
15756         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15757         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15758         ;;
15759       icpc)
15760         # Intel C++
15761         with_gnu_ld=yes
15762         # version 8.0 and above of icpc choke on multiply defined symbols
15763         # if we add $predep_objects and $postdep_objects, however 7.1 and
15764         # earlier do not add the objects themselves.
15765         case `$CC -V 2>&1` in
15766         *"Version 7."*)
15767           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768           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'
15769           ;;
15770         *)  # Version 8.0 or newer
15771           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15773           ;;
15774         esac
15775         archive_cmds_need_lc_CXX=no
15776         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15777         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15778         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15779         ;;
15780       cxx)
15781         # Compaq C++
15782         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783         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'
15784
15785         runpath_var=LD_RUN_PATH
15786         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15787         hardcode_libdir_separator_CXX=:
15788
15789         # Commands to make compiler produce verbose output that lists
15790         # what "hidden" libraries, object files and flags are used when
15791         # linking a shared library.
15792         #
15793         # There doesn't appear to be a way to prevent this compiler from
15794         # explicitly linking system object files so we need to strip them
15795         # from the output so that they don't get included in the library
15796         # dependencies.
15797         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'
15798         ;;
15799     esac
15800     ;;
15801   lynxos*)
15802     # FIXME: insert proper C++ library support
15803     ld_shlibs_CXX=no
15804     ;;
15805   m88k*)
15806     # FIXME: insert proper C++ library support
15807     ld_shlibs_CXX=no
15808     ;;
15809   mvs*)
15810     case $cc_basename in
15811       cxx)
15812         # FIXME: insert proper C++ library support
15813         ld_shlibs_CXX=no
15814         ;;
15815       *)
15816         # FIXME: insert proper C++ library support
15817         ld_shlibs_CXX=no
15818         ;;
15819     esac
15820     ;;
15821   netbsd*)
15822     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15823       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15824       wlarc=
15825       hardcode_libdir_flag_spec_CXX='-R$libdir'
15826       hardcode_direct_CXX=yes
15827       hardcode_shlibpath_var_CXX=no
15828     fi
15829     # Workaround some broken pre-1.5 toolchains
15830     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15831     ;;
15832   openbsd2*)
15833     # C++ shared libraries are fairly broken
15834     ld_shlibs_CXX=no
15835     ;;
15836   openbsd*)
15837     hardcode_direct_CXX=yes
15838     hardcode_shlibpath_var_CXX=no
15839     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15840     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15841     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15842       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15843       export_dynamic_flag_spec_CXX='${wl}-E'
15844       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15845     fi
15846     output_verbose_link_cmd='echo'
15847     ;;
15848   osf3*)
15849     case $cc_basename in
15850       KCC)
15851         # Kuck and Associates, Inc. (KAI) C++ Compiler
15852
15853         # KCC will only create a shared library if the output file
15854         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15855         # to its proper name (with version) after linking.
15856         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'
15857
15858         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15859         hardcode_libdir_separator_CXX=:
15860
15861         # Archives containing C++ object files must be created using
15862         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15863         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15864
15865         ;;
15866       RCC)
15867         # Rational C++ 2.4.1
15868         # FIXME: insert proper C++ library support
15869         ld_shlibs_CXX=no
15870         ;;
15871       cxx)
15872         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15873         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'
15874
15875         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15876         hardcode_libdir_separator_CXX=:
15877
15878         # Commands to make compiler produce verbose output that lists
15879         # what "hidden" libraries, object files and flags are used when
15880         # linking a shared library.
15881         #
15882         # There doesn't appear to be a way to prevent this compiler from
15883         # explicitly linking system object files so we need to strip them
15884         # from the output so that they don't get included in the library
15885         # dependencies.
15886         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'
15887         ;;
15888       *)
15889         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15890           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15891           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'
15892
15893           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15894           hardcode_libdir_separator_CXX=:
15895
15896           # Commands to make compiler produce verbose output that lists
15897           # what "hidden" libraries, object files and flags are used when
15898           # linking a shared library.
15899           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15900
15901         else
15902           # FIXME: insert proper C++ library support
15903           ld_shlibs_CXX=no
15904         fi
15905         ;;
15906     esac
15907     ;;
15908   osf4* | osf5*)
15909     case $cc_basename in
15910       KCC)
15911         # Kuck and Associates, Inc. (KAI) C++ Compiler
15912
15913         # KCC will only create a shared library if the output file
15914         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15915         # to its proper name (with version) after linking.
15916         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'
15917
15918         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919         hardcode_libdir_separator_CXX=:
15920
15921         # Archives containing C++ object files must be created using
15922         # the KAI C++ compiler.
15923         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15924         ;;
15925       RCC)
15926         # Rational C++ 2.4.1
15927         # FIXME: insert proper C++ library support
15928         ld_shlibs_CXX=no
15929         ;;
15930       cxx)
15931         allow_undefined_flag_CXX=' -expect_unresolved \*'
15932         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'
15933         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15934           echo "-hidden">> $lib.exp~
15935           $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~
15936           $rm $lib.exp'
15937
15938         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15939         hardcode_libdir_separator_CXX=:
15940
15941         # Commands to make compiler produce verbose output that lists
15942         # what "hidden" libraries, object files and flags are used when
15943         # linking a shared library.
15944         #
15945         # There doesn't appear to be a way to prevent this compiler from
15946         # explicitly linking system object files so we need to strip them
15947         # from the output so that they don't get included in the library
15948         # dependencies.
15949         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'
15950         ;;
15951       *)
15952         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15953           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15954          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'
15955
15956           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15957           hardcode_libdir_separator_CXX=:
15958
15959           # Commands to make compiler produce verbose output that lists
15960           # what "hidden" libraries, object files and flags are used when
15961           # linking a shared library.
15962           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15963
15964         else
15965           # FIXME: insert proper C++ library support
15966           ld_shlibs_CXX=no
15967         fi
15968         ;;
15969     esac
15970     ;;
15971   psos*)
15972     # FIXME: insert proper C++ library support
15973     ld_shlibs_CXX=no
15974     ;;
15975   sco*)
15976     archive_cmds_need_lc_CXX=no
15977     case $cc_basename in
15978       CC)
15979         # FIXME: insert proper C++ library support
15980         ld_shlibs_CXX=no
15981         ;;
15982       *)
15983         # FIXME: insert proper C++ library support
15984         ld_shlibs_CXX=no
15985         ;;
15986     esac
15987     ;;
15988   sunos4*)
15989     case $cc_basename in
15990       CC)
15991         # Sun C++ 4.x
15992         # FIXME: insert proper C++ library support
15993         ld_shlibs_CXX=no
15994         ;;
15995       lcc)
15996         # Lucid
15997         # FIXME: insert proper C++ library support
15998         ld_shlibs_CXX=no
15999         ;;
16000       *)
16001         # FIXME: insert proper C++ library support
16002         ld_shlibs_CXX=no
16003         ;;
16004     esac
16005     ;;
16006   solaris*)
16007     case $cc_basename in
16008       CC)
16009         # Sun C++ 4.2, 5.x and Centerline C++
16010         no_undefined_flag_CXX=' -zdefs'
16011         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16012         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16013         $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'
16014
16015         hardcode_libdir_flag_spec_CXX='-R$libdir'
16016         hardcode_shlibpath_var_CXX=no
16017         case $host_os in
16018           solaris2.0-5 | solaris2.0-5.*) ;;
16019           *)
16020             # The C++ compiler is used as linker so we must use $wl
16021             # flag to pass the commands to the underlying system
16022             # linker.
16023             # Supported since Solaris 2.6 (maybe 2.5.1?)
16024             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16025             ;;
16026         esac
16027         link_all_deplibs_CXX=yes
16028
16029         # Commands to make compiler produce verbose output that lists
16030         # what "hidden" libraries, object files and flags are used when
16031         # linking a shared library.
16032         #
16033         # There doesn't appear to be a way to prevent this compiler from
16034         # explicitly linking system object files so we need to strip them
16035         # from the output so that they don't get included in the library
16036         # dependencies.
16037         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'
16038
16039         # Archives containing C++ object files must be created using
16040         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16041         # necessary to make sure instantiated templates are included
16042         # in the archive.
16043         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16044         ;;
16045       gcx)
16046         # Green Hills C++ Compiler
16047         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16048
16049         # The C++ compiler must be used to create the archive.
16050         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16051         ;;
16052       *)
16053         # GNU C++ compiler with Solaris linker
16054         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16055           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16056           if $CC --version | grep -v '^2\.7' > /dev/null; then
16057             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16058             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16060
16061             # Commands to make compiler produce verbose output that lists
16062             # what "hidden" libraries, object files and flags are used when
16063             # linking a shared library.
16064             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16065           else
16066             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16067             # platform.
16068             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16069             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16071
16072             # Commands to make compiler produce verbose output that lists
16073             # what "hidden" libraries, object files and flags are used when
16074             # linking a shared library.
16075             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16076           fi
16077
16078           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16079         fi
16080         ;;
16081     esac
16082     ;;
16083   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16084     archive_cmds_need_lc_CXX=no
16085     ;;
16086   tandem*)
16087     case $cc_basename in
16088       NCC)
16089         # NonStop-UX NCC 3.20
16090         # FIXME: insert proper C++ library support
16091         ld_shlibs_CXX=no
16092         ;;
16093       *)
16094         # FIXME: insert proper C++ library support
16095         ld_shlibs_CXX=no
16096         ;;
16097     esac
16098     ;;
16099   vxworks*)
16100     # FIXME: insert proper C++ library support
16101     ld_shlibs_CXX=no
16102     ;;
16103   *)
16104     # FIXME: insert proper C++ library support
16105     ld_shlibs_CXX=no
16106     ;;
16107 esac
16108 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16109 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16110 test "$ld_shlibs_CXX" = no && can_build_shared=no
16111
16112 GCC_CXX="$GXX"
16113 LD_CXX="$LD"
16114
16115
16116 cat > conftest.$ac_ext <<EOF
16117 class Foo
16118 {
16119 public:
16120   Foo (void) { a = 0; }
16121 private:
16122   int a;
16123 };
16124 EOF
16125
16126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127   (eval $ac_compile) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; then
16131   # Parse the compiler output and extract the necessary
16132   # objects, libraries and library flags.
16133
16134   # Sentinel used to keep track of whether or not we are before
16135   # the conftest object file.
16136   pre_test_object_deps_done=no
16137
16138   # The `*' in the case matches for architectures that use `case' in
16139   # $output_verbose_cmd can trigger glob expansion during the loop
16140   # eval without this substitution.
16141   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16142
16143   for p in `eval $output_verbose_link_cmd`; do
16144     case $p in
16145
16146     -L* | -R* | -l*)
16147        # Some compilers place space between "-{L,R}" and the path.
16148        # Remove the space.
16149        if test $p = "-L" \
16150           || test $p = "-R"; then
16151          prev=$p
16152          continue
16153        else
16154          prev=
16155        fi
16156
16157        if test "$pre_test_object_deps_done" = no; then
16158          case $p in
16159          -L* | -R*)
16160            # Internal compiler library paths should come after those
16161            # provided the user.  The postdeps already come after the
16162            # user supplied libs so there is no need to process them.
16163            if test -z "$compiler_lib_search_path_CXX"; then
16164              compiler_lib_search_path_CXX="${prev}${p}"
16165            else
16166              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16167            fi
16168            ;;
16169          # The "-l" case would never come before the object being
16170          # linked, so don't bother handling this case.
16171          esac
16172        else
16173          if test -z "$postdeps_CXX"; then
16174            postdeps_CXX="${prev}${p}"
16175          else
16176            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16177          fi
16178        fi
16179        ;;
16180
16181     *.$objext)
16182        # This assumes that the test object file only shows up
16183        # once in the compiler output.
16184        if test "$p" = "conftest.$objext"; then
16185          pre_test_object_deps_done=yes
16186          continue
16187        fi
16188
16189        if test "$pre_test_object_deps_done" = no; then
16190          if test -z "$predep_objects_CXX"; then
16191            predep_objects_CXX="$p"
16192          else
16193            predep_objects_CXX="$predep_objects_CXX $p"
16194          fi
16195        else
16196          if test -z "$postdep_objects_CXX"; then
16197            postdep_objects_CXX="$p"
16198          else
16199            postdep_objects_CXX="$postdep_objects_CXX $p"
16200          fi
16201        fi
16202        ;;
16203
16204     *) ;; # Ignore the rest.
16205
16206     esac
16207   done
16208
16209   # Clean up.
16210   rm -f a.out a.exe
16211 else
16212   echo "libtool.m4: error: problem compiling CXX test program"
16213 fi
16214
16215 $rm -f confest.$objext
16216
16217 case " $postdeps_CXX " in
16218 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16219 esac
16220
16221 lt_prog_compiler_wl_CXX=
16222 lt_prog_compiler_pic_CXX=
16223 lt_prog_compiler_static_CXX=
16224
16225 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16226 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16227
16228   # C++ specific cases for pic, static, wl, etc.
16229   if test "$GXX" = yes; then
16230     lt_prog_compiler_wl_CXX='-Wl,'
16231     lt_prog_compiler_static_CXX='-static'
16232
16233     case $host_os in
16234     aix*)
16235       # All AIX code is PIC.
16236       if test "$host_cpu" = ia64; then
16237         # AIX 5 now supports IA64 processor
16238         lt_prog_compiler_static_CXX='-Bstatic'
16239       fi
16240       ;;
16241     amigaos*)
16242       # FIXME: we need at least 68020 code to build shared libraries, but
16243       # adding the `-m68020' flag to GCC prevents building anything better,
16244       # like `-m68040'.
16245       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16246       ;;
16247     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16248       # PIC is the default for these OSes.
16249       ;;
16250     mingw* | os2* | pw32*)
16251       # This hack is so that the source file can tell whether it is being
16252       # built for inclusion in a dll (and should export symbols for example).
16253       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16254       ;;
16255     darwin* | rhapsody*)
16256       # PIC is the default on this platform
16257       # Common symbols not allowed in MH_DYLIB files
16258       lt_prog_compiler_pic_CXX='-fno-common'
16259       ;;
16260     *djgpp*)
16261       # DJGPP does not support shared libraries at all
16262       lt_prog_compiler_pic_CXX=
16263       ;;
16264     sysv4*MP*)
16265       if test -d /usr/nec; then
16266         lt_prog_compiler_pic_CXX=-Kconform_pic
16267       fi
16268       ;;
16269     hpux*)
16270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271       # not for PA HP-UX.
16272       case "$host_cpu" in
16273       hppa*64*|ia64*)
16274         ;;
16275       *)
16276         lt_prog_compiler_pic_CXX='-fPIC'
16277         ;;
16278       esac
16279       ;;
16280     *)
16281       lt_prog_compiler_pic_CXX='-fPIC'
16282       ;;
16283     esac
16284   else
16285     case $host_os in
16286       aix4* | aix5*)
16287         # All AIX code is PIC.
16288         if test "$host_cpu" = ia64; then
16289           # AIX 5 now supports IA64 processor
16290           lt_prog_compiler_static_CXX='-Bstatic'
16291         else
16292           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16293         fi
16294         ;;
16295       chorus*)
16296         case $cc_basename in
16297         cxch68)
16298           # Green Hills C++ Compiler
16299           # _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"
16300           ;;
16301         esac
16302         ;;
16303        darwin*)
16304          # PIC is the default on this platform
16305          # Common symbols not allowed in MH_DYLIB files
16306          case "$cc_basename" in
16307            xlc*)
16308            lt_prog_compiler_pic_CXX='-qnocommon'
16309            lt_prog_compiler_wl_CXX='-Wl,'
16310            ;;
16311          esac
16312        ;;
16313       dgux*)
16314         case $cc_basename in
16315           ec++)
16316             lt_prog_compiler_pic_CXX='-KPIC'
16317             ;;
16318           ghcx)
16319             # Green Hills C++ Compiler
16320             lt_prog_compiler_pic_CXX='-pic'
16321             ;;
16322           *)
16323             ;;
16324         esac
16325         ;;
16326       freebsd* | kfreebsd*-gnu)
16327         # FreeBSD uses GNU C++
16328         ;;
16329       hpux9* | hpux10* | hpux11*)
16330         case $cc_basename in
16331           CC)
16332             lt_prog_compiler_wl_CXX='-Wl,'
16333             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16334             if test "$host_cpu" != ia64; then
16335               lt_prog_compiler_pic_CXX='+Z'
16336             fi
16337             ;;
16338           aCC)
16339             lt_prog_compiler_wl_CXX='-Wl,'
16340             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16341             case "$host_cpu" in
16342             hppa*64*|ia64*)
16343               # +Z the default
16344               ;;
16345             *)
16346               lt_prog_compiler_pic_CXX='+Z'
16347               ;;
16348             esac
16349             ;;
16350           *)
16351             ;;
16352         esac
16353         ;;
16354       irix5* | irix6* | nonstopux*)
16355         case $cc_basename in
16356           CC)
16357             lt_prog_compiler_wl_CXX='-Wl,'
16358             lt_prog_compiler_static_CXX='-non_shared'
16359             # CC pic flag -KPIC is the default.
16360             ;;
16361           *)
16362             ;;
16363         esac
16364         ;;
16365       linux*)
16366         case $cc_basename in
16367           KCC)
16368             # KAI C++ Compiler
16369             lt_prog_compiler_wl_CXX='--backend -Wl,'
16370             lt_prog_compiler_pic_CXX='-fPIC'
16371             ;;
16372           icpc)
16373             # Intel C++
16374             lt_prog_compiler_wl_CXX='-Wl,'
16375             lt_prog_compiler_pic_CXX='-KPIC'
16376             lt_prog_compiler_static_CXX='-static'
16377             ;;
16378           cxx)
16379             # Compaq C++
16380             # Make sure the PIC flag is empty.  It appears that all Alpha
16381             # Linux and Compaq Tru64 Unix objects are PIC.
16382             lt_prog_compiler_pic_CXX=
16383             lt_prog_compiler_static_CXX='-non_shared'
16384             ;;
16385           *)
16386             ;;
16387         esac
16388         ;;
16389       lynxos*)
16390         ;;
16391       m88k*)
16392         ;;
16393       mvs*)
16394         case $cc_basename in
16395           cxx)
16396             lt_prog_compiler_pic_CXX='-W c,exportall'
16397             ;;
16398           *)
16399             ;;
16400         esac
16401         ;;
16402       netbsd*)
16403         ;;
16404       osf3* | osf4* | osf5*)
16405         case $cc_basename in
16406           KCC)
16407             lt_prog_compiler_wl_CXX='--backend -Wl,'
16408             ;;
16409           RCC)
16410             # Rational C++ 2.4.1
16411             lt_prog_compiler_pic_CXX='-pic'
16412             ;;
16413           cxx)
16414             # Digital/Compaq C++
16415             lt_prog_compiler_wl_CXX='-Wl,'
16416             # Make sure the PIC flag is empty.  It appears that all Alpha
16417             # Linux and Compaq Tru64 Unix objects are PIC.
16418             lt_prog_compiler_pic_CXX=
16419             lt_prog_compiler_static_CXX='-non_shared'
16420             ;;
16421           *)
16422             ;;
16423         esac
16424         ;;
16425       psos*)
16426         ;;
16427       sco*)
16428         case $cc_basename in
16429           CC)
16430             lt_prog_compiler_pic_CXX='-fPIC'
16431             ;;
16432           *)
16433             ;;
16434         esac
16435         ;;
16436       solaris*)
16437         case $cc_basename in
16438           CC)
16439             # Sun C++ 4.2, 5.x and Centerline C++
16440             lt_prog_compiler_pic_CXX='-KPIC'
16441             lt_prog_compiler_static_CXX='-Bstatic'
16442             lt_prog_compiler_wl_CXX='-Qoption ld '
16443             ;;
16444           gcx)
16445             # Green Hills C++ Compiler
16446             lt_prog_compiler_pic_CXX='-PIC'
16447             ;;
16448           *)
16449             ;;
16450         esac
16451         ;;
16452       sunos4*)
16453         case $cc_basename in
16454           CC)
16455             # Sun C++ 4.x
16456             lt_prog_compiler_pic_CXX='-pic'
16457             lt_prog_compiler_static_CXX='-Bstatic'
16458             ;;
16459           lcc)
16460             # Lucid
16461             lt_prog_compiler_pic_CXX='-pic'
16462             ;;
16463           *)
16464             ;;
16465         esac
16466         ;;
16467       tandem*)
16468         case $cc_basename in
16469           NCC)
16470             # NonStop-UX NCC 3.20
16471             lt_prog_compiler_pic_CXX='-KPIC'
16472             ;;
16473           *)
16474             ;;
16475         esac
16476         ;;
16477       unixware*)
16478         ;;
16479       vxworks*)
16480         ;;
16481       *)
16482         lt_prog_compiler_can_build_shared_CXX=no
16483         ;;
16484     esac
16485   fi
16486
16487 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16488 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16489
16490 #
16491 # Check to make sure the PIC flag actually works.
16492 #
16493 if test -n "$lt_prog_compiler_pic_CXX"; then
16494
16495 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16497 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   lt_prog_compiler_pic_works_CXX=no
16501   ac_outfile=conftest.$ac_objext
16502    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16503    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16504    # Insert the option either (1) after the last *FLAGS variable, or
16505    # (2) before a word containing "conftest.", or (3) at the end.
16506    # Note that $ac_compile itself does not contain backslashes and begins
16507    # with a dollar sign (not a hyphen), so the echo should work correctly.
16508    # The option is referenced via a variable to avoid confusing sed.
16509    lt_compile=`echo "$ac_compile" | $SED \
16510    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16512    -e 's:$: $lt_compiler_flag:'`
16513    (eval echo "\"\$as_me:16513: $lt_compile\"" >&5)
16514    (eval "$lt_compile" 2>conftest.err)
16515    ac_status=$?
16516    cat conftest.err >&5
16517    echo "$as_me:16517: \$? = $ac_status" >&5
16518    if (exit $ac_status) && test -s "$ac_outfile"; then
16519      # The compiler can only warn and ignore the option if not recognized
16520      # So say no if there are warnings
16521      if test ! -s conftest.err; then
16522        lt_prog_compiler_pic_works_CXX=yes
16523      fi
16524    fi
16525    $rm conftest*
16526
16527 fi
16528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16530
16531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16532     case $lt_prog_compiler_pic_CXX in
16533      "" | " "*) ;;
16534      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16535      esac
16536 else
16537     lt_prog_compiler_pic_CXX=
16538      lt_prog_compiler_can_build_shared_CXX=no
16539 fi
16540
16541 fi
16542 case "$host_os" in
16543   # For platforms which do not support PIC, -DPIC is meaningless:
16544   *djgpp*)
16545     lt_prog_compiler_pic_CXX=
16546     ;;
16547   *)
16548     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16549     ;;
16550 esac
16551
16552 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16553 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16554 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   lt_cv_prog_compiler_c_o_CXX=no
16558    $rm -r conftest 2>/dev/null
16559    mkdir conftest
16560    cd conftest
16561    mkdir out
16562    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16563
16564    lt_compiler_flag="-o out/conftest2.$ac_objext"
16565    # Insert the option either (1) after the last *FLAGS variable, or
16566    # (2) before a word containing "conftest.", or (3) at the end.
16567    # Note that $ac_compile itself does not contain backslashes and begins
16568    # with a dollar sign (not a hyphen), so the echo should work correctly.
16569    lt_compile=`echo "$ac_compile" | $SED \
16570    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16572    -e 's:$: $lt_compiler_flag:'`
16573    (eval echo "\"\$as_me:16573: $lt_compile\"" >&5)
16574    (eval "$lt_compile" 2>out/conftest.err)
16575    ac_status=$?
16576    cat out/conftest.err >&5
16577    echo "$as_me:16577: \$? = $ac_status" >&5
16578    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16579    then
16580      # The compiler can only warn and ignore the option if not recognized
16581      # So say no if there are warnings
16582      if test ! -s out/conftest.err; then
16583        lt_cv_prog_compiler_c_o_CXX=yes
16584      fi
16585    fi
16586    chmod u+w .
16587    $rm conftest*
16588    # SGI C++ compiler will create directory out/ii_files/ for
16589    # template instantiation
16590    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16591    $rm out/* && rmdir out
16592    cd ..
16593    rmdir conftest
16594    $rm conftest*
16595
16596 fi
16597 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16598 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16599
16600
16601 hard_links="nottested"
16602 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16603   # do not overwrite the value of need_locks provided by the user
16604   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16605 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16606   hard_links=yes
16607   $rm conftest*
16608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16609   touch conftest.a
16610   ln conftest.a conftest.b 2>&5 || hard_links=no
16611   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16612   echo "$as_me:$LINENO: result: $hard_links" >&5
16613 echo "${ECHO_T}$hard_links" >&6
16614   if test "$hard_links" = no; then
16615     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16616 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16617     need_locks=warn
16618   fi
16619 else
16620   need_locks=no
16621 fi
16622
16623 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16624 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16625
16626   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16627   case $host_os in
16628   aix4* | aix5*)
16629     # If we're using GNU nm, then we don't want the "-C" option.
16630     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16631     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16632       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'
16633     else
16634       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'
16635     fi
16636     ;;
16637   pw32*)
16638     export_symbols_cmds_CXX="$ltdll_cmds"
16639   ;;
16640   cygwin* | mingw*)
16641     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16642   ;;
16643   *)
16644     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16645   ;;
16646   esac
16647
16648 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16649 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16650 test "$ld_shlibs_CXX" = no && can_build_shared=no
16651
16652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16653 if test "$GCC" = yes; then
16654   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16655 fi
16656
16657 #
16658 # Do we need to explicitly link libc?
16659 #
16660 case "x$archive_cmds_need_lc_CXX" in
16661 x|xyes)
16662   # Assume -lc should be added
16663   archive_cmds_need_lc_CXX=yes
16664
16665   if test "$enable_shared" = yes && test "$GCC" = yes; then
16666     case $archive_cmds_CXX in
16667     *'~'*)
16668       # FIXME: we may have to deal with multi-command sequences.
16669       ;;
16670     '$CC '*)
16671       # Test whether the compiler implicitly links with -lc since on some
16672       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16673       # to ld, don't add -lc before -lgcc.
16674       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16676       $rm conftest*
16677       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16678
16679       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680   (eval $ac_compile) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } 2>conftest.err; then
16684         soname=conftest
16685         lib=conftest
16686         libobjs=conftest.$ac_objext
16687         deplibs=
16688         wl=$lt_prog_compiler_wl_CXX
16689         compiler_flags=-v
16690         linker_flags=-v
16691         verstring=
16692         output_objdir=.
16693         libname=conftest
16694         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16695         allow_undefined_flag_CXX=
16696         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16697   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }
16701         then
16702           archive_cmds_need_lc_CXX=no
16703         else
16704           archive_cmds_need_lc_CXX=yes
16705         fi
16706         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16707       else
16708         cat conftest.err 1>&5
16709       fi
16710       $rm conftest*
16711       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16712 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16713       ;;
16714     esac
16715   fi
16716   ;;
16717 esac
16718
16719 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16720 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16721 library_names_spec=
16722 libname_spec='lib$name'
16723 soname_spec=
16724 shrext_cmds=".so"
16725 postinstall_cmds=
16726 postuninstall_cmds=
16727 finish_cmds=
16728 finish_eval=
16729 shlibpath_var=
16730 shlibpath_overrides_runpath=unknown
16731 version_type=none
16732 dynamic_linker="$host_os ld.so"
16733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16734 if test "$GCC" = yes; then
16735   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16736   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16737     # if the path contains ";" then we assume it to be the separator
16738     # otherwise default to the standard path separator (i.e. ":") - it is
16739     # assumed that no part of a normal pathname contains ";" but that should
16740     # okay in the real world where ";" in dirpaths is itself problematic.
16741     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16742   else
16743     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16744   fi
16745 else
16746   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16747 fi
16748 need_lib_prefix=unknown
16749 hardcode_into_libs=no
16750
16751 # when you set need_version to no, make sure it does not cause -set_version
16752 # flags to be left without arguments
16753 need_version=unknown
16754
16755 case $host_os in
16756 aix3*)
16757   version_type=linux
16758   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16759   shlibpath_var=LIBPATH
16760
16761   # AIX 3 has no versioning support, so we append a major version to the name.
16762   soname_spec='${libname}${release}${shared_ext}$major'
16763   ;;
16764
16765 aix4* | aix5*)
16766   version_type=linux
16767   need_lib_prefix=no
16768   need_version=no
16769   hardcode_into_libs=yes
16770   if test "$host_cpu" = ia64; then
16771     # AIX 5 supports IA64
16772     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16773     shlibpath_var=LD_LIBRARY_PATH
16774   else
16775     # With GCC up to 2.95.x, collect2 would create an import file
16776     # for dependence libraries.  The import file would start with
16777     # the line `#! .'.  This would cause the generated library to
16778     # depend on `.', always an invalid library.  This was fixed in
16779     # development snapshots of GCC prior to 3.0.
16780     case $host_os in
16781       aix4 | aix4.[01] | aix4.[01].*)
16782       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16783            echo ' yes '
16784            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16785         :
16786       else
16787         can_build_shared=no
16788       fi
16789       ;;
16790     esac
16791     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16792     # soname into executable. Probably we can add versioning support to
16793     # collect2, so additional links can be useful in future.
16794     if test "$aix_use_runtimelinking" = yes; then
16795       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16796       # instead of lib<name>.a to let people know that these are not
16797       # typical AIX shared libraries.
16798       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799     else
16800       # We preserve .a as extension for shared libraries through AIX4.2
16801       # and later when we are not doing run time linking.
16802       library_names_spec='${libname}${release}.a $libname.a'
16803       soname_spec='${libname}${release}${shared_ext}$major'
16804     fi
16805     shlibpath_var=LIBPATH
16806   fi
16807   ;;
16808
16809 amigaos*)
16810   library_names_spec='$libname.ixlibrary $libname.a'
16811   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16812   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'
16813   ;;
16814
16815 beos*)
16816   library_names_spec='${libname}${shared_ext}'
16817   dynamic_linker="$host_os ld.so"
16818   shlibpath_var=LIBRARY_PATH
16819   ;;
16820
16821 bsdi[45]*)
16822   version_type=linux
16823   need_version=no
16824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825   soname_spec='${libname}${release}${shared_ext}$major'
16826   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16829   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16830   # the default ld.so.conf also contains /usr/contrib/lib and
16831   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16832   # libtool to hard-code these into programs
16833   ;;
16834
16835 cygwin* | mingw* | pw32*)
16836   version_type=windows
16837   shrext_cmds=".dll"
16838   need_version=no
16839   need_lib_prefix=no
16840
16841   case $GCC,$host_os in
16842   yes,cygwin* | yes,mingw* | yes,pw32*)
16843     library_names_spec='$libname.dll.a'
16844     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16845     postinstall_cmds='base_file=`basename \${file}`~
16846       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16847       dldir=$destdir/`dirname \$dlpath`~
16848       test -d \$dldir || mkdir -p \$dldir~
16849       $install_prog $dir/$dlname \$dldir/$dlname'
16850     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16851       dlpath=$dir/\$dldll~
16852        $rm \$dlpath'
16853     shlibpath_overrides_runpath=yes
16854
16855     case $host_os in
16856     cygwin*)
16857       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16858       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16859       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16860       ;;
16861     mingw*)
16862       # MinGW DLLs use traditional 'lib' prefix
16863       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16864       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16865       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16866         # It is most probably a Windows format PATH printed by
16867         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16868         # path with ; separators, and with drive letters. We can handle the
16869         # drive letters (cygwin fileutils understands them), so leave them,
16870         # especially as we might pass files found there to a mingw objdump,
16871         # which wouldn't understand a cygwinified path. Ahh.
16872         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16873       else
16874         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16875       fi
16876       ;;
16877     pw32*)
16878       # pw32 DLLs use 'pw' prefix rather than 'lib'
16879       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16880       ;;
16881     esac
16882     ;;
16883
16884   *)
16885     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16886     ;;
16887   esac
16888   dynamic_linker='Win32 ld.exe'
16889   # FIXME: first we should search . and the directory the executable is in
16890   shlibpath_var=PATH
16891   ;;
16892
16893 darwin* | rhapsody*)
16894   dynamic_linker="$host_os dyld"
16895   version_type=darwin
16896   need_lib_prefix=no
16897   need_version=no
16898   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16899   soname_spec='${libname}${release}${major}$shared_ext'
16900   shlibpath_overrides_runpath=yes
16901   shlibpath_var=DYLD_LIBRARY_PATH
16902   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16903   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16904   if test "$GCC" = yes; then
16905     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"`
16906   else
16907     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16908   fi
16909   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16910   ;;
16911
16912 dgux*)
16913   version_type=linux
16914   need_lib_prefix=no
16915   need_version=no
16916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16917   soname_spec='${libname}${release}${shared_ext}$major'
16918   shlibpath_var=LD_LIBRARY_PATH
16919   ;;
16920
16921 freebsd1*)
16922   dynamic_linker=no
16923   ;;
16924
16925 kfreebsd*-gnu)
16926   version_type=linux
16927   need_lib_prefix=no
16928   need_version=no
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16930   soname_spec='${libname}${release}${shared_ext}$major'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   shlibpath_overrides_runpath=no
16933   hardcode_into_libs=yes
16934   dynamic_linker='GNU ld.so'
16935   ;;
16936
16937 freebsd*)
16938   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16939   version_type=freebsd-$objformat
16940   case $version_type in
16941     freebsd-elf*)
16942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16943       need_version=no
16944       need_lib_prefix=no
16945       ;;
16946     freebsd-*)
16947       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16948       need_version=yes
16949       ;;
16950   esac
16951   shlibpath_var=LD_LIBRARY_PATH
16952   case $host_os in
16953   freebsd2*)
16954     shlibpath_overrides_runpath=yes
16955     ;;
16956   freebsd3.01* | freebsdelf3.01*)
16957     shlibpath_overrides_runpath=yes
16958     hardcode_into_libs=yes
16959     ;;
16960   *) # from 3.2 on
16961     shlibpath_overrides_runpath=no
16962     hardcode_into_libs=yes
16963     ;;
16964   esac
16965   ;;
16966
16967 gnu*)
16968   version_type=linux
16969   need_lib_prefix=no
16970   need_version=no
16971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16972   soname_spec='${libname}${release}${shared_ext}$major'
16973   shlibpath_var=LD_LIBRARY_PATH
16974   hardcode_into_libs=yes
16975   ;;
16976
16977 hpux9* | hpux10* | hpux11*)
16978   # Give a soname corresponding to the major version so that dld.sl refuses to
16979   # link against other versions.
16980   version_type=sunos
16981   need_lib_prefix=no
16982   need_version=no
16983   case "$host_cpu" in
16984   ia64*)
16985     shrext_cmds='.so'
16986     hardcode_into_libs=yes
16987     dynamic_linker="$host_os dld.so"
16988     shlibpath_var=LD_LIBRARY_PATH
16989     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16991     soname_spec='${libname}${release}${shared_ext}$major'
16992     if test "X$HPUX_IA64_MODE" = X32; then
16993       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16994     else
16995       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16996     fi
16997     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998     ;;
16999    hppa*64*)
17000      shrext_cmds='.sl'
17001      hardcode_into_libs=yes
17002      dynamic_linker="$host_os dld.sl"
17003      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17004      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006      soname_spec='${libname}${release}${shared_ext}$major'
17007      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17008      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17009      ;;
17010    *)
17011     shrext_cmds='.sl'
17012     dynamic_linker="$host_os dld.sl"
17013     shlibpath_var=SHLIB_PATH
17014     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17015     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17016     soname_spec='${libname}${release}${shared_ext}$major'
17017     ;;
17018   esac
17019   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17020   postinstall_cmds='chmod 555 $lib'
17021   ;;
17022
17023 irix5* | irix6* | nonstopux*)
17024   case $host_os in
17025     nonstopux*) version_type=nonstopux ;;
17026     *)
17027         if test "$lt_cv_prog_gnu_ld" = yes; then
17028                 version_type=linux
17029         else
17030                 version_type=irix
17031         fi ;;
17032   esac
17033   need_lib_prefix=no
17034   need_version=no
17035   soname_spec='${libname}${release}${shared_ext}$major'
17036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17037   case $host_os in
17038   irix5* | nonstopux*)
17039     libsuff= shlibsuff=
17040     ;;
17041   *)
17042     case $LD in # libtool.m4 will add one of these switches to LD
17043     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17044       libsuff= shlibsuff= libmagic=32-bit;;
17045     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17046       libsuff=32 shlibsuff=N32 libmagic=N32;;
17047     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17048       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17049     *) libsuff= shlibsuff= libmagic=never-match;;
17050     esac
17051     ;;
17052   esac
17053   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17054   shlibpath_overrides_runpath=no
17055   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17056   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17057   hardcode_into_libs=yes
17058   ;;
17059
17060 # No shared lib support for Linux oldld, aout, or coff.
17061 linux*oldld* | linux*aout* | linux*coff*)
17062   dynamic_linker=no
17063   ;;
17064
17065 # This must be Linux ELF.
17066 linux*)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17073   shlibpath_var=LD_LIBRARY_PATH
17074   shlibpath_overrides_runpath=no
17075   # This implies no fast_install, which is unacceptable.
17076   # Some rework will be needed to allow for fast_install
17077   # before this can be enabled.
17078   hardcode_into_libs=yes
17079
17080   # Append ld.so.conf contents to the search path
17081   if test -f /etc/ld.so.conf; then
17082     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17083     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17084   fi
17085
17086   # We used to test for /lib/ld.so.1 and disable shared libraries on
17087   # powerpc, because MkLinux only supported shared libraries with the
17088   # GNU dynamic linker.  Since this was broken with cross compilers,
17089   # most powerpc-linux boxes support dynamic linking these days and
17090   # people can always --disable-shared, the test was removed, and we
17091   # assume the GNU/Linux dynamic linker is in use.
17092   dynamic_linker='GNU/Linux ld.so'
17093   ;;
17094
17095 knetbsd*-gnu)
17096   version_type=linux
17097   need_lib_prefix=no
17098   need_version=no
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=no
17103   hardcode_into_libs=yes
17104   dynamic_linker='GNU ld.so'
17105   ;;
17106
17107 netbsd*)
17108   version_type=sunos
17109   need_lib_prefix=no
17110   need_version=no
17111   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17113     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17114     dynamic_linker='NetBSD (a.out) ld.so'
17115   else
17116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17117     soname_spec='${libname}${release}${shared_ext}$major'
17118     dynamic_linker='NetBSD ld.elf_so'
17119   fi
17120   shlibpath_var=LD_LIBRARY_PATH
17121   shlibpath_overrides_runpath=yes
17122   hardcode_into_libs=yes
17123   ;;
17124
17125 newsos6)
17126   version_type=linux
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   shlibpath_overrides_runpath=yes
17130   ;;
17131
17132 nto-qnx*)
17133   version_type=linux
17134   need_lib_prefix=no
17135   need_version=no
17136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137   soname_spec='${libname}${release}${shared_ext}$major'
17138   shlibpath_var=LD_LIBRARY_PATH
17139   shlibpath_overrides_runpath=yes
17140   ;;
17141
17142 openbsd*)
17143   version_type=sunos
17144   need_lib_prefix=no
17145   need_version=no
17146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148   shlibpath_var=LD_LIBRARY_PATH
17149   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17150     case $host_os in
17151       openbsd2.[89] | openbsd2.[89].*)
17152         shlibpath_overrides_runpath=no
17153         ;;
17154       *)
17155         shlibpath_overrides_runpath=yes
17156         ;;
17157       esac
17158   else
17159     shlibpath_overrides_runpath=yes
17160   fi
17161   ;;
17162
17163 os2*)
17164   libname_spec='$name'
17165   shrext_cmds=".dll"
17166   need_lib_prefix=no
17167   library_names_spec='$libname${shared_ext} $libname.a'
17168   dynamic_linker='OS/2 ld.exe'
17169   shlibpath_var=LIBPATH
17170   ;;
17171
17172 osf3* | osf4* | osf5*)
17173   version_type=osf
17174   need_lib_prefix=no
17175   need_version=no
17176   soname_spec='${libname}${release}${shared_ext}$major'
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178   shlibpath_var=LD_LIBRARY_PATH
17179   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17180   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17181   ;;
17182
17183 sco3.2v5*)
17184   version_type=osf
17185   soname_spec='${libname}${release}${shared_ext}$major'
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   ;;
17189
17190 solaris*)
17191   version_type=linux
17192   need_lib_prefix=no
17193   need_version=no
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195   soname_spec='${libname}${release}${shared_ext}$major'
17196   shlibpath_var=LD_LIBRARY_PATH
17197   shlibpath_overrides_runpath=yes
17198   hardcode_into_libs=yes
17199   # ldd complains unless libraries are executable
17200   postinstall_cmds='chmod +x $lib'
17201   ;;
17202
17203 sunos4*)
17204   version_type=sunos
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   shlibpath_overrides_runpath=yes
17209   if test "$with_gnu_ld" = yes; then
17210     need_lib_prefix=no
17211   fi
17212   need_version=yes
17213   ;;
17214
17215 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17216   version_type=linux
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218   soname_spec='${libname}${release}${shared_ext}$major'
17219   shlibpath_var=LD_LIBRARY_PATH
17220   case $host_vendor in
17221     sni)
17222       shlibpath_overrides_runpath=no
17223       need_lib_prefix=no
17224       export_dynamic_flag_spec='${wl}-Blargedynsym'
17225       runpath_var=LD_RUN_PATH
17226       ;;
17227     siemens)
17228       need_lib_prefix=no
17229       ;;
17230     motorola)
17231       need_lib_prefix=no
17232       need_version=no
17233       shlibpath_overrides_runpath=no
17234       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17235       ;;
17236   esac
17237   ;;
17238
17239 sysv4*MP*)
17240   if test -d /usr/nec ;then
17241     version_type=linux
17242     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17243     soname_spec='$libname${shared_ext}.$major'
17244     shlibpath_var=LD_LIBRARY_PATH
17245   fi
17246   ;;
17247
17248 uts4*)
17249   version_type=linux
17250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251   soname_spec='${libname}${release}${shared_ext}$major'
17252   shlibpath_var=LD_LIBRARY_PATH
17253   ;;
17254
17255 *)
17256   dynamic_linker=no
17257   ;;
17258 esac
17259 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17260 echo "${ECHO_T}$dynamic_linker" >&6
17261 test "$dynamic_linker" = no && can_build_shared=no
17262
17263 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17264 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17265 hardcode_action_CXX=
17266 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17267    test -n "$runpath_var_CXX" || \
17268    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17269
17270   # We can hardcode non-existant directories.
17271   if test "$hardcode_direct_CXX" != no &&
17272      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17273      # have to relink, otherwise we might link with an installed library
17274      # when we should be linking with a yet-to-be-installed one
17275      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17276      test "$hardcode_minus_L_CXX" != no; then
17277     # Linking always hardcodes the temporary library directory.
17278     hardcode_action_CXX=relink
17279   else
17280     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17281     hardcode_action_CXX=immediate
17282   fi
17283 else
17284   # We cannot hardcode anything, or else we can only hardcode existing
17285   # directories.
17286   hardcode_action_CXX=unsupported
17287 fi
17288 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17289 echo "${ECHO_T}$hardcode_action_CXX" >&6
17290
17291 if test "$hardcode_action_CXX" = relink; then
17292   # Fast installation is not supported
17293   enable_fast_install=no
17294 elif test "$shlibpath_overrides_runpath" = yes ||
17295      test "$enable_shared" = no; then
17296   # Fast installation is not necessary
17297   enable_fast_install=needless
17298 fi
17299
17300 striplib=
17301 old_striplib=
17302 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17303 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17304 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17305   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17306   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17307   echo "$as_me:$LINENO: result: yes" >&5
17308 echo "${ECHO_T}yes" >&6
17309 else
17310 # FIXME - insert some real tests, host_os isn't really good enough
17311   case $host_os in
17312    darwin*)
17313        if test -n "$STRIP" ; then
17314          striplib="$STRIP -x"
17315          echo "$as_me:$LINENO: result: yes" >&5
17316 echo "${ECHO_T}yes" >&6
17317        else
17318   echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17320 fi
17321        ;;
17322    *)
17323   echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17325     ;;
17326   esac
17327 fi
17328
17329 if test "x$enable_dlopen" != xyes; then
17330   enable_dlopen=unknown
17331   enable_dlopen_self=unknown
17332   enable_dlopen_self_static=unknown
17333 else
17334   lt_cv_dlopen=no
17335   lt_cv_dlopen_libs=
17336
17337   case $host_os in
17338   beos*)
17339     lt_cv_dlopen="load_add_on"
17340     lt_cv_dlopen_libs=
17341     lt_cv_dlopen_self=yes
17342     ;;
17343
17344   mingw* | pw32*)
17345     lt_cv_dlopen="LoadLibrary"
17346     lt_cv_dlopen_libs=
17347    ;;
17348
17349   cygwin*)
17350     lt_cv_dlopen="dlopen"
17351     lt_cv_dlopen_libs=
17352    ;;
17353
17354   darwin*)
17355   # if libdl is installed we need to link against it
17356     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17357 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   ac_check_lib_save_LIBS=$LIBS
17362 LIBS="-ldl  $LIBS"
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 /* Override any gcc2 internal prototype to avoid an error.  */
17371 #ifdef __cplusplus
17372 extern "C"
17373 #endif
17374 /* We use char because int might match the return type of a gcc2
17375    builtin and then its argument prototype would still apply.  */
17376 char dlopen ();
17377 int
17378 main ()
17379 {
17380 dlopen ();
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387   (eval $ac_link) 2>conftest.er1
17388   ac_status=$?
17389   grep -v '^ *+' conftest.er1 >conftest.err
17390   rm -f conftest.er1
17391   cat conftest.err >&5
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); } &&
17394          { ac_try='test -z "$ac_cxx_werror_flag"
17395                          || test ! -s conftest.err'
17396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397   (eval $ac_try) 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; } &&
17401          { ac_try='test -s conftest$ac_exeext'
17402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403   (eval $ac_try) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; }; then
17407   ac_cv_lib_dl_dlopen=yes
17408 else
17409   echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_cv_lib_dl_dlopen=no
17413 fi
17414 rm -f conftest.err conftest.$ac_objext \
17415       conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17419 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17420 if test $ac_cv_lib_dl_dlopen = yes; then
17421   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17422 else
17423
17424     lt_cv_dlopen="dyld"
17425     lt_cv_dlopen_libs=
17426     lt_cv_dlopen_self=yes
17427
17428 fi
17429
17430    ;;
17431
17432   *)
17433     echo "$as_me:$LINENO: checking for shl_load" >&5
17434 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17435 if test "${ac_cv_func_shl_load+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17446 #define shl_load innocuous_shl_load
17447
17448 /* System header to define __stub macros and hopefully few prototypes,
17449     which can conflict with char shl_load (); below.
17450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451     <limits.h> exists even on freestanding compilers.  */
17452
17453 #ifdef __STDC__
17454 # include <limits.h>
17455 #else
17456 # include <assert.h>
17457 #endif
17458
17459 #undef shl_load
17460
17461 /* Override any gcc2 internal prototype to avoid an error.  */
17462 #ifdef __cplusplus
17463 extern "C"
17464 {
17465 #endif
17466 /* We use char because int might match the return type of a gcc2
17467    builtin and then its argument prototype would still apply.  */
17468 char shl_load ();
17469 /* The GNU C library defines this for functions which it implements
17470     to always fail with ENOSYS.  Some functions are actually named
17471     something starting with __ and the normal name is an alias.  */
17472 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17473 choke me
17474 #else
17475 char (*f) () = shl_load;
17476 #endif
17477 #ifdef __cplusplus
17478 }
17479 #endif
17480
17481 int
17482 main ()
17483 {
17484 return f != shl_load;
17485   ;
17486   return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17491   (eval $ac_link) 2>conftest.er1
17492   ac_status=$?
17493   grep -v '^ *+' conftest.er1 >conftest.err
17494   rm -f conftest.er1
17495   cat conftest.err >&5
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); } &&
17498          { ac_try='test -z "$ac_cxx_werror_flag"
17499                          || test ! -s conftest.err'
17500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501   (eval $ac_try) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; } &&
17505          { ac_try='test -s conftest$ac_exeext'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; }; then
17511   ac_cv_func_shl_load=yes
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 ac_cv_func_shl_load=no
17517 fi
17518 rm -f conftest.err conftest.$ac_objext \
17519       conftest$ac_exeext conftest.$ac_ext
17520 fi
17521 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17522 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17523 if test $ac_cv_func_shl_load = yes; then
17524   lt_cv_dlopen="shl_load"
17525 else
17526   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17527 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17528 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   ac_check_lib_save_LIBS=$LIBS
17532 LIBS="-ldld  $LIBS"
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539
17540 /* Override any gcc2 internal prototype to avoid an error.  */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 /* We use char because int might match the return type of a gcc2
17545    builtin and then its argument prototype would still apply.  */
17546 char shl_load ();
17547 int
17548 main ()
17549 {
17550 shl_load ();
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557   (eval $ac_link) 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -z "$ac_cxx_werror_flag"
17565                          || test ! -s conftest.err'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; } &&
17571          { ac_try='test -s conftest$ac_exeext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577   ac_cv_lib_dld_shl_load=yes
17578 else
17579   echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_cv_lib_dld_shl_load=no
17583 fi
17584 rm -f conftest.err conftest.$ac_objext \
17585       conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17587 fi
17588 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17589 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17590 if test $ac_cv_lib_dld_shl_load = yes; then
17591   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17592 else
17593   echo "$as_me:$LINENO: checking for dlopen" >&5
17594 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17595 if test "${ac_cv_func_dlopen+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17606 #define dlopen innocuous_dlopen
17607
17608 /* System header to define __stub macros and hopefully few prototypes,
17609     which can conflict with char dlopen (); below.
17610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611     <limits.h> exists even on freestanding compilers.  */
17612
17613 #ifdef __STDC__
17614 # include <limits.h>
17615 #else
17616 # include <assert.h>
17617 #endif
17618
17619 #undef dlopen
17620
17621 /* Override any gcc2 internal prototype to avoid an error.  */
17622 #ifdef __cplusplus
17623 extern "C"
17624 {
17625 #endif
17626 /* We use char because int might match the return type of a gcc2
17627    builtin and then its argument prototype would still apply.  */
17628 char dlopen ();
17629 /* The GNU C library defines this for functions which it implements
17630     to always fail with ENOSYS.  Some functions are actually named
17631     something starting with __ and the normal name is an alias.  */
17632 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17633 choke me
17634 #else
17635 char (*f) () = dlopen;
17636 #endif
17637 #ifdef __cplusplus
17638 }
17639 #endif
17640
17641 int
17642 main ()
17643 {
17644 return f != dlopen;
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651   (eval $ac_link) 2>conftest.er1
17652   ac_status=$?
17653   grep -v '^ *+' conftest.er1 >conftest.err
17654   rm -f conftest.er1
17655   cat conftest.err >&5
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); } &&
17658          { ac_try='test -z "$ac_cxx_werror_flag"
17659                          || test ! -s conftest.err'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; } &&
17665          { ac_try='test -s conftest$ac_exeext'
17666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667   (eval $ac_try) 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; }; then
17671   ac_cv_func_dlopen=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 ac_cv_func_dlopen=no
17677 fi
17678 rm -f conftest.err conftest.$ac_objext \
17679       conftest$ac_exeext conftest.$ac_ext
17680 fi
17681 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17682 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17683 if test $ac_cv_func_dlopen = yes; then
17684   lt_cv_dlopen="dlopen"
17685 else
17686   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17689   echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691   ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-ldl  $LIBS"
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699
17700 /* Override any gcc2 internal prototype to avoid an error.  */
17701 #ifdef __cplusplus
17702 extern "C"
17703 #endif
17704 /* We use char because int might match the return type of a gcc2
17705    builtin and then its argument prototype would still apply.  */
17706 char dlopen ();
17707 int
17708 main ()
17709 {
17710 dlopen ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_cxx_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_cv_lib_dl_dlopen=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_cv_lib_dl_dlopen=no
17743 fi
17744 rm -f conftest.err conftest.$ac_objext \
17745       conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17750 if test $ac_cv_lib_dl_dlopen = yes; then
17751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17752 else
17753   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17754 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17755 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lsvld  $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766
17767 /* Override any gcc2 internal prototype to avoid an error.  */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 /* We use char because int might match the return type of a gcc2
17772    builtin and then its argument prototype would still apply.  */
17773 char dlopen ();
17774 int
17775 main ()
17776 {
17777 dlopen ();
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784   (eval $ac_link) 2>conftest.er1
17785   ac_status=$?
17786   grep -v '^ *+' conftest.er1 >conftest.err
17787   rm -f conftest.er1
17788   cat conftest.err >&5
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); } &&
17791          { ac_try='test -z "$ac_cxx_werror_flag"
17792                          || test ! -s conftest.err'
17793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794   (eval $ac_try) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   ac_cv_lib_svld_dlopen=yes
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_svld_dlopen=no
17810 fi
17811 rm -f conftest.err conftest.$ac_objext \
17812       conftest$ac_exeext conftest.$ac_ext
17813 LIBS=$ac_check_lib_save_LIBS
17814 fi
17815 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17816 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17817 if test $ac_cv_lib_svld_dlopen = yes; then
17818   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17819 else
17820   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17821 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17823   echo $ECHO_N "(cached) $ECHO_C" >&6
17824 else
17825   ac_check_lib_save_LIBS=$LIBS
17826 LIBS="-ldld  $LIBS"
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h.  */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h.  */
17833
17834 /* Override any gcc2 internal prototype to avoid an error.  */
17835 #ifdef __cplusplus
17836 extern "C"
17837 #endif
17838 /* We use char because int might match the return type of a gcc2
17839    builtin and then its argument prototype would still apply.  */
17840 char dld_link ();
17841 int
17842 main ()
17843 {
17844 dld_link ();
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 rm -f conftest.$ac_objext conftest$ac_exeext
17850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17851   (eval $ac_link) 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } &&
17858          { ac_try='test -z "$ac_cxx_werror_flag"
17859                          || test ! -s conftest.err'
17860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861   (eval $ac_try) 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest$ac_exeext'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   ac_cv_lib_dld_dld_link=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 ac_cv_lib_dld_dld_link=no
17877 fi
17878 rm -f conftest.err conftest.$ac_objext \
17879       conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17881 fi
17882 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17883 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17884 if test $ac_cv_lib_dld_dld_link = yes; then
17885   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17886 fi
17887
17888
17889 fi
17890
17891
17892 fi
17893
17894
17895 fi
17896
17897
17898 fi
17899
17900
17901 fi
17902
17903     ;;
17904   esac
17905
17906   if test "x$lt_cv_dlopen" != xno; then
17907     enable_dlopen=yes
17908   else
17909     enable_dlopen=no
17910   fi
17911
17912   case $lt_cv_dlopen in
17913   dlopen)
17914     save_CPPFLAGS="$CPPFLAGS"
17915     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17916
17917     save_LDFLAGS="$LDFLAGS"
17918     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17919
17920     save_LIBS="$LIBS"
17921     LIBS="$lt_cv_dlopen_libs $LIBS"
17922
17923     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928           if test "$cross_compiling" = yes; then :
17929   lt_cv_dlopen_self=cross
17930 else
17931   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932   lt_status=$lt_dlunknown
17933   cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17936
17937 #if HAVE_DLFCN_H
17938 #include <dlfcn.h>
17939 #endif
17940
17941 #include <stdio.h>
17942
17943 #ifdef RTLD_GLOBAL
17944 #  define LT_DLGLOBAL           RTLD_GLOBAL
17945 #else
17946 #  ifdef DL_GLOBAL
17947 #    define LT_DLGLOBAL         DL_GLOBAL
17948 #  else
17949 #    define LT_DLGLOBAL         0
17950 #  endif
17951 #endif
17952
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954    find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17956 #  ifdef RTLD_LAZY
17957 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17958 #  else
17959 #    ifdef DL_LAZY
17960 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17961 #    else
17962 #      ifdef RTLD_NOW
17963 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17964 #      else
17965 #        ifdef DL_NOW
17966 #          define LT_DLLAZY_OR_NOW      DL_NOW
17967 #        else
17968 #          define LT_DLLAZY_OR_NOW      0
17969 #        endif
17970 #      endif
17971 #    endif
17972 #  endif
17973 #endif
17974
17975 #ifdef __cplusplus
17976 extern "C" void exit (int);
17977 #endif
17978
17979 void fnord() { int i=42;}
17980 int main ()
17981 {
17982   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983   int status = $lt_dlunknown;
17984
17985   if (self)
17986     {
17987       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17988       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989       /* dlclose (self); */
17990     }
17991
17992     exit (status);
17993 }
17994 EOF
17995   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000     (./conftest; exit; ) 2>/dev/null
18001     lt_status=$?
18002     case x$lt_status in
18003       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18004       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18005       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18006     esac
18007   else :
18008     # compilation failed
18009     lt_cv_dlopen_self=no
18010   fi
18011 fi
18012 rm -fr conftest*
18013
18014
18015 fi
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18018
18019     if test "x$lt_cv_dlopen_self" = xyes; then
18020       LDFLAGS="$LDFLAGS $link_static_flag"
18021       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18022 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18023 if test "${lt_cv_dlopen_self_static+set}" = set; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026           if test "$cross_compiling" = yes; then :
18027   lt_cv_dlopen_self_static=cross
18028 else
18029   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18030   lt_status=$lt_dlunknown
18031   cat > conftest.$ac_ext <<EOF
18032 #line 18032 "configure"
18033 #include "confdefs.h"
18034
18035 #if HAVE_DLFCN_H
18036 #include <dlfcn.h>
18037 #endif
18038
18039 #include <stdio.h>
18040
18041 #ifdef RTLD_GLOBAL
18042 #  define LT_DLGLOBAL           RTLD_GLOBAL
18043 #else
18044 #  ifdef DL_GLOBAL
18045 #    define LT_DLGLOBAL         DL_GLOBAL
18046 #  else
18047 #    define LT_DLGLOBAL         0
18048 #  endif
18049 #endif
18050
18051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18052    find out it does not work in some platform. */
18053 #ifndef LT_DLLAZY_OR_NOW
18054 #  ifdef RTLD_LAZY
18055 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18056 #  else
18057 #    ifdef DL_LAZY
18058 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18059 #    else
18060 #      ifdef RTLD_NOW
18061 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18062 #      else
18063 #        ifdef DL_NOW
18064 #          define LT_DLLAZY_OR_NOW      DL_NOW
18065 #        else
18066 #          define LT_DLLAZY_OR_NOW      0
18067 #        endif
18068 #      endif
18069 #    endif
18070 #  endif
18071 #endif
18072
18073 #ifdef __cplusplus
18074 extern "C" void exit (int);
18075 #endif
18076
18077 void fnord() { int i=42;}
18078 int main ()
18079 {
18080   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081   int status = $lt_dlunknown;
18082
18083   if (self)
18084     {
18085       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18086       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18087       /* dlclose (self); */
18088     }
18089
18090     exit (status);
18091 }
18092 EOF
18093   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094   (eval $ac_link) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18098     (./conftest; exit; ) 2>/dev/null
18099     lt_status=$?
18100     case x$lt_status in
18101       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18102       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18103       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18104     esac
18105   else :
18106     # compilation failed
18107     lt_cv_dlopen_self_static=no
18108   fi
18109 fi
18110 rm -fr conftest*
18111
18112
18113 fi
18114 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18115 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18116     fi
18117
18118     CPPFLAGS="$save_CPPFLAGS"
18119     LDFLAGS="$save_LDFLAGS"
18120     LIBS="$save_LIBS"
18121     ;;
18122   esac
18123
18124   case $lt_cv_dlopen_self in
18125   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18126   *) enable_dlopen_self=unknown ;;
18127   esac
18128
18129   case $lt_cv_dlopen_self_static in
18130   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18131   *) enable_dlopen_self_static=unknown ;;
18132   esac
18133 fi
18134
18135
18136 # The else clause should only fire when bootstrapping the
18137 # libtool distribution, otherwise you forgot to ship ltmain.sh
18138 # with your package, and you will get complaints that there are
18139 # no rules to generate ltmain.sh.
18140 if test -f "$ltmain"; then
18141   # See if we are running on zsh, and set the options which allow our commands through
18142   # without removal of \ escapes.
18143   if test -n "${ZSH_VERSION+set}" ; then
18144     setopt NO_GLOB_SUBST
18145   fi
18146   # Now quote all the things that may contain metacharacters while being
18147   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18148   # variables and quote the copies for generation of the libtool script.
18149   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18150     SED SHELL STRIP \
18151     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18152     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18153     deplibs_check_method reload_flag reload_cmds need_locks \
18154     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18155     lt_cv_sys_global_symbol_to_c_name_address \
18156     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18157     old_postinstall_cmds old_postuninstall_cmds \
18158     compiler_CXX \
18159     CC_CXX \
18160     LD_CXX \
18161     lt_prog_compiler_wl_CXX \
18162     lt_prog_compiler_pic_CXX \
18163     lt_prog_compiler_static_CXX \
18164     lt_prog_compiler_no_builtin_flag_CXX \
18165     export_dynamic_flag_spec_CXX \
18166     thread_safe_flag_spec_CXX \
18167     whole_archive_flag_spec_CXX \
18168     enable_shared_with_static_runtimes_CXX \
18169     old_archive_cmds_CXX \
18170     old_archive_from_new_cmds_CXX \
18171     predep_objects_CXX \
18172     postdep_objects_CXX \
18173     predeps_CXX \
18174     postdeps_CXX \
18175     compiler_lib_search_path_CXX \
18176     archive_cmds_CXX \
18177     archive_expsym_cmds_CXX \
18178     postinstall_cmds_CXX \
18179     postuninstall_cmds_CXX \
18180     old_archive_from_expsyms_cmds_CXX \
18181     allow_undefined_flag_CXX \
18182     no_undefined_flag_CXX \
18183     export_symbols_cmds_CXX \
18184     hardcode_libdir_flag_spec_CXX \
18185     hardcode_libdir_flag_spec_ld_CXX \
18186     hardcode_libdir_separator_CXX \
18187     hardcode_automatic_CXX \
18188     module_cmds_CXX \
18189     module_expsym_cmds_CXX \
18190     lt_cv_prog_compiler_c_o_CXX \
18191     exclude_expsyms_CXX \
18192     include_expsyms_CXX; do
18193
18194     case $var in
18195     old_archive_cmds_CXX | \
18196     old_archive_from_new_cmds_CXX | \
18197     archive_cmds_CXX | \
18198     archive_expsym_cmds_CXX | \
18199     module_cmds_CXX | \
18200     module_expsym_cmds_CXX | \
18201     old_archive_from_expsyms_cmds_CXX | \
18202     export_symbols_cmds_CXX | \
18203     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18204     postinstall_cmds | postuninstall_cmds | \
18205     old_postinstall_cmds | old_postuninstall_cmds | \
18206     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18207       # Double-quote double-evaled strings.
18208       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18209       ;;
18210     *)
18211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18212       ;;
18213     esac
18214   done
18215
18216   case $lt_echo in
18217   *'\$0 --fallback-echo"')
18218     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18219     ;;
18220   esac
18221
18222 cfgfile="$ofile"
18223
18224   cat <<__EOF__ >> "$cfgfile"
18225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18226
18227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18228
18229 # Shell to use when invoking shell scripts.
18230 SHELL=$lt_SHELL
18231
18232 # Whether or not to build shared libraries.
18233 build_libtool_libs=$enable_shared
18234
18235 # Whether or not to build static libraries.
18236 build_old_libs=$enable_static
18237
18238 # Whether or not to add -lc for building shared libraries.
18239 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18240
18241 # Whether or not to disallow shared libs when runtime libs are static
18242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18243
18244 # Whether or not to optimize for fast installation.
18245 fast_install=$enable_fast_install
18246
18247 # The host system.
18248 host_alias=$host_alias
18249 host=$host
18250
18251 # An echo program that does not interpret backslashes.
18252 echo=$lt_echo
18253
18254 # The archiver.
18255 AR=$lt_AR
18256 AR_FLAGS=$lt_AR_FLAGS
18257
18258 # A C compiler.
18259 LTCC=$lt_LTCC
18260
18261 # A language-specific compiler.
18262 CC=$lt_compiler_CXX
18263
18264 # Is the compiler the GNU C compiler?
18265 with_gcc=$GCC_CXX
18266
18267 # An ERE matcher.
18268 EGREP=$lt_EGREP
18269
18270 # The linker used to build libraries.
18271 LD=$lt_LD_CXX
18272
18273 # Whether we need hard or soft links.
18274 LN_S=$lt_LN_S
18275
18276 # A BSD-compatible nm program.
18277 NM=$lt_NM
18278
18279 # A symbol stripping program
18280 STRIP=$lt_STRIP
18281
18282 # Used to examine libraries when file_magic_cmd begins "file"
18283 MAGIC_CMD=$MAGIC_CMD
18284
18285 # Used on cygwin: DLL creation program.
18286 DLLTOOL="$DLLTOOL"
18287
18288 # Used on cygwin: object dumper.
18289 OBJDUMP="$OBJDUMP"
18290
18291 # Used on cygwin: assembler.
18292 AS="$AS"
18293
18294 # The name of the directory that contains temporary libtool files.
18295 objdir=$objdir
18296
18297 # How to create reloadable object files.
18298 reload_flag=$lt_reload_flag
18299 reload_cmds=$lt_reload_cmds
18300
18301 # How to pass a linker flag through the compiler.
18302 wl=$lt_lt_prog_compiler_wl_CXX
18303
18304 # Object file suffix (normally "o").
18305 objext="$ac_objext"
18306
18307 # Old archive suffix (normally "a").
18308 libext="$libext"
18309
18310 # Shared library suffix (normally ".so").
18311 shrext_cmds='$shrext_cmds'
18312
18313 # Executable file suffix (normally "").
18314 exeext="$exeext"
18315
18316 # Additional compiler flags for building library objects.
18317 pic_flag=$lt_lt_prog_compiler_pic_CXX
18318 pic_mode=$pic_mode
18319
18320 # What is the maximum length of a command?
18321 max_cmd_len=$lt_cv_sys_max_cmd_len
18322
18323 # Does compiler simultaneously support -c and -o options?
18324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18325
18326 # Must we lock files when doing compilation ?
18327 need_locks=$lt_need_locks
18328
18329 # Do we need the lib prefix for modules?
18330 need_lib_prefix=$need_lib_prefix
18331
18332 # Do we need a version for libraries?
18333 need_version=$need_version
18334
18335 # Whether dlopen is supported.
18336 dlopen_support=$enable_dlopen
18337
18338 # Whether dlopen of programs is supported.
18339 dlopen_self=$enable_dlopen_self
18340
18341 # Whether dlopen of statically linked programs is supported.
18342 dlopen_self_static=$enable_dlopen_self_static
18343
18344 # Compiler flag to prevent dynamic linking.
18345 link_static_flag=$lt_lt_prog_compiler_static_CXX
18346
18347 # Compiler flag to turn off builtin functions.
18348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18349
18350 # Compiler flag to allow reflexive dlopens.
18351 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18352
18353 # Compiler flag to generate shared objects directly from archives.
18354 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18355
18356 # Compiler flag to generate thread-safe objects.
18357 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18358
18359 # Library versioning type.
18360 version_type=$version_type
18361
18362 # Format of library name prefix.
18363 libname_spec=$lt_libname_spec
18364
18365 # List of archive names.  First name is the real one, the rest are links.
18366 # The last name is the one that the linker finds with -lNAME.
18367 library_names_spec=$lt_library_names_spec
18368
18369 # The coded name of the library, if different from the real name.
18370 soname_spec=$lt_soname_spec
18371
18372 # Commands used to build and install an old-style archive.
18373 RANLIB=$lt_RANLIB
18374 old_archive_cmds=$lt_old_archive_cmds_CXX
18375 old_postinstall_cmds=$lt_old_postinstall_cmds
18376 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18377
18378 # Create an old-style archive from a shared archive.
18379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18380
18381 # Create a temporary old-style archive to link instead of a shared archive.
18382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18383
18384 # Commands used to build and install a shared archive.
18385 archive_cmds=$lt_archive_cmds_CXX
18386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18387 postinstall_cmds=$lt_postinstall_cmds
18388 postuninstall_cmds=$lt_postuninstall_cmds
18389
18390 # Commands used to build a loadable module (assumed same as above if empty)
18391 module_cmds=$lt_module_cmds_CXX
18392 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18393
18394 # Commands to strip libraries.
18395 old_striplib=$lt_old_striplib
18396 striplib=$lt_striplib
18397
18398 # Dependencies to place before the objects being linked to create a
18399 # shared library.
18400 predep_objects=$lt_predep_objects_CXX
18401
18402 # Dependencies to place after the objects being linked to create a
18403 # shared library.
18404 postdep_objects=$lt_postdep_objects_CXX
18405
18406 # Dependencies to place before the objects being linked to create a
18407 # shared library.
18408 predeps=$lt_predeps_CXX
18409
18410 # Dependencies to place after the objects being linked to create a
18411 # shared library.
18412 postdeps=$lt_postdeps_CXX
18413
18414 # The library search path used internally by the compiler when linking
18415 # a shared library.
18416 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18417
18418 # Method to check whether dependent libraries are shared objects.
18419 deplibs_check_method=$lt_deplibs_check_method
18420
18421 # Command to use when deplibs_check_method == file_magic.
18422 file_magic_cmd=$lt_file_magic_cmd
18423
18424 # Flag that allows shared libraries with undefined symbols to be built.
18425 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18426
18427 # Flag that forces no undefined symbols.
18428 no_undefined_flag=$lt_no_undefined_flag_CXX
18429
18430 # Commands used to finish a libtool library installation in a directory.
18431 finish_cmds=$lt_finish_cmds
18432
18433 # Same as above, but a single script fragment to be evaled but not shown.
18434 finish_eval=$lt_finish_eval
18435
18436 # Take the output of nm and produce a listing of raw symbols and C names.
18437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18438
18439 # Transform the output of nm in a proper C declaration
18440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18441
18442 # Transform the output of nm in a C name address pair
18443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18444
18445 # This is the shared library runtime path variable.
18446 runpath_var=$runpath_var
18447
18448 # This is the shared library path variable.
18449 shlibpath_var=$shlibpath_var
18450
18451 # Is shlibpath searched before the hard-coded library search path?
18452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18453
18454 # How to hardcode a shared library path into an executable.
18455 hardcode_action=$hardcode_action_CXX
18456
18457 # Whether we should hardcode library paths into libraries.
18458 hardcode_into_libs=$hardcode_into_libs
18459
18460 # Flag to hardcode \$libdir into a binary during linking.
18461 # This must work even if \$libdir does not exist.
18462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18463
18464 # If ld is used when linking, flag to hardcode \$libdir into
18465 # a binary during linking. This must work even if \$libdir does
18466 # not exist.
18467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18468
18469 # Whether we need a single -rpath flag with a separated argument.
18470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18471
18472 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18473 # resulting binary.
18474 hardcode_direct=$hardcode_direct_CXX
18475
18476 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18477 # resulting binary.
18478 hardcode_minus_L=$hardcode_minus_L_CXX
18479
18480 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18481 # the resulting binary.
18482 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18483
18484 # Set to yes if building a shared library automatically hardcodes DIR into the library
18485 # and all subsequent libraries and executables linked against it.
18486 hardcode_automatic=$hardcode_automatic_CXX
18487
18488 # Variables whose values should be saved in libtool wrapper scripts and
18489 # restored at relink time.
18490 variables_saved_for_relink="$variables_saved_for_relink"
18491
18492 # Whether libtool must link a program against all its dependency libraries.
18493 link_all_deplibs=$link_all_deplibs_CXX
18494
18495 # Compile-time system search path for libraries
18496 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18497
18498 # Run-time system search path for libraries
18499 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18500
18501 # Fix the shell variable \$srcfile for the compiler.
18502 fix_srcfile_path="$fix_srcfile_path_CXX"
18503
18504 # Set to yes if exported symbols are required.
18505 always_export_symbols=$always_export_symbols_CXX
18506
18507 # The commands to list exported symbols.
18508 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18509
18510 # The commands to extract the exported symbol list from a shared archive.
18511 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18512
18513 # Symbols that should not be listed in the preloaded symbols.
18514 exclude_expsyms=$lt_exclude_expsyms_CXX
18515
18516 # Symbols that must always be exported.
18517 include_expsyms=$lt_include_expsyms_CXX
18518
18519 # ### END LIBTOOL TAG CONFIG: $tagname
18520
18521 __EOF__
18522
18523
18524 else
18525   # If there is no Makefile yet, we rely on a make rule to execute
18526   # `config.status --recheck' to rerun these tests and create the
18527   # libtool script then.
18528   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18529   if test -f "$ltmain_in"; then
18530     test -f Makefile && make "$ltmain"
18531   fi
18532 fi
18533
18534
18535 ac_ext=c
18536 ac_cpp='$CPP $CPPFLAGS'
18537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18540
18541 CC=$lt_save_CC
18542 LDCXX=$LD
18543 LD=$lt_save_LD
18544 GCC=$lt_save_GCC
18545 with_gnu_ldcxx=$with_gnu_ld
18546 with_gnu_ld=$lt_save_with_gnu_ld
18547 lt_cv_path_LDCXX=$lt_cv_path_LD
18548 lt_cv_path_LD=$lt_save_path_LD
18549 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18550 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18551
18552         else
18553           tagname=""
18554         fi
18555         ;;
18556
18557       F77)
18558         if test -n "$F77" && test "X$F77" != "Xno"; then
18559
18560 ac_ext=f
18561 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18562 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18564
18565
18566 archive_cmds_need_lc_F77=no
18567 allow_undefined_flag_F77=
18568 always_export_symbols_F77=no
18569 archive_expsym_cmds_F77=
18570 export_dynamic_flag_spec_F77=
18571 hardcode_direct_F77=no
18572 hardcode_libdir_flag_spec_F77=
18573 hardcode_libdir_flag_spec_ld_F77=
18574 hardcode_libdir_separator_F77=
18575 hardcode_minus_L_F77=no
18576 hardcode_automatic_F77=no
18577 module_cmds_F77=
18578 module_expsym_cmds_F77=
18579 link_all_deplibs_F77=unknown
18580 old_archive_cmds_F77=$old_archive_cmds
18581 no_undefined_flag_F77=
18582 whole_archive_flag_spec_F77=
18583 enable_shared_with_static_runtimes_F77=no
18584
18585 # Source file extension for f77 test sources.
18586 ac_ext=f
18587
18588 # Object file extension for compiled f77 test sources.
18589 objext=o
18590 objext_F77=$objext
18591
18592 # Code to be used in simple compile tests
18593 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18594
18595 # Code to be used in simple link tests
18596 lt_simple_link_test_code="      program t\n      end\n"
18597
18598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18599
18600 # If no C compiler was specified, use CC.
18601 LTCC=${LTCC-"$CC"}
18602
18603 # Allow CC to be a program name with arguments.
18604 compiler=$CC
18605
18606
18607 # Allow CC to be a program name with arguments.
18608 lt_save_CC="$CC"
18609 CC=${F77-"f77"}
18610 compiler=$CC
18611 compiler_F77=$CC
18612 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18613
18614 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18615 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18616 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18617 echo "${ECHO_T}$can_build_shared" >&6
18618
18619 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18620 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18621 test "$can_build_shared" = "no" && enable_shared=no
18622
18623 # On AIX, shared libraries and static libraries use the same namespace, and
18624 # are all built from PIC.
18625 case "$host_os" in
18626 aix3*)
18627   test "$enable_shared" = yes && enable_static=no
18628   if test -n "$RANLIB"; then
18629     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18630     postinstall_cmds='$RANLIB $lib'
18631   fi
18632   ;;
18633 aix4* | aix5*)
18634   test "$enable_shared" = yes && enable_static=no
18635   ;;
18636 esac
18637 echo "$as_me:$LINENO: result: $enable_shared" >&5
18638 echo "${ECHO_T}$enable_shared" >&6
18639
18640 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18641 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18642 # Make sure either enable_shared or enable_static is yes.
18643 test "$enable_shared" = yes || enable_static=yes
18644 echo "$as_me:$LINENO: result: $enable_static" >&5
18645 echo "${ECHO_T}$enable_static" >&6
18646
18647 test "$ld_shlibs_F77" = no && can_build_shared=no
18648
18649 GCC_F77="$G77"
18650 LD_F77="$LD"
18651
18652 lt_prog_compiler_wl_F77=
18653 lt_prog_compiler_pic_F77=
18654 lt_prog_compiler_static_F77=
18655
18656 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18658
18659   if test "$GCC" = yes; then
18660     lt_prog_compiler_wl_F77='-Wl,'
18661     lt_prog_compiler_static_F77='-static'
18662
18663     case $host_os in
18664       aix*)
18665       # All AIX code is PIC.
18666       if test "$host_cpu" = ia64; then
18667         # AIX 5 now supports IA64 processor
18668         lt_prog_compiler_static_F77='-Bstatic'
18669       fi
18670       ;;
18671
18672     amigaos*)
18673       # FIXME: we need at least 68020 code to build shared libraries, but
18674       # adding the `-m68020' flag to GCC prevents building anything better,
18675       # like `-m68040'.
18676       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18677       ;;
18678
18679     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18680       # PIC is the default for these OSes.
18681       ;;
18682
18683     mingw* | pw32* | os2*)
18684       # This hack is so that the source file can tell whether it is being
18685       # built for inclusion in a dll (and should export symbols for example).
18686       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18687       ;;
18688
18689     darwin* | rhapsody*)
18690       # PIC is the default on this platform
18691       # Common symbols not allowed in MH_DYLIB files
18692       lt_prog_compiler_pic_F77='-fno-common'
18693       ;;
18694
18695     msdosdjgpp*)
18696       # Just because we use GCC doesn't mean we suddenly get shared libraries
18697       # on systems that don't support them.
18698       lt_prog_compiler_can_build_shared_F77=no
18699       enable_shared=no
18700       ;;
18701
18702     sysv4*MP*)
18703       if test -d /usr/nec; then
18704         lt_prog_compiler_pic_F77=-Kconform_pic
18705       fi
18706       ;;
18707
18708     hpux*)
18709       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18710       # not for PA HP-UX.
18711       case "$host_cpu" in
18712       hppa*64*|ia64*)
18713         # +Z the default
18714         ;;
18715       *)
18716         lt_prog_compiler_pic_F77='-fPIC'
18717         ;;
18718       esac
18719       ;;
18720
18721     *)
18722       lt_prog_compiler_pic_F77='-fPIC'
18723       ;;
18724     esac
18725   else
18726     # PORTME Check for flag to pass linker flags through the system compiler.
18727     case $host_os in
18728     aix*)
18729       lt_prog_compiler_wl_F77='-Wl,'
18730       if test "$host_cpu" = ia64; then
18731         # AIX 5 now supports IA64 processor
18732         lt_prog_compiler_static_F77='-Bstatic'
18733       else
18734         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18735       fi
18736       ;;
18737       darwin*)
18738         # PIC is the default on this platform
18739         # Common symbols not allowed in MH_DYLIB files
18740        case "$cc_basename" in
18741          xlc*)
18742          lt_prog_compiler_pic_F77='-qnocommon'
18743          lt_prog_compiler_wl_F77='-Wl,'
18744          ;;
18745        esac
18746        ;;
18747
18748     mingw* | pw32* | os2*)
18749       # This hack is so that the source file can tell whether it is being
18750       # built for inclusion in a dll (and should export symbols for example).
18751       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18752       ;;
18753
18754     hpux9* | hpux10* | hpux11*)
18755       lt_prog_compiler_wl_F77='-Wl,'
18756       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18757       # not for PA HP-UX.
18758       case "$host_cpu" in
18759       hppa*64*|ia64*)
18760         # +Z the default
18761         ;;
18762       *)
18763         lt_prog_compiler_pic_F77='+Z'
18764         ;;
18765       esac
18766       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18767       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18768       ;;
18769
18770     irix5* | irix6* | nonstopux*)
18771       lt_prog_compiler_wl_F77='-Wl,'
18772       # PIC (with -KPIC) is the default.
18773       lt_prog_compiler_static_F77='-non_shared'
18774       ;;
18775
18776     newsos6)
18777       lt_prog_compiler_pic_F77='-KPIC'
18778       lt_prog_compiler_static_F77='-Bstatic'
18779       ;;
18780
18781     linux*)
18782       case $CC in
18783       icc* | ecc*)
18784         lt_prog_compiler_wl_F77='-Wl,'
18785         lt_prog_compiler_pic_F77='-KPIC'
18786         lt_prog_compiler_static_F77='-static'
18787         ;;
18788       ccc*)
18789         lt_prog_compiler_wl_F77='-Wl,'
18790         # All Alpha code is PIC.
18791         lt_prog_compiler_static_F77='-non_shared'
18792         ;;
18793       esac
18794       ;;
18795
18796     osf3* | osf4* | osf5*)
18797       lt_prog_compiler_wl_F77='-Wl,'
18798       # All OSF/1 code is PIC.
18799       lt_prog_compiler_static_F77='-non_shared'
18800       ;;
18801
18802     sco3.2v5*)
18803       lt_prog_compiler_pic_F77='-Kpic'
18804       lt_prog_compiler_static_F77='-dn'
18805       ;;
18806
18807     solaris*)
18808       lt_prog_compiler_wl_F77='-Wl,'
18809       lt_prog_compiler_pic_F77='-KPIC'
18810       lt_prog_compiler_static_F77='-Bstatic'
18811       ;;
18812
18813     sunos4*)
18814       lt_prog_compiler_wl_F77='-Qoption ld '
18815       lt_prog_compiler_pic_F77='-PIC'
18816       lt_prog_compiler_static_F77='-Bstatic'
18817       ;;
18818
18819     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18820       lt_prog_compiler_wl_F77='-Wl,'
18821       lt_prog_compiler_pic_F77='-KPIC'
18822       lt_prog_compiler_static_F77='-Bstatic'
18823       ;;
18824
18825     sysv4*MP*)
18826       if test -d /usr/nec ;then
18827         lt_prog_compiler_pic_F77='-Kconform_pic'
18828         lt_prog_compiler_static_F77='-Bstatic'
18829       fi
18830       ;;
18831
18832     uts4*)
18833       lt_prog_compiler_pic_F77='-pic'
18834       lt_prog_compiler_static_F77='-Bstatic'
18835       ;;
18836
18837     *)
18838       lt_prog_compiler_can_build_shared_F77=no
18839       ;;
18840     esac
18841   fi
18842
18843 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18844 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18845
18846 #
18847 # Check to make sure the PIC flag actually works.
18848 #
18849 if test -n "$lt_prog_compiler_pic_F77"; then
18850
18851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18853 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   lt_prog_compiler_pic_works_F77=no
18857   ac_outfile=conftest.$ac_objext
18858    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18859    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18860    # Insert the option either (1) after the last *FLAGS variable, or
18861    # (2) before a word containing "conftest.", or (3) at the end.
18862    # Note that $ac_compile itself does not contain backslashes and begins
18863    # with a dollar sign (not a hyphen), so the echo should work correctly.
18864    # The option is referenced via a variable to avoid confusing sed.
18865    lt_compile=`echo "$ac_compile" | $SED \
18866    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18868    -e 's:$: $lt_compiler_flag:'`
18869    (eval echo "\"\$as_me:18869: $lt_compile\"" >&5)
18870    (eval "$lt_compile" 2>conftest.err)
18871    ac_status=$?
18872    cat conftest.err >&5
18873    echo "$as_me:18873: \$? = $ac_status" >&5
18874    if (exit $ac_status) && test -s "$ac_outfile"; then
18875      # The compiler can only warn and ignore the option if not recognized
18876      # So say no if there are warnings
18877      if test ! -s conftest.err; then
18878        lt_prog_compiler_pic_works_F77=yes
18879      fi
18880    fi
18881    $rm conftest*
18882
18883 fi
18884 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18885 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18886
18887 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18888     case $lt_prog_compiler_pic_F77 in
18889      "" | " "*) ;;
18890      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18891      esac
18892 else
18893     lt_prog_compiler_pic_F77=
18894      lt_prog_compiler_can_build_shared_F77=no
18895 fi
18896
18897 fi
18898 case "$host_os" in
18899   # For platforms which do not support PIC, -DPIC is meaningless:
18900   *djgpp*)
18901     lt_prog_compiler_pic_F77=
18902     ;;
18903   *)
18904     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18905     ;;
18906 esac
18907
18908 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18909 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18910 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   lt_cv_prog_compiler_c_o_F77=no
18914    $rm -r conftest 2>/dev/null
18915    mkdir conftest
18916    cd conftest
18917    mkdir out
18918    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18919
18920    lt_compiler_flag="-o out/conftest2.$ac_objext"
18921    # Insert the option either (1) after the last *FLAGS variable, or
18922    # (2) before a word containing "conftest.", or (3) at the end.
18923    # Note that $ac_compile itself does not contain backslashes and begins
18924    # with a dollar sign (not a hyphen), so the echo should work correctly.
18925    lt_compile=`echo "$ac_compile" | $SED \
18926    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18928    -e 's:$: $lt_compiler_flag:'`
18929    (eval echo "\"\$as_me:18929: $lt_compile\"" >&5)
18930    (eval "$lt_compile" 2>out/conftest.err)
18931    ac_status=$?
18932    cat out/conftest.err >&5
18933    echo "$as_me:18933: \$? = $ac_status" >&5
18934    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18935    then
18936      # The compiler can only warn and ignore the option if not recognized
18937      # So say no if there are warnings
18938      if test ! -s out/conftest.err; then
18939        lt_cv_prog_compiler_c_o_F77=yes
18940      fi
18941    fi
18942    chmod u+w .
18943    $rm conftest*
18944    # SGI C++ compiler will create directory out/ii_files/ for
18945    # template instantiation
18946    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18947    $rm out/* && rmdir out
18948    cd ..
18949    rmdir conftest
18950    $rm conftest*
18951
18952 fi
18953 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18955
18956
18957 hard_links="nottested"
18958 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18959   # do not overwrite the value of need_locks provided by the user
18960   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18962   hard_links=yes
18963   $rm conftest*
18964   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18965   touch conftest.a
18966   ln conftest.a conftest.b 2>&5 || hard_links=no
18967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18968   echo "$as_me:$LINENO: result: $hard_links" >&5
18969 echo "${ECHO_T}$hard_links" >&6
18970   if test "$hard_links" = no; then
18971     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18973     need_locks=warn
18974   fi
18975 else
18976   need_locks=no
18977 fi
18978
18979 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18980 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18981
18982   runpath_var=
18983   allow_undefined_flag_F77=
18984   enable_shared_with_static_runtimes_F77=no
18985   archive_cmds_F77=
18986   archive_expsym_cmds_F77=
18987   old_archive_From_new_cmds_F77=
18988   old_archive_from_expsyms_cmds_F77=
18989   export_dynamic_flag_spec_F77=
18990   whole_archive_flag_spec_F77=
18991   thread_safe_flag_spec_F77=
18992   hardcode_libdir_flag_spec_F77=
18993   hardcode_libdir_flag_spec_ld_F77=
18994   hardcode_libdir_separator_F77=
18995   hardcode_direct_F77=no
18996   hardcode_minus_L_F77=no
18997   hardcode_shlibpath_var_F77=unsupported
18998   link_all_deplibs_F77=unknown
18999   hardcode_automatic_F77=no
19000   module_cmds_F77=
19001   module_expsym_cmds_F77=
19002   always_export_symbols_F77=no
19003   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19004   # include_expsyms should be a list of space-separated symbols to be *always*
19005   # included in the symbol list
19006   include_expsyms_F77=
19007   # exclude_expsyms can be an extended regexp of symbols to exclude
19008   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19009   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19010   # as well as any symbol that contains `d'.
19011   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19012   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19013   # platforms (ab)use it in PIC code, but their linkers get confused if
19014   # the symbol is explicitly referenced.  Since portable code cannot
19015   # rely on this symbol name, it's probably fine to never include it in
19016   # preloaded symbol tables.
19017   extract_expsyms_cmds=
19018
19019   case $host_os in
19020   cygwin* | mingw* | pw32*)
19021     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19022     # When not using gcc, we currently assume that we are using
19023     # Microsoft Visual C++.
19024     if test "$GCC" != yes; then
19025       with_gnu_ld=no
19026     fi
19027     ;;
19028   openbsd*)
19029     with_gnu_ld=no
19030     ;;
19031   esac
19032
19033   ld_shlibs_F77=yes
19034   if test "$with_gnu_ld" = yes; then
19035     # If archive_cmds runs LD, not CC, wlarc should be empty
19036     wlarc='${wl}'
19037
19038     # See if GNU ld supports shared libraries.
19039     case $host_os in
19040     aix3* | aix4* | aix5*)
19041       # On AIX/PPC, the GNU linker is very broken
19042       if test "$host_cpu" != ia64; then
19043         ld_shlibs_F77=no
19044         cat <<EOF 1>&2
19045
19046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19047 *** to be unable to reliably create shared libraries on AIX.
19048 *** Therefore, libtool is disabling shared libraries support.  If you
19049 *** really care for shared libraries, you may want to modify your PATH
19050 *** so that a non-GNU linker is found, and then restart.
19051
19052 EOF
19053       fi
19054       ;;
19055
19056     amigaos*)
19057       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)'
19058       hardcode_libdir_flag_spec_F77='-L$libdir'
19059       hardcode_minus_L_F77=yes
19060
19061       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19062       # that the semantics of dynamic libraries on AmigaOS, at least up
19063       # to version 4, is to share data among multiple programs linked
19064       # with the same dynamic library.  Since this doesn't match the
19065       # behavior of shared libraries on other platforms, we can't use
19066       # them.
19067       ld_shlibs_F77=no
19068       ;;
19069
19070     beos*)
19071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19072         allow_undefined_flag_F77=unsupported
19073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19074         # support --undefined.  This deserves some investigation.  FIXME
19075         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19076       else
19077         ld_shlibs_F77=no
19078       fi
19079       ;;
19080
19081     cygwin* | mingw* | pw32*)
19082       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19083       # as there is no search path for DLLs.
19084       hardcode_libdir_flag_spec_F77='-L$libdir'
19085       allow_undefined_flag_F77=unsupported
19086       always_export_symbols_F77=no
19087       enable_shared_with_static_runtimes_F77=yes
19088       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19089
19090       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19091         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19092         # If the export-symbols file already is a .def file (1st line
19093         # is EXPORTS), use it as is; otherwise, prepend...
19094         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19095           cp $export_symbols $output_objdir/$soname.def;
19096         else
19097           echo EXPORTS > $output_objdir/$soname.def;
19098           cat $export_symbols >> $output_objdir/$soname.def;
19099         fi~
19100         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19101       else
19102         ld_shlibs=no
19103       fi
19104       ;;
19105
19106     netbsd*)
19107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19108         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19109         wlarc=
19110       else
19111         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19112         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19113       fi
19114       ;;
19115
19116     solaris* | sysv5*)
19117       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19118         ld_shlibs_F77=no
19119         cat <<EOF 1>&2
19120
19121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19122 *** create shared libraries on Solaris systems.  Therefore, libtool
19123 *** is disabling shared libraries support.  We urge you to upgrade GNU
19124 *** binutils to release 2.9.1 or newer.  Another option is to modify
19125 *** your PATH or compiler configuration so that the native linker is
19126 *** used, and then restart.
19127
19128 EOF
19129       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19130         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19132       else
19133         ld_shlibs_F77=no
19134       fi
19135       ;;
19136
19137     sunos4*)
19138       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19139       wlarc=
19140       hardcode_direct_F77=yes
19141       hardcode_shlibpath_var_F77=no
19142       ;;
19143
19144   linux*)
19145     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19146         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147         archive_cmds_F77="$tmp_archive_cmds"
19148       supports_anon_versioning=no
19149       case `$LD -v 2>/dev/null` in
19150         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19151         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19152         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19153         *\ 2.11.*) ;; # other 2.11 versions
19154         *) supports_anon_versioning=yes ;;
19155       esac
19156       if test $supports_anon_versioning = yes; then
19157         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19159 $echo "local: *; };" >> $output_objdir/$libname.ver~
19160         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19161       else
19162         archive_expsym_cmds_F77="$tmp_archive_cmds"
19163       fi
19164     else
19165       ld_shlibs_F77=no
19166     fi
19167     ;;
19168
19169     *)
19170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19171         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19173       else
19174         ld_shlibs_F77=no
19175       fi
19176       ;;
19177     esac
19178
19179     if test "$ld_shlibs_F77" = yes; then
19180       runpath_var=LD_RUN_PATH
19181       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19182       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19183       # ancient GNU ld didn't support --whole-archive et. al.
19184       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19185         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19186       else
19187         whole_archive_flag_spec_F77=
19188       fi
19189     fi
19190   else
19191     # PORTME fill in a description of your system's linker (not GNU ld)
19192     case $host_os in
19193     aix3*)
19194       allow_undefined_flag_F77=unsupported
19195       always_export_symbols_F77=yes
19196       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'
19197       # Note: this linker hardcodes the directories in LIBPATH if there
19198       # are no directories specified by -L.
19199       hardcode_minus_L_F77=yes
19200       if test "$GCC" = yes && test -z "$link_static_flag"; then
19201         # Neither direct hardcoding nor static linking is supported with a
19202         # broken collect2.
19203         hardcode_direct_F77=unsupported
19204       fi
19205       ;;
19206
19207     aix4* | aix5*)
19208       if test "$host_cpu" = ia64; then
19209         # On IA64, the linker does run time linking by default, so we don't
19210         # have to do anything special.
19211         aix_use_runtimelinking=no
19212         exp_sym_flag='-Bexport'
19213         no_entry_flag=""
19214       else
19215         # If we're using GNU nm, then we don't want the "-C" option.
19216         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19217         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19218           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'
19219         else
19220           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'
19221         fi
19222         aix_use_runtimelinking=no
19223
19224         # Test if we are trying to use run time linking or normal
19225         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226         # need to do runtime linking.
19227         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19228           for ld_flag in $LDFLAGS; do
19229           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19230             aix_use_runtimelinking=yes
19231             break
19232           fi
19233           done
19234         esac
19235
19236         exp_sym_flag='-bexport'
19237         no_entry_flag='-bnoentry'
19238       fi
19239
19240       # When large executables or shared objects are built, AIX ld can
19241       # have problems creating the table of contents.  If linking a library
19242       # or program results in "error TOC overflow" add -mminimal-toc to
19243       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19244       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19245
19246       archive_cmds_F77=''
19247       hardcode_direct_F77=yes
19248       hardcode_libdir_separator_F77=':'
19249       link_all_deplibs_F77=yes
19250
19251       if test "$GCC" = yes; then
19252         case $host_os in aix4.012|aix4.012.*)
19253         # We only want to do this on AIX 4.2 and lower, the check
19254         # below for broken collect2 doesn't work under 4.3+
19255           collect2name=`${CC} -print-prog-name=collect2`
19256           if test -f "$collect2name" && \
19257            strings "$collect2name" | grep resolve_lib_name >/dev/null
19258           then
19259           # We have reworked collect2
19260           hardcode_direct_F77=yes
19261           else
19262           # We have old collect2
19263           hardcode_direct_F77=unsupported
19264           # It fails to find uninstalled libraries when the uninstalled
19265           # path is not listed in the libpath.  Setting hardcode_minus_L
19266           # to unsupported forces relinking
19267           hardcode_minus_L_F77=yes
19268           hardcode_libdir_flag_spec_F77='-L$libdir'
19269           hardcode_libdir_separator_F77=
19270           fi
19271         esac
19272         shared_flag='-shared'
19273       else
19274         # not using gcc
19275         if test "$host_cpu" = ia64; then
19276         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19277         # chokes on -Wl,-G. The following line is correct:
19278           shared_flag='-G'
19279         else
19280         if test "$aix_use_runtimelinking" = yes; then
19281             shared_flag='${wl}-G'
19282           else
19283             shared_flag='${wl}-bM:SRE'
19284         fi
19285         fi
19286       fi
19287
19288       # It seems that -bexpall does not export symbols beginning with
19289       # underscore (_), so it is better to generate a list of symbols to export.
19290       always_export_symbols_F77=yes
19291       if test "$aix_use_runtimelinking" = yes; then
19292         # Warning - without using the other runtime loading flags (-brtl),
19293         # -berok will link without error, but may produce a broken library.
19294         allow_undefined_flag_F77='-berok'
19295        # Determine the default libpath from the value encoded in an empty executable.
19296        cat >conftest.$ac_ext <<_ACEOF
19297       program main
19298
19299       end
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303   (eval $ac_link) 2>conftest.er1
19304   ac_status=$?
19305   grep -v '^ *+' conftest.er1 >conftest.err
19306   rm -f conftest.er1
19307   cat conftest.err >&5
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -z "$ac_f77_werror_flag"
19311                          || test ! -s conftest.err'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; } &&
19317          { ac_try='test -s conftest$ac_exeext'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323
19324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19325 }'`
19326 # Check for a 64-bit object if we didn't find anything.
19327 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; }
19328 }'`; fi
19329 else
19330   echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333 fi
19334 rm -f conftest.err conftest.$ac_objext \
19335       conftest$ac_exeext conftest.$ac_ext
19336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19337
19338        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19339         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"
19340        else
19341         if test "$host_cpu" = ia64; then
19342           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19343           allow_undefined_flag_F77="-z nodefs"
19344           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"
19345         else
19346          # Determine the default libpath from the value encoded in an empty executable.
19347          cat >conftest.$ac_ext <<_ACEOF
19348       program main
19349
19350       end
19351 _ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19354   (eval $ac_link) 2>conftest.er1
19355   ac_status=$?
19356   grep -v '^ *+' conftest.er1 >conftest.err
19357   rm -f conftest.er1
19358   cat conftest.err >&5
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } &&
19361          { ac_try='test -z "$ac_f77_werror_flag"
19362                          || test ! -s conftest.err'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; } &&
19368          { ac_try='test -s conftest$ac_exeext'
19369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370   (eval $ac_try) 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; }; then
19374
19375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19376 }'`
19377 # Check for a 64-bit object if we didn't find anything.
19378 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; }
19379 }'`; fi
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 fi
19385 rm -f conftest.err conftest.$ac_objext \
19386       conftest$ac_exeext conftest.$ac_ext
19387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19388
19389          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19390           # Warning - without using the other run time loading flags,
19391           # -berok will link without error, but may produce a broken library.
19392           no_undefined_flag_F77=' ${wl}-bernotok'
19393           allow_undefined_flag_F77=' ${wl}-berok'
19394           # -bexpall does not export symbols beginning with underscore (_)
19395           always_export_symbols_F77=yes
19396           # Exported symbols can be pulled into shared objects from archives
19397           whole_archive_flag_spec_F77=' '
19398           archive_cmds_need_lc_F77=yes
19399           # This is similar to how AIX traditionally builds it's shared libraries.
19400           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'
19401         fi
19402       fi
19403       ;;
19404
19405     amigaos*)
19406       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)'
19407       hardcode_libdir_flag_spec_F77='-L$libdir'
19408       hardcode_minus_L_F77=yes
19409       # see comment about different semantics on the GNU ld section
19410       ld_shlibs_F77=no
19411       ;;
19412
19413     bsdi[45]*)
19414       export_dynamic_flag_spec_F77=-rdynamic
19415       ;;
19416
19417     cygwin* | mingw* | pw32*)
19418       # When not using gcc, we currently assume that we are using
19419       # Microsoft Visual C++.
19420       # hardcode_libdir_flag_spec is actually meaningless, as there is
19421       # no search path for DLLs.
19422       hardcode_libdir_flag_spec_F77=' '
19423       allow_undefined_flag_F77=unsupported
19424       # Tell ltmain to make .lib files, not .a files.
19425       libext=lib
19426       # Tell ltmain to make .dll files, not .so files.
19427       shrext_cmds=".dll"
19428       # FIXME: Setting linknames here is a bad hack.
19429       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19430       # The linker will automatically build a .lib file if we build a DLL.
19431       old_archive_From_new_cmds_F77='true'
19432       # FIXME: Should let the user specify the lib program.
19433       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19434       fix_srcfile_path='`cygpath -w "$srcfile"`'
19435       enable_shared_with_static_runtimes_F77=yes
19436       ;;
19437
19438     darwin* | rhapsody*)
19439       case "$host_os" in
19440         rhapsody* | darwin1.[012])
19441          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19442          ;;
19443        *) # Darwin 1.3 on
19444          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19445            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19446          else
19447            case ${MACOSX_DEPLOYMENT_TARGET} in
19448              10.[012])
19449                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19450                ;;
19451              10.*)
19452                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19453                ;;
19454            esac
19455          fi
19456          ;;
19457       esac
19458       archive_cmds_need_lc_F77=no
19459       hardcode_direct_F77=no
19460       hardcode_automatic_F77=yes
19461       hardcode_shlibpath_var_F77=unsupported
19462       whole_archive_flag_spec_F77=''
19463       link_all_deplibs_F77=yes
19464     if test "$GCC" = yes ; then
19465         output_verbose_link_cmd='echo'
19466         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19467       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19468       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19469       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}'
19470       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}'
19471     else
19472       case "$cc_basename" in
19473         xlc*)
19474          output_verbose_link_cmd='echo'
19475          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19476          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19477           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19478          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}'
19479           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}'
19480           ;;
19481        *)
19482          ld_shlibs_F77=no
19483           ;;
19484       esac
19485     fi
19486       ;;
19487
19488     dgux*)
19489       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19490       hardcode_libdir_flag_spec_F77='-L$libdir'
19491       hardcode_shlibpath_var_F77=no
19492       ;;
19493
19494     freebsd1*)
19495       ld_shlibs_F77=no
19496       ;;
19497
19498     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19499     # support.  Future versions do this automatically, but an explicit c++rt0.o
19500     # does not break anything, and helps significantly (at the cost of a little
19501     # extra space).
19502     freebsd2.2*)
19503       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19504       hardcode_libdir_flag_spec_F77='-R$libdir'
19505       hardcode_direct_F77=yes
19506       hardcode_shlibpath_var_F77=no
19507       ;;
19508
19509     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19510     freebsd2*)
19511       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19512       hardcode_direct_F77=yes
19513       hardcode_minus_L_F77=yes
19514       hardcode_shlibpath_var_F77=no
19515       ;;
19516
19517     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19518     freebsd* | kfreebsd*-gnu)
19519       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19520       hardcode_libdir_flag_spec_F77='-R$libdir'
19521       hardcode_direct_F77=yes
19522       hardcode_shlibpath_var_F77=no
19523       ;;
19524
19525     hpux9*)
19526       if test "$GCC" = yes; then
19527         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'
19528       else
19529         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'
19530       fi
19531       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19532       hardcode_libdir_separator_F77=:
19533       hardcode_direct_F77=yes
19534
19535       # hardcode_minus_L: Not really in the search PATH,
19536       # but as the default location of the library.
19537       hardcode_minus_L_F77=yes
19538       export_dynamic_flag_spec_F77='${wl}-E'
19539       ;;
19540
19541     hpux10* | hpux11*)
19542       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19543         case "$host_cpu" in
19544         hppa*64*|ia64*)
19545           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19546           ;;
19547         *)
19548           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19549           ;;
19550         esac
19551       else
19552         case "$host_cpu" in
19553         hppa*64*|ia64*)
19554           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19555           ;;
19556         *)
19557           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19558           ;;
19559         esac
19560       fi
19561       if test "$with_gnu_ld" = no; then
19562         case "$host_cpu" in
19563         hppa*64*)
19564           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19565           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19566           hardcode_libdir_separator_F77=:
19567           hardcode_direct_F77=no
19568           hardcode_shlibpath_var_F77=no
19569           ;;
19570         ia64*)
19571           hardcode_libdir_flag_spec_F77='-L$libdir'
19572           hardcode_direct_F77=no
19573           hardcode_shlibpath_var_F77=no
19574
19575           # hardcode_minus_L: Not really in the search PATH,
19576           # but as the default location of the library.
19577           hardcode_minus_L_F77=yes
19578           ;;
19579         *)
19580           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19581           hardcode_libdir_separator_F77=:
19582           hardcode_direct_F77=yes
19583           export_dynamic_flag_spec_F77='${wl}-E'
19584
19585           # hardcode_minus_L: Not really in the search PATH,
19586           # but as the default location of the library.
19587           hardcode_minus_L_F77=yes
19588           ;;
19589         esac
19590       fi
19591       ;;
19592
19593     irix5* | irix6* | nonstopux*)
19594       if test "$GCC" = yes; then
19595         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'
19596       else
19597         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'
19598         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19599       fi
19600       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19601       hardcode_libdir_separator_F77=:
19602       link_all_deplibs_F77=yes
19603       ;;
19604
19605     netbsd*)
19606       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19607         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19608       else
19609         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19610       fi
19611       hardcode_libdir_flag_spec_F77='-R$libdir'
19612       hardcode_direct_F77=yes
19613       hardcode_shlibpath_var_F77=no
19614       ;;
19615
19616     newsos6)
19617       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19618       hardcode_direct_F77=yes
19619       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620       hardcode_libdir_separator_F77=:
19621       hardcode_shlibpath_var_F77=no
19622       ;;
19623
19624     openbsd*)
19625       hardcode_direct_F77=yes
19626       hardcode_shlibpath_var_F77=no
19627       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19628         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19629         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19630         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19631         export_dynamic_flag_spec_F77='${wl}-E'
19632       else
19633        case $host_os in
19634          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19635            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19636            hardcode_libdir_flag_spec_F77='-R$libdir'
19637            ;;
19638          *)
19639            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19640            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19641            ;;
19642        esac
19643       fi
19644       ;;
19645
19646     os2*)
19647       hardcode_libdir_flag_spec_F77='-L$libdir'
19648       hardcode_minus_L_F77=yes
19649       allow_undefined_flag_F77=unsupported
19650       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'
19651       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19652       ;;
19653
19654     osf3*)
19655       if test "$GCC" = yes; then
19656         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657         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'
19658       else
19659         allow_undefined_flag_F77=' -expect_unresolved \*'
19660         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'
19661       fi
19662       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663       hardcode_libdir_separator_F77=:
19664       ;;
19665
19666     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19667       if test "$GCC" = yes; then
19668         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19669         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'
19670         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19671       else
19672         allow_undefined_flag_F77=' -expect_unresolved \*'
19673         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'
19674         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~
19675         $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'
19676
19677         # Both c and cxx compiler support -rpath directly
19678         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19679       fi
19680       hardcode_libdir_separator_F77=:
19681       ;;
19682
19683     sco3.2v5*)
19684       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685       hardcode_shlibpath_var_F77=no
19686       export_dynamic_flag_spec_F77='${wl}-Bexport'
19687       runpath_var=LD_RUN_PATH
19688       hardcode_runpath_var=yes
19689       ;;
19690
19691     solaris*)
19692       no_undefined_flag_F77=' -z text'
19693       if test "$GCC" = yes; then
19694         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19695         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19696           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19697       else
19698         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19699         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19701       fi
19702       hardcode_libdir_flag_spec_F77='-R$libdir'
19703       hardcode_shlibpath_var_F77=no
19704       case $host_os in
19705       solaris2.[0-5] | solaris2.[0-5].*) ;;
19706       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19707         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19708       esac
19709       link_all_deplibs_F77=yes
19710       ;;
19711
19712     sunos4*)
19713       if test "x$host_vendor" = xsequent; then
19714         # Use $CC to link under sequent, because it throws in some extra .o
19715         # files that make .init and .fini sections work.
19716         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19717       else
19718         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19719       fi
19720       hardcode_libdir_flag_spec_F77='-L$libdir'
19721       hardcode_direct_F77=yes
19722       hardcode_minus_L_F77=yes
19723       hardcode_shlibpath_var_F77=no
19724       ;;
19725
19726     sysv4)
19727       case $host_vendor in
19728         sni)
19729           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730           hardcode_direct_F77=yes # is this really true???
19731         ;;
19732         siemens)
19733           ## LD is ld it makes a PLAMLIB
19734           ## CC just makes a GrossModule.
19735           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19736           reload_cmds_F77='$CC -r -o $output$reload_objs'
19737           hardcode_direct_F77=no
19738         ;;
19739         motorola)
19740           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19742         ;;
19743       esac
19744       runpath_var='LD_RUN_PATH'
19745       hardcode_shlibpath_var_F77=no
19746       ;;
19747
19748     sysv4.3*)
19749       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19750       hardcode_shlibpath_var_F77=no
19751       export_dynamic_flag_spec_F77='-Bexport'
19752       ;;
19753
19754     sysv4*MP*)
19755       if test -d /usr/nec; then
19756         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757         hardcode_shlibpath_var_F77=no
19758         runpath_var=LD_RUN_PATH
19759         hardcode_runpath_var=yes
19760         ld_shlibs_F77=yes
19761       fi
19762       ;;
19763
19764     sysv4.2uw2*)
19765       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19766       hardcode_direct_F77=yes
19767       hardcode_minus_L_F77=no
19768       hardcode_shlibpath_var_F77=no
19769       hardcode_runpath_var=yes
19770       runpath_var=LD_RUN_PATH
19771       ;;
19772
19773    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19774       no_undefined_flag_F77='${wl}-z ${wl}text'
19775       if test "$GCC" = yes; then
19776         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19777       else
19778         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19779       fi
19780       runpath_var='LD_RUN_PATH'
19781       hardcode_shlibpath_var_F77=no
19782       ;;
19783
19784     sysv5*)
19785       no_undefined_flag_F77=' -z text'
19786       # $CC -shared without GNU ld will not create a library from C++
19787       # object files and a static libstdc++, better avoid it by now
19788       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19790                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19791       hardcode_libdir_flag_spec_F77=
19792       hardcode_shlibpath_var_F77=no
19793       runpath_var='LD_RUN_PATH'
19794       ;;
19795
19796     uts4*)
19797       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19798       hardcode_libdir_flag_spec_F77='-L$libdir'
19799       hardcode_shlibpath_var_F77=no
19800       ;;
19801
19802     *)
19803       ld_shlibs_F77=no
19804       ;;
19805     esac
19806   fi
19807
19808 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19809 echo "${ECHO_T}$ld_shlibs_F77" >&6
19810 test "$ld_shlibs_F77" = no && can_build_shared=no
19811
19812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19813 if test "$GCC" = yes; then
19814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19815 fi
19816
19817 #
19818 # Do we need to explicitly link libc?
19819 #
19820 case "x$archive_cmds_need_lc_F77" in
19821 x|xyes)
19822   # Assume -lc should be added
19823   archive_cmds_need_lc_F77=yes
19824
19825   if test "$enable_shared" = yes && test "$GCC" = yes; then
19826     case $archive_cmds_F77 in
19827     *'~'*)
19828       # FIXME: we may have to deal with multi-command sequences.
19829       ;;
19830     '$CC '*)
19831       # Test whether the compiler implicitly links with -lc since on some
19832       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19833       # to ld, don't add -lc before -lgcc.
19834       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19836       $rm conftest*
19837       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19838
19839       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840   (eval $ac_compile) 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); } 2>conftest.err; then
19844         soname=conftest
19845         lib=conftest
19846         libobjs=conftest.$ac_objext
19847         deplibs=
19848         wl=$lt_prog_compiler_wl_F77
19849         compiler_flags=-v
19850         linker_flags=-v
19851         verstring=
19852         output_objdir=.
19853         libname=conftest
19854         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19855         allow_undefined_flag_F77=
19856         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19857   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }
19861         then
19862           archive_cmds_need_lc_F77=no
19863         else
19864           archive_cmds_need_lc_F77=yes
19865         fi
19866         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19867       else
19868         cat conftest.err 1>&5
19869       fi
19870       $rm conftest*
19871       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19872 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19873       ;;
19874     esac
19875   fi
19876   ;;
19877 esac
19878
19879 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19880 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19881 library_names_spec=
19882 libname_spec='lib$name'
19883 soname_spec=
19884 shrext_cmds=".so"
19885 postinstall_cmds=
19886 postuninstall_cmds=
19887 finish_cmds=
19888 finish_eval=
19889 shlibpath_var=
19890 shlibpath_overrides_runpath=unknown
19891 version_type=none
19892 dynamic_linker="$host_os ld.so"
19893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19894 if test "$GCC" = yes; then
19895   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19896   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19897     # if the path contains ";" then we assume it to be the separator
19898     # otherwise default to the standard path separator (i.e. ":") - it is
19899     # assumed that no part of a normal pathname contains ";" but that should
19900     # okay in the real world where ";" in dirpaths is itself problematic.
19901     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19902   else
19903     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19904   fi
19905 else
19906   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19907 fi
19908 need_lib_prefix=unknown
19909 hardcode_into_libs=no
19910
19911 # when you set need_version to no, make sure it does not cause -set_version
19912 # flags to be left without arguments
19913 need_version=unknown
19914
19915 case $host_os in
19916 aix3*)
19917   version_type=linux
19918   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19919   shlibpath_var=LIBPATH
19920
19921   # AIX 3 has no versioning support, so we append a major version to the name.
19922   soname_spec='${libname}${release}${shared_ext}$major'
19923   ;;
19924
19925 aix4* | aix5*)
19926   version_type=linux
19927   need_lib_prefix=no
19928   need_version=no
19929   hardcode_into_libs=yes
19930   if test "$host_cpu" = ia64; then
19931     # AIX 5 supports IA64
19932     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19933     shlibpath_var=LD_LIBRARY_PATH
19934   else
19935     # With GCC up to 2.95.x, collect2 would create an import file
19936     # for dependence libraries.  The import file would start with
19937     # the line `#! .'.  This would cause the generated library to
19938     # depend on `.', always an invalid library.  This was fixed in
19939     # development snapshots of GCC prior to 3.0.
19940     case $host_os in
19941       aix4 | aix4.[01] | aix4.[01].*)
19942       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19943            echo ' yes '
19944            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19945         :
19946       else
19947         can_build_shared=no
19948       fi
19949       ;;
19950     esac
19951     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19952     # soname into executable. Probably we can add versioning support to
19953     # collect2, so additional links can be useful in future.
19954     if test "$aix_use_runtimelinking" = yes; then
19955       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19956       # instead of lib<name>.a to let people know that these are not
19957       # typical AIX shared libraries.
19958       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19959     else
19960       # We preserve .a as extension for shared libraries through AIX4.2
19961       # and later when we are not doing run time linking.
19962       library_names_spec='${libname}${release}.a $libname.a'
19963       soname_spec='${libname}${release}${shared_ext}$major'
19964     fi
19965     shlibpath_var=LIBPATH
19966   fi
19967   ;;
19968
19969 amigaos*)
19970   library_names_spec='$libname.ixlibrary $libname.a'
19971   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19972   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'
19973   ;;
19974
19975 beos*)
19976   library_names_spec='${libname}${shared_ext}'
19977   dynamic_linker="$host_os ld.so"
19978   shlibpath_var=LIBRARY_PATH
19979   ;;
19980
19981 bsdi[45]*)
19982   version_type=linux
19983   need_version=no
19984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985   soname_spec='${libname}${release}${shared_ext}$major'
19986   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19987   shlibpath_var=LD_LIBRARY_PATH
19988   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19989   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19990   # the default ld.so.conf also contains /usr/contrib/lib and
19991   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19992   # libtool to hard-code these into programs
19993   ;;
19994
19995 cygwin* | mingw* | pw32*)
19996   version_type=windows
19997   shrext_cmds=".dll"
19998   need_version=no
19999   need_lib_prefix=no
20000
20001   case $GCC,$host_os in
20002   yes,cygwin* | yes,mingw* | yes,pw32*)
20003     library_names_spec='$libname.dll.a'
20004     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20005     postinstall_cmds='base_file=`basename \${file}`~
20006       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20007       dldir=$destdir/`dirname \$dlpath`~
20008       test -d \$dldir || mkdir -p \$dldir~
20009       $install_prog $dir/$dlname \$dldir/$dlname'
20010     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20011       dlpath=$dir/\$dldll~
20012        $rm \$dlpath'
20013     shlibpath_overrides_runpath=yes
20014
20015     case $host_os in
20016     cygwin*)
20017       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20018       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20019       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20020       ;;
20021     mingw*)
20022       # MinGW DLLs use traditional 'lib' prefix
20023       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20024       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20025       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20026         # It is most probably a Windows format PATH printed by
20027         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20028         # path with ; separators, and with drive letters. We can handle the
20029         # drive letters (cygwin fileutils understands them), so leave them,
20030         # especially as we might pass files found there to a mingw objdump,
20031         # which wouldn't understand a cygwinified path. Ahh.
20032         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20033       else
20034         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20035       fi
20036       ;;
20037     pw32*)
20038       # pw32 DLLs use 'pw' prefix rather than 'lib'
20039       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20040       ;;
20041     esac
20042     ;;
20043
20044   *)
20045     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20046     ;;
20047   esac
20048   dynamic_linker='Win32 ld.exe'
20049   # FIXME: first we should search . and the directory the executable is in
20050   shlibpath_var=PATH
20051   ;;
20052
20053 darwin* | rhapsody*)
20054   dynamic_linker="$host_os dyld"
20055   version_type=darwin
20056   need_lib_prefix=no
20057   need_version=no
20058   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20059   soname_spec='${libname}${release}${major}$shared_ext'
20060   shlibpath_overrides_runpath=yes
20061   shlibpath_var=DYLD_LIBRARY_PATH
20062   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20063   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20064   if test "$GCC" = yes; then
20065     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"`
20066   else
20067     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20068   fi
20069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20070   ;;
20071
20072 dgux*)
20073   version_type=linux
20074   need_lib_prefix=no
20075   need_version=no
20076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20077   soname_spec='${libname}${release}${shared_ext}$major'
20078   shlibpath_var=LD_LIBRARY_PATH
20079   ;;
20080
20081 freebsd1*)
20082   dynamic_linker=no
20083   ;;
20084
20085 kfreebsd*-gnu)
20086   version_type=linux
20087   need_lib_prefix=no
20088   need_version=no
20089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090   soname_spec='${libname}${release}${shared_ext}$major'
20091   shlibpath_var=LD_LIBRARY_PATH
20092   shlibpath_overrides_runpath=no
20093   hardcode_into_libs=yes
20094   dynamic_linker='GNU ld.so'
20095   ;;
20096
20097 freebsd*)
20098   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20099   version_type=freebsd-$objformat
20100   case $version_type in
20101     freebsd-elf*)
20102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20103       need_version=no
20104       need_lib_prefix=no
20105       ;;
20106     freebsd-*)
20107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20108       need_version=yes
20109       ;;
20110   esac
20111   shlibpath_var=LD_LIBRARY_PATH
20112   case $host_os in
20113   freebsd2*)
20114     shlibpath_overrides_runpath=yes
20115     ;;
20116   freebsd3.01* | freebsdelf3.01*)
20117     shlibpath_overrides_runpath=yes
20118     hardcode_into_libs=yes
20119     ;;
20120   *) # from 3.2 on
20121     shlibpath_overrides_runpath=no
20122     hardcode_into_libs=yes
20123     ;;
20124   esac
20125   ;;
20126
20127 gnu*)
20128   version_type=linux
20129   need_lib_prefix=no
20130   need_version=no
20131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20132   soname_spec='${libname}${release}${shared_ext}$major'
20133   shlibpath_var=LD_LIBRARY_PATH
20134   hardcode_into_libs=yes
20135   ;;
20136
20137 hpux9* | hpux10* | hpux11*)
20138   # Give a soname corresponding to the major version so that dld.sl refuses to
20139   # link against other versions.
20140   version_type=sunos
20141   need_lib_prefix=no
20142   need_version=no
20143   case "$host_cpu" in
20144   ia64*)
20145     shrext_cmds='.so'
20146     hardcode_into_libs=yes
20147     dynamic_linker="$host_os dld.so"
20148     shlibpath_var=LD_LIBRARY_PATH
20149     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20151     soname_spec='${libname}${release}${shared_ext}$major'
20152     if test "X$HPUX_IA64_MODE" = X32; then
20153       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20154     else
20155       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20156     fi
20157     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20158     ;;
20159    hppa*64*)
20160      shrext_cmds='.sl'
20161      hardcode_into_libs=yes
20162      dynamic_linker="$host_os dld.sl"
20163      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20164      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20165      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166      soname_spec='${libname}${release}${shared_ext}$major'
20167      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20168      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20169      ;;
20170    *)
20171     shrext_cmds='.sl'
20172     dynamic_linker="$host_os dld.sl"
20173     shlibpath_var=SHLIB_PATH
20174     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176     soname_spec='${libname}${release}${shared_ext}$major'
20177     ;;
20178   esac
20179   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20180   postinstall_cmds='chmod 555 $lib'
20181   ;;
20182
20183 irix5* | irix6* | nonstopux*)
20184   case $host_os in
20185     nonstopux*) version_type=nonstopux ;;
20186     *)
20187         if test "$lt_cv_prog_gnu_ld" = yes; then
20188                 version_type=linux
20189         else
20190                 version_type=irix
20191         fi ;;
20192   esac
20193   need_lib_prefix=no
20194   need_version=no
20195   soname_spec='${libname}${release}${shared_ext}$major'
20196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20197   case $host_os in
20198   irix5* | nonstopux*)
20199     libsuff= shlibsuff=
20200     ;;
20201   *)
20202     case $LD in # libtool.m4 will add one of these switches to LD
20203     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20204       libsuff= shlibsuff= libmagic=32-bit;;
20205     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20206       libsuff=32 shlibsuff=N32 libmagic=N32;;
20207     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20208       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20209     *) libsuff= shlibsuff= libmagic=never-match;;
20210     esac
20211     ;;
20212   esac
20213   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20214   shlibpath_overrides_runpath=no
20215   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20216   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20217   hardcode_into_libs=yes
20218   ;;
20219
20220 # No shared lib support for Linux oldld, aout, or coff.
20221 linux*oldld* | linux*aout* | linux*coff*)
20222   dynamic_linker=no
20223   ;;
20224
20225 # This must be Linux ELF.
20226 linux*)
20227   version_type=linux
20228   need_lib_prefix=no
20229   need_version=no
20230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231   soname_spec='${libname}${release}${shared_ext}$major'
20232   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20233   shlibpath_var=LD_LIBRARY_PATH
20234   shlibpath_overrides_runpath=no
20235   # This implies no fast_install, which is unacceptable.
20236   # Some rework will be needed to allow for fast_install
20237   # before this can be enabled.
20238   hardcode_into_libs=yes
20239
20240   # Append ld.so.conf contents to the search path
20241   if test -f /etc/ld.so.conf; then
20242     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20243     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20244   fi
20245
20246   # We used to test for /lib/ld.so.1 and disable shared libraries on
20247   # powerpc, because MkLinux only supported shared libraries with the
20248   # GNU dynamic linker.  Since this was broken with cross compilers,
20249   # most powerpc-linux boxes support dynamic linking these days and
20250   # people can always --disable-shared, the test was removed, and we
20251   # assume the GNU/Linux dynamic linker is in use.
20252   dynamic_linker='GNU/Linux ld.so'
20253   ;;
20254
20255 knetbsd*-gnu)
20256   version_type=linux
20257   need_lib_prefix=no
20258   need_version=no
20259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20260   soname_spec='${libname}${release}${shared_ext}$major'
20261   shlibpath_var=LD_LIBRARY_PATH
20262   shlibpath_overrides_runpath=no
20263   hardcode_into_libs=yes
20264   dynamic_linker='GNU ld.so'
20265   ;;
20266
20267 netbsd*)
20268   version_type=sunos
20269   need_lib_prefix=no
20270   need_version=no
20271   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20273     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20274     dynamic_linker='NetBSD (a.out) ld.so'
20275   else
20276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20277     soname_spec='${libname}${release}${shared_ext}$major'
20278     dynamic_linker='NetBSD ld.elf_so'
20279   fi
20280   shlibpath_var=LD_LIBRARY_PATH
20281   shlibpath_overrides_runpath=yes
20282   hardcode_into_libs=yes
20283   ;;
20284
20285 newsos6)
20286   version_type=linux
20287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288   shlibpath_var=LD_LIBRARY_PATH
20289   shlibpath_overrides_runpath=yes
20290   ;;
20291
20292 nto-qnx*)
20293   version_type=linux
20294   need_lib_prefix=no
20295   need_version=no
20296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297   soname_spec='${libname}${release}${shared_ext}$major'
20298   shlibpath_var=LD_LIBRARY_PATH
20299   shlibpath_overrides_runpath=yes
20300   ;;
20301
20302 openbsd*)
20303   version_type=sunos
20304   need_lib_prefix=no
20305   need_version=no
20306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308   shlibpath_var=LD_LIBRARY_PATH
20309   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20310     case $host_os in
20311       openbsd2.[89] | openbsd2.[89].*)
20312         shlibpath_overrides_runpath=no
20313         ;;
20314       *)
20315         shlibpath_overrides_runpath=yes
20316         ;;
20317       esac
20318   else
20319     shlibpath_overrides_runpath=yes
20320   fi
20321   ;;
20322
20323 os2*)
20324   libname_spec='$name'
20325   shrext_cmds=".dll"
20326   need_lib_prefix=no
20327   library_names_spec='$libname${shared_ext} $libname.a'
20328   dynamic_linker='OS/2 ld.exe'
20329   shlibpath_var=LIBPATH
20330   ;;
20331
20332 osf3* | osf4* | osf5*)
20333   version_type=osf
20334   need_lib_prefix=no
20335   need_version=no
20336   soname_spec='${libname}${release}${shared_ext}$major'
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338   shlibpath_var=LD_LIBRARY_PATH
20339   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20340   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20341   ;;
20342
20343 sco3.2v5*)
20344   version_type=osf
20345   soname_spec='${libname}${release}${shared_ext}$major'
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347   shlibpath_var=LD_LIBRARY_PATH
20348   ;;
20349
20350 solaris*)
20351   version_type=linux
20352   need_lib_prefix=no
20353   need_version=no
20354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355   soname_spec='${libname}${release}${shared_ext}$major'
20356   shlibpath_var=LD_LIBRARY_PATH
20357   shlibpath_overrides_runpath=yes
20358   hardcode_into_libs=yes
20359   # ldd complains unless libraries are executable
20360   postinstall_cmds='chmod +x $lib'
20361   ;;
20362
20363 sunos4*)
20364   version_type=sunos
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20366   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   shlibpath_overrides_runpath=yes
20369   if test "$with_gnu_ld" = yes; then
20370     need_lib_prefix=no
20371   fi
20372   need_version=yes
20373   ;;
20374
20375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20376   version_type=linux
20377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378   soname_spec='${libname}${release}${shared_ext}$major'
20379   shlibpath_var=LD_LIBRARY_PATH
20380   case $host_vendor in
20381     sni)
20382       shlibpath_overrides_runpath=no
20383       need_lib_prefix=no
20384       export_dynamic_flag_spec='${wl}-Blargedynsym'
20385       runpath_var=LD_RUN_PATH
20386       ;;
20387     siemens)
20388       need_lib_prefix=no
20389       ;;
20390     motorola)
20391       need_lib_prefix=no
20392       need_version=no
20393       shlibpath_overrides_runpath=no
20394       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20395       ;;
20396   esac
20397   ;;
20398
20399 sysv4*MP*)
20400   if test -d /usr/nec ;then
20401     version_type=linux
20402     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20403     soname_spec='$libname${shared_ext}.$major'
20404     shlibpath_var=LD_LIBRARY_PATH
20405   fi
20406   ;;
20407
20408 uts4*)
20409   version_type=linux
20410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411   soname_spec='${libname}${release}${shared_ext}$major'
20412   shlibpath_var=LD_LIBRARY_PATH
20413   ;;
20414
20415 *)
20416   dynamic_linker=no
20417   ;;
20418 esac
20419 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20420 echo "${ECHO_T}$dynamic_linker" >&6
20421 test "$dynamic_linker" = no && can_build_shared=no
20422
20423 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20424 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20425 hardcode_action_F77=
20426 if test -n "$hardcode_libdir_flag_spec_F77" || \
20427    test -n "$runpath_var_F77" || \
20428    test "X$hardcode_automatic_F77" = "Xyes" ; then
20429
20430   # We can hardcode non-existant directories.
20431   if test "$hardcode_direct_F77" != no &&
20432      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20433      # have to relink, otherwise we might link with an installed library
20434      # when we should be linking with a yet-to-be-installed one
20435      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20436      test "$hardcode_minus_L_F77" != no; then
20437     # Linking always hardcodes the temporary library directory.
20438     hardcode_action_F77=relink
20439   else
20440     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20441     hardcode_action_F77=immediate
20442   fi
20443 else
20444   # We cannot hardcode anything, or else we can only hardcode existing
20445   # directories.
20446   hardcode_action_F77=unsupported
20447 fi
20448 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20449 echo "${ECHO_T}$hardcode_action_F77" >&6
20450
20451 if test "$hardcode_action_F77" = relink; then
20452   # Fast installation is not supported
20453   enable_fast_install=no
20454 elif test "$shlibpath_overrides_runpath" = yes ||
20455      test "$enable_shared" = no; then
20456   # Fast installation is not necessary
20457   enable_fast_install=needless
20458 fi
20459
20460 striplib=
20461 old_striplib=
20462 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20463 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20464 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20465   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20466   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20467   echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6
20469 else
20470 # FIXME - insert some real tests, host_os isn't really good enough
20471   case $host_os in
20472    darwin*)
20473        if test -n "$STRIP" ; then
20474          striplib="$STRIP -x"
20475          echo "$as_me:$LINENO: result: yes" >&5
20476 echo "${ECHO_T}yes" >&6
20477        else
20478   echo "$as_me:$LINENO: result: no" >&5
20479 echo "${ECHO_T}no" >&6
20480 fi
20481        ;;
20482    *)
20483   echo "$as_me:$LINENO: result: no" >&5
20484 echo "${ECHO_T}no" >&6
20485     ;;
20486   esac
20487 fi
20488
20489
20490
20491 # The else clause should only fire when bootstrapping the
20492 # libtool distribution, otherwise you forgot to ship ltmain.sh
20493 # with your package, and you will get complaints that there are
20494 # no rules to generate ltmain.sh.
20495 if test -f "$ltmain"; then
20496   # See if we are running on zsh, and set the options which allow our commands through
20497   # without removal of \ escapes.
20498   if test -n "${ZSH_VERSION+set}" ; then
20499     setopt NO_GLOB_SUBST
20500   fi
20501   # Now quote all the things that may contain metacharacters while being
20502   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20503   # variables and quote the copies for generation of the libtool script.
20504   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20505     SED SHELL STRIP \
20506     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508     deplibs_check_method reload_flag reload_cmds need_locks \
20509     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510     lt_cv_sys_global_symbol_to_c_name_address \
20511     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512     old_postinstall_cmds old_postuninstall_cmds \
20513     compiler_F77 \
20514     CC_F77 \
20515     LD_F77 \
20516     lt_prog_compiler_wl_F77 \
20517     lt_prog_compiler_pic_F77 \
20518     lt_prog_compiler_static_F77 \
20519     lt_prog_compiler_no_builtin_flag_F77 \
20520     export_dynamic_flag_spec_F77 \
20521     thread_safe_flag_spec_F77 \
20522     whole_archive_flag_spec_F77 \
20523     enable_shared_with_static_runtimes_F77 \
20524     old_archive_cmds_F77 \
20525     old_archive_from_new_cmds_F77 \
20526     predep_objects_F77 \
20527     postdep_objects_F77 \
20528     predeps_F77 \
20529     postdeps_F77 \
20530     compiler_lib_search_path_F77 \
20531     archive_cmds_F77 \
20532     archive_expsym_cmds_F77 \
20533     postinstall_cmds_F77 \
20534     postuninstall_cmds_F77 \
20535     old_archive_from_expsyms_cmds_F77 \
20536     allow_undefined_flag_F77 \
20537     no_undefined_flag_F77 \
20538     export_symbols_cmds_F77 \
20539     hardcode_libdir_flag_spec_F77 \
20540     hardcode_libdir_flag_spec_ld_F77 \
20541     hardcode_libdir_separator_F77 \
20542     hardcode_automatic_F77 \
20543     module_cmds_F77 \
20544     module_expsym_cmds_F77 \
20545     lt_cv_prog_compiler_c_o_F77 \
20546     exclude_expsyms_F77 \
20547     include_expsyms_F77; do
20548
20549     case $var in
20550     old_archive_cmds_F77 | \
20551     old_archive_from_new_cmds_F77 | \
20552     archive_cmds_F77 | \
20553     archive_expsym_cmds_F77 | \
20554     module_cmds_F77 | \
20555     module_expsym_cmds_F77 | \
20556     old_archive_from_expsyms_cmds_F77 | \
20557     export_symbols_cmds_F77 | \
20558     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559     postinstall_cmds | postuninstall_cmds | \
20560     old_postinstall_cmds | old_postuninstall_cmds | \
20561     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562       # Double-quote double-evaled strings.
20563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20564       ;;
20565     *)
20566       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20567       ;;
20568     esac
20569   done
20570
20571   case $lt_echo in
20572   *'\$0 --fallback-echo"')
20573     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20574     ;;
20575   esac
20576
20577 cfgfile="$ofile"
20578
20579   cat <<__EOF__ >> "$cfgfile"
20580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20581
20582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20583
20584 # Shell to use when invoking shell scripts.
20585 SHELL=$lt_SHELL
20586
20587 # Whether or not to build shared libraries.
20588 build_libtool_libs=$enable_shared
20589
20590 # Whether or not to build static libraries.
20591 build_old_libs=$enable_static
20592
20593 # Whether or not to add -lc for building shared libraries.
20594 build_libtool_need_lc=$archive_cmds_need_lc_F77
20595
20596 # Whether or not to disallow shared libs when runtime libs are static
20597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20598
20599 # Whether or not to optimize for fast installation.
20600 fast_install=$enable_fast_install
20601
20602 # The host system.
20603 host_alias=$host_alias
20604 host=$host
20605
20606 # An echo program that does not interpret backslashes.
20607 echo=$lt_echo
20608
20609 # The archiver.
20610 AR=$lt_AR
20611 AR_FLAGS=$lt_AR_FLAGS
20612
20613 # A C compiler.
20614 LTCC=$lt_LTCC
20615
20616 # A language-specific compiler.
20617 CC=$lt_compiler_F77
20618
20619 # Is the compiler the GNU C compiler?
20620 with_gcc=$GCC_F77
20621
20622 # An ERE matcher.
20623 EGREP=$lt_EGREP
20624
20625 # The linker used to build libraries.
20626 LD=$lt_LD_F77
20627
20628 # Whether we need hard or soft links.
20629 LN_S=$lt_LN_S
20630
20631 # A BSD-compatible nm program.
20632 NM=$lt_NM
20633
20634 # A symbol stripping program
20635 STRIP=$lt_STRIP
20636
20637 # Used to examine libraries when file_magic_cmd begins "file"
20638 MAGIC_CMD=$MAGIC_CMD
20639
20640 # Used on cygwin: DLL creation program.
20641 DLLTOOL="$DLLTOOL"
20642
20643 # Used on cygwin: object dumper.
20644 OBJDUMP="$OBJDUMP"
20645
20646 # Used on cygwin: assembler.
20647 AS="$AS"
20648
20649 # The name of the directory that contains temporary libtool files.
20650 objdir=$objdir
20651
20652 # How to create reloadable object files.
20653 reload_flag=$lt_reload_flag
20654 reload_cmds=$lt_reload_cmds
20655
20656 # How to pass a linker flag through the compiler.
20657 wl=$lt_lt_prog_compiler_wl_F77
20658
20659 # Object file suffix (normally "o").
20660 objext="$ac_objext"
20661
20662 # Old archive suffix (normally "a").
20663 libext="$libext"
20664
20665 # Shared library suffix (normally ".so").
20666 shrext_cmds='$shrext_cmds'
20667
20668 # Executable file suffix (normally "").
20669 exeext="$exeext"
20670
20671 # Additional compiler flags for building library objects.
20672 pic_flag=$lt_lt_prog_compiler_pic_F77
20673 pic_mode=$pic_mode
20674
20675 # What is the maximum length of a command?
20676 max_cmd_len=$lt_cv_sys_max_cmd_len
20677
20678 # Does compiler simultaneously support -c and -o options?
20679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20680
20681 # Must we lock files when doing compilation ?
20682 need_locks=$lt_need_locks
20683
20684 # Do we need the lib prefix for modules?
20685 need_lib_prefix=$need_lib_prefix
20686
20687 # Do we need a version for libraries?
20688 need_version=$need_version
20689
20690 # Whether dlopen is supported.
20691 dlopen_support=$enable_dlopen
20692
20693 # Whether dlopen of programs is supported.
20694 dlopen_self=$enable_dlopen_self
20695
20696 # Whether dlopen of statically linked programs is supported.
20697 dlopen_self_static=$enable_dlopen_self_static
20698
20699 # Compiler flag to prevent dynamic linking.
20700 link_static_flag=$lt_lt_prog_compiler_static_F77
20701
20702 # Compiler flag to turn off builtin functions.
20703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20704
20705 # Compiler flag to allow reflexive dlopens.
20706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20707
20708 # Compiler flag to generate shared objects directly from archives.
20709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20710
20711 # Compiler flag to generate thread-safe objects.
20712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20713
20714 # Library versioning type.
20715 version_type=$version_type
20716
20717 # Format of library name prefix.
20718 libname_spec=$lt_libname_spec
20719
20720 # List of archive names.  First name is the real one, the rest are links.
20721 # The last name is the one that the linker finds with -lNAME.
20722 library_names_spec=$lt_library_names_spec
20723
20724 # The coded name of the library, if different from the real name.
20725 soname_spec=$lt_soname_spec
20726
20727 # Commands used to build and install an old-style archive.
20728 RANLIB=$lt_RANLIB
20729 old_archive_cmds=$lt_old_archive_cmds_F77
20730 old_postinstall_cmds=$lt_old_postinstall_cmds
20731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20732
20733 # Create an old-style archive from a shared archive.
20734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20735
20736 # Create a temporary old-style archive to link instead of a shared archive.
20737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20738
20739 # Commands used to build and install a shared archive.
20740 archive_cmds=$lt_archive_cmds_F77
20741 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20742 postinstall_cmds=$lt_postinstall_cmds
20743 postuninstall_cmds=$lt_postuninstall_cmds
20744
20745 # Commands used to build a loadable module (assumed same as above if empty)
20746 module_cmds=$lt_module_cmds_F77
20747 module_expsym_cmds=$lt_module_expsym_cmds_F77
20748
20749 # Commands to strip libraries.
20750 old_striplib=$lt_old_striplib
20751 striplib=$lt_striplib
20752
20753 # Dependencies to place before the objects being linked to create a
20754 # shared library.
20755 predep_objects=$lt_predep_objects_F77
20756
20757 # Dependencies to place after the objects being linked to create a
20758 # shared library.
20759 postdep_objects=$lt_postdep_objects_F77
20760
20761 # Dependencies to place before the objects being linked to create a
20762 # shared library.
20763 predeps=$lt_predeps_F77
20764
20765 # Dependencies to place after the objects being linked to create a
20766 # shared library.
20767 postdeps=$lt_postdeps_F77
20768
20769 # The library search path used internally by the compiler when linking
20770 # a shared library.
20771 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20772
20773 # Method to check whether dependent libraries are shared objects.
20774 deplibs_check_method=$lt_deplibs_check_method
20775
20776 # Command to use when deplibs_check_method == file_magic.
20777 file_magic_cmd=$lt_file_magic_cmd
20778
20779 # Flag that allows shared libraries with undefined symbols to be built.
20780 allow_undefined_flag=$lt_allow_undefined_flag_F77
20781
20782 # Flag that forces no undefined symbols.
20783 no_undefined_flag=$lt_no_undefined_flag_F77
20784
20785 # Commands used to finish a libtool library installation in a directory.
20786 finish_cmds=$lt_finish_cmds
20787
20788 # Same as above, but a single script fragment to be evaled but not shown.
20789 finish_eval=$lt_finish_eval
20790
20791 # Take the output of nm and produce a listing of raw symbols and C names.
20792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20793
20794 # Transform the output of nm in a proper C declaration
20795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20796
20797 # Transform the output of nm in a C name address pair
20798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20799
20800 # This is the shared library runtime path variable.
20801 runpath_var=$runpath_var
20802
20803 # This is the shared library path variable.
20804 shlibpath_var=$shlibpath_var
20805
20806 # Is shlibpath searched before the hard-coded library search path?
20807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20808
20809 # How to hardcode a shared library path into an executable.
20810 hardcode_action=$hardcode_action_F77
20811
20812 # Whether we should hardcode library paths into libraries.
20813 hardcode_into_libs=$hardcode_into_libs
20814
20815 # Flag to hardcode \$libdir into a binary during linking.
20816 # This must work even if \$libdir does not exist.
20817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20818
20819 # If ld is used when linking, flag to hardcode \$libdir into
20820 # a binary during linking. This must work even if \$libdir does
20821 # not exist.
20822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20823
20824 # Whether we need a single -rpath flag with a separated argument.
20825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20826
20827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20828 # resulting binary.
20829 hardcode_direct=$hardcode_direct_F77
20830
20831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20832 # resulting binary.
20833 hardcode_minus_L=$hardcode_minus_L_F77
20834
20835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20836 # the resulting binary.
20837 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20838
20839 # Set to yes if building a shared library automatically hardcodes DIR into the library
20840 # and all subsequent libraries and executables linked against it.
20841 hardcode_automatic=$hardcode_automatic_F77
20842
20843 # Variables whose values should be saved in libtool wrapper scripts and
20844 # restored at relink time.
20845 variables_saved_for_relink="$variables_saved_for_relink"
20846
20847 # Whether libtool must link a program against all its dependency libraries.
20848 link_all_deplibs=$link_all_deplibs_F77
20849
20850 # Compile-time system search path for libraries
20851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20852
20853 # Run-time system search path for libraries
20854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20855
20856 # Fix the shell variable \$srcfile for the compiler.
20857 fix_srcfile_path="$fix_srcfile_path_F77"
20858
20859 # Set to yes if exported symbols are required.
20860 always_export_symbols=$always_export_symbols_F77
20861
20862 # The commands to list exported symbols.
20863 export_symbols_cmds=$lt_export_symbols_cmds_F77
20864
20865 # The commands to extract the exported symbol list from a shared archive.
20866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20867
20868 # Symbols that should not be listed in the preloaded symbols.
20869 exclude_expsyms=$lt_exclude_expsyms_F77
20870
20871 # Symbols that must always be exported.
20872 include_expsyms=$lt_include_expsyms_F77
20873
20874 # ### END LIBTOOL TAG CONFIG: $tagname
20875
20876 __EOF__
20877
20878
20879 else
20880   # If there is no Makefile yet, we rely on a make rule to execute
20881   # `config.status --recheck' to rerun these tests and create the
20882   # libtool script then.
20883   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20884   if test -f "$ltmain_in"; then
20885     test -f Makefile && make "$ltmain"
20886   fi
20887 fi
20888
20889
20890 ac_ext=c
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895
20896 CC="$lt_save_CC"
20897
20898         else
20899           tagname=""
20900         fi
20901         ;;
20902
20903       GCJ)
20904         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20905           ac_ext=c
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911
20912 # Source file extension for Java test sources.
20913 ac_ext=java
20914
20915 # Object file extension for compiled Java test sources.
20916 objext=o
20917 objext_GCJ=$objext
20918
20919 # Code to be used in simple compile tests
20920 lt_simple_compile_test_code="class foo {}\n"
20921
20922 # Code to be used in simple link tests
20923 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20924
20925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20926
20927 # If no C compiler was specified, use CC.
20928 LTCC=${LTCC-"$CC"}
20929
20930 # Allow CC to be a program name with arguments.
20931 compiler=$CC
20932
20933
20934 # Allow CC to be a program name with arguments.
20935 lt_save_CC="$CC"
20936 CC=${GCJ-"gcj"}
20937 compiler=$CC
20938 compiler_GCJ=$CC
20939
20940 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20941 archive_cmds_need_lc_GCJ=no
20942
20943
20944 lt_prog_compiler_no_builtin_flag_GCJ=
20945
20946 if test "$GCC" = yes; then
20947   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20948
20949
20950 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20951 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20952 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20953   echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955   lt_cv_prog_compiler_rtti_exceptions=no
20956   ac_outfile=conftest.$ac_objext
20957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20958    lt_compiler_flag="-fno-rtti -fno-exceptions"
20959    # Insert the option either (1) after the last *FLAGS variable, or
20960    # (2) before a word containing "conftest.", or (3) at the end.
20961    # Note that $ac_compile itself does not contain backslashes and begins
20962    # with a dollar sign (not a hyphen), so the echo should work correctly.
20963    # The option is referenced via a variable to avoid confusing sed.
20964    lt_compile=`echo "$ac_compile" | $SED \
20965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20967    -e 's:$: $lt_compiler_flag:'`
20968    (eval echo "\"\$as_me:20968: $lt_compile\"" >&5)
20969    (eval "$lt_compile" 2>conftest.err)
20970    ac_status=$?
20971    cat conftest.err >&5
20972    echo "$as_me:20972: \$? = $ac_status" >&5
20973    if (exit $ac_status) && test -s "$ac_outfile"; then
20974      # The compiler can only warn and ignore the option if not recognized
20975      # So say no if there are warnings
20976      if test ! -s conftest.err; then
20977        lt_cv_prog_compiler_rtti_exceptions=yes
20978      fi
20979    fi
20980    $rm conftest*
20981
20982 fi
20983 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20984 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20985
20986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20987     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20988 else
20989     :
20990 fi
20991
20992 fi
20993
20994 lt_prog_compiler_wl_GCJ=
20995 lt_prog_compiler_pic_GCJ=
20996 lt_prog_compiler_static_GCJ=
20997
20998 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20999 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21000
21001   if test "$GCC" = yes; then
21002     lt_prog_compiler_wl_GCJ='-Wl,'
21003     lt_prog_compiler_static_GCJ='-static'
21004
21005     case $host_os in
21006       aix*)
21007       # All AIX code is PIC.
21008       if test "$host_cpu" = ia64; then
21009         # AIX 5 now supports IA64 processor
21010         lt_prog_compiler_static_GCJ='-Bstatic'
21011       fi
21012       ;;
21013
21014     amigaos*)
21015       # FIXME: we need at least 68020 code to build shared libraries, but
21016       # adding the `-m68020' flag to GCC prevents building anything better,
21017       # like `-m68040'.
21018       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21019       ;;
21020
21021     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21022       # PIC is the default for these OSes.
21023       ;;
21024
21025     mingw* | pw32* | os2*)
21026       # This hack is so that the source file can tell whether it is being
21027       # built for inclusion in a dll (and should export symbols for example).
21028       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21029       ;;
21030
21031     darwin* | rhapsody*)
21032       # PIC is the default on this platform
21033       # Common symbols not allowed in MH_DYLIB files
21034       lt_prog_compiler_pic_GCJ='-fno-common'
21035       ;;
21036
21037     msdosdjgpp*)
21038       # Just because we use GCC doesn't mean we suddenly get shared libraries
21039       # on systems that don't support them.
21040       lt_prog_compiler_can_build_shared_GCJ=no
21041       enable_shared=no
21042       ;;
21043
21044     sysv4*MP*)
21045       if test -d /usr/nec; then
21046         lt_prog_compiler_pic_GCJ=-Kconform_pic
21047       fi
21048       ;;
21049
21050     hpux*)
21051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21052       # not for PA HP-UX.
21053       case "$host_cpu" in
21054       hppa*64*|ia64*)
21055         # +Z the default
21056         ;;
21057       *)
21058         lt_prog_compiler_pic_GCJ='-fPIC'
21059         ;;
21060       esac
21061       ;;
21062
21063     *)
21064       lt_prog_compiler_pic_GCJ='-fPIC'
21065       ;;
21066     esac
21067   else
21068     # PORTME Check for flag to pass linker flags through the system compiler.
21069     case $host_os in
21070     aix*)
21071       lt_prog_compiler_wl_GCJ='-Wl,'
21072       if test "$host_cpu" = ia64; then
21073         # AIX 5 now supports IA64 processor
21074         lt_prog_compiler_static_GCJ='-Bstatic'
21075       else
21076         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21077       fi
21078       ;;
21079       darwin*)
21080         # PIC is the default on this platform
21081         # Common symbols not allowed in MH_DYLIB files
21082        case "$cc_basename" in
21083          xlc*)
21084          lt_prog_compiler_pic_GCJ='-qnocommon'
21085          lt_prog_compiler_wl_GCJ='-Wl,'
21086          ;;
21087        esac
21088        ;;
21089
21090     mingw* | pw32* | os2*)
21091       # This hack is so that the source file can tell whether it is being
21092       # built for inclusion in a dll (and should export symbols for example).
21093       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21094       ;;
21095
21096     hpux9* | hpux10* | hpux11*)
21097       lt_prog_compiler_wl_GCJ='-Wl,'
21098       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21099       # not for PA HP-UX.
21100       case "$host_cpu" in
21101       hppa*64*|ia64*)
21102         # +Z the default
21103         ;;
21104       *)
21105         lt_prog_compiler_pic_GCJ='+Z'
21106         ;;
21107       esac
21108       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21109       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21110       ;;
21111
21112     irix5* | irix6* | nonstopux*)
21113       lt_prog_compiler_wl_GCJ='-Wl,'
21114       # PIC (with -KPIC) is the default.
21115       lt_prog_compiler_static_GCJ='-non_shared'
21116       ;;
21117
21118     newsos6)
21119       lt_prog_compiler_pic_GCJ='-KPIC'
21120       lt_prog_compiler_static_GCJ='-Bstatic'
21121       ;;
21122
21123     linux*)
21124       case $CC in
21125       icc* | ecc*)
21126         lt_prog_compiler_wl_GCJ='-Wl,'
21127         lt_prog_compiler_pic_GCJ='-KPIC'
21128         lt_prog_compiler_static_GCJ='-static'
21129         ;;
21130       ccc*)
21131         lt_prog_compiler_wl_GCJ='-Wl,'
21132         # All Alpha code is PIC.
21133         lt_prog_compiler_static_GCJ='-non_shared'
21134         ;;
21135       esac
21136       ;;
21137
21138     osf3* | osf4* | osf5*)
21139       lt_prog_compiler_wl_GCJ='-Wl,'
21140       # All OSF/1 code is PIC.
21141       lt_prog_compiler_static_GCJ='-non_shared'
21142       ;;
21143
21144     sco3.2v5*)
21145       lt_prog_compiler_pic_GCJ='-Kpic'
21146       lt_prog_compiler_static_GCJ='-dn'
21147       ;;
21148
21149     solaris*)
21150       lt_prog_compiler_wl_GCJ='-Wl,'
21151       lt_prog_compiler_pic_GCJ='-KPIC'
21152       lt_prog_compiler_static_GCJ='-Bstatic'
21153       ;;
21154
21155     sunos4*)
21156       lt_prog_compiler_wl_GCJ='-Qoption ld '
21157       lt_prog_compiler_pic_GCJ='-PIC'
21158       lt_prog_compiler_static_GCJ='-Bstatic'
21159       ;;
21160
21161     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21162       lt_prog_compiler_wl_GCJ='-Wl,'
21163       lt_prog_compiler_pic_GCJ='-KPIC'
21164       lt_prog_compiler_static_GCJ='-Bstatic'
21165       ;;
21166
21167     sysv4*MP*)
21168       if test -d /usr/nec ;then
21169         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21170         lt_prog_compiler_static_GCJ='-Bstatic'
21171       fi
21172       ;;
21173
21174     uts4*)
21175       lt_prog_compiler_pic_GCJ='-pic'
21176       lt_prog_compiler_static_GCJ='-Bstatic'
21177       ;;
21178
21179     *)
21180       lt_prog_compiler_can_build_shared_GCJ=no
21181       ;;
21182     esac
21183   fi
21184
21185 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21186 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21187
21188 #
21189 # Check to make sure the PIC flag actually works.
21190 #
21191 if test -n "$lt_prog_compiler_pic_GCJ"; then
21192
21193 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21194 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21195 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   lt_prog_compiler_pic_works_GCJ=no
21199   ac_outfile=conftest.$ac_objext
21200    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21201    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21202    # Insert the option either (1) after the last *FLAGS variable, or
21203    # (2) before a word containing "conftest.", or (3) at the end.
21204    # Note that $ac_compile itself does not contain backslashes and begins
21205    # with a dollar sign (not a hyphen), so the echo should work correctly.
21206    # The option is referenced via a variable to avoid confusing sed.
21207    lt_compile=`echo "$ac_compile" | $SED \
21208    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21209    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21210    -e 's:$: $lt_compiler_flag:'`
21211    (eval echo "\"\$as_me:21211: $lt_compile\"" >&5)
21212    (eval "$lt_compile" 2>conftest.err)
21213    ac_status=$?
21214    cat conftest.err >&5
21215    echo "$as_me:21215: \$? = $ac_status" >&5
21216    if (exit $ac_status) && test -s "$ac_outfile"; then
21217      # The compiler can only warn and ignore the option if not recognized
21218      # So say no if there are warnings
21219      if test ! -s conftest.err; then
21220        lt_prog_compiler_pic_works_GCJ=yes
21221      fi
21222    fi
21223    $rm conftest*
21224
21225 fi
21226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21227 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21228
21229 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21230     case $lt_prog_compiler_pic_GCJ in
21231      "" | " "*) ;;
21232      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21233      esac
21234 else
21235     lt_prog_compiler_pic_GCJ=
21236      lt_prog_compiler_can_build_shared_GCJ=no
21237 fi
21238
21239 fi
21240 case "$host_os" in
21241   # For platforms which do not support PIC, -DPIC is meaningless:
21242   *djgpp*)
21243     lt_prog_compiler_pic_GCJ=
21244     ;;
21245   *)
21246     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21247     ;;
21248 esac
21249
21250 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21252 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21253   echo $ECHO_N "(cached) $ECHO_C" >&6
21254 else
21255   lt_cv_prog_compiler_c_o_GCJ=no
21256    $rm -r conftest 2>/dev/null
21257    mkdir conftest
21258    cd conftest
21259    mkdir out
21260    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21261
21262    lt_compiler_flag="-o out/conftest2.$ac_objext"
21263    # Insert the option either (1) after the last *FLAGS variable, or
21264    # (2) before a word containing "conftest.", or (3) at the end.
21265    # Note that $ac_compile itself does not contain backslashes and begins
21266    # with a dollar sign (not a hyphen), so the echo should work correctly.
21267    lt_compile=`echo "$ac_compile" | $SED \
21268    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270    -e 's:$: $lt_compiler_flag:'`
21271    (eval echo "\"\$as_me:21271: $lt_compile\"" >&5)
21272    (eval "$lt_compile" 2>out/conftest.err)
21273    ac_status=$?
21274    cat out/conftest.err >&5
21275    echo "$as_me:21275: \$? = $ac_status" >&5
21276    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21277    then
21278      # The compiler can only warn and ignore the option if not recognized
21279      # So say no if there are warnings
21280      if test ! -s out/conftest.err; then
21281        lt_cv_prog_compiler_c_o_GCJ=yes
21282      fi
21283    fi
21284    chmod u+w .
21285    $rm conftest*
21286    # SGI C++ compiler will create directory out/ii_files/ for
21287    # template instantiation
21288    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21289    $rm out/* && rmdir out
21290    cd ..
21291    rmdir conftest
21292    $rm conftest*
21293
21294 fi
21295 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21297
21298
21299 hard_links="nottested"
21300 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21301   # do not overwrite the value of need_locks provided by the user
21302   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21303 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21304   hard_links=yes
21305   $rm conftest*
21306   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21307   touch conftest.a
21308   ln conftest.a conftest.b 2>&5 || hard_links=no
21309   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21310   echo "$as_me:$LINENO: result: $hard_links" >&5
21311 echo "${ECHO_T}$hard_links" >&6
21312   if test "$hard_links" = no; then
21313     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21314 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21315     need_locks=warn
21316   fi
21317 else
21318   need_locks=no
21319 fi
21320
21321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21323
21324   runpath_var=
21325   allow_undefined_flag_GCJ=
21326   enable_shared_with_static_runtimes_GCJ=no
21327   archive_cmds_GCJ=
21328   archive_expsym_cmds_GCJ=
21329   old_archive_From_new_cmds_GCJ=
21330   old_archive_from_expsyms_cmds_GCJ=
21331   export_dynamic_flag_spec_GCJ=
21332   whole_archive_flag_spec_GCJ=
21333   thread_safe_flag_spec_GCJ=
21334   hardcode_libdir_flag_spec_GCJ=
21335   hardcode_libdir_flag_spec_ld_GCJ=
21336   hardcode_libdir_separator_GCJ=
21337   hardcode_direct_GCJ=no
21338   hardcode_minus_L_GCJ=no
21339   hardcode_shlibpath_var_GCJ=unsupported
21340   link_all_deplibs_GCJ=unknown
21341   hardcode_automatic_GCJ=no
21342   module_cmds_GCJ=
21343   module_expsym_cmds_GCJ=
21344   always_export_symbols_GCJ=no
21345   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21346   # include_expsyms should be a list of space-separated symbols to be *always*
21347   # included in the symbol list
21348   include_expsyms_GCJ=
21349   # exclude_expsyms can be an extended regexp of symbols to exclude
21350   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21351   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21352   # as well as any symbol that contains `d'.
21353   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21354   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21355   # platforms (ab)use it in PIC code, but their linkers get confused if
21356   # the symbol is explicitly referenced.  Since portable code cannot
21357   # rely on this symbol name, it's probably fine to never include it in
21358   # preloaded symbol tables.
21359   extract_expsyms_cmds=
21360
21361   case $host_os in
21362   cygwin* | mingw* | pw32*)
21363     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21364     # When not using gcc, we currently assume that we are using
21365     # Microsoft Visual C++.
21366     if test "$GCC" != yes; then
21367       with_gnu_ld=no
21368     fi
21369     ;;
21370   openbsd*)
21371     with_gnu_ld=no
21372     ;;
21373   esac
21374
21375   ld_shlibs_GCJ=yes
21376   if test "$with_gnu_ld" = yes; then
21377     # If archive_cmds runs LD, not CC, wlarc should be empty
21378     wlarc='${wl}'
21379
21380     # See if GNU ld supports shared libraries.
21381     case $host_os in
21382     aix3* | aix4* | aix5*)
21383       # On AIX/PPC, the GNU linker is very broken
21384       if test "$host_cpu" != ia64; then
21385         ld_shlibs_GCJ=no
21386         cat <<EOF 1>&2
21387
21388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389 *** to be unable to reliably create shared libraries on AIX.
21390 *** Therefore, libtool is disabling shared libraries support.  If you
21391 *** really care for shared libraries, you may want to modify your PATH
21392 *** so that a non-GNU linker is found, and then restart.
21393
21394 EOF
21395       fi
21396       ;;
21397
21398     amigaos*)
21399       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)'
21400       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21401       hardcode_minus_L_GCJ=yes
21402
21403       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404       # that the semantics of dynamic libraries on AmigaOS, at least up
21405       # to version 4, is to share data among multiple programs linked
21406       # with the same dynamic library.  Since this doesn't match the
21407       # behavior of shared libraries on other platforms, we can't use
21408       # them.
21409       ld_shlibs_GCJ=no
21410       ;;
21411
21412     beos*)
21413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414         allow_undefined_flag_GCJ=unsupported
21415         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416         # support --undefined.  This deserves some investigation.  FIXME
21417         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21418       else
21419         ld_shlibs_GCJ=no
21420       fi
21421       ;;
21422
21423     cygwin* | mingw* | pw32*)
21424       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21425       # as there is no search path for DLLs.
21426       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21427       allow_undefined_flag_GCJ=unsupported
21428       always_export_symbols_GCJ=no
21429       enable_shared_with_static_runtimes_GCJ=yes
21430       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21431
21432       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21433         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21434         # If the export-symbols file already is a .def file (1st line
21435         # is EXPORTS), use it as is; otherwise, prepend...
21436         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437           cp $export_symbols $output_objdir/$soname.def;
21438         else
21439           echo EXPORTS > $output_objdir/$soname.def;
21440           cat $export_symbols >> $output_objdir/$soname.def;
21441         fi~
21442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21443       else
21444         ld_shlibs=no
21445       fi
21446       ;;
21447
21448     netbsd*)
21449       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21450         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21451         wlarc=
21452       else
21453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21455       fi
21456       ;;
21457
21458     solaris* | sysv5*)
21459       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21460         ld_shlibs_GCJ=no
21461         cat <<EOF 1>&2
21462
21463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21464 *** create shared libraries on Solaris systems.  Therefore, libtool
21465 *** is disabling shared libraries support.  We urge you to upgrade GNU
21466 *** binutils to release 2.9.1 or newer.  Another option is to modify
21467 *** your PATH or compiler configuration so that the native linker is
21468 *** used, and then restart.
21469
21470 EOF
21471       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21472         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474       else
21475         ld_shlibs_GCJ=no
21476       fi
21477       ;;
21478
21479     sunos4*)
21480       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21481       wlarc=
21482       hardcode_direct_GCJ=yes
21483       hardcode_shlibpath_var_GCJ=no
21484       ;;
21485
21486   linux*)
21487     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21488         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489         archive_cmds_GCJ="$tmp_archive_cmds"
21490       supports_anon_versioning=no
21491       case `$LD -v 2>/dev/null` in
21492         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21493         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21494         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21495         *\ 2.11.*) ;; # other 2.11 versions
21496         *) supports_anon_versioning=yes ;;
21497       esac
21498       if test $supports_anon_versioning = yes; then
21499         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21501 $echo "local: *; };" >> $output_objdir/$libname.ver~
21502         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21503       else
21504         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21505       fi
21506     else
21507       ld_shlibs_GCJ=no
21508     fi
21509     ;;
21510
21511     *)
21512       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21513         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21514         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21515       else
21516         ld_shlibs_GCJ=no
21517       fi
21518       ;;
21519     esac
21520
21521     if test "$ld_shlibs_GCJ" = yes; then
21522       runpath_var=LD_RUN_PATH
21523       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21524       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21525       # ancient GNU ld didn't support --whole-archive et. al.
21526       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21527         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21528       else
21529         whole_archive_flag_spec_GCJ=
21530       fi
21531     fi
21532   else
21533     # PORTME fill in a description of your system's linker (not GNU ld)
21534     case $host_os in
21535     aix3*)
21536       allow_undefined_flag_GCJ=unsupported
21537       always_export_symbols_GCJ=yes
21538       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'
21539       # Note: this linker hardcodes the directories in LIBPATH if there
21540       # are no directories specified by -L.
21541       hardcode_minus_L_GCJ=yes
21542       if test "$GCC" = yes && test -z "$link_static_flag"; then
21543         # Neither direct hardcoding nor static linking is supported with a
21544         # broken collect2.
21545         hardcode_direct_GCJ=unsupported
21546       fi
21547       ;;
21548
21549     aix4* | aix5*)
21550       if test "$host_cpu" = ia64; then
21551         # On IA64, the linker does run time linking by default, so we don't
21552         # have to do anything special.
21553         aix_use_runtimelinking=no
21554         exp_sym_flag='-Bexport'
21555         no_entry_flag=""
21556       else
21557         # If we're using GNU nm, then we don't want the "-C" option.
21558         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21559         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21560           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'
21561         else
21562           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'
21563         fi
21564         aix_use_runtimelinking=no
21565
21566         # Test if we are trying to use run time linking or normal
21567         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21568         # need to do runtime linking.
21569         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21570           for ld_flag in $LDFLAGS; do
21571           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21572             aix_use_runtimelinking=yes
21573             break
21574           fi
21575           done
21576         esac
21577
21578         exp_sym_flag='-bexport'
21579         no_entry_flag='-bnoentry'
21580       fi
21581
21582       # When large executables or shared objects are built, AIX ld can
21583       # have problems creating the table of contents.  If linking a library
21584       # or program results in "error TOC overflow" add -mminimal-toc to
21585       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21586       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21587
21588       archive_cmds_GCJ=''
21589       hardcode_direct_GCJ=yes
21590       hardcode_libdir_separator_GCJ=':'
21591       link_all_deplibs_GCJ=yes
21592
21593       if test "$GCC" = yes; then
21594         case $host_os in aix4.012|aix4.012.*)
21595         # We only want to do this on AIX 4.2 and lower, the check
21596         # below for broken collect2 doesn't work under 4.3+
21597           collect2name=`${CC} -print-prog-name=collect2`
21598           if test -f "$collect2name" && \
21599            strings "$collect2name" | grep resolve_lib_name >/dev/null
21600           then
21601           # We have reworked collect2
21602           hardcode_direct_GCJ=yes
21603           else
21604           # We have old collect2
21605           hardcode_direct_GCJ=unsupported
21606           # It fails to find uninstalled libraries when the uninstalled
21607           # path is not listed in the libpath.  Setting hardcode_minus_L
21608           # to unsupported forces relinking
21609           hardcode_minus_L_GCJ=yes
21610           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21611           hardcode_libdir_separator_GCJ=
21612           fi
21613         esac
21614         shared_flag='-shared'
21615       else
21616         # not using gcc
21617         if test "$host_cpu" = ia64; then
21618         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21619         # chokes on -Wl,-G. The following line is correct:
21620           shared_flag='-G'
21621         else
21622         if test "$aix_use_runtimelinking" = yes; then
21623             shared_flag='${wl}-G'
21624           else
21625             shared_flag='${wl}-bM:SRE'
21626         fi
21627         fi
21628       fi
21629
21630       # It seems that -bexpall does not export symbols beginning with
21631       # underscore (_), so it is better to generate a list of symbols to export.
21632       always_export_symbols_GCJ=yes
21633       if test "$aix_use_runtimelinking" = yes; then
21634         # Warning - without using the other runtime loading flags (-brtl),
21635         # -berok will link without error, but may produce a broken library.
21636         allow_undefined_flag_GCJ='-berok'
21637        # Determine the default libpath from the value encoded in an empty executable.
21638        cat >conftest.$ac_ext <<_ACEOF
21639 /* confdefs.h.  */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h.  */
21644
21645 int
21646 main ()
21647 {
21648
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
21653 rm -f conftest.$ac_objext conftest$ac_exeext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21655   (eval $ac_link) 2>conftest.er1
21656   ac_status=$?
21657   grep -v '^ *+' conftest.er1 >conftest.err
21658   rm -f conftest.er1
21659   cat conftest.err >&5
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); } &&
21662          { ac_try='test -z "$ac_c_werror_flag"
21663                          || test ! -s conftest.err'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; } &&
21669          { ac_try='test -s conftest$ac_exeext'
21670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671   (eval $ac_try) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); }; }; then
21675
21676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21677 }'`
21678 # Check for a 64-bit object if we didn't find anything.
21679 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; }
21680 }'`; fi
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 fi
21686 rm -f conftest.err conftest.$ac_objext \
21687       conftest$ac_exeext conftest.$ac_ext
21688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21689
21690        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21691         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"
21692        else
21693         if test "$host_cpu" = ia64; then
21694           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21695           allow_undefined_flag_GCJ="-z nodefs"
21696           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"
21697         else
21698          # Determine the default libpath from the value encoded in an empty executable.
21699          cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h.  */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h.  */
21705
21706 int
21707 main ()
21708 {
21709
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716   (eval $ac_link) 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } &&
21723          { ac_try='test -z "$ac_c_werror_flag"
21724                          || test ! -s conftest.err'
21725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726   (eval $ac_try) 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; } &&
21730          { ac_try='test -s conftest$ac_exeext'
21731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732   (eval $ac_try) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); }; }; then
21736
21737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21738 }'`
21739 # Check for a 64-bit object if we didn't find anything.
21740 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; }
21741 }'`; fi
21742 else
21743   echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 fi
21747 rm -f conftest.err conftest.$ac_objext \
21748       conftest$ac_exeext conftest.$ac_ext
21749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21750
21751          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21752           # Warning - without using the other run time loading flags,
21753           # -berok will link without error, but may produce a broken library.
21754           no_undefined_flag_GCJ=' ${wl}-bernotok'
21755           allow_undefined_flag_GCJ=' ${wl}-berok'
21756           # -bexpall does not export symbols beginning with underscore (_)
21757           always_export_symbols_GCJ=yes
21758           # Exported symbols can be pulled into shared objects from archives
21759           whole_archive_flag_spec_GCJ=' '
21760           archive_cmds_need_lc_GCJ=yes
21761           # This is similar to how AIX traditionally builds it's shared libraries.
21762           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'
21763         fi
21764       fi
21765       ;;
21766
21767     amigaos*)
21768       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)'
21769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21770       hardcode_minus_L_GCJ=yes
21771       # see comment about different semantics on the GNU ld section
21772       ld_shlibs_GCJ=no
21773       ;;
21774
21775     bsdi[45]*)
21776       export_dynamic_flag_spec_GCJ=-rdynamic
21777       ;;
21778
21779     cygwin* | mingw* | pw32*)
21780       # When not using gcc, we currently assume that we are using
21781       # Microsoft Visual C++.
21782       # hardcode_libdir_flag_spec is actually meaningless, as there is
21783       # no search path for DLLs.
21784       hardcode_libdir_flag_spec_GCJ=' '
21785       allow_undefined_flag_GCJ=unsupported
21786       # Tell ltmain to make .lib files, not .a files.
21787       libext=lib
21788       # Tell ltmain to make .dll files, not .so files.
21789       shrext_cmds=".dll"
21790       # FIXME: Setting linknames here is a bad hack.
21791       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21792       # The linker will automatically build a .lib file if we build a DLL.
21793       old_archive_From_new_cmds_GCJ='true'
21794       # FIXME: Should let the user specify the lib program.
21795       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21796       fix_srcfile_path='`cygpath -w "$srcfile"`'
21797       enable_shared_with_static_runtimes_GCJ=yes
21798       ;;
21799
21800     darwin* | rhapsody*)
21801       case "$host_os" in
21802         rhapsody* | darwin1.[012])
21803          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21804          ;;
21805        *) # Darwin 1.3 on
21806          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21807            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21808          else
21809            case ${MACOSX_DEPLOYMENT_TARGET} in
21810              10.[012])
21811                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21812                ;;
21813              10.*)
21814                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21815                ;;
21816            esac
21817          fi
21818          ;;
21819       esac
21820       archive_cmds_need_lc_GCJ=no
21821       hardcode_direct_GCJ=no
21822       hardcode_automatic_GCJ=yes
21823       hardcode_shlibpath_var_GCJ=unsupported
21824       whole_archive_flag_spec_GCJ=''
21825       link_all_deplibs_GCJ=yes
21826     if test "$GCC" = yes ; then
21827         output_verbose_link_cmd='echo'
21828         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21829       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21830       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21831       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}'
21832       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}'
21833     else
21834       case "$cc_basename" in
21835         xlc*)
21836          output_verbose_link_cmd='echo'
21837          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21838          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21839           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21840          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}'
21841           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}'
21842           ;;
21843        *)
21844          ld_shlibs_GCJ=no
21845           ;;
21846       esac
21847     fi
21848       ;;
21849
21850     dgux*)
21851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853       hardcode_shlibpath_var_GCJ=no
21854       ;;
21855
21856     freebsd1*)
21857       ld_shlibs_GCJ=no
21858       ;;
21859
21860     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21861     # support.  Future versions do this automatically, but an explicit c++rt0.o
21862     # does not break anything, and helps significantly (at the cost of a little
21863     # extra space).
21864     freebsd2.2*)
21865       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21866       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21867       hardcode_direct_GCJ=yes
21868       hardcode_shlibpath_var_GCJ=no
21869       ;;
21870
21871     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21872     freebsd2*)
21873       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21874       hardcode_direct_GCJ=yes
21875       hardcode_minus_L_GCJ=yes
21876       hardcode_shlibpath_var_GCJ=no
21877       ;;
21878
21879     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21880     freebsd* | kfreebsd*-gnu)
21881       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21882       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21883       hardcode_direct_GCJ=yes
21884       hardcode_shlibpath_var_GCJ=no
21885       ;;
21886
21887     hpux9*)
21888       if test "$GCC" = yes; then
21889         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'
21890       else
21891         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'
21892       fi
21893       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21894       hardcode_libdir_separator_GCJ=:
21895       hardcode_direct_GCJ=yes
21896
21897       # hardcode_minus_L: Not really in the search PATH,
21898       # but as the default location of the library.
21899       hardcode_minus_L_GCJ=yes
21900       export_dynamic_flag_spec_GCJ='${wl}-E'
21901       ;;
21902
21903     hpux10* | hpux11*)
21904       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21905         case "$host_cpu" in
21906         hppa*64*|ia64*)
21907           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21908           ;;
21909         *)
21910           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21911           ;;
21912         esac
21913       else
21914         case "$host_cpu" in
21915         hppa*64*|ia64*)
21916           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21917           ;;
21918         *)
21919           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21920           ;;
21921         esac
21922       fi
21923       if test "$with_gnu_ld" = no; then
21924         case "$host_cpu" in
21925         hppa*64*)
21926           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21927           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21928           hardcode_libdir_separator_GCJ=:
21929           hardcode_direct_GCJ=no
21930           hardcode_shlibpath_var_GCJ=no
21931           ;;
21932         ia64*)
21933           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934           hardcode_direct_GCJ=no
21935           hardcode_shlibpath_var_GCJ=no
21936
21937           # hardcode_minus_L: Not really in the search PATH,
21938           # but as the default location of the library.
21939           hardcode_minus_L_GCJ=yes
21940           ;;
21941         *)
21942           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21943           hardcode_libdir_separator_GCJ=:
21944           hardcode_direct_GCJ=yes
21945           export_dynamic_flag_spec_GCJ='${wl}-E'
21946
21947           # hardcode_minus_L: Not really in the search PATH,
21948           # but as the default location of the library.
21949           hardcode_minus_L_GCJ=yes
21950           ;;
21951         esac
21952       fi
21953       ;;
21954
21955     irix5* | irix6* | nonstopux*)
21956       if test "$GCC" = yes; then
21957         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'
21958       else
21959         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'
21960         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21961       fi
21962       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21963       hardcode_libdir_separator_GCJ=:
21964       link_all_deplibs_GCJ=yes
21965       ;;
21966
21967     netbsd*)
21968       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21969         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21970       else
21971         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21972       fi
21973       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21974       hardcode_direct_GCJ=yes
21975       hardcode_shlibpath_var_GCJ=no
21976       ;;
21977
21978     newsos6)
21979       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21980       hardcode_direct_GCJ=yes
21981       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982       hardcode_libdir_separator_GCJ=:
21983       hardcode_shlibpath_var_GCJ=no
21984       ;;
21985
21986     openbsd*)
21987       hardcode_direct_GCJ=yes
21988       hardcode_shlibpath_var_GCJ=no
21989       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21990         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21991         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21992         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21993         export_dynamic_flag_spec_GCJ='${wl}-E'
21994       else
21995        case $host_os in
21996          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21997            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21998            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21999            ;;
22000          *)
22001            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22002            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22003            ;;
22004        esac
22005       fi
22006       ;;
22007
22008     os2*)
22009       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22010       hardcode_minus_L_GCJ=yes
22011       allow_undefined_flag_GCJ=unsupported
22012       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'
22013       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22014       ;;
22015
22016     osf3*)
22017       if test "$GCC" = yes; then
22018         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019         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'
22020       else
22021         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22022         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'
22023       fi
22024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025       hardcode_libdir_separator_GCJ=:
22026       ;;
22027
22028     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22029       if test "$GCC" = yes; then
22030         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22031         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'
22032         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22033       else
22034         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22035         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'
22036         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~
22037         $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'
22038
22039         # Both c and cxx compiler support -rpath directly
22040         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22041       fi
22042       hardcode_libdir_separator_GCJ=:
22043       ;;
22044
22045     sco3.2v5*)
22046       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22047       hardcode_shlibpath_var_GCJ=no
22048       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22049       runpath_var=LD_RUN_PATH
22050       hardcode_runpath_var=yes
22051       ;;
22052
22053     solaris*)
22054       no_undefined_flag_GCJ=' -z text'
22055       if test "$GCC" = yes; then
22056         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22057         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22058           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22059       else
22060         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22061         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22062         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22063       fi
22064       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22065       hardcode_shlibpath_var_GCJ=no
22066       case $host_os in
22067       solaris2.[0-5] | solaris2.[0-5].*) ;;
22068       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22069         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22070       esac
22071       link_all_deplibs_GCJ=yes
22072       ;;
22073
22074     sunos4*)
22075       if test "x$host_vendor" = xsequent; then
22076         # Use $CC to link under sequent, because it throws in some extra .o
22077         # files that make .init and .fini sections work.
22078         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22079       else
22080         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22081       fi
22082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22083       hardcode_direct_GCJ=yes
22084       hardcode_minus_L_GCJ=yes
22085       hardcode_shlibpath_var_GCJ=no
22086       ;;
22087
22088     sysv4)
22089       case $host_vendor in
22090         sni)
22091           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092           hardcode_direct_GCJ=yes # is this really true???
22093         ;;
22094         siemens)
22095           ## LD is ld it makes a PLAMLIB
22096           ## CC just makes a GrossModule.
22097           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22098           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22099           hardcode_direct_GCJ=no
22100         ;;
22101         motorola)
22102           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22104         ;;
22105       esac
22106       runpath_var='LD_RUN_PATH'
22107       hardcode_shlibpath_var_GCJ=no
22108       ;;
22109
22110     sysv4.3*)
22111       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22112       hardcode_shlibpath_var_GCJ=no
22113       export_dynamic_flag_spec_GCJ='-Bexport'
22114       ;;
22115
22116     sysv4*MP*)
22117       if test -d /usr/nec; then
22118         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119         hardcode_shlibpath_var_GCJ=no
22120         runpath_var=LD_RUN_PATH
22121         hardcode_runpath_var=yes
22122         ld_shlibs_GCJ=yes
22123       fi
22124       ;;
22125
22126     sysv4.2uw2*)
22127       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22128       hardcode_direct_GCJ=yes
22129       hardcode_minus_L_GCJ=no
22130       hardcode_shlibpath_var_GCJ=no
22131       hardcode_runpath_var=yes
22132       runpath_var=LD_RUN_PATH
22133       ;;
22134
22135    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22136       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22137       if test "$GCC" = yes; then
22138         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22139       else
22140         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22141       fi
22142       runpath_var='LD_RUN_PATH'
22143       hardcode_shlibpath_var_GCJ=no
22144       ;;
22145
22146     sysv5*)
22147       no_undefined_flag_GCJ=' -z text'
22148       # $CC -shared without GNU ld will not create a library from C++
22149       # object files and a static libstdc++, better avoid it by now
22150       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22153       hardcode_libdir_flag_spec_GCJ=
22154       hardcode_shlibpath_var_GCJ=no
22155       runpath_var='LD_RUN_PATH'
22156       ;;
22157
22158     uts4*)
22159       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161       hardcode_shlibpath_var_GCJ=no
22162       ;;
22163
22164     *)
22165       ld_shlibs_GCJ=no
22166       ;;
22167     esac
22168   fi
22169
22170 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22171 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22172 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22173
22174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22175 if test "$GCC" = yes; then
22176   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22177 fi
22178
22179 #
22180 # Do we need to explicitly link libc?
22181 #
22182 case "x$archive_cmds_need_lc_GCJ" in
22183 x|xyes)
22184   # Assume -lc should be added
22185   archive_cmds_need_lc_GCJ=yes
22186
22187   if test "$enable_shared" = yes && test "$GCC" = yes; then
22188     case $archive_cmds_GCJ in
22189     *'~'*)
22190       # FIXME: we may have to deal with multi-command sequences.
22191       ;;
22192     '$CC '*)
22193       # Test whether the compiler implicitly links with -lc since on some
22194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22195       # to ld, don't add -lc before -lgcc.
22196       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22198       $rm conftest*
22199       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22200
22201       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } 2>conftest.err; then
22206         soname=conftest
22207         lib=conftest
22208         libobjs=conftest.$ac_objext
22209         deplibs=
22210         wl=$lt_prog_compiler_wl_GCJ
22211         compiler_flags=-v
22212         linker_flags=-v
22213         verstring=
22214         output_objdir=.
22215         libname=conftest
22216         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22217         allow_undefined_flag_GCJ=
22218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22219   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); }
22223         then
22224           archive_cmds_need_lc_GCJ=no
22225         else
22226           archive_cmds_need_lc_GCJ=yes
22227         fi
22228         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22229       else
22230         cat conftest.err 1>&5
22231       fi
22232       $rm conftest*
22233       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22234 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22235       ;;
22236     esac
22237   fi
22238   ;;
22239 esac
22240
22241 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22243 library_names_spec=
22244 libname_spec='lib$name'
22245 soname_spec=
22246 shrext_cmds=".so"
22247 postinstall_cmds=
22248 postuninstall_cmds=
22249 finish_cmds=
22250 finish_eval=
22251 shlibpath_var=
22252 shlibpath_overrides_runpath=unknown
22253 version_type=none
22254 dynamic_linker="$host_os ld.so"
22255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22256 if test "$GCC" = yes; then
22257   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22258   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22259     # if the path contains ";" then we assume it to be the separator
22260     # otherwise default to the standard path separator (i.e. ":") - it is
22261     # assumed that no part of a normal pathname contains ";" but that should
22262     # okay in the real world where ";" in dirpaths is itself problematic.
22263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22264   else
22265     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22266   fi
22267 else
22268   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22269 fi
22270 need_lib_prefix=unknown
22271 hardcode_into_libs=no
22272
22273 # when you set need_version to no, make sure it does not cause -set_version
22274 # flags to be left without arguments
22275 need_version=unknown
22276
22277 case $host_os in
22278 aix3*)
22279   version_type=linux
22280   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22281   shlibpath_var=LIBPATH
22282
22283   # AIX 3 has no versioning support, so we append a major version to the name.
22284   soname_spec='${libname}${release}${shared_ext}$major'
22285   ;;
22286
22287 aix4* | aix5*)
22288   version_type=linux
22289   need_lib_prefix=no
22290   need_version=no
22291   hardcode_into_libs=yes
22292   if test "$host_cpu" = ia64; then
22293     # AIX 5 supports IA64
22294     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22295     shlibpath_var=LD_LIBRARY_PATH
22296   else
22297     # With GCC up to 2.95.x, collect2 would create an import file
22298     # for dependence libraries.  The import file would start with
22299     # the line `#! .'.  This would cause the generated library to
22300     # depend on `.', always an invalid library.  This was fixed in
22301     # development snapshots of GCC prior to 3.0.
22302     case $host_os in
22303       aix4 | aix4.[01] | aix4.[01].*)
22304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22305            echo ' yes '
22306            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22307         :
22308       else
22309         can_build_shared=no
22310       fi
22311       ;;
22312     esac
22313     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22314     # soname into executable. Probably we can add versioning support to
22315     # collect2, so additional links can be useful in future.
22316     if test "$aix_use_runtimelinking" = yes; then
22317       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22318       # instead of lib<name>.a to let people know that these are not
22319       # typical AIX shared libraries.
22320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22321     else
22322       # We preserve .a as extension for shared libraries through AIX4.2
22323       # and later when we are not doing run time linking.
22324       library_names_spec='${libname}${release}.a $libname.a'
22325       soname_spec='${libname}${release}${shared_ext}$major'
22326     fi
22327     shlibpath_var=LIBPATH
22328   fi
22329   ;;
22330
22331 amigaos*)
22332   library_names_spec='$libname.ixlibrary $libname.a'
22333   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22334   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'
22335   ;;
22336
22337 beos*)
22338   library_names_spec='${libname}${shared_ext}'
22339   dynamic_linker="$host_os ld.so"
22340   shlibpath_var=LIBRARY_PATH
22341   ;;
22342
22343 bsdi[45]*)
22344   version_type=linux
22345   need_version=no
22346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22347   soname_spec='${libname}${release}${shared_ext}$major'
22348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22349   shlibpath_var=LD_LIBRARY_PATH
22350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22352   # the default ld.so.conf also contains /usr/contrib/lib and
22353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22354   # libtool to hard-code these into programs
22355   ;;
22356
22357 cygwin* | mingw* | pw32*)
22358   version_type=windows
22359   shrext_cmds=".dll"
22360   need_version=no
22361   need_lib_prefix=no
22362
22363   case $GCC,$host_os in
22364   yes,cygwin* | yes,mingw* | yes,pw32*)
22365     library_names_spec='$libname.dll.a'
22366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22367     postinstall_cmds='base_file=`basename \${file}`~
22368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22369       dldir=$destdir/`dirname \$dlpath`~
22370       test -d \$dldir || mkdir -p \$dldir~
22371       $install_prog $dir/$dlname \$dldir/$dlname'
22372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22373       dlpath=$dir/\$dldll~
22374        $rm \$dlpath'
22375     shlibpath_overrides_runpath=yes
22376
22377     case $host_os in
22378     cygwin*)
22379       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22380       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22381       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22382       ;;
22383     mingw*)
22384       # MinGW DLLs use traditional 'lib' prefix
22385       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22386       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22387       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22388         # It is most probably a Windows format PATH printed by
22389         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22390         # path with ; separators, and with drive letters. We can handle the
22391         # drive letters (cygwin fileutils understands them), so leave them,
22392         # especially as we might pass files found there to a mingw objdump,
22393         # which wouldn't understand a cygwinified path. Ahh.
22394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22395       else
22396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22397       fi
22398       ;;
22399     pw32*)
22400       # pw32 DLLs use 'pw' prefix rather than 'lib'
22401       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22402       ;;
22403     esac
22404     ;;
22405
22406   *)
22407     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22408     ;;
22409   esac
22410   dynamic_linker='Win32 ld.exe'
22411   # FIXME: first we should search . and the directory the executable is in
22412   shlibpath_var=PATH
22413   ;;
22414
22415 darwin* | rhapsody*)
22416   dynamic_linker="$host_os dyld"
22417   version_type=darwin
22418   need_lib_prefix=no
22419   need_version=no
22420   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22421   soname_spec='${libname}${release}${major}$shared_ext'
22422   shlibpath_overrides_runpath=yes
22423   shlibpath_var=DYLD_LIBRARY_PATH
22424   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22425   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22426   if test "$GCC" = yes; then
22427     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"`
22428   else
22429     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22430   fi
22431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22432   ;;
22433
22434 dgux*)
22435   version_type=linux
22436   need_lib_prefix=no
22437   need_version=no
22438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22439   soname_spec='${libname}${release}${shared_ext}$major'
22440   shlibpath_var=LD_LIBRARY_PATH
22441   ;;
22442
22443 freebsd1*)
22444   dynamic_linker=no
22445   ;;
22446
22447 kfreebsd*-gnu)
22448   version_type=linux
22449   need_lib_prefix=no
22450   need_version=no
22451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22452   soname_spec='${libname}${release}${shared_ext}$major'
22453   shlibpath_var=LD_LIBRARY_PATH
22454   shlibpath_overrides_runpath=no
22455   hardcode_into_libs=yes
22456   dynamic_linker='GNU ld.so'
22457   ;;
22458
22459 freebsd*)
22460   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22461   version_type=freebsd-$objformat
22462   case $version_type in
22463     freebsd-elf*)
22464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22465       need_version=no
22466       need_lib_prefix=no
22467       ;;
22468     freebsd-*)
22469       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22470       need_version=yes
22471       ;;
22472   esac
22473   shlibpath_var=LD_LIBRARY_PATH
22474   case $host_os in
22475   freebsd2*)
22476     shlibpath_overrides_runpath=yes
22477     ;;
22478   freebsd3.01* | freebsdelf3.01*)
22479     shlibpath_overrides_runpath=yes
22480     hardcode_into_libs=yes
22481     ;;
22482   *) # from 3.2 on
22483     shlibpath_overrides_runpath=no
22484     hardcode_into_libs=yes
22485     ;;
22486   esac
22487   ;;
22488
22489 gnu*)
22490   version_type=linux
22491   need_lib_prefix=no
22492   need_version=no
22493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22494   soname_spec='${libname}${release}${shared_ext}$major'
22495   shlibpath_var=LD_LIBRARY_PATH
22496   hardcode_into_libs=yes
22497   ;;
22498
22499 hpux9* | hpux10* | hpux11*)
22500   # Give a soname corresponding to the major version so that dld.sl refuses to
22501   # link against other versions.
22502   version_type=sunos
22503   need_lib_prefix=no
22504   need_version=no
22505   case "$host_cpu" in
22506   ia64*)
22507     shrext_cmds='.so'
22508     hardcode_into_libs=yes
22509     dynamic_linker="$host_os dld.so"
22510     shlibpath_var=LD_LIBRARY_PATH
22511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22513     soname_spec='${libname}${release}${shared_ext}$major'
22514     if test "X$HPUX_IA64_MODE" = X32; then
22515       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22516     else
22517       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22518     fi
22519     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22520     ;;
22521    hppa*64*)
22522      shrext_cmds='.sl'
22523      hardcode_into_libs=yes
22524      dynamic_linker="$host_os dld.sl"
22525      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22526      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22527      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22528      soname_spec='${libname}${release}${shared_ext}$major'
22529      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22530      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22531      ;;
22532    *)
22533     shrext_cmds='.sl'
22534     dynamic_linker="$host_os dld.sl"
22535     shlibpath_var=SHLIB_PATH
22536     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22538     soname_spec='${libname}${release}${shared_ext}$major'
22539     ;;
22540   esac
22541   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22542   postinstall_cmds='chmod 555 $lib'
22543   ;;
22544
22545 irix5* | irix6* | nonstopux*)
22546   case $host_os in
22547     nonstopux*) version_type=nonstopux ;;
22548     *)
22549         if test "$lt_cv_prog_gnu_ld" = yes; then
22550                 version_type=linux
22551         else
22552                 version_type=irix
22553         fi ;;
22554   esac
22555   need_lib_prefix=no
22556   need_version=no
22557   soname_spec='${libname}${release}${shared_ext}$major'
22558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22559   case $host_os in
22560   irix5* | nonstopux*)
22561     libsuff= shlibsuff=
22562     ;;
22563   *)
22564     case $LD in # libtool.m4 will add one of these switches to LD
22565     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22566       libsuff= shlibsuff= libmagic=32-bit;;
22567     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22568       libsuff=32 shlibsuff=N32 libmagic=N32;;
22569     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22570       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22571     *) libsuff= shlibsuff= libmagic=never-match;;
22572     esac
22573     ;;
22574   esac
22575   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22576   shlibpath_overrides_runpath=no
22577   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22578   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22579   hardcode_into_libs=yes
22580   ;;
22581
22582 # No shared lib support for Linux oldld, aout, or coff.
22583 linux*oldld* | linux*aout* | linux*coff*)
22584   dynamic_linker=no
22585   ;;
22586
22587 # This must be Linux ELF.
22588 linux*)
22589   version_type=linux
22590   need_lib_prefix=no
22591   need_version=no
22592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22593   soname_spec='${libname}${release}${shared_ext}$major'
22594   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22595   shlibpath_var=LD_LIBRARY_PATH
22596   shlibpath_overrides_runpath=no
22597   # This implies no fast_install, which is unacceptable.
22598   # Some rework will be needed to allow for fast_install
22599   # before this can be enabled.
22600   hardcode_into_libs=yes
22601
22602   # Append ld.so.conf contents to the search path
22603   if test -f /etc/ld.so.conf; then
22604     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22605     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22606   fi
22607
22608   # We used to test for /lib/ld.so.1 and disable shared libraries on
22609   # powerpc, because MkLinux only supported shared libraries with the
22610   # GNU dynamic linker.  Since this was broken with cross compilers,
22611   # most powerpc-linux boxes support dynamic linking these days and
22612   # people can always --disable-shared, the test was removed, and we
22613   # assume the GNU/Linux dynamic linker is in use.
22614   dynamic_linker='GNU/Linux ld.so'
22615   ;;
22616
22617 knetbsd*-gnu)
22618   version_type=linux
22619   need_lib_prefix=no
22620   need_version=no
22621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22622   soname_spec='${libname}${release}${shared_ext}$major'
22623   shlibpath_var=LD_LIBRARY_PATH
22624   shlibpath_overrides_runpath=no
22625   hardcode_into_libs=yes
22626   dynamic_linker='GNU ld.so'
22627   ;;
22628
22629 netbsd*)
22630   version_type=sunos
22631   need_lib_prefix=no
22632   need_version=no
22633   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22635     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22636     dynamic_linker='NetBSD (a.out) ld.so'
22637   else
22638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22639     soname_spec='${libname}${release}${shared_ext}$major'
22640     dynamic_linker='NetBSD ld.elf_so'
22641   fi
22642   shlibpath_var=LD_LIBRARY_PATH
22643   shlibpath_overrides_runpath=yes
22644   hardcode_into_libs=yes
22645   ;;
22646
22647 newsos6)
22648   version_type=linux
22649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650   shlibpath_var=LD_LIBRARY_PATH
22651   shlibpath_overrides_runpath=yes
22652   ;;
22653
22654 nto-qnx*)
22655   version_type=linux
22656   need_lib_prefix=no
22657   need_version=no
22658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659   soname_spec='${libname}${release}${shared_ext}$major'
22660   shlibpath_var=LD_LIBRARY_PATH
22661   shlibpath_overrides_runpath=yes
22662   ;;
22663
22664 openbsd*)
22665   version_type=sunos
22666   need_lib_prefix=no
22667   need_version=no
22668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670   shlibpath_var=LD_LIBRARY_PATH
22671   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22672     case $host_os in
22673       openbsd2.[89] | openbsd2.[89].*)
22674         shlibpath_overrides_runpath=no
22675         ;;
22676       *)
22677         shlibpath_overrides_runpath=yes
22678         ;;
22679       esac
22680   else
22681     shlibpath_overrides_runpath=yes
22682   fi
22683   ;;
22684
22685 os2*)
22686   libname_spec='$name'
22687   shrext_cmds=".dll"
22688   need_lib_prefix=no
22689   library_names_spec='$libname${shared_ext} $libname.a'
22690   dynamic_linker='OS/2 ld.exe'
22691   shlibpath_var=LIBPATH
22692   ;;
22693
22694 osf3* | osf4* | osf5*)
22695   version_type=osf
22696   need_lib_prefix=no
22697   need_version=no
22698   soname_spec='${libname}${release}${shared_ext}$major'
22699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700   shlibpath_var=LD_LIBRARY_PATH
22701   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22702   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22703   ;;
22704
22705 sco3.2v5*)
22706   version_type=osf
22707   soname_spec='${libname}${release}${shared_ext}$major'
22708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709   shlibpath_var=LD_LIBRARY_PATH
22710   ;;
22711
22712 solaris*)
22713   version_type=linux
22714   need_lib_prefix=no
22715   need_version=no
22716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717   soname_spec='${libname}${release}${shared_ext}$major'
22718   shlibpath_var=LD_LIBRARY_PATH
22719   shlibpath_overrides_runpath=yes
22720   hardcode_into_libs=yes
22721   # ldd complains unless libraries are executable
22722   postinstall_cmds='chmod +x $lib'
22723   ;;
22724
22725 sunos4*)
22726   version_type=sunos
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22728   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22729   shlibpath_var=LD_LIBRARY_PATH
22730   shlibpath_overrides_runpath=yes
22731   if test "$with_gnu_ld" = yes; then
22732     need_lib_prefix=no
22733   fi
22734   need_version=yes
22735   ;;
22736
22737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22738   version_type=linux
22739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740   soname_spec='${libname}${release}${shared_ext}$major'
22741   shlibpath_var=LD_LIBRARY_PATH
22742   case $host_vendor in
22743     sni)
22744       shlibpath_overrides_runpath=no
22745       need_lib_prefix=no
22746       export_dynamic_flag_spec='${wl}-Blargedynsym'
22747       runpath_var=LD_RUN_PATH
22748       ;;
22749     siemens)
22750       need_lib_prefix=no
22751       ;;
22752     motorola)
22753       need_lib_prefix=no
22754       need_version=no
22755       shlibpath_overrides_runpath=no
22756       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22757       ;;
22758   esac
22759   ;;
22760
22761 sysv4*MP*)
22762   if test -d /usr/nec ;then
22763     version_type=linux
22764     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22765     soname_spec='$libname${shared_ext}.$major'
22766     shlibpath_var=LD_LIBRARY_PATH
22767   fi
22768   ;;
22769
22770 uts4*)
22771   version_type=linux
22772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773   soname_spec='${libname}${release}${shared_ext}$major'
22774   shlibpath_var=LD_LIBRARY_PATH
22775   ;;
22776
22777 *)
22778   dynamic_linker=no
22779   ;;
22780 esac
22781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22782 echo "${ECHO_T}$dynamic_linker" >&6
22783 test "$dynamic_linker" = no && can_build_shared=no
22784
22785 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22786 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22787 hardcode_action_GCJ=
22788 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22789    test -n "$runpath_var_GCJ" || \
22790    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22791
22792   # We can hardcode non-existant directories.
22793   if test "$hardcode_direct_GCJ" != no &&
22794      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22795      # have to relink, otherwise we might link with an installed library
22796      # when we should be linking with a yet-to-be-installed one
22797      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22798      test "$hardcode_minus_L_GCJ" != no; then
22799     # Linking always hardcodes the temporary library directory.
22800     hardcode_action_GCJ=relink
22801   else
22802     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22803     hardcode_action_GCJ=immediate
22804   fi
22805 else
22806   # We cannot hardcode anything, or else we can only hardcode existing
22807   # directories.
22808   hardcode_action_GCJ=unsupported
22809 fi
22810 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22811 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22812
22813 if test "$hardcode_action_GCJ" = relink; then
22814   # Fast installation is not supported
22815   enable_fast_install=no
22816 elif test "$shlibpath_overrides_runpath" = yes ||
22817      test "$enable_shared" = no; then
22818   # Fast installation is not necessary
22819   enable_fast_install=needless
22820 fi
22821
22822 striplib=
22823 old_striplib=
22824 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22825 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22826 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22827   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22828   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22829   echo "$as_me:$LINENO: result: yes" >&5
22830 echo "${ECHO_T}yes" >&6
22831 else
22832 # FIXME - insert some real tests, host_os isn't really good enough
22833   case $host_os in
22834    darwin*)
22835        if test -n "$STRIP" ; then
22836          striplib="$STRIP -x"
22837          echo "$as_me:$LINENO: result: yes" >&5
22838 echo "${ECHO_T}yes" >&6
22839        else
22840   echo "$as_me:$LINENO: result: no" >&5
22841 echo "${ECHO_T}no" >&6
22842 fi
22843        ;;
22844    *)
22845   echo "$as_me:$LINENO: result: no" >&5
22846 echo "${ECHO_T}no" >&6
22847     ;;
22848   esac
22849 fi
22850
22851 if test "x$enable_dlopen" != xyes; then
22852   enable_dlopen=unknown
22853   enable_dlopen_self=unknown
22854   enable_dlopen_self_static=unknown
22855 else
22856   lt_cv_dlopen=no
22857   lt_cv_dlopen_libs=
22858
22859   case $host_os in
22860   beos*)
22861     lt_cv_dlopen="load_add_on"
22862     lt_cv_dlopen_libs=
22863     lt_cv_dlopen_self=yes
22864     ;;
22865
22866   mingw* | pw32*)
22867     lt_cv_dlopen="LoadLibrary"
22868     lt_cv_dlopen_libs=
22869    ;;
22870
22871   cygwin*)
22872     lt_cv_dlopen="dlopen"
22873     lt_cv_dlopen_libs=
22874    ;;
22875
22876   darwin*)
22877   # if libdl is installed we need to link against it
22878     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22879 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22881   echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883   ac_check_lib_save_LIBS=$LIBS
22884 LIBS="-ldl  $LIBS"
22885 cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891
22892 /* Override any gcc2 internal prototype to avoid an error.  */
22893 #ifdef __cplusplus
22894 extern "C"
22895 #endif
22896 /* We use char because int might match the return type of a gcc2
22897    builtin and then its argument prototype would still apply.  */
22898 char dlopen ();
22899 int
22900 main ()
22901 {
22902 dlopen ();
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909   (eval $ac_link) 2>conftest.er1
22910   ac_status=$?
22911   grep -v '^ *+' conftest.er1 >conftest.err
22912   rm -f conftest.er1
22913   cat conftest.err >&5
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } &&
22916          { ac_try='test -z "$ac_c_werror_flag"
22917                          || test ! -s conftest.err'
22918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919   (eval $ac_try) 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; } &&
22923          { ac_try='test -s conftest$ac_exeext'
22924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925   (eval $ac_try) 2>&5
22926   ac_status=$?
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; }; then
22929   ac_cv_lib_dl_dlopen=yes
22930 else
22931   echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 ac_cv_lib_dl_dlopen=no
22935 fi
22936 rm -f conftest.err conftest.$ac_objext \
22937       conftest$ac_exeext conftest.$ac_ext
22938 LIBS=$ac_check_lib_save_LIBS
22939 fi
22940 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22941 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22942 if test $ac_cv_lib_dl_dlopen = yes; then
22943   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22944 else
22945
22946     lt_cv_dlopen="dyld"
22947     lt_cv_dlopen_libs=
22948     lt_cv_dlopen_self=yes
22949
22950 fi
22951
22952    ;;
22953
22954   *)
22955     echo "$as_me:$LINENO: checking for shl_load" >&5
22956 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22957 if test "${ac_cv_func_shl_load+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22968 #define shl_load innocuous_shl_load
22969
22970 /* System header to define __stub macros and hopefully few prototypes,
22971     which can conflict with char shl_load (); below.
22972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22973     <limits.h> exists even on freestanding compilers.  */
22974
22975 #ifdef __STDC__
22976 # include <limits.h>
22977 #else
22978 # include <assert.h>
22979 #endif
22980
22981 #undef shl_load
22982
22983 /* Override any gcc2 internal prototype to avoid an error.  */
22984 #ifdef __cplusplus
22985 extern "C"
22986 {
22987 #endif
22988 /* We use char because int might match the return type of a gcc2
22989    builtin and then its argument prototype would still apply.  */
22990 char shl_load ();
22991 /* The GNU C library defines this for functions which it implements
22992     to always fail with ENOSYS.  Some functions are actually named
22993     something starting with __ and the normal name is an alias.  */
22994 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22995 choke me
22996 #else
22997 char (*f) () = shl_load;
22998 #endif
22999 #ifdef __cplusplus
23000 }
23001 #endif
23002
23003 int
23004 main ()
23005 {
23006 return f != shl_load;
23007   ;
23008   return 0;
23009 }
23010 _ACEOF
23011 rm -f conftest.$ac_objext conftest$ac_exeext
23012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23013   (eval $ac_link) 2>conftest.er1
23014   ac_status=$?
23015   grep -v '^ *+' conftest.er1 >conftest.err
23016   rm -f conftest.er1
23017   cat conftest.err >&5
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); } &&
23020          { ac_try='test -z "$ac_c_werror_flag"
23021                          || test ! -s conftest.err'
23022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023   (eval $ac_try) 2>&5
23024   ac_status=$?
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); }; } &&
23027          { ac_try='test -s conftest$ac_exeext'
23028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029   (eval $ac_try) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); }; }; then
23033   ac_cv_func_shl_load=yes
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 ac_cv_func_shl_load=no
23039 fi
23040 rm -f conftest.err conftest.$ac_objext \
23041       conftest$ac_exeext conftest.$ac_ext
23042 fi
23043 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23044 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23045 if test $ac_cv_func_shl_load = yes; then
23046   lt_cv_dlopen="shl_load"
23047 else
23048   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23049 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23050 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053   ac_check_lib_save_LIBS=$LIBS
23054 LIBS="-ldld  $LIBS"
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061
23062 /* Override any gcc2 internal prototype to avoid an error.  */
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 /* We use char because int might match the return type of a gcc2
23067    builtin and then its argument prototype would still apply.  */
23068 char shl_load ();
23069 int
23070 main ()
23071 {
23072 shl_load ();
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext conftest$ac_exeext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23079   (eval $ac_link) 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } &&
23086          { ac_try='test -z "$ac_c_werror_flag"
23087                          || test ! -s conftest.err'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; } &&
23093          { ac_try='test -s conftest$ac_exeext'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; }; then
23099   ac_cv_lib_dld_shl_load=yes
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 ac_cv_lib_dld_shl_load=no
23105 fi
23106 rm -f conftest.err conftest.$ac_objext \
23107       conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23109 fi
23110 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23111 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23112 if test $ac_cv_lib_dld_shl_load = yes; then
23113   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23114 else
23115   echo "$as_me:$LINENO: checking for dlopen" >&5
23116 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23117 if test "${ac_cv_func_dlopen+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23128 #define dlopen innocuous_dlopen
23129
23130 /* System header to define __stub macros and hopefully few prototypes,
23131     which can conflict with char dlopen (); below.
23132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23133     <limits.h> exists even on freestanding compilers.  */
23134
23135 #ifdef __STDC__
23136 # include <limits.h>
23137 #else
23138 # include <assert.h>
23139 #endif
23140
23141 #undef dlopen
23142
23143 /* Override any gcc2 internal prototype to avoid an error.  */
23144 #ifdef __cplusplus
23145 extern "C"
23146 {
23147 #endif
23148 /* We use char because int might match the return type of a gcc2
23149    builtin and then its argument prototype would still apply.  */
23150 char dlopen ();
23151 /* The GNU C library defines this for functions which it implements
23152     to always fail with ENOSYS.  Some functions are actually named
23153     something starting with __ and the normal name is an alias.  */
23154 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23155 choke me
23156 #else
23157 char (*f) () = dlopen;
23158 #endif
23159 #ifdef __cplusplus
23160 }
23161 #endif
23162
23163 int
23164 main ()
23165 {
23166 return f != dlopen;
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23173   (eval $ac_link) 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } &&
23180          { ac_try='test -z "$ac_c_werror_flag"
23181                          || test ! -s conftest.err'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; } &&
23187          { ac_try='test -s conftest$ac_exeext'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }; then
23193   ac_cv_func_dlopen=yes
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198 ac_cv_func_dlopen=no
23199 fi
23200 rm -f conftest.err conftest.$ac_objext \
23201       conftest$ac_exeext conftest.$ac_ext
23202 fi
23203 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23204 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23205 if test $ac_cv_func_dlopen = yes; then
23206   lt_cv_dlopen="dlopen"
23207 else
23208   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23209 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   ac_check_lib_save_LIBS=$LIBS
23214 LIBS="-ldl  $LIBS"
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
23222 /* Override any gcc2 internal prototype to avoid an error.  */
23223 #ifdef __cplusplus
23224 extern "C"
23225 #endif
23226 /* We use char because int might match the return type of a gcc2
23227    builtin and then its argument prototype would still apply.  */
23228 char dlopen ();
23229 int
23230 main ()
23231 {
23232 dlopen ();
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239   (eval $ac_link) 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } &&
23246          { ac_try='test -z "$ac_c_werror_flag"
23247                          || test ! -s conftest.err'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; } &&
23253          { ac_try='test -s conftest$ac_exeext'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; }; then
23259   ac_cv_lib_dl_dlopen=yes
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264 ac_cv_lib_dl_dlopen=no
23265 fi
23266 rm -f conftest.err conftest.$ac_objext \
23267       conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23269 fi
23270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23272 if test $ac_cv_lib_dl_dlopen = yes; then
23273   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23274 else
23275   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23276 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23277 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23278   echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280   ac_check_lib_save_LIBS=$LIBS
23281 LIBS="-lsvld  $LIBS"
23282 cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288
23289 /* Override any gcc2 internal prototype to avoid an error.  */
23290 #ifdef __cplusplus
23291 extern "C"
23292 #endif
23293 /* We use char because int might match the return type of a gcc2
23294    builtin and then its argument prototype would still apply.  */
23295 char dlopen ();
23296 int
23297 main ()
23298 {
23299 dlopen ();
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306   (eval $ac_link) 2>conftest.er1
23307   ac_status=$?
23308   grep -v '^ *+' conftest.er1 >conftest.err
23309   rm -f conftest.er1
23310   cat conftest.err >&5
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } &&
23313          { ac_try='test -z "$ac_c_werror_flag"
23314                          || test ! -s conftest.err'
23315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest$ac_exeext'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   ac_cv_lib_svld_dlopen=yes
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 ac_cv_lib_svld_dlopen=no
23332 fi
23333 rm -f conftest.err conftest.$ac_objext \
23334       conftest$ac_exeext conftest.$ac_ext
23335 LIBS=$ac_check_lib_save_LIBS
23336 fi
23337 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23338 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23339 if test $ac_cv_lib_svld_dlopen = yes; then
23340   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23341 else
23342   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23343 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23344 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23345   echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347   ac_check_lib_save_LIBS=$LIBS
23348 LIBS="-ldld  $LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355
23356 /* Override any gcc2 internal prototype to avoid an error.  */
23357 #ifdef __cplusplus
23358 extern "C"
23359 #endif
23360 /* We use char because int might match the return type of a gcc2
23361    builtin and then its argument prototype would still apply.  */
23362 char dld_link ();
23363 int
23364 main ()
23365 {
23366 dld_link ();
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23373   (eval $ac_link) 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } &&
23380          { ac_try='test -z "$ac_c_werror_flag"
23381                          || test ! -s conftest.err'
23382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383   (eval $ac_try) 2>&5
23384   ac_status=$?
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); }; } &&
23387          { ac_try='test -s conftest$ac_exeext'
23388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389   (eval $ac_try) 2>&5
23390   ac_status=$?
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); }; }; then
23393   ac_cv_lib_dld_dld_link=yes
23394 else
23395   echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23397
23398 ac_cv_lib_dld_dld_link=no
23399 fi
23400 rm -f conftest.err conftest.$ac_objext \
23401       conftest$ac_exeext conftest.$ac_ext
23402 LIBS=$ac_check_lib_save_LIBS
23403 fi
23404 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23405 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23406 if test $ac_cv_lib_dld_dld_link = yes; then
23407   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23408 fi
23409
23410
23411 fi
23412
23413
23414 fi
23415
23416
23417 fi
23418
23419
23420 fi
23421
23422
23423 fi
23424
23425     ;;
23426   esac
23427
23428   if test "x$lt_cv_dlopen" != xno; then
23429     enable_dlopen=yes
23430   else
23431     enable_dlopen=no
23432   fi
23433
23434   case $lt_cv_dlopen in
23435   dlopen)
23436     save_CPPFLAGS="$CPPFLAGS"
23437     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23438
23439     save_LDFLAGS="$LDFLAGS"
23440     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23441
23442     save_LIBS="$LIBS"
23443     LIBS="$lt_cv_dlopen_libs $LIBS"
23444
23445     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23446 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23447 if test "${lt_cv_dlopen_self+set}" = set; then
23448   echo $ECHO_N "(cached) $ECHO_C" >&6
23449 else
23450           if test "$cross_compiling" = yes; then :
23451   lt_cv_dlopen_self=cross
23452 else
23453   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454   lt_status=$lt_dlunknown
23455   cat > conftest.$ac_ext <<EOF
23456 #line 23456 "configure"
23457 #include "confdefs.h"
23458
23459 #if HAVE_DLFCN_H
23460 #include <dlfcn.h>
23461 #endif
23462
23463 #include <stdio.h>
23464
23465 #ifdef RTLD_GLOBAL
23466 #  define LT_DLGLOBAL           RTLD_GLOBAL
23467 #else
23468 #  ifdef DL_GLOBAL
23469 #    define LT_DLGLOBAL         DL_GLOBAL
23470 #  else
23471 #    define LT_DLGLOBAL         0
23472 #  endif
23473 #endif
23474
23475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476    find out it does not work in some platform. */
23477 #ifndef LT_DLLAZY_OR_NOW
23478 #  ifdef RTLD_LAZY
23479 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23480 #  else
23481 #    ifdef DL_LAZY
23482 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23483 #    else
23484 #      ifdef RTLD_NOW
23485 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23486 #      else
23487 #        ifdef DL_NOW
23488 #          define LT_DLLAZY_OR_NOW      DL_NOW
23489 #        else
23490 #          define LT_DLLAZY_OR_NOW      0
23491 #        endif
23492 #      endif
23493 #    endif
23494 #  endif
23495 #endif
23496
23497 #ifdef __cplusplus
23498 extern "C" void exit (int);
23499 #endif
23500
23501 void fnord() { int i=42;}
23502 int main ()
23503 {
23504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505   int status = $lt_dlunknown;
23506
23507   if (self)
23508     {
23509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23510       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511       /* dlclose (self); */
23512     }
23513
23514     exit (status);
23515 }
23516 EOF
23517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522     (./conftest; exit; ) 2>/dev/null
23523     lt_status=$?
23524     case x$lt_status in
23525       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23526       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23527       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23528     esac
23529   else :
23530     # compilation failed
23531     lt_cv_dlopen_self=no
23532   fi
23533 fi
23534 rm -fr conftest*
23535
23536
23537 fi
23538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23539 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23540
23541     if test "x$lt_cv_dlopen_self" = xyes; then
23542       LDFLAGS="$LDFLAGS $link_static_flag"
23543       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23544 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23545 if test "${lt_cv_dlopen_self_static+set}" = set; then
23546   echo $ECHO_N "(cached) $ECHO_C" >&6
23547 else
23548           if test "$cross_compiling" = yes; then :
23549   lt_cv_dlopen_self_static=cross
23550 else
23551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23552   lt_status=$lt_dlunknown
23553   cat > conftest.$ac_ext <<EOF
23554 #line 23554 "configure"
23555 #include "confdefs.h"
23556
23557 #if HAVE_DLFCN_H
23558 #include <dlfcn.h>
23559 #endif
23560
23561 #include <stdio.h>
23562
23563 #ifdef RTLD_GLOBAL
23564 #  define LT_DLGLOBAL           RTLD_GLOBAL
23565 #else
23566 #  ifdef DL_GLOBAL
23567 #    define LT_DLGLOBAL         DL_GLOBAL
23568 #  else
23569 #    define LT_DLGLOBAL         0
23570 #  endif
23571 #endif
23572
23573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23574    find out it does not work in some platform. */
23575 #ifndef LT_DLLAZY_OR_NOW
23576 #  ifdef RTLD_LAZY
23577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23578 #  else
23579 #    ifdef DL_LAZY
23580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23581 #    else
23582 #      ifdef RTLD_NOW
23583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23584 #      else
23585 #        ifdef DL_NOW
23586 #          define LT_DLLAZY_OR_NOW      DL_NOW
23587 #        else
23588 #          define LT_DLLAZY_OR_NOW      0
23589 #        endif
23590 #      endif
23591 #    endif
23592 #  endif
23593 #endif
23594
23595 #ifdef __cplusplus
23596 extern "C" void exit (int);
23597 #endif
23598
23599 void fnord() { int i=42;}
23600 int main ()
23601 {
23602   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23603   int status = $lt_dlunknown;
23604
23605   if (self)
23606     {
23607       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23608       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23609       /* dlclose (self); */
23610     }
23611
23612     exit (status);
23613 }
23614 EOF
23615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616   (eval $ac_link) 2>&5
23617   ac_status=$?
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23620     (./conftest; exit; ) 2>/dev/null
23621     lt_status=$?
23622     case x$lt_status in
23623       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23624       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23625       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23626     esac
23627   else :
23628     # compilation failed
23629     lt_cv_dlopen_self_static=no
23630   fi
23631 fi
23632 rm -fr conftest*
23633
23634
23635 fi
23636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23638     fi
23639
23640     CPPFLAGS="$save_CPPFLAGS"
23641     LDFLAGS="$save_LDFLAGS"
23642     LIBS="$save_LIBS"
23643     ;;
23644   esac
23645
23646   case $lt_cv_dlopen_self in
23647   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23648   *) enable_dlopen_self=unknown ;;
23649   esac
23650
23651   case $lt_cv_dlopen_self_static in
23652   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23653   *) enable_dlopen_self_static=unknown ;;
23654   esac
23655 fi
23656
23657
23658 # The else clause should only fire when bootstrapping the
23659 # libtool distribution, otherwise you forgot to ship ltmain.sh
23660 # with your package, and you will get complaints that there are
23661 # no rules to generate ltmain.sh.
23662 if test -f "$ltmain"; then
23663   # See if we are running on zsh, and set the options which allow our commands through
23664   # without removal of \ escapes.
23665   if test -n "${ZSH_VERSION+set}" ; then
23666     setopt NO_GLOB_SUBST
23667   fi
23668   # Now quote all the things that may contain metacharacters while being
23669   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23670   # variables and quote the copies for generation of the libtool script.
23671   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23672     SED SHELL STRIP \
23673     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23674     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23675     deplibs_check_method reload_flag reload_cmds need_locks \
23676     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23677     lt_cv_sys_global_symbol_to_c_name_address \
23678     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23679     old_postinstall_cmds old_postuninstall_cmds \
23680     compiler_GCJ \
23681     CC_GCJ \
23682     LD_GCJ \
23683     lt_prog_compiler_wl_GCJ \
23684     lt_prog_compiler_pic_GCJ \
23685     lt_prog_compiler_static_GCJ \
23686     lt_prog_compiler_no_builtin_flag_GCJ \
23687     export_dynamic_flag_spec_GCJ \
23688     thread_safe_flag_spec_GCJ \
23689     whole_archive_flag_spec_GCJ \
23690     enable_shared_with_static_runtimes_GCJ \
23691     old_archive_cmds_GCJ \
23692     old_archive_from_new_cmds_GCJ \
23693     predep_objects_GCJ \
23694     postdep_objects_GCJ \
23695     predeps_GCJ \
23696     postdeps_GCJ \
23697     compiler_lib_search_path_GCJ \
23698     archive_cmds_GCJ \
23699     archive_expsym_cmds_GCJ \
23700     postinstall_cmds_GCJ \
23701     postuninstall_cmds_GCJ \
23702     old_archive_from_expsyms_cmds_GCJ \
23703     allow_undefined_flag_GCJ \
23704     no_undefined_flag_GCJ \
23705     export_symbols_cmds_GCJ \
23706     hardcode_libdir_flag_spec_GCJ \
23707     hardcode_libdir_flag_spec_ld_GCJ \
23708     hardcode_libdir_separator_GCJ \
23709     hardcode_automatic_GCJ \
23710     module_cmds_GCJ \
23711     module_expsym_cmds_GCJ \
23712     lt_cv_prog_compiler_c_o_GCJ \
23713     exclude_expsyms_GCJ \
23714     include_expsyms_GCJ; do
23715
23716     case $var in
23717     old_archive_cmds_GCJ | \
23718     old_archive_from_new_cmds_GCJ | \
23719     archive_cmds_GCJ | \
23720     archive_expsym_cmds_GCJ | \
23721     module_cmds_GCJ | \
23722     module_expsym_cmds_GCJ | \
23723     old_archive_from_expsyms_cmds_GCJ | \
23724     export_symbols_cmds_GCJ | \
23725     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23726     postinstall_cmds | postuninstall_cmds | \
23727     old_postinstall_cmds | old_postuninstall_cmds | \
23728     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23729       # Double-quote double-evaled strings.
23730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23731       ;;
23732     *)
23733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23734       ;;
23735     esac
23736   done
23737
23738   case $lt_echo in
23739   *'\$0 --fallback-echo"')
23740     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23741     ;;
23742   esac
23743
23744 cfgfile="$ofile"
23745
23746   cat <<__EOF__ >> "$cfgfile"
23747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23748
23749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23750
23751 # Shell to use when invoking shell scripts.
23752 SHELL=$lt_SHELL
23753
23754 # Whether or not to build shared libraries.
23755 build_libtool_libs=$enable_shared
23756
23757 # Whether or not to build static libraries.
23758 build_old_libs=$enable_static
23759
23760 # Whether or not to add -lc for building shared libraries.
23761 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23762
23763 # Whether or not to disallow shared libs when runtime libs are static
23764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23765
23766 # Whether or not to optimize for fast installation.
23767 fast_install=$enable_fast_install
23768
23769 # The host system.
23770 host_alias=$host_alias
23771 host=$host
23772
23773 # An echo program that does not interpret backslashes.
23774 echo=$lt_echo
23775
23776 # The archiver.
23777 AR=$lt_AR
23778 AR_FLAGS=$lt_AR_FLAGS
23779
23780 # A C compiler.
23781 LTCC=$lt_LTCC
23782
23783 # A language-specific compiler.
23784 CC=$lt_compiler_GCJ
23785
23786 # Is the compiler the GNU C compiler?
23787 with_gcc=$GCC_GCJ
23788
23789 # An ERE matcher.
23790 EGREP=$lt_EGREP
23791
23792 # The linker used to build libraries.
23793 LD=$lt_LD_GCJ
23794
23795 # Whether we need hard or soft links.
23796 LN_S=$lt_LN_S
23797
23798 # A BSD-compatible nm program.
23799 NM=$lt_NM
23800
23801 # A symbol stripping program
23802 STRIP=$lt_STRIP
23803
23804 # Used to examine libraries when file_magic_cmd begins "file"
23805 MAGIC_CMD=$MAGIC_CMD
23806
23807 # Used on cygwin: DLL creation program.
23808 DLLTOOL="$DLLTOOL"
23809
23810 # Used on cygwin: object dumper.
23811 OBJDUMP="$OBJDUMP"
23812
23813 # Used on cygwin: assembler.
23814 AS="$AS"
23815
23816 # The name of the directory that contains temporary libtool files.
23817 objdir=$objdir
23818
23819 # How to create reloadable object files.
23820 reload_flag=$lt_reload_flag
23821 reload_cmds=$lt_reload_cmds
23822
23823 # How to pass a linker flag through the compiler.
23824 wl=$lt_lt_prog_compiler_wl_GCJ
23825
23826 # Object file suffix (normally "o").
23827 objext="$ac_objext"
23828
23829 # Old archive suffix (normally "a").
23830 libext="$libext"
23831
23832 # Shared library suffix (normally ".so").
23833 shrext_cmds='$shrext_cmds'
23834
23835 # Executable file suffix (normally "").
23836 exeext="$exeext"
23837
23838 # Additional compiler flags for building library objects.
23839 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23840 pic_mode=$pic_mode
23841
23842 # What is the maximum length of a command?
23843 max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845 # Does compiler simultaneously support -c and -o options?
23846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23847
23848 # Must we lock files when doing compilation ?
23849 need_locks=$lt_need_locks
23850
23851 # Do we need the lib prefix for modules?
23852 need_lib_prefix=$need_lib_prefix
23853
23854 # Do we need a version for libraries?
23855 need_version=$need_version
23856
23857 # Whether dlopen is supported.
23858 dlopen_support=$enable_dlopen
23859
23860 # Whether dlopen of programs is supported.
23861 dlopen_self=$enable_dlopen_self
23862
23863 # Whether dlopen of statically linked programs is supported.
23864 dlopen_self_static=$enable_dlopen_self_static
23865
23866 # Compiler flag to prevent dynamic linking.
23867 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23868
23869 # Compiler flag to turn off builtin functions.
23870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23871
23872 # Compiler flag to allow reflexive dlopens.
23873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23874
23875 # Compiler flag to generate shared objects directly from archives.
23876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23877
23878 # Compiler flag to generate thread-safe objects.
23879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23880
23881 # Library versioning type.
23882 version_type=$version_type
23883
23884 # Format of library name prefix.
23885 libname_spec=$lt_libname_spec
23886
23887 # List of archive names.  First name is the real one, the rest are links.
23888 # The last name is the one that the linker finds with -lNAME.
23889 library_names_spec=$lt_library_names_spec
23890
23891 # The coded name of the library, if different from the real name.
23892 soname_spec=$lt_soname_spec
23893
23894 # Commands used to build and install an old-style archive.
23895 RANLIB=$lt_RANLIB
23896 old_archive_cmds=$lt_old_archive_cmds_GCJ
23897 old_postinstall_cmds=$lt_old_postinstall_cmds
23898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900 # Create an old-style archive from a shared archive.
23901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23902
23903 # Create a temporary old-style archive to link instead of a shared archive.
23904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23905
23906 # Commands used to build and install a shared archive.
23907 archive_cmds=$lt_archive_cmds_GCJ
23908 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23909 postinstall_cmds=$lt_postinstall_cmds
23910 postuninstall_cmds=$lt_postuninstall_cmds
23911
23912 # Commands used to build a loadable module (assumed same as above if empty)
23913 module_cmds=$lt_module_cmds_GCJ
23914 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23915
23916 # Commands to strip libraries.
23917 old_striplib=$lt_old_striplib
23918 striplib=$lt_striplib
23919
23920 # Dependencies to place before the objects being linked to create a
23921 # shared library.
23922 predep_objects=$lt_predep_objects_GCJ
23923
23924 # Dependencies to place after the objects being linked to create a
23925 # shared library.
23926 postdep_objects=$lt_postdep_objects_GCJ
23927
23928 # Dependencies to place before the objects being linked to create a
23929 # shared library.
23930 predeps=$lt_predeps_GCJ
23931
23932 # Dependencies to place after the objects being linked to create a
23933 # shared library.
23934 postdeps=$lt_postdeps_GCJ
23935
23936 # The library search path used internally by the compiler when linking
23937 # a shared library.
23938 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23939
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23942
23943 # Command to use when deplibs_check_method == file_magic.
23944 file_magic_cmd=$lt_file_magic_cmd
23945
23946 # Flag that allows shared libraries with undefined symbols to be built.
23947 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23948
23949 # Flag that forces no undefined symbols.
23950 no_undefined_flag=$lt_no_undefined_flag_GCJ
23951
23952 # Commands used to finish a libtool library installation in a directory.
23953 finish_cmds=$lt_finish_cmds
23954
23955 # Same as above, but a single script fragment to be evaled but not shown.
23956 finish_eval=$lt_finish_eval
23957
23958 # Take the output of nm and produce a listing of raw symbols and C names.
23959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961 # Transform the output of nm in a proper C declaration
23962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964 # Transform the output of nm in a C name address pair
23965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967 # This is the shared library runtime path variable.
23968 runpath_var=$runpath_var
23969
23970 # This is the shared library path variable.
23971 shlibpath_var=$shlibpath_var
23972
23973 # Is shlibpath searched before the hard-coded library search path?
23974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976 # How to hardcode a shared library path into an executable.
23977 hardcode_action=$hardcode_action_GCJ
23978
23979 # Whether we should hardcode library paths into libraries.
23980 hardcode_into_libs=$hardcode_into_libs
23981
23982 # Flag to hardcode \$libdir into a binary during linking.
23983 # This must work even if \$libdir does not exist.
23984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23985
23986 # If ld is used when linking, flag to hardcode \$libdir into
23987 # a binary during linking. This must work even if \$libdir does
23988 # not exist.
23989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23990
23991 # Whether we need a single -rpath flag with a separated argument.
23992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23993
23994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995 # resulting binary.
23996 hardcode_direct=$hardcode_direct_GCJ
23997
23998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999 # resulting binary.
24000 hardcode_minus_L=$hardcode_minus_L_GCJ
24001
24002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003 # the resulting binary.
24004 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24005
24006 # Set to yes if building a shared library automatically hardcodes DIR into the library
24007 # and all subsequent libraries and executables linked against it.
24008 hardcode_automatic=$hardcode_automatic_GCJ
24009
24010 # Variables whose values should be saved in libtool wrapper scripts and
24011 # restored at relink time.
24012 variables_saved_for_relink="$variables_saved_for_relink"
24013
24014 # Whether libtool must link a program against all its dependency libraries.
24015 link_all_deplibs=$link_all_deplibs_GCJ
24016
24017 # Compile-time system search path for libraries
24018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020 # Run-time system search path for libraries
24021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023 # Fix the shell variable \$srcfile for the compiler.
24024 fix_srcfile_path="$fix_srcfile_path_GCJ"
24025
24026 # Set to yes if exported symbols are required.
24027 always_export_symbols=$always_export_symbols_GCJ
24028
24029 # The commands to list exported symbols.
24030 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24031
24032 # The commands to extract the exported symbol list from a shared archive.
24033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035 # Symbols that should not be listed in the preloaded symbols.
24036 exclude_expsyms=$lt_exclude_expsyms_GCJ
24037
24038 # Symbols that must always be exported.
24039 include_expsyms=$lt_include_expsyms_GCJ
24040
24041 # ### END LIBTOOL TAG CONFIG: $tagname
24042
24043 __EOF__
24044
24045
24046 else
24047   # If there is no Makefile yet, we rely on a make rule to execute
24048   # `config.status --recheck' to rerun these tests and create the
24049   # libtool script then.
24050   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051   if test -f "$ltmain_in"; then
24052     test -f Makefile && make "$ltmain"
24053   fi
24054 fi
24055
24056
24057 ac_ext=c
24058 ac_cpp='$CPP $CPPFLAGS'
24059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063 CC="$lt_save_CC"
24064
24065         else
24066           tagname=""
24067         fi
24068         ;;
24069
24070       RC)
24071         ac_ext=c
24072 ac_cpp='$CPP $CPPFLAGS'
24073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24076
24077
24078 # Source file extension for RC test sources.
24079 ac_ext=rc
24080
24081 # Object file extension for compiled RC test sources.
24082 objext=o
24083 objext_RC=$objext
24084
24085 # Code to be used in simple compile tests
24086 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24087
24088 # Code to be used in simple link tests
24089 lt_simple_link_test_code="$lt_simple_compile_test_code"
24090
24091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24092
24093 # If no C compiler was specified, use CC.
24094 LTCC=${LTCC-"$CC"}
24095
24096 # Allow CC to be a program name with arguments.
24097 compiler=$CC
24098
24099
24100 # Allow CC to be a program name with arguments.
24101 lt_save_CC="$CC"
24102 CC=${RC-"windres"}
24103 compiler=$CC
24104 compiler_RC=$CC
24105 lt_cv_prog_compiler_c_o_RC=yes
24106
24107 # The else clause should only fire when bootstrapping the
24108 # libtool distribution, otherwise you forgot to ship ltmain.sh
24109 # with your package, and you will get complaints that there are
24110 # no rules to generate ltmain.sh.
24111 if test -f "$ltmain"; then
24112   # See if we are running on zsh, and set the options which allow our commands through
24113   # without removal of \ escapes.
24114   if test -n "${ZSH_VERSION+set}" ; then
24115     setopt NO_GLOB_SUBST
24116   fi
24117   # Now quote all the things that may contain metacharacters while being
24118   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24119   # variables and quote the copies for generation of the libtool script.
24120   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24121     SED SHELL STRIP \
24122     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24123     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24124     deplibs_check_method reload_flag reload_cmds need_locks \
24125     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24126     lt_cv_sys_global_symbol_to_c_name_address \
24127     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24128     old_postinstall_cmds old_postuninstall_cmds \
24129     compiler_RC \
24130     CC_RC \
24131     LD_RC \
24132     lt_prog_compiler_wl_RC \
24133     lt_prog_compiler_pic_RC \
24134     lt_prog_compiler_static_RC \
24135     lt_prog_compiler_no_builtin_flag_RC \
24136     export_dynamic_flag_spec_RC \
24137     thread_safe_flag_spec_RC \
24138     whole_archive_flag_spec_RC \
24139     enable_shared_with_static_runtimes_RC \
24140     old_archive_cmds_RC \
24141     old_archive_from_new_cmds_RC \
24142     predep_objects_RC \
24143     postdep_objects_RC \
24144     predeps_RC \
24145     postdeps_RC \
24146     compiler_lib_search_path_RC \
24147     archive_cmds_RC \
24148     archive_expsym_cmds_RC \
24149     postinstall_cmds_RC \
24150     postuninstall_cmds_RC \
24151     old_archive_from_expsyms_cmds_RC \
24152     allow_undefined_flag_RC \
24153     no_undefined_flag_RC \
24154     export_symbols_cmds_RC \
24155     hardcode_libdir_flag_spec_RC \
24156     hardcode_libdir_flag_spec_ld_RC \
24157     hardcode_libdir_separator_RC \
24158     hardcode_automatic_RC \
24159     module_cmds_RC \
24160     module_expsym_cmds_RC \
24161     lt_cv_prog_compiler_c_o_RC \
24162     exclude_expsyms_RC \
24163     include_expsyms_RC; do
24164
24165     case $var in
24166     old_archive_cmds_RC | \
24167     old_archive_from_new_cmds_RC | \
24168     archive_cmds_RC | \
24169     archive_expsym_cmds_RC | \
24170     module_cmds_RC | \
24171     module_expsym_cmds_RC | \
24172     old_archive_from_expsyms_cmds_RC | \
24173     export_symbols_cmds_RC | \
24174     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24175     postinstall_cmds | postuninstall_cmds | \
24176     old_postinstall_cmds | old_postuninstall_cmds | \
24177     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24178       # Double-quote double-evaled strings.
24179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24180       ;;
24181     *)
24182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24183       ;;
24184     esac
24185   done
24186
24187   case $lt_echo in
24188   *'\$0 --fallback-echo"')
24189     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24190     ;;
24191   esac
24192
24193 cfgfile="$ofile"
24194
24195   cat <<__EOF__ >> "$cfgfile"
24196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24197
24198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24199
24200 # Shell to use when invoking shell scripts.
24201 SHELL=$lt_SHELL
24202
24203 # Whether or not to build shared libraries.
24204 build_libtool_libs=$enable_shared
24205
24206 # Whether or not to build static libraries.
24207 build_old_libs=$enable_static
24208
24209 # Whether or not to add -lc for building shared libraries.
24210 build_libtool_need_lc=$archive_cmds_need_lc_RC
24211
24212 # Whether or not to disallow shared libs when runtime libs are static
24213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24214
24215 # Whether or not to optimize for fast installation.
24216 fast_install=$enable_fast_install
24217
24218 # The host system.
24219 host_alias=$host_alias
24220 host=$host
24221
24222 # An echo program that does not interpret backslashes.
24223 echo=$lt_echo
24224
24225 # The archiver.
24226 AR=$lt_AR
24227 AR_FLAGS=$lt_AR_FLAGS
24228
24229 # A C compiler.
24230 LTCC=$lt_LTCC
24231
24232 # A language-specific compiler.
24233 CC=$lt_compiler_RC
24234
24235 # Is the compiler the GNU C compiler?
24236 with_gcc=$GCC_RC
24237
24238 # An ERE matcher.
24239 EGREP=$lt_EGREP
24240
24241 # The linker used to build libraries.
24242 LD=$lt_LD_RC
24243
24244 # Whether we need hard or soft links.
24245 LN_S=$lt_LN_S
24246
24247 # A BSD-compatible nm program.
24248 NM=$lt_NM
24249
24250 # A symbol stripping program
24251 STRIP=$lt_STRIP
24252
24253 # Used to examine libraries when file_magic_cmd begins "file"
24254 MAGIC_CMD=$MAGIC_CMD
24255
24256 # Used on cygwin: DLL creation program.
24257 DLLTOOL="$DLLTOOL"
24258
24259 # Used on cygwin: object dumper.
24260 OBJDUMP="$OBJDUMP"
24261
24262 # Used on cygwin: assembler.
24263 AS="$AS"
24264
24265 # The name of the directory that contains temporary libtool files.
24266 objdir=$objdir
24267
24268 # How to create reloadable object files.
24269 reload_flag=$lt_reload_flag
24270 reload_cmds=$lt_reload_cmds
24271
24272 # How to pass a linker flag through the compiler.
24273 wl=$lt_lt_prog_compiler_wl_RC
24274
24275 # Object file suffix (normally "o").
24276 objext="$ac_objext"
24277
24278 # Old archive suffix (normally "a").
24279 libext="$libext"
24280
24281 # Shared library suffix (normally ".so").
24282 shrext_cmds='$shrext_cmds'
24283
24284 # Executable file suffix (normally "").
24285 exeext="$exeext"
24286
24287 # Additional compiler flags for building library objects.
24288 pic_flag=$lt_lt_prog_compiler_pic_RC
24289 pic_mode=$pic_mode
24290
24291 # What is the maximum length of a command?
24292 max_cmd_len=$lt_cv_sys_max_cmd_len
24293
24294 # Does compiler simultaneously support -c and -o options?
24295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24296
24297 # Must we lock files when doing compilation ?
24298 need_locks=$lt_need_locks
24299
24300 # Do we need the lib prefix for modules?
24301 need_lib_prefix=$need_lib_prefix
24302
24303 # Do we need a version for libraries?
24304 need_version=$need_version
24305
24306 # Whether dlopen is supported.
24307 dlopen_support=$enable_dlopen
24308
24309 # Whether dlopen of programs is supported.
24310 dlopen_self=$enable_dlopen_self
24311
24312 # Whether dlopen of statically linked programs is supported.
24313 dlopen_self_static=$enable_dlopen_self_static
24314
24315 # Compiler flag to prevent dynamic linking.
24316 link_static_flag=$lt_lt_prog_compiler_static_RC
24317
24318 # Compiler flag to turn off builtin functions.
24319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24320
24321 # Compiler flag to allow reflexive dlopens.
24322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24323
24324 # Compiler flag to generate shared objects directly from archives.
24325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24326
24327 # Compiler flag to generate thread-safe objects.
24328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24329
24330 # Library versioning type.
24331 version_type=$version_type
24332
24333 # Format of library name prefix.
24334 libname_spec=$lt_libname_spec
24335
24336 # List of archive names.  First name is the real one, the rest are links.
24337 # The last name is the one that the linker finds with -lNAME.
24338 library_names_spec=$lt_library_names_spec
24339
24340 # The coded name of the library, if different from the real name.
24341 soname_spec=$lt_soname_spec
24342
24343 # Commands used to build and install an old-style archive.
24344 RANLIB=$lt_RANLIB
24345 old_archive_cmds=$lt_old_archive_cmds_RC
24346 old_postinstall_cmds=$lt_old_postinstall_cmds
24347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24348
24349 # Create an old-style archive from a shared archive.
24350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24351
24352 # Create a temporary old-style archive to link instead of a shared archive.
24353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24354
24355 # Commands used to build and install a shared archive.
24356 archive_cmds=$lt_archive_cmds_RC
24357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24358 postinstall_cmds=$lt_postinstall_cmds
24359 postuninstall_cmds=$lt_postuninstall_cmds
24360
24361 # Commands used to build a loadable module (assumed same as above if empty)
24362 module_cmds=$lt_module_cmds_RC
24363 module_expsym_cmds=$lt_module_expsym_cmds_RC
24364
24365 # Commands to strip libraries.
24366 old_striplib=$lt_old_striplib
24367 striplib=$lt_striplib
24368
24369 # Dependencies to place before the objects being linked to create a
24370 # shared library.
24371 predep_objects=$lt_predep_objects_RC
24372
24373 # Dependencies to place after the objects being linked to create a
24374 # shared library.
24375 postdep_objects=$lt_postdep_objects_RC
24376
24377 # Dependencies to place before the objects being linked to create a
24378 # shared library.
24379 predeps=$lt_predeps_RC
24380
24381 # Dependencies to place after the objects being linked to create a
24382 # shared library.
24383 postdeps=$lt_postdeps_RC
24384
24385 # The library search path used internally by the compiler when linking
24386 # a shared library.
24387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24388
24389 # Method to check whether dependent libraries are shared objects.
24390 deplibs_check_method=$lt_deplibs_check_method
24391
24392 # Command to use when deplibs_check_method == file_magic.
24393 file_magic_cmd=$lt_file_magic_cmd
24394
24395 # Flag that allows shared libraries with undefined symbols to be built.
24396 allow_undefined_flag=$lt_allow_undefined_flag_RC
24397
24398 # Flag that forces no undefined symbols.
24399 no_undefined_flag=$lt_no_undefined_flag_RC
24400
24401 # Commands used to finish a libtool library installation in a directory.
24402 finish_cmds=$lt_finish_cmds
24403
24404 # Same as above, but a single script fragment to be evaled but not shown.
24405 finish_eval=$lt_finish_eval
24406
24407 # Take the output of nm and produce a listing of raw symbols and C names.
24408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24409
24410 # Transform the output of nm in a proper C declaration
24411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24412
24413 # Transform the output of nm in a C name address pair
24414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24415
24416 # This is the shared library runtime path variable.
24417 runpath_var=$runpath_var
24418
24419 # This is the shared library path variable.
24420 shlibpath_var=$shlibpath_var
24421
24422 # Is shlibpath searched before the hard-coded library search path?
24423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24424
24425 # How to hardcode a shared library path into an executable.
24426 hardcode_action=$hardcode_action_RC
24427
24428 # Whether we should hardcode library paths into libraries.
24429 hardcode_into_libs=$hardcode_into_libs
24430
24431 # Flag to hardcode \$libdir into a binary during linking.
24432 # This must work even if \$libdir does not exist.
24433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24434
24435 # If ld is used when linking, flag to hardcode \$libdir into
24436 # a binary during linking. This must work even if \$libdir does
24437 # not exist.
24438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24439
24440 # Whether we need a single -rpath flag with a separated argument.
24441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24442
24443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24444 # resulting binary.
24445 hardcode_direct=$hardcode_direct_RC
24446
24447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24448 # resulting binary.
24449 hardcode_minus_L=$hardcode_minus_L_RC
24450
24451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24452 # the resulting binary.
24453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24454
24455 # Set to yes if building a shared library automatically hardcodes DIR into the library
24456 # and all subsequent libraries and executables linked against it.
24457 hardcode_automatic=$hardcode_automatic_RC
24458
24459 # Variables whose values should be saved in libtool wrapper scripts and
24460 # restored at relink time.
24461 variables_saved_for_relink="$variables_saved_for_relink"
24462
24463 # Whether libtool must link a program against all its dependency libraries.
24464 link_all_deplibs=$link_all_deplibs_RC
24465
24466 # Compile-time system search path for libraries
24467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24468
24469 # Run-time system search path for libraries
24470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24471
24472 # Fix the shell variable \$srcfile for the compiler.
24473 fix_srcfile_path="$fix_srcfile_path_RC"
24474
24475 # Set to yes if exported symbols are required.
24476 always_export_symbols=$always_export_symbols_RC
24477
24478 # The commands to list exported symbols.
24479 export_symbols_cmds=$lt_export_symbols_cmds_RC
24480
24481 # The commands to extract the exported symbol list from a shared archive.
24482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24483
24484 # Symbols that should not be listed in the preloaded symbols.
24485 exclude_expsyms=$lt_exclude_expsyms_RC
24486
24487 # Symbols that must always be exported.
24488 include_expsyms=$lt_include_expsyms_RC
24489
24490 # ### END LIBTOOL TAG CONFIG: $tagname
24491
24492 __EOF__
24493
24494
24495 else
24496   # If there is no Makefile yet, we rely on a make rule to execute
24497   # `config.status --recheck' to rerun these tests and create the
24498   # libtool script then.
24499   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24500   if test -f "$ltmain_in"; then
24501     test -f Makefile && make "$ltmain"
24502   fi
24503 fi
24504
24505
24506 ac_ext=c
24507 ac_cpp='$CPP $CPPFLAGS'
24508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24511
24512 CC="$lt_save_CC"
24513
24514         ;;
24515
24516       *)
24517         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24519    { (exit 1); exit 1; }; }
24520         ;;
24521       esac
24522
24523       # Append the new tag name to the list of available tags.
24524       if test -n "$tagname" ; then
24525       available_tags="$available_tags $tagname"
24526     fi
24527     fi
24528   done
24529   IFS="$lt_save_ifs"
24530
24531   # Now substitute the updated list of available tags.
24532   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24533     mv "${ofile}T" "$ofile"
24534     chmod +x "$ofile"
24535   else
24536     rm -f "${ofile}T"
24537     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24539    { (exit 1); exit 1; }; }
24540   fi
24541 fi
24542
24543
24544
24545 # This can be used to rebuild libtool when needed
24546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24547
24548 # Always use our own libtool.
24549 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24550
24551 # Prevent multiple expansion
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573 etags_version=`$ETAGS --version 2>&1`
24574 case "$etags_version" in
24575         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24576         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24577         *) ETAGSFLAGS="" ;;
24578 esac
24579 ETAGSFLAGS=$ETAGSFLAGS
24580
24581
24582 echo "$as_me:$LINENO: checking tool compatibility" >&5
24583 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24584
24585 if test "$GCC" != "yes"
24586 then
24587   { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24588 echo "$as_me: error: gcc required but not found" >&2;}
24589    { (exit 1); exit 1; }; }
24590 fi
24591 if test "$GXX" != "yes"
24592 then
24593   { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24594 echo "$as_me: error: g++ required but not found" >&2;}
24595    { (exit 1); exit 1; }; }
24596 fi
24597
24598 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24599 if test "$gccmajor" -lt "3"
24600 then
24601   { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24602 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24603    { (exit 1); exit 1; }; }
24604 fi
24605
24606 if test -z "$llvm_cv_gnu_make_command"
24607 then
24608   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24609 echo "$as_me: error: GNU Make required but not found" >&2;}
24610    { (exit 1); exit 1; }; }
24611 fi
24612
24613 echo "$as_me:$LINENO: result: ok" >&5
24614 echo "${ECHO_T}ok" >&6
24615
24616 if test "$PYTHON" = "false" ; then
24617   { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24618 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24619 fi
24620 if test "$QMTEST" = "false" ; then
24621   { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24622 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24623 fi
24624 if test "$RUNTEST" = "false" ; then
24625   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24626 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24627 fi
24628 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
24629 pymajor=`echo $pyversion | cut -d. -f1`
24630 pyminor=`echo $pyversion | cut -d. -f2`
24631 if test "$pymajor" -ge "2" ; then
24632   if test "$pymajor" -eq "2" ; then
24633     if test "$pyminor" -lt "2" ; then
24634       { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24635 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24636     fi
24637   fi
24638 else
24639   { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24640 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24641 fi
24642
24643 echo "$as_me:$LINENO: result: " >&5
24644 echo "${ECHO_T}" >&6
24645
24646
24647
24648 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24649 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24650 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653   ac_check_lib_save_LIBS=$LIBS
24654 LIBS="-lelf  $LIBS"
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h.  */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h.  */
24661
24662 /* Override any gcc2 internal prototype to avoid an error.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 /* We use char because int might match the return type of a gcc2
24667    builtin and then its argument prototype would still apply.  */
24668 char elf_begin ();
24669 int
24670 main ()
24671 {
24672 elf_begin ();
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext conftest$ac_exeext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24679   (eval $ac_link) 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } &&
24686          { ac_try='test -z "$ac_c_werror_flag"
24687                          || test ! -s conftest.err'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; } &&
24693          { ac_try='test -s conftest$ac_exeext'
24694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695   (eval $ac_try) 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; }; then
24699   ac_cv_lib_elf_elf_begin=yes
24700 else
24701   echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704 ac_cv_lib_elf_elf_begin=no
24705 fi
24706 rm -f conftest.err conftest.$ac_objext \
24707       conftest$ac_exeext conftest.$ac_ext
24708 LIBS=$ac_check_lib_save_LIBS
24709 fi
24710 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24711 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24712 if test $ac_cv_lib_elf_elf_begin = yes; then
24713   cat >>confdefs.h <<_ACEOF
24714 #define HAVE_LIBELF 1
24715 _ACEOF
24716
24717   LIBS="-lelf $LIBS"
24718
24719 fi
24720
24721
24722 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24723 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24724 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24725   echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727   ac_func_search_save_LIBS=$LIBS
24728 ac_cv_search_lt_dlopen=no
24729 cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735
24736 /* Override any gcc2 internal prototype to avoid an error.  */
24737 #ifdef __cplusplus
24738 extern "C"
24739 #endif
24740 /* We use char because int might match the return type of a gcc2
24741    builtin and then its argument prototype would still apply.  */
24742 char lt_dlopen ();
24743 int
24744 main ()
24745 {
24746 lt_dlopen ();
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest.$ac_objext conftest$ac_exeext
24752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24753   (eval $ac_link) 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } &&
24760          { ac_try='test -z "$ac_c_werror_flag"
24761                          || test ! -s conftest.err'
24762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763   (eval $ac_try) 2>&5
24764   ac_status=$?
24765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766   (exit $ac_status); }; } &&
24767          { ac_try='test -s conftest$ac_exeext'
24768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769   (eval $ac_try) 2>&5
24770   ac_status=$?
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); }; }; then
24773   ac_cv_search_lt_dlopen="none required"
24774 else
24775   echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24777
24778 fi
24779 rm -f conftest.err conftest.$ac_objext \
24780       conftest$ac_exeext conftest.$ac_ext
24781 if test "$ac_cv_search_lt_dlopen" = no; then
24782   for ac_lib in ltdl; do
24783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24784     cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h.  */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h.  */
24790
24791 /* Override any gcc2 internal prototype to avoid an error.  */
24792 #ifdef __cplusplus
24793 extern "C"
24794 #endif
24795 /* We use char because int might match the return type of a gcc2
24796    builtin and then its argument prototype would still apply.  */
24797 char lt_dlopen ();
24798 int
24799 main ()
24800 {
24801 lt_dlopen ();
24802   ;
24803   return 0;
24804 }
24805 _ACEOF
24806 rm -f conftest.$ac_objext conftest$ac_exeext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24808   (eval $ac_link) 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } &&
24815          { ac_try='test -z "$ac_c_werror_flag"
24816                          || test ! -s conftest.err'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; } &&
24822          { ac_try='test -s conftest$ac_exeext'
24823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824   (eval $ac_try) 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   ac_cv_search_lt_dlopen="-l$ac_lib"
24829 break
24830 else
24831   echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834 fi
24835 rm -f conftest.err conftest.$ac_objext \
24836       conftest$ac_exeext conftest.$ac_ext
24837   done
24838 fi
24839 LIBS=$ac_func_search_save_LIBS
24840 fi
24841 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24842 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24843 if test "$ac_cv_search_lt_dlopen" != no; then
24844   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24845
24846 cat >>confdefs.h <<\_ACEOF
24847 #define HAVE_LT_DLOPEN 1
24848 _ACEOF
24849
24850 else
24851   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24852                            not be available" >&5
24853 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24854                            not be available" >&2;}
24855 fi
24856
24857
24858 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24859 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24860 if test "${ac_cv_search_dlopen+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   ac_func_search_save_LIBS=$LIBS
24864 ac_cv_search_dlopen=no
24865 cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h.  */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h.  */
24871
24872 /* Override any gcc2 internal prototype to avoid an error.  */
24873 #ifdef __cplusplus
24874 extern "C"
24875 #endif
24876 /* We use char because int might match the return type of a gcc2
24877    builtin and then its argument prototype would still apply.  */
24878 char dlopen ();
24879 int
24880 main ()
24881 {
24882 dlopen ();
24883   ;
24884   return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24889   (eval $ac_link) 2>conftest.er1
24890   ac_status=$?
24891   grep -v '^ *+' conftest.er1 >conftest.err
24892   rm -f conftest.er1
24893   cat conftest.err >&5
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } &&
24896          { ac_try='test -z "$ac_c_werror_flag"
24897                          || test ! -s conftest.err'
24898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899   (eval $ac_try) 2>&5
24900   ac_status=$?
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); }; } &&
24903          { ac_try='test -s conftest$ac_exeext'
24904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905   (eval $ac_try) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); }; }; then
24909   ac_cv_search_dlopen="none required"
24910 else
24911   echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24913
24914 fi
24915 rm -f conftest.err conftest.$ac_objext \
24916       conftest$ac_exeext conftest.$ac_ext
24917 if test "$ac_cv_search_dlopen" = no; then
24918   for ac_lib in dl; do
24919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24920     cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926
24927 /* Override any gcc2 internal prototype to avoid an error.  */
24928 #ifdef __cplusplus
24929 extern "C"
24930 #endif
24931 /* We use char because int might match the return type of a gcc2
24932    builtin and then its argument prototype would still apply.  */
24933 char dlopen ();
24934 int
24935 main ()
24936 {
24937 dlopen ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944   (eval $ac_link) 2>conftest.er1
24945   ac_status=$?
24946   grep -v '^ *+' conftest.er1 >conftest.err
24947   rm -f conftest.er1
24948   cat conftest.err >&5
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); } &&
24951          { ac_try='test -z "$ac_c_werror_flag"
24952                          || test ! -s conftest.err'
24953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954   (eval $ac_try) 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); }; } &&
24958          { ac_try='test -s conftest$ac_exeext'
24959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960   (eval $ac_try) 2>&5
24961   ac_status=$?
24962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963   (exit $ac_status); }; }; then
24964   ac_cv_search_dlopen="-l$ac_lib"
24965 break
24966 else
24967   echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 fi
24971 rm -f conftest.err conftest.$ac_objext \
24972       conftest$ac_exeext conftest.$ac_ext
24973   done
24974 fi
24975 LIBS=$ac_func_search_save_LIBS
24976 fi
24977 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24978 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24979 if test "$ac_cv_search_dlopen" != no; then
24980   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24981
24982 cat >>confdefs.h <<\_ACEOF
24983 #define HAVE_DLOPEN 1
24984 _ACEOF
24985
24986 else
24987   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24989 fi
24990
24991
24992 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24993 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24994 if test "${ac_cv_search_mallinfo+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   ac_func_search_save_LIBS=$LIBS
24998 ac_cv_search_mallinfo=no
24999 cat >conftest.$ac_ext <<_ACEOF
25000 /* confdefs.h.  */
25001 _ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h.  */
25005
25006 /* Override any gcc2 internal prototype to avoid an error.  */
25007 #ifdef __cplusplus
25008 extern "C"
25009 #endif
25010 /* We use char because int might match the return type of a gcc2
25011    builtin and then its argument prototype would still apply.  */
25012 char mallinfo ();
25013 int
25014 main ()
25015 {
25016 mallinfo ();
25017   ;
25018   return 0;
25019 }
25020 _ACEOF
25021 rm -f conftest.$ac_objext conftest$ac_exeext
25022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25023   (eval $ac_link) 2>conftest.er1
25024   ac_status=$?
25025   grep -v '^ *+' conftest.er1 >conftest.err
25026   rm -f conftest.er1
25027   cat conftest.err >&5
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); } &&
25030          { ac_try='test -z "$ac_c_werror_flag"
25031                          || test ! -s conftest.err'
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); }; } &&
25037          { ac_try='test -s conftest$ac_exeext'
25038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039   (eval $ac_try) 2>&5
25040   ac_status=$?
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); }; }; then
25043   ac_cv_search_mallinfo="none required"
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048 fi
25049 rm -f conftest.err conftest.$ac_objext \
25050       conftest$ac_exeext conftest.$ac_ext
25051 if test "$ac_cv_search_mallinfo" = no; then
25052   for ac_lib in malloc; do
25053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25054     cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h.  */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h.  */
25060
25061 /* Override any gcc2 internal prototype to avoid an error.  */
25062 #ifdef __cplusplus
25063 extern "C"
25064 #endif
25065 /* We use char because int might match the return type of a gcc2
25066    builtin and then its argument prototype would still apply.  */
25067 char mallinfo ();
25068 int
25069 main ()
25070 {
25071 mallinfo ();
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest.$ac_objext conftest$ac_exeext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25078   (eval $ac_link) 2>conftest.er1
25079   ac_status=$?
25080   grep -v '^ *+' conftest.er1 >conftest.err
25081   rm -f conftest.er1
25082   cat conftest.err >&5
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); } &&
25085          { ac_try='test -z "$ac_c_werror_flag"
25086                          || test ! -s conftest.err'
25087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088   (eval $ac_try) 2>&5
25089   ac_status=$?
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); }; } &&
25092          { ac_try='test -s conftest$ac_exeext'
25093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094   (eval $ac_try) 2>&5
25095   ac_status=$?
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); }; }; then
25098   ac_cv_search_mallinfo="-l$ac_lib"
25099 break
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104 fi
25105 rm -f conftest.err conftest.$ac_objext \
25106       conftest$ac_exeext conftest.$ac_ext
25107   done
25108 fi
25109 LIBS=$ac_func_search_save_LIBS
25110 fi
25111 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25112 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25113 if test "$ac_cv_search_mallinfo" != no; then
25114   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_MALLINFO 1
25118 _ACEOF
25119
25120 fi
25121
25122
25123 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25124 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25125 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25126   echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128   ac_func_search_save_LIBS=$LIBS
25129 ac_cv_search_pthread_mutex_lock=no
25130 cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136
25137 /* Override any gcc2 internal prototype to avoid an error.  */
25138 #ifdef __cplusplus
25139 extern "C"
25140 #endif
25141 /* We use char because int might match the return type of a gcc2
25142    builtin and then its argument prototype would still apply.  */
25143 char pthread_mutex_lock ();
25144 int
25145 main ()
25146 {
25147 pthread_mutex_lock ();
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154   (eval $ac_link) 2>conftest.er1
25155   ac_status=$?
25156   grep -v '^ *+' conftest.er1 >conftest.err
25157   rm -f conftest.er1
25158   cat conftest.err >&5
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); } &&
25161          { ac_try='test -z "$ac_c_werror_flag"
25162                          || test ! -s conftest.err'
25163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164   (eval $ac_try) 2>&5
25165   ac_status=$?
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); }; } &&
25168          { ac_try='test -s conftest$ac_exeext'
25169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170   (eval $ac_try) 2>&5
25171   ac_status=$?
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); }; }; then
25174   ac_cv_search_pthread_mutex_lock="none required"
25175 else
25176   echo "$as_me: failed program was:" >&5
25177 sed 's/^/| /' conftest.$ac_ext >&5
25178
25179 fi
25180 rm -f conftest.err conftest.$ac_objext \
25181       conftest$ac_exeext conftest.$ac_ext
25182 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25183   for ac_lib in pthread; do
25184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25185     cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191
25192 /* Override any gcc2 internal prototype to avoid an error.  */
25193 #ifdef __cplusplus
25194 extern "C"
25195 #endif
25196 /* We use char because int might match the return type of a gcc2
25197    builtin and then its argument prototype would still apply.  */
25198 char pthread_mutex_lock ();
25199 int
25200 main ()
25201 {
25202 pthread_mutex_lock ();
25203   ;
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209   (eval $ac_link) 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } &&
25216          { ac_try='test -z "$ac_c_werror_flag"
25217                          || test ! -s conftest.err'
25218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; } &&
25223          { ac_try='test -s conftest$ac_exeext'
25224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225   (eval $ac_try) 2>&5
25226   ac_status=$?
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); }; }; then
25229   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25230 break
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 fi
25236 rm -f conftest.err conftest.$ac_objext \
25237       conftest$ac_exeext conftest.$ac_ext
25238   done
25239 fi
25240 LIBS=$ac_func_search_save_LIBS
25241 fi
25242 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25243 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25244 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25245   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25246
25247 cat >>confdefs.h <<\_ACEOF
25248 #define HAVE_PTHREAD_MUTEX_LOCK 1
25249 _ACEOF
25250
25251 fi
25252
25253
25254
25255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25257 if test "${ac_cv_header_stdc+set}" = set; then
25258   echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260   cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266 #include <stdlib.h>
25267 #include <stdarg.h>
25268 #include <string.h>
25269 #include <float.h>
25270
25271 int
25272 main ()
25273 {
25274
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25281   (eval $ac_compile) 2>conftest.er1
25282   ac_status=$?
25283   grep -v '^ *+' conftest.er1 >conftest.err
25284   rm -f conftest.er1
25285   cat conftest.err >&5
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); } &&
25288          { ac_try='test -z "$ac_c_werror_flag"
25289                          || test ! -s conftest.err'
25290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; } &&
25295          { ac_try='test -s conftest.$ac_objext'
25296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297   (eval $ac_try) 2>&5
25298   ac_status=$?
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); }; }; then
25301   ac_cv_header_stdc=yes
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 ac_cv_header_stdc=no
25307 fi
25308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25309
25310 if test $ac_cv_header_stdc = yes; then
25311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25312   cat >conftest.$ac_ext <<_ACEOF
25313 /* confdefs.h.  */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h.  */
25318 #include <string.h>
25319
25320 _ACEOF
25321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25322   $EGREP "memchr" >/dev/null 2>&1; then
25323   :
25324 else
25325   ac_cv_header_stdc=no
25326 fi
25327 rm -f conftest*
25328
25329 fi
25330
25331 if test $ac_cv_header_stdc = yes; then
25332   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25333   cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h.  */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h.  */
25339 #include <stdlib.h>
25340
25341 _ACEOF
25342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25343   $EGREP "free" >/dev/null 2>&1; then
25344   :
25345 else
25346   ac_cv_header_stdc=no
25347 fi
25348 rm -f conftest*
25349
25350 fi
25351
25352 if test $ac_cv_header_stdc = yes; then
25353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25354   if test "$cross_compiling" = yes; then
25355   :
25356 else
25357   cat >conftest.$ac_ext <<_ACEOF
25358 /* confdefs.h.  */
25359 _ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h.  */
25363 #include <ctype.h>
25364 #if ((' ' & 0x0FF) == 0x020)
25365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25367 #else
25368 # define ISLOWER(c) \
25369                    (('a' <= (c) && (c) <= 'i') \
25370                      || ('j' <= (c) && (c) <= 'r') \
25371                      || ('s' <= (c) && (c) <= 'z'))
25372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25373 #endif
25374
25375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25376 int
25377 main ()
25378 {
25379   int i;
25380   for (i = 0; i < 256; i++)
25381     if (XOR (islower (i), ISLOWER (i))
25382         || toupper (i) != TOUPPER (i))
25383       exit(2);
25384   exit (0);
25385 }
25386 _ACEOF
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389   (eval $ac_link) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394   (eval $ac_try) 2>&5
25395   ac_status=$?
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); }; }; then
25398   :
25399 else
25400   echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ( exit $ac_status )
25405 ac_cv_header_stdc=no
25406 fi
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25408 fi
25409 fi
25410 fi
25411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25413 if test $ac_cv_header_stdc = yes; then
25414
25415 cat >>confdefs.h <<\_ACEOF
25416 #define STDC_HEADERS 1
25417 _ACEOF
25418
25419 fi
25420
25421
25422 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25423 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25425   echo $ECHO_N "(cached) $ECHO_C" >&6
25426 else
25427   cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 #include <sys/types.h>
25434 #include <sys/wait.h>
25435 #ifndef WEXITSTATUS
25436 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25437 #endif
25438 #ifndef WIFEXITED
25439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25440 #endif
25441
25442 int
25443 main ()
25444 {
25445   int s;
25446   wait (&s);
25447   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25448   ;
25449   return 0;
25450 }
25451 _ACEOF
25452 rm -f conftest.$ac_objext
25453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25454   (eval $ac_compile) 2>conftest.er1
25455   ac_status=$?
25456   grep -v '^ *+' conftest.er1 >conftest.err
25457   rm -f conftest.er1
25458   cat conftest.err >&5
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); } &&
25461          { ac_try='test -z "$ac_c_werror_flag"
25462                          || test ! -s conftest.err'
25463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464   (eval $ac_try) 2>&5
25465   ac_status=$?
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); }; } &&
25468          { ac_try='test -s conftest.$ac_objext'
25469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470   (eval $ac_try) 2>&5
25471   ac_status=$?
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); }; }; then
25474   ac_cv_header_sys_wait_h=yes
25475 else
25476   echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25478
25479 ac_cv_header_sys_wait_h=no
25480 fi
25481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25482 fi
25483 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25484 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25485 if test $ac_cv_header_sys_wait_h = yes; then
25486
25487 cat >>confdefs.h <<\_ACEOF
25488 #define HAVE_SYS_WAIT_H 1
25489 _ACEOF
25490
25491 fi
25492
25493
25494
25495
25496
25497
25498 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25499 do
25500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502   echo "$as_me:$LINENO: checking for $ac_header" >&5
25503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25505   echo $ECHO_N "(cached) $ECHO_C" >&6
25506 fi
25507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25509 else
25510   # Is the header compilable?
25511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25513 cat >conftest.$ac_ext <<_ACEOF
25514 /* confdefs.h.  */
25515 _ACEOF
25516 cat confdefs.h >>conftest.$ac_ext
25517 cat >>conftest.$ac_ext <<_ACEOF
25518 /* end confdefs.h.  */
25519 $ac_includes_default
25520 #include <$ac_header>
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524   (eval $ac_compile) 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } &&
25531          { ac_try='test -z "$ac_c_werror_flag"
25532                          || test ! -s conftest.err'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; } &&
25538          { ac_try='test -s conftest.$ac_objext'
25539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540   (eval $ac_try) 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; }; then
25544   ac_header_compiler=yes
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549 ac_header_compiler=no
25550 fi
25551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25553 echo "${ECHO_T}$ac_header_compiler" >&6
25554
25555 # Is the header present?
25556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25558 cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h.  */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h.  */
25564 #include <$ac_header>
25565 _ACEOF
25566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } >/dev/null; then
25574   if test -s conftest.err; then
25575     ac_cpp_err=$ac_c_preproc_warn_flag
25576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25577   else
25578     ac_cpp_err=
25579   fi
25580 else
25581   ac_cpp_err=yes
25582 fi
25583 if test -z "$ac_cpp_err"; then
25584   ac_header_preproc=yes
25585 else
25586   echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589   ac_header_preproc=no
25590 fi
25591 rm -f conftest.err conftest.$ac_ext
25592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25593 echo "${ECHO_T}$ac_header_preproc" >&6
25594
25595 # So?  What about this header?
25596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25597   yes:no: )
25598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25602     ac_header_preproc=yes
25603     ;;
25604   no:yes:* )
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25617     (
25618       cat <<\_ASBOX
25619 ## ----------------------------------- ##
25620 ## Report this to llvmbugs@cs.uiuc.edu ##
25621 ## ----------------------------------- ##
25622 _ASBOX
25623     ) |
25624       sed "s/^/$as_me: WARNING:     /" >&2
25625     ;;
25626 esac
25627 echo "$as_me:$LINENO: checking for $ac_header" >&5
25628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632   eval "$as_ac_Header=\$ac_header_preproc"
25633 fi
25634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25636
25637 fi
25638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25639   cat >>confdefs.h <<_ACEOF
25640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25641 _ACEOF
25642
25643 fi
25644
25645 done
25646
25647
25648
25649
25650
25651
25652 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25653 do
25654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25656   echo "$as_me:$LINENO: checking for $ac_header" >&5
25657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 fi
25661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25663 else
25664   # Is the header compilable?
25665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25667 cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 $ac_includes_default
25674 #include <$ac_header>
25675 _ACEOF
25676 rm -f conftest.$ac_objext
25677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678   (eval $ac_compile) 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } &&
25685          { ac_try='test -z "$ac_c_werror_flag"
25686                          || test ! -s conftest.err'
25687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688   (eval $ac_try) 2>&5
25689   ac_status=$?
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; } &&
25692          { ac_try='test -s conftest.$ac_objext'
25693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694   (eval $ac_try) 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); }; }; then
25698   ac_header_compiler=yes
25699 else
25700   echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25702
25703 ac_header_compiler=no
25704 fi
25705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25707 echo "${ECHO_T}$ac_header_compiler" >&6
25708
25709 # Is the header present?
25710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 #include <$ac_header>
25719 _ACEOF
25720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } >/dev/null; then
25728   if test -s conftest.err; then
25729     ac_cpp_err=$ac_c_preproc_warn_flag
25730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25731   else
25732     ac_cpp_err=
25733   fi
25734 else
25735   ac_cpp_err=yes
25736 fi
25737 if test -z "$ac_cpp_err"; then
25738   ac_header_preproc=yes
25739 else
25740   echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25742
25743   ac_header_preproc=no
25744 fi
25745 rm -f conftest.err conftest.$ac_ext
25746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25747 echo "${ECHO_T}$ac_header_preproc" >&6
25748
25749 # So?  What about this header?
25750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25751   yes:no: )
25752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25756     ac_header_preproc=yes
25757     ;;
25758   no:yes:* )
25759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25761     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25762 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25763     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25765     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25766 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25769     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25771     (
25772       cat <<\_ASBOX
25773 ## ----------------------------------- ##
25774 ## Report this to llvmbugs@cs.uiuc.edu ##
25775 ## ----------------------------------- ##
25776 _ASBOX
25777     ) |
25778       sed "s/^/$as_me: WARNING:     /" >&2
25779     ;;
25780 esac
25781 echo "$as_me:$LINENO: checking for $ac_header" >&5
25782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784   echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786   eval "$as_ac_Header=\$ac_header_preproc"
25787 fi
25788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25790
25791 fi
25792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25793   cat >>confdefs.h <<_ACEOF
25794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25795 _ACEOF
25796
25797 fi
25798
25799 done
25800
25801
25802
25803
25804 for ac_header in malloc.h unistd.h windows.h
25805 do
25806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808   echo "$as_me:$LINENO: checking for $ac_header" >&5
25809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 fi
25813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25815 else
25816   # Is the header compilable?
25817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25819 cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825 $ac_includes_default
25826 #include <$ac_header>
25827 _ACEOF
25828 rm -f conftest.$ac_objext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830   (eval $ac_compile) 2>conftest.er1
25831   ac_status=$?
25832   grep -v '^ *+' conftest.er1 >conftest.err
25833   rm -f conftest.er1
25834   cat conftest.err >&5
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } &&
25837          { ac_try='test -z "$ac_c_werror_flag"
25838                          || test ! -s conftest.err'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; } &&
25844          { ac_try='test -s conftest.$ac_objext'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850   ac_header_compiler=yes
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855 ac_header_compiler=no
25856 fi
25857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25859 echo "${ECHO_T}$ac_header_compiler" >&6
25860
25861 # Is the header present?
25862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25864 cat >conftest.$ac_ext <<_ACEOF
25865 /* confdefs.h.  */
25866 _ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h.  */
25870 #include <$ac_header>
25871 _ACEOF
25872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25874   ac_status=$?
25875   grep -v '^ *+' conftest.er1 >conftest.err
25876   rm -f conftest.er1
25877   cat conftest.err >&5
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); } >/dev/null; then
25880   if test -s conftest.err; then
25881     ac_cpp_err=$ac_c_preproc_warn_flag
25882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25883   else
25884     ac_cpp_err=
25885   fi
25886 else
25887   ac_cpp_err=yes
25888 fi
25889 if test -z "$ac_cpp_err"; then
25890   ac_header_preproc=yes
25891 else
25892   echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25894
25895   ac_header_preproc=no
25896 fi
25897 rm -f conftest.err conftest.$ac_ext
25898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25899 echo "${ECHO_T}$ac_header_preproc" >&6
25900
25901 # So?  What about this header?
25902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25903   yes:no: )
25904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25908     ac_header_preproc=yes
25909     ;;
25910   no:yes:* )
25911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25923     (
25924       cat <<\_ASBOX
25925 ## ----------------------------------- ##
25926 ## Report this to llvmbugs@cs.uiuc.edu ##
25927 ## ----------------------------------- ##
25928 _ASBOX
25929     ) |
25930       sed "s/^/$as_me: WARNING:     /" >&2
25931     ;;
25932 esac
25933 echo "$as_me:$LINENO: checking for $ac_header" >&5
25934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25936   echo $ECHO_N "(cached) $ECHO_C" >&6
25937 else
25938   eval "$as_ac_Header=\$ac_header_preproc"
25939 fi
25940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25942
25943 fi
25944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25945   cat >>confdefs.h <<_ACEOF
25946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25947 _ACEOF
25948
25949 fi
25950
25951 done
25952
25953 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25954 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25955 if test "${ac_cv_header_time+set}" = set; then
25956   echo $ECHO_N "(cached) $ECHO_C" >&6
25957 else
25958   cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 #include <sys/types.h>
25965 #include <sys/time.h>
25966 #include <time.h>
25967
25968 int
25969 main ()
25970 {
25971 if ((struct tm *) 0)
25972 return 0;
25973   ;
25974   return 0;
25975 }
25976 _ACEOF
25977 rm -f conftest.$ac_objext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979   (eval $ac_compile) 2>conftest.er1
25980   ac_status=$?
25981   grep -v '^ *+' conftest.er1 >conftest.err
25982   rm -f conftest.er1
25983   cat conftest.err >&5
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); } &&
25986          { ac_try='test -z "$ac_c_werror_flag"
25987                          || test ! -s conftest.err'
25988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989   (eval $ac_try) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; } &&
25993          { ac_try='test -s conftest.$ac_objext'
25994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995   (eval $ac_try) 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); }; }; then
25999   ac_cv_header_time=yes
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 ac_cv_header_time=no
26005 fi
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007 fi
26008 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26009 echo "${ECHO_T}$ac_cv_header_time" >&6
26010 if test $ac_cv_header_time = yes; then
26011
26012 cat >>confdefs.h <<\_ACEOF
26013 #define TIME_WITH_SYS_TIME 1
26014 _ACEOF
26015
26016 fi
26017
26018 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26019 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26020 if test "${ac_cv_header_mmap_anon+set}" = set; then
26021   echo $ECHO_N "(cached) $ECHO_C" >&6
26022 else
26023    ac_ext=c
26024 ac_cpp='$CPP $CPPFLAGS'
26025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26028
26029   cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035 #include <sys/mman.h>
26036 #include <unistd.h>
26037 #include <fcntl.h>
26038 int
26039 main ()
26040 {
26041 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048   (eval $ac_compile) 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } &&
26055          { ac_try='test -z "$ac_c_werror_flag"
26056                          || test ! -s conftest.err'
26057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058   (eval $ac_try) 2>&5
26059   ac_status=$?
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); }; } &&
26062          { ac_try='test -s conftest.$ac_objext'
26063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064   (eval $ac_try) 2>&5
26065   ac_status=$?
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); }; }; then
26068   ac_cv_header_mmap_anon=yes
26069 else
26070   echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073 ac_cv_header_mmap_anon=no
26074 fi
26075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26076   ac_ext=c
26077 ac_cpp='$CPP $CPPFLAGS'
26078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26081
26082
26083 fi
26084 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26085 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26086 if test "$ac_cv_header_mmap_anon" = yes; then
26087
26088 cat >>confdefs.h <<\_ACEOF
26089 #define HAVE_MMAP_ANONYMOUS
26090 _ACEOF
26091
26092 fi
26093
26094
26095
26096
26097 for ac_header in inttypes.h stdint.h
26098 do
26099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26101   echo "$as_me:$LINENO: checking for $ac_header" >&5
26102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 fi
26106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26108 else
26109   # Is the header compilable?
26110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 $ac_includes_default
26119 #include <$ac_header>
26120 _ACEOF
26121 rm -f conftest.$ac_objext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26123   (eval $ac_compile) 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } &&
26130          { ac_try='test -z "$ac_c_werror_flag"
26131                          || test ! -s conftest.err'
26132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133   (eval $ac_try) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; } &&
26137          { ac_try='test -s conftest.$ac_objext'
26138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139   (eval $ac_try) 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }; }; then
26143   ac_header_compiler=yes
26144 else
26145   echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 ac_header_compiler=no
26149 fi
26150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26152 echo "${ECHO_T}$ac_header_compiler" >&6
26153
26154 # Is the header present?
26155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26157 cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163 #include <$ac_header>
26164 _ACEOF
26165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } >/dev/null; then
26173   if test -s conftest.err; then
26174     ac_cpp_err=$ac_c_preproc_warn_flag
26175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26176   else
26177     ac_cpp_err=
26178   fi
26179 else
26180   ac_cpp_err=yes
26181 fi
26182 if test -z "$ac_cpp_err"; then
26183   ac_header_preproc=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188   ac_header_preproc=no
26189 fi
26190 rm -f conftest.err conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26192 echo "${ECHO_T}$ac_header_preproc" >&6
26193
26194 # So?  What about this header?
26195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26196   yes:no: )
26197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26201     ac_header_preproc=yes
26202     ;;
26203   no:yes:* )
26204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26216     (
26217       cat <<\_ASBOX
26218 ## ----------------------------------- ##
26219 ## Report this to llvmbugs@cs.uiuc.edu ##
26220 ## ----------------------------------- ##
26221 _ASBOX
26222     ) |
26223       sed "s/^/$as_me: WARNING:     /" >&2
26224     ;;
26225 esac
26226 echo "$as_me:$LINENO: checking for $ac_header" >&5
26227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26229   echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231   eval "$as_ac_Header=\$ac_header_preproc"
26232 fi
26233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26235
26236 fi
26237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26238   cat >>confdefs.h <<_ACEOF
26239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26240 _ACEOF
26241
26242 fi
26243
26244 done
26245
26246
26247
26248 echo "$as_me:$LINENO: checking for pid_t" >&5
26249 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26250 if test "${ac_cv_type_pid_t+set}" = set; then
26251   echo $ECHO_N "(cached) $ECHO_C" >&6
26252 else
26253   cat >conftest.$ac_ext <<_ACEOF
26254 /* confdefs.h.  */
26255 _ACEOF
26256 cat confdefs.h >>conftest.$ac_ext
26257 cat >>conftest.$ac_ext <<_ACEOF
26258 /* end confdefs.h.  */
26259 $ac_includes_default
26260 int
26261 main ()
26262 {
26263 if ((pid_t *) 0)
26264   return 0;
26265 if (sizeof (pid_t))
26266   return 0;
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26273   (eval $ac_compile) 2>conftest.er1
26274   ac_status=$?
26275   grep -v '^ *+' conftest.er1 >conftest.err
26276   rm -f conftest.er1
26277   cat conftest.err >&5
26278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279   (exit $ac_status); } &&
26280          { ac_try='test -z "$ac_c_werror_flag"
26281                          || test ! -s conftest.err'
26282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283   (eval $ac_try) 2>&5
26284   ac_status=$?
26285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286   (exit $ac_status); }; } &&
26287          { ac_try='test -s conftest.$ac_objext'
26288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289   (eval $ac_try) 2>&5
26290   ac_status=$?
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); }; }; then
26293   ac_cv_type_pid_t=yes
26294 else
26295   echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26297
26298 ac_cv_type_pid_t=no
26299 fi
26300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26301 fi
26302 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26303 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26304 if test $ac_cv_type_pid_t = yes; then
26305   :
26306 else
26307
26308 cat >>confdefs.h <<_ACEOF
26309 #define pid_t int
26310 _ACEOF
26311
26312 fi
26313
26314 echo "$as_me:$LINENO: checking for size_t" >&5
26315 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26316 if test "${ac_cv_type_size_t+set}" = set; then
26317   echo $ECHO_N "(cached) $ECHO_C" >&6
26318 else
26319   cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325 $ac_includes_default
26326 int
26327 main ()
26328 {
26329 if ((size_t *) 0)
26330   return 0;
26331 if (sizeof (size_t))
26332   return 0;
26333   ;
26334   return 0;
26335 }
26336 _ACEOF
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339   (eval $ac_compile) 2>conftest.er1
26340   ac_status=$?
26341   grep -v '^ *+' conftest.er1 >conftest.err
26342   rm -f conftest.er1
26343   cat conftest.err >&5
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); } &&
26346          { ac_try='test -z "$ac_c_werror_flag"
26347                          || test ! -s conftest.err'
26348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349   (eval $ac_try) 2>&5
26350   ac_status=$?
26351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); }; } &&
26353          { ac_try='test -s conftest.$ac_objext'
26354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355   (eval $ac_try) 2>&5
26356   ac_status=$?
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); }; }; then
26359   ac_cv_type_size_t=yes
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364 ac_cv_type_size_t=no
26365 fi
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 fi
26368 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26369 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26370 if test $ac_cv_type_size_t = yes; then
26371   :
26372 else
26373
26374 cat >>confdefs.h <<_ACEOF
26375 #define size_t unsigned
26376 _ACEOF
26377
26378 fi
26379
26380 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26381 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26382 if test "${ac_cv_type_signal+set}" = set; then
26383   echo $ECHO_N "(cached) $ECHO_C" >&6
26384 else
26385   cat >conftest.$ac_ext <<_ACEOF
26386 /* confdefs.h.  */
26387 _ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h.  */
26391 #include <sys/types.h>
26392 #include <signal.h>
26393 #ifdef signal
26394 # undef signal
26395 #endif
26396 #ifdef __cplusplus
26397 extern "C" void (*signal (int, void (*)(int)))(int);
26398 #else
26399 void (*signal ()) ();
26400 #endif
26401
26402 int
26403 main ()
26404 {
26405 int i;
26406   ;
26407   return 0;
26408 }
26409 _ACEOF
26410 rm -f conftest.$ac_objext
26411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26412   (eval $ac_compile) 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } &&
26419          { ac_try='test -z "$ac_c_werror_flag"
26420                          || test ! -s conftest.err'
26421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422   (eval $ac_try) 2>&5
26423   ac_status=$?
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); }; } &&
26426          { ac_try='test -s conftest.$ac_objext'
26427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428   (eval $ac_try) 2>&5
26429   ac_status=$?
26430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); }; }; then
26432   ac_cv_type_signal=void
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437 ac_cv_type_signal=int
26438 fi
26439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26440 fi
26441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26442 echo "${ECHO_T}$ac_cv_type_signal" >&6
26443
26444 cat >>confdefs.h <<_ACEOF
26445 #define RETSIGTYPE $ac_cv_type_signal
26446 _ACEOF
26447
26448
26449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26451 if test "${ac_cv_struct_tm+set}" = set; then
26452   echo $ECHO_N "(cached) $ECHO_C" >&6
26453 else
26454   cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460 #include <sys/types.h>
26461 #include <time.h>
26462
26463 int
26464 main ()
26465 {
26466 struct tm *tp; tp->tm_sec;
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473   (eval $ac_compile) 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag"
26481                          || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest.$ac_objext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493   ac_cv_struct_tm=time.h
26494 else
26495   echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 ac_cv_struct_tm=sys/time.h
26499 fi
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26501 fi
26502 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26503 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26504 if test $ac_cv_struct_tm = sys/time.h; then
26505
26506 cat >>confdefs.h <<\_ACEOF
26507 #define TM_IN_SYS_TIME 1
26508 _ACEOF
26509
26510 fi
26511
26512 echo "$as_me:$LINENO: checking for int64_t" >&5
26513 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26514 if test "${ac_cv_type_int64_t+set}" = set; then
26515   echo $ECHO_N "(cached) $ECHO_C" >&6
26516 else
26517   cat >conftest.$ac_ext <<_ACEOF
26518 /* confdefs.h.  */
26519 _ACEOF
26520 cat confdefs.h >>conftest.$ac_ext
26521 cat >>conftest.$ac_ext <<_ACEOF
26522 /* end confdefs.h.  */
26523 $ac_includes_default
26524 int
26525 main ()
26526 {
26527 if ((int64_t *) 0)
26528   return 0;
26529 if (sizeof (int64_t))
26530   return 0;
26531   ;
26532   return 0;
26533 }
26534 _ACEOF
26535 rm -f conftest.$ac_objext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537   (eval $ac_compile) 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } &&
26544          { ac_try='test -z "$ac_c_werror_flag"
26545                          || test ! -s conftest.err'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; } &&
26551          { ac_try='test -s conftest.$ac_objext'
26552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553   (eval $ac_try) 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; }; then
26557   ac_cv_type_int64_t=yes
26558 else
26559   echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 ac_cv_type_int64_t=no
26563 fi
26564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26565 fi
26566 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26567 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26568 if test $ac_cv_type_int64_t = yes; then
26569
26570 cat >>confdefs.h <<_ACEOF
26571 #define HAVE_INT64_T 1
26572 _ACEOF
26573
26574
26575 else
26576   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26577 echo "$as_me: error: Type int64_t required but not found" >&2;}
26578    { (exit 1); exit 1; }; }
26579 fi
26580
26581 echo "$as_me:$LINENO: checking for uint64_t" >&5
26582 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26583 if test "${ac_cv_type_uint64_t+set}" = set; then
26584   echo $ECHO_N "(cached) $ECHO_C" >&6
26585 else
26586   cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592 $ac_includes_default
26593 int
26594 main ()
26595 {
26596 if ((uint64_t *) 0)
26597   return 0;
26598 if (sizeof (uint64_t))
26599   return 0;
26600   ;
26601   return 0;
26602 }
26603 _ACEOF
26604 rm -f conftest.$ac_objext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26606   (eval $ac_compile) 2>conftest.er1
26607   ac_status=$?
26608   grep -v '^ *+' conftest.er1 >conftest.err
26609   rm -f conftest.er1
26610   cat conftest.err >&5
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); } &&
26613          { ac_try='test -z "$ac_c_werror_flag"
26614                          || test ! -s conftest.err'
26615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616   (eval $ac_try) 2>&5
26617   ac_status=$?
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); }; } &&
26620          { ac_try='test -s conftest.$ac_objext'
26621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622   (eval $ac_try) 2>&5
26623   ac_status=$?
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); }; }; then
26626   ac_cv_type_uint64_t=yes
26627 else
26628   echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26630
26631 ac_cv_type_uint64_t=no
26632 fi
26633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26634 fi
26635 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26636 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26637 if test $ac_cv_type_uint64_t = yes; then
26638
26639 cat >>confdefs.h <<_ACEOF
26640 #define HAVE_UINT64_T 1
26641 _ACEOF
26642
26643
26644 else
26645   echo "$as_me:$LINENO: checking for u_int64_t" >&5
26646 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26647 if test "${ac_cv_type_u_int64_t+set}" = set; then
26648   echo $ECHO_N "(cached) $ECHO_C" >&6
26649 else
26650   cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h.  */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h.  */
26656 $ac_includes_default
26657 int
26658 main ()
26659 {
26660 if ((u_int64_t *) 0)
26661   return 0;
26662 if (sizeof (u_int64_t))
26663   return 0;
26664   ;
26665   return 0;
26666 }
26667 _ACEOF
26668 rm -f conftest.$ac_objext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26670   (eval $ac_compile) 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } &&
26677          { ac_try='test -z "$ac_c_werror_flag"
26678                          || test ! -s conftest.err'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; } &&
26684          { ac_try='test -s conftest.$ac_objext'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; }; then
26690   ac_cv_type_u_int64_t=yes
26691 else
26692   echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 ac_cv_type_u_int64_t=no
26696 fi
26697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26698 fi
26699 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26700 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26701 if test $ac_cv_type_u_int64_t = yes; then
26702
26703 cat >>confdefs.h <<_ACEOF
26704 #define HAVE_U_INT64_T 1
26705 _ACEOF
26706
26707
26708 else
26709   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26710 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26711    { (exit 1); exit 1; }; }
26712 fi
26713
26714 fi
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26725 do
26726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26727 echo "$as_me:$LINENO: checking for $ac_func" >&5
26728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_var+set}\" = set"; then
26730   echo $ECHO_N "(cached) $ECHO_C" >&6
26731 else
26732   cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26740 #define $ac_func innocuous_$ac_func
26741
26742 /* System header to define __stub macros and hopefully few prototypes,
26743     which can conflict with char $ac_func (); below.
26744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26745     <limits.h> exists even on freestanding compilers.  */
26746
26747 #ifdef __STDC__
26748 # include <limits.h>
26749 #else
26750 # include <assert.h>
26751 #endif
26752
26753 #undef $ac_func
26754
26755 /* Override any gcc2 internal prototype to avoid an error.  */
26756 #ifdef __cplusplus
26757 extern "C"
26758 {
26759 #endif
26760 /* We use char because int might match the return type of a gcc2
26761    builtin and then its argument prototype would still apply.  */
26762 char $ac_func ();
26763 /* The GNU C library defines this for functions which it implements
26764     to always fail with ENOSYS.  Some functions are actually named
26765     something starting with __ and the normal name is an alias.  */
26766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26767 choke me
26768 #else
26769 char (*f) () = $ac_func;
26770 #endif
26771 #ifdef __cplusplus
26772 }
26773 #endif
26774
26775 int
26776 main ()
26777 {
26778 return f != $ac_func;
26779   ;
26780   return 0;
26781 }
26782 _ACEOF
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26785   (eval $ac_link) 2>conftest.er1
26786   ac_status=$?
26787   grep -v '^ *+' conftest.er1 >conftest.err
26788   rm -f conftest.er1
26789   cat conftest.err >&5
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); } &&
26792          { ac_try='test -z "$ac_c_werror_flag"
26793                          || test ! -s conftest.err'
26794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795   (eval $ac_try) 2>&5
26796   ac_status=$?
26797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798   (exit $ac_status); }; } &&
26799          { ac_try='test -s conftest$ac_exeext'
26800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801   (eval $ac_try) 2>&5
26802   ac_status=$?
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); }; }; then
26805   eval "$as_ac_var=yes"
26806 else
26807   echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26809
26810 eval "$as_ac_var=no"
26811 fi
26812 rm -f conftest.err conftest.$ac_objext \
26813       conftest$ac_exeext conftest.$ac_ext
26814 fi
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817 if test `eval echo '${'$as_ac_var'}'` = yes; then
26818   cat >>confdefs.h <<_ACEOF
26819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26820 _ACEOF
26821
26822 fi
26823 done
26824
26825
26826
26827
26828 for ac_func in strdup strtoq strtoll
26829 do
26830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26831 echo "$as_me:$LINENO: checking for $ac_func" >&5
26832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26833 if eval "test \"\${$as_ac_var+set}\" = set"; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 else
26836   cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h.  */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h.  */
26842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26844 #define $ac_func innocuous_$ac_func
26845
26846 /* System header to define __stub macros and hopefully few prototypes,
26847     which can conflict with char $ac_func (); below.
26848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26849     <limits.h> exists even on freestanding compilers.  */
26850
26851 #ifdef __STDC__
26852 # include <limits.h>
26853 #else
26854 # include <assert.h>
26855 #endif
26856
26857 #undef $ac_func
26858
26859 /* Override any gcc2 internal prototype to avoid an error.  */
26860 #ifdef __cplusplus
26861 extern "C"
26862 {
26863 #endif
26864 /* We use char because int might match the return type of a gcc2
26865    builtin and then its argument prototype would still apply.  */
26866 char $ac_func ();
26867 /* The GNU C library defines this for functions which it implements
26868     to always fail with ENOSYS.  Some functions are actually named
26869     something starting with __ and the normal name is an alias.  */
26870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26871 choke me
26872 #else
26873 char (*f) () = $ac_func;
26874 #endif
26875 #ifdef __cplusplus
26876 }
26877 #endif
26878
26879 int
26880 main ()
26881 {
26882 return f != $ac_func;
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889   (eval $ac_link) 2>conftest.er1
26890   ac_status=$?
26891   grep -v '^ *+' conftest.er1 >conftest.err
26892   rm -f conftest.er1
26893   cat conftest.err >&5
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); } &&
26896          { ac_try='test -z "$ac_c_werror_flag"
26897                          || test ! -s conftest.err'
26898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899   (eval $ac_try) 2>&5
26900   ac_status=$?
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); }; } &&
26903          { ac_try='test -s conftest$ac_exeext'
26904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905   (eval $ac_try) 2>&5
26906   ac_status=$?
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); }; }; then
26909   eval "$as_ac_var=yes"
26910 else
26911   echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26913
26914 eval "$as_ac_var=no"
26915 fi
26916 rm -f conftest.err conftest.$ac_objext \
26917       conftest$ac_exeext conftest.$ac_ext
26918 fi
26919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26921 if test `eval echo '${'$as_ac_var'}'` = yes; then
26922   cat >>confdefs.h <<_ACEOF
26923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26924 _ACEOF
26925
26926 fi
26927 done
26928
26929 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26930 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26931 if test "${llvm_cv_c_printf_a+set}" = set; then
26932   echo $ECHO_N "(cached) $ECHO_C" >&6
26933 else
26934   ac_ext=c
26935 ac_cpp='$CPP $CPPFLAGS'
26936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26939
26940  if test "$cross_compiling" = yes; then
26941   llvmac_cv_c_printf_a=no
26942 else
26943   cat >conftest.$ac_ext <<_ACEOF
26944
26945   /* confdefs.h.  */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h.  */
26950
26951 #include <stdio.h>
26952 #include <stdlib.h>
26953
26954 int
26955 main ()
26956 {
26957
26958 volatile double A, B;
26959 char Buffer[100];
26960 A = 1;
26961 A /= 10.0;
26962 sprintf(Buffer, "%a", A);
26963 B = atof(Buffer);
26964 if (A != B)
26965   return (1);
26966 if (A != 0x1.999999999999ap-4)
26967   return (1);
26968 return (0);
26969   ;
26970   return 0;
26971 }
26972 _ACEOF
26973 rm -f conftest$ac_exeext
26974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26975   (eval $ac_link) 2>&5
26976   ac_status=$?
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980   (eval $ac_try) 2>&5
26981   ac_status=$?
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); }; }; then
26984   llvm_cv_c_printf_a=yes
26985 else
26986   echo "$as_me: program exited with status $ac_status" >&5
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990 ( exit $ac_status )
26991 llvmac_cv_c_printf_a=no
26992 fi
26993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26994 fi
26995  ac_ext=c
26996 ac_cpp='$CPP $CPPFLAGS'
26997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27000
27001 fi
27002 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27003 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27004  if test "$llvm_cv_c_printf_a" = "yes"; then
27005
27006 cat >>confdefs.h <<\_ACEOF
27007 #define HAVE_PRINTF_A 1
27008 _ACEOF
27009
27010  fi
27011
27012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27013 # for constant arguments.  Useless!
27014 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27015 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27016 if test "${ac_cv_working_alloca_h+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019   cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h.  */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h.  */
27025 #include <alloca.h>
27026 int
27027 main ()
27028 {
27029 char *p = (char *) alloca (2 * sizeof (int));
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 rm -f conftest.$ac_objext conftest$ac_exeext
27035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27036   (eval $ac_link) 2>conftest.er1
27037   ac_status=$?
27038   grep -v '^ *+' conftest.er1 >conftest.err
27039   rm -f conftest.er1
27040   cat conftest.err >&5
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); } &&
27043          { ac_try='test -z "$ac_c_werror_flag"
27044                          || test ! -s conftest.err'
27045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046   (eval $ac_try) 2>&5
27047   ac_status=$?
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); }; } &&
27050          { ac_try='test -s conftest$ac_exeext'
27051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052   (eval $ac_try) 2>&5
27053   ac_status=$?
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); }; }; then
27056   ac_cv_working_alloca_h=yes
27057 else
27058   echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27060
27061 ac_cv_working_alloca_h=no
27062 fi
27063 rm -f conftest.err conftest.$ac_objext \
27064       conftest$ac_exeext conftest.$ac_ext
27065 fi
27066 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27067 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27068 if test $ac_cv_working_alloca_h = yes; then
27069
27070 cat >>confdefs.h <<\_ACEOF
27071 #define HAVE_ALLOCA_H 1
27072 _ACEOF
27073
27074 fi
27075
27076 echo "$as_me:$LINENO: checking for alloca" >&5
27077 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27078 if test "${ac_cv_func_alloca_works+set}" = set; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081   cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087 #ifdef __GNUC__
27088 # define alloca __builtin_alloca
27089 #else
27090 # ifdef _MSC_VER
27091 #  include <malloc.h>
27092 #  define alloca _alloca
27093 # else
27094 #  if HAVE_ALLOCA_H
27095 #   include <alloca.h>
27096 #  else
27097 #   ifdef _AIX
27098  #pragma alloca
27099 #   else
27100 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27101 char *alloca ();
27102 #    endif
27103 #   endif
27104 #  endif
27105 # endif
27106 #endif
27107
27108 int
27109 main ()
27110 {
27111 char *p = (char *) alloca (1);
27112   ;
27113   return 0;
27114 }
27115 _ACEOF
27116 rm -f conftest.$ac_objext conftest$ac_exeext
27117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27118   (eval $ac_link) 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } &&
27125          { ac_try='test -z "$ac_c_werror_flag"
27126                          || test ! -s conftest.err'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; } &&
27132          { ac_try='test -s conftest$ac_exeext'
27133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134   (eval $ac_try) 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); }; }; then
27138   ac_cv_func_alloca_works=yes
27139 else
27140   echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27142
27143 ac_cv_func_alloca_works=no
27144 fi
27145 rm -f conftest.err conftest.$ac_objext \
27146       conftest$ac_exeext conftest.$ac_ext
27147 fi
27148 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27149 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27150
27151 if test $ac_cv_func_alloca_works = yes; then
27152
27153 cat >>confdefs.h <<\_ACEOF
27154 #define HAVE_ALLOCA 1
27155 _ACEOF
27156
27157 else
27158   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27159 # that cause trouble.  Some versions do not even contain alloca or
27160 # contain a buggy version.  If you still want to use their alloca,
27161 # use ar to extract alloca.o from them instead of compiling alloca.c.
27162
27163 ALLOCA=alloca.$ac_objext
27164
27165 cat >>confdefs.h <<\_ACEOF
27166 #define C_ALLOCA 1
27167 _ACEOF
27168
27169
27170 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27171 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27172 if test "${ac_cv_os_cray+set}" = set; then
27173   echo $ECHO_N "(cached) $ECHO_C" >&6
27174 else
27175   cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181 #if defined(CRAY) && ! defined(CRAY2)
27182 webecray
27183 #else
27184 wenotbecray
27185 #endif
27186
27187 _ACEOF
27188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27189   $EGREP "webecray" >/dev/null 2>&1; then
27190   ac_cv_os_cray=yes
27191 else
27192   ac_cv_os_cray=no
27193 fi
27194 rm -f conftest*
27195
27196 fi
27197 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27198 echo "${ECHO_T}$ac_cv_os_cray" >&6
27199 if test $ac_cv_os_cray = yes; then
27200   for ac_func in _getb67 GETB67 getb67; do
27201     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27202 echo "$as_me:$LINENO: checking for $ac_func" >&5
27203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27204 if eval "test \"\${$as_ac_var+set}\" = set"; then
27205   echo $ECHO_N "(cached) $ECHO_C" >&6
27206 else
27207   cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h.  */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h.  */
27213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27215 #define $ac_func innocuous_$ac_func
27216
27217 /* System header to define __stub macros and hopefully few prototypes,
27218     which can conflict with char $ac_func (); below.
27219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27220     <limits.h> exists even on freestanding compilers.  */
27221
27222 #ifdef __STDC__
27223 # include <limits.h>
27224 #else
27225 # include <assert.h>
27226 #endif
27227
27228 #undef $ac_func
27229
27230 /* Override any gcc2 internal prototype to avoid an error.  */
27231 #ifdef __cplusplus
27232 extern "C"
27233 {
27234 #endif
27235 /* We use char because int might match the return type of a gcc2
27236    builtin and then its argument prototype would still apply.  */
27237 char $ac_func ();
27238 /* The GNU C library defines this for functions which it implements
27239     to always fail with ENOSYS.  Some functions are actually named
27240     something starting with __ and the normal name is an alias.  */
27241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27242 choke me
27243 #else
27244 char (*f) () = $ac_func;
27245 #endif
27246 #ifdef __cplusplus
27247 }
27248 #endif
27249
27250 int
27251 main ()
27252 {
27253 return f != $ac_func;
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27260   (eval $ac_link) 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } &&
27267          { ac_try='test -z "$ac_c_werror_flag"
27268                          || test ! -s conftest.err'
27269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270   (eval $ac_try) 2>&5
27271   ac_status=$?
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); }; } &&
27274          { ac_try='test -s conftest$ac_exeext'
27275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276   (eval $ac_try) 2>&5
27277   ac_status=$?
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); }; }; then
27280   eval "$as_ac_var=yes"
27281 else
27282   echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27284
27285 eval "$as_ac_var=no"
27286 fi
27287 rm -f conftest.err conftest.$ac_objext \
27288       conftest$ac_exeext conftest.$ac_ext
27289 fi
27290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27292 if test `eval echo '${'$as_ac_var'}'` = yes; then
27293
27294 cat >>confdefs.h <<_ACEOF
27295 #define CRAY_STACKSEG_END $ac_func
27296 _ACEOF
27297
27298     break
27299 fi
27300
27301   done
27302 fi
27303
27304 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27305 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27306 if test "${ac_cv_c_stack_direction+set}" = set; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   if test "$cross_compiling" = yes; then
27310   ac_cv_c_stack_direction=0
27311 else
27312   cat >conftest.$ac_ext <<_ACEOF
27313 /* confdefs.h.  */
27314 _ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h.  */
27318 int
27319 find_stack_direction ()
27320 {
27321   static char *addr = 0;
27322   auto char dummy;
27323   if (addr == 0)
27324     {
27325       addr = &dummy;
27326       return find_stack_direction ();
27327     }
27328   else
27329     return (&dummy > addr) ? 1 : -1;
27330 }
27331
27332 int
27333 main ()
27334 {
27335   exit (find_stack_direction () < 0);
27336 }
27337 _ACEOF
27338 rm -f conftest$ac_exeext
27339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340   (eval $ac_link) 2>&5
27341   ac_status=$?
27342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345   (eval $ac_try) 2>&5
27346   ac_status=$?
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); }; }; then
27349   ac_cv_c_stack_direction=1
27350 else
27351   echo "$as_me: program exited with status $ac_status" >&5
27352 echo "$as_me: failed program was:" >&5
27353 sed 's/^/| /' conftest.$ac_ext >&5
27354
27355 ( exit $ac_status )
27356 ac_cv_c_stack_direction=-1
27357 fi
27358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27359 fi
27360 fi
27361 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27362 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27363
27364 cat >>confdefs.h <<_ACEOF
27365 #define STACK_DIRECTION $ac_cv_c_stack_direction
27366 _ACEOF
27367
27368
27369 fi
27370
27371
27372 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27373 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27374 if test "${ac_cv_func_rand48+set}" = set; then
27375   echo $ECHO_N "(cached) $ECHO_C" >&6
27376 else
27377   ac_ext=cc
27378 ac_cpp='$CXXCPP $CPPFLAGS'
27379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27382
27383    cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h.  */
27385 _ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h.  */
27389 #include <stdlib.h>
27390 int
27391 main ()
27392 {
27393 srand48(0);lrand48();drand48();
27394   ;
27395   return 0;
27396 }
27397 _ACEOF
27398 rm -f conftest.$ac_objext
27399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27400   (eval $ac_compile) 2>conftest.er1
27401   ac_status=$?
27402   grep -v '^ *+' conftest.er1 >conftest.err
27403   rm -f conftest.er1
27404   cat conftest.err >&5
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } &&
27407          { ac_try='test -z "$ac_cxx_werror_flag"
27408                          || test ! -s conftest.err'
27409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410   (eval $ac_try) 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; } &&
27414          { ac_try='test -s conftest.$ac_objext'
27415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416   (eval $ac_try) 2>&5
27417   ac_status=$?
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); }; }; then
27420   ac_cv_func_rand48=yes
27421 else
27422   echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27424
27425 ac_cv_func_rand48=no
27426 fi
27427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27428   ac_ext=c
27429 ac_cpp='$CPP $CPPFLAGS'
27430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27433
27434 fi
27435 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27436 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27437
27438 if test "$ac_cv_func_rand48" = "yes" ; then
27439
27440 cat >>confdefs.h <<\_ACEOF
27441 #define HAVE_RAND48 1
27442 _ACEOF
27443
27444 fi
27445
27446
27447 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27448 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27449 if test "${ac_cv_cxx_namespaces+set}" = set; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452   ac_ext=cc
27453 ac_cpp='$CXXCPP $CPPFLAGS'
27454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27457
27458  cat >conftest.$ac_ext <<_ACEOF
27459 /* confdefs.h.  */
27460 _ACEOF
27461 cat confdefs.h >>conftest.$ac_ext
27462 cat >>conftest.$ac_ext <<_ACEOF
27463 /* end confdefs.h.  */
27464 namespace Outer { namespace Inner { int i = 0; }}
27465 int
27466 main ()
27467 {
27468 using namespace Outer::Inner; return i;
27469   ;
27470   return 0;
27471 }
27472 _ACEOF
27473 rm -f conftest.$ac_objext
27474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27475   (eval $ac_compile) 2>conftest.er1
27476   ac_status=$?
27477   grep -v '^ *+' conftest.er1 >conftest.err
27478   rm -f conftest.er1
27479   cat conftest.err >&5
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); } &&
27482          { ac_try='test -z "$ac_cxx_werror_flag"
27483                          || test ! -s conftest.err'
27484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485   (eval $ac_try) 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; } &&
27489          { ac_try='test -s conftest.$ac_objext'
27490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491   (eval $ac_try) 2>&5
27492   ac_status=$?
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); }; }; then
27495   ac_cv_cxx_namespaces=yes
27496 else
27497   echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.$ac_ext >&5
27499
27500 ac_cv_cxx_namespaces=no
27501 fi
27502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27503  ac_ext=c
27504 ac_cpp='$CPP $CPPFLAGS'
27505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27508
27509
27510 fi
27511 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27512 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27513 if test "$ac_cv_cxx_namespaces" = yes; then
27514
27515 cat >>confdefs.h <<\_ACEOF
27516 #define HAVE_NAMESPACES
27517 _ACEOF
27518
27519 fi
27520
27521 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27522 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27523 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27524   echo $ECHO_N "(cached) $ECHO_C" >&6
27525 else
27526
27527   ac_ext=cc
27528 ac_cpp='$CXXCPP $CPPFLAGS'
27529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27532
27533   cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539 #include <ext/hash_map>
27540 #ifdef HAVE_NAMESPACES
27541 using namespace std;
27542 #endif
27543 int
27544 main ()
27545 {
27546 hash_map<int, int> t;
27547   ;
27548   return 0;
27549 }
27550 _ACEOF
27551 rm -f conftest.$ac_objext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27553   (eval $ac_compile) 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } &&
27560          { ac_try='test -z "$ac_cxx_werror_flag"
27561                          || test ! -s conftest.err'
27562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563   (eval $ac_try) 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; } &&
27567          { ac_try='test -s conftest.$ac_objext'
27568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569   (eval $ac_try) 2>&5
27570   ac_status=$?
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); }; }; then
27573   ac_cv_cxx_have_std_ext_hash_map=yes
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578 ac_cv_cxx_have_std_ext_hash_map=no
27579 fi
27580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27581   ac_ext=c
27582 ac_cpp='$CPP $CPPFLAGS'
27583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27586
27587 fi
27588 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27589 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27590  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27591  then
27592
27593 cat >>confdefs.h <<\_ACEOF
27594 #define HAVE_STD_EXT_HASH_MAP 1
27595 _ACEOF
27596
27597  else
27598
27599 cat >>confdefs.h <<\_ACEOF
27600 #define HAVE_STD_EXT_HASH_MAP 0
27601 _ACEOF
27602
27603  fi
27604
27605  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27606 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27607 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27608   echo $ECHO_N "(cached) $ECHO_C" >&6
27609 else
27610
27611   ac_ext=cc
27612 ac_cpp='$CXXCPP $CPPFLAGS'
27613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27616
27617   cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623 #include <ext/hash_map>
27624 #ifdef HAVE_NAMESPACES
27625 using namespace __gnu_cxx;
27626 #endif
27627 int
27628 main ()
27629 {
27630 hash_map<int,int> t;
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 rm -f conftest.$ac_objext
27636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27637   (eval $ac_compile) 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } &&
27644          { ac_try='test -z "$ac_cxx_werror_flag"
27645                          || test ! -s conftest.err'
27646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647   (eval $ac_try) 2>&5
27648   ac_status=$?
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); }; } &&
27651          { ac_try='test -s conftest.$ac_objext'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; }; then
27657   ac_cv_cxx_have_gnu_ext_hash_map=yes
27658 else
27659   echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 ac_cv_cxx_have_gnu_ext_hash_map=no
27663 fi
27664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27665   ac_ext=c
27666 ac_cpp='$CPP $CPPFLAGS'
27667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27670
27671 fi
27672 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27673 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27674  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27675  then
27676
27677 cat >>confdefs.h <<\_ACEOF
27678 #define HAVE_GNU_EXT_HASH_MAP 1
27679 _ACEOF
27680
27681  else
27682
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_GNU_EXT_HASH_MAP 0
27685 _ACEOF
27686
27687  fi
27688
27689  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27690 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27691 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694
27695   ac_ext=cc
27696 ac_cpp='$CXXCPP $CPPFLAGS'
27697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27700
27701   cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h.  */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h.  */
27707 #include <hash_map>
27708 int
27709 main ()
27710 {
27711 hash_map<int,int> t;
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 rm -f conftest.$ac_objext
27717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27718   (eval $ac_compile) 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } &&
27725          { ac_try='test -z "$ac_cxx_werror_flag"
27726                          || test ! -s conftest.err'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; } &&
27732          { ac_try='test -s conftest.$ac_objext'
27733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734   (eval $ac_try) 2>&5
27735   ac_status=$?
27736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737   (exit $ac_status); }; }; then
27738   ac_cv_cxx_have_global_hash_map=yes
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743 ac_cv_cxx_have_global_hash_map=no
27744 fi
27745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27746   ac_ext=c
27747 ac_cpp='$CPP $CPPFLAGS'
27748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27751
27752 fi
27753 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27754 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27755  if test "$ac_cv_cxx_have_global_hash_map" = yes
27756  then
27757
27758 cat >>confdefs.h <<\_ACEOF
27759 #define HAVE_GLOBAL_HASH_MAP 1
27760 _ACEOF
27761
27762  else
27763
27764 cat >>confdefs.h <<\_ACEOF
27765 #define HAVE_GLOBAL_HASH_MAP 0
27766 _ACEOF
27767
27768  fi
27769
27770 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27771 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27772 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27773   echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775
27776   ac_ext=cc
27777 ac_cpp='$CXXCPP $CPPFLAGS'
27778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27781
27782   cat >conftest.$ac_ext <<_ACEOF
27783 /* confdefs.h.  */
27784 _ACEOF
27785 cat confdefs.h >>conftest.$ac_ext
27786 cat >>conftest.$ac_ext <<_ACEOF
27787 /* end confdefs.h.  */
27788 #include <ext/hash_set>
27789 #ifdef HAVE_NAMESPACES
27790 using namespace std;
27791 #endif
27792 int
27793 main ()
27794 {
27795 hash_set<int> t;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27802   (eval $ac_compile) 2>conftest.er1
27803   ac_status=$?
27804   grep -v '^ *+' conftest.er1 >conftest.err
27805   rm -f conftest.er1
27806   cat conftest.err >&5
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); } &&
27809          { ac_try='test -z "$ac_cxx_werror_flag"
27810                          || test ! -s conftest.err'
27811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812   (eval $ac_try) 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); }; } &&
27816          { ac_try='test -s conftest.$ac_objext'
27817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818   (eval $ac_try) 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; }; then
27822   ac_cv_cxx_have_std_ext_hash_set=yes
27823 else
27824   echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827 ac_cv_cxx_have_std_ext_hash_set=no
27828 fi
27829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27830   ac_ext=c
27831 ac_cpp='$CPP $CPPFLAGS'
27832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835
27836 fi
27837 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27838 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27839  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27840  then
27841
27842 cat >>confdefs.h <<\_ACEOF
27843 #define HAVE_STD_EXT_HASH_SET 1
27844 _ACEOF
27845
27846  else
27847
27848 cat >>confdefs.h <<\_ACEOF
27849 #define HAVE_STD_EXT_HASH_SET 0
27850 _ACEOF
27851
27852  fi
27853
27854  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27855 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27856 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27857   echo $ECHO_N "(cached) $ECHO_C" >&6
27858 else
27859
27860   ac_ext=cc
27861 ac_cpp='$CXXCPP $CPPFLAGS'
27862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27865
27866   cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h.  */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h.  */
27872 #include <ext/hash_set>
27873 #ifdef HAVE_NAMESPACES
27874 using namespace __gnu_cxx;
27875 #endif
27876 int
27877 main ()
27878 {
27879 hash_set<int> t;
27880   ;
27881   return 0;
27882 }
27883 _ACEOF
27884 rm -f conftest.$ac_objext
27885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27886   (eval $ac_compile) 2>conftest.er1
27887   ac_status=$?
27888   grep -v '^ *+' conftest.er1 >conftest.err
27889   rm -f conftest.er1
27890   cat conftest.err >&5
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); } &&
27893          { ac_try='test -z "$ac_cxx_werror_flag"
27894                          || test ! -s conftest.err'
27895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896   (eval $ac_try) 2>&5
27897   ac_status=$?
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); }; } &&
27900          { ac_try='test -s conftest.$ac_objext'
27901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902   (eval $ac_try) 2>&5
27903   ac_status=$?
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); }; }; then
27906   ac_cv_cxx_have_gnu_ext_hash_set=yes
27907 else
27908   echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27910
27911 ac_cv_cxx_have_gnu_ext_hash_set=no
27912 fi
27913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27914   ac_ext=c
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919
27920 fi
27921 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27922 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27923  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27924  then
27925
27926 cat >>confdefs.h <<\_ACEOF
27927 #define HAVE_GNU_EXT_HASH_SET 1
27928 _ACEOF
27929
27930  else
27931
27932 cat >>confdefs.h <<\_ACEOF
27933 #define HAVE_GNU_EXT_HASH_SET 0
27934 _ACEOF
27935
27936  fi
27937
27938  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27939 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27940 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27941   echo $ECHO_N "(cached) $ECHO_C" >&6
27942 else
27943
27944   ac_ext=cc
27945 ac_cpp='$CXXCPP $CPPFLAGS'
27946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27949
27950   cat >conftest.$ac_ext <<_ACEOF
27951 /* confdefs.h.  */
27952 _ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h.  */
27956 #include <hash_set>
27957 int
27958 main ()
27959 {
27960 hash_set<int> t; return 0;
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 rm -f conftest.$ac_objext
27966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27967   (eval $ac_compile) 2>conftest.er1
27968   ac_status=$?
27969   grep -v '^ *+' conftest.er1 >conftest.err
27970   rm -f conftest.er1
27971   cat conftest.err >&5
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } &&
27974          { ac_try='test -z "$ac_cxx_werror_flag"
27975                          || test ! -s conftest.err'
27976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977   (eval $ac_try) 2>&5
27978   ac_status=$?
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); }; } &&
27981          { ac_try='test -s conftest.$ac_objext'
27982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983   (eval $ac_try) 2>&5
27984   ac_status=$?
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); }; }; then
27987   ac_cv_cxx_have_global_hash_set=yes
27988 else
27989   echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992 ac_cv_cxx_have_global_hash_set=no
27993 fi
27994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27995   ac_ext=c
27996 ac_cpp='$CPP $CPPFLAGS'
27997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28000
28001 fi
28002 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28003 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28004  if test "$ac_cv_cxx_have_global_hash_set" = yes
28005  then
28006
28007 cat >>confdefs.h <<\_ACEOF
28008 #define HAVE_GLOBAL_HASH_SET 1
28009 _ACEOF
28010
28011  else
28012
28013 cat >>confdefs.h <<\_ACEOF
28014 #define HAVE_GLOBAL_HASH_SET 0
28015 _ACEOF
28016
28017  fi
28018
28019 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28020 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28021 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28022   echo $ECHO_N "(cached) $ECHO_C" >&6
28023 else
28024
28025   ac_ext=cc
28026 ac_cpp='$CXXCPP $CPPFLAGS'
28027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28030
28031   cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h.  */
28033 _ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h.  */
28037 #include <iterator>
28038 #ifdef HAVE_NAMESPACES
28039 using namespace std;
28040 #endif
28041 int
28042 main ()
28043 {
28044 iterator<int,int,int> t; return 0;
28045   ;
28046   return 0;
28047 }
28048 _ACEOF
28049 rm -f conftest.$ac_objext
28050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28051   (eval $ac_compile) 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } &&
28058          { ac_try='test -z "$ac_cxx_werror_flag"
28059                          || test ! -s conftest.err'
28060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061   (eval $ac_try) 2>&5
28062   ac_status=$?
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); }; } &&
28065          { ac_try='test -s conftest.$ac_objext'
28066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067   (eval $ac_try) 2>&5
28068   ac_status=$?
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); }; }; then
28071   ac_cv_cxx_have_std_iterator=yes
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076 ac_cv_cxx_have_std_iterator=no
28077 fi
28078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28079   ac_ext=c
28080 ac_cpp='$CPP $CPPFLAGS'
28081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28084
28085
28086 fi
28087 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28088 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28089 if test "$ac_cv_cxx_have_std_iterator" = yes
28090 then
28091
28092 cat >>confdefs.h <<\_ACEOF
28093 #define HAVE_STD_ITERATOR 1
28094 _ACEOF
28095
28096 else
28097
28098 cat >>confdefs.h <<\_ACEOF
28099 #define HAVE_STD_ITERATOR 0
28100 _ACEOF
28101
28102 fi
28103
28104 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28105 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28106 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109
28110   ac_ext=cc
28111 ac_cpp='$CXXCPP $CPPFLAGS'
28112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28115
28116   cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122 #include <iterator>
28123 #ifdef HAVE_NAMESPACES
28124 using namespace std;
28125 #endif
28126 int
28127 main ()
28128 {
28129 bidirectional_iterator<int,int> t; return 0;
28130   ;
28131   return 0;
28132 }
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136   (eval $ac_compile) 2>conftest.er1
28137   ac_status=$?
28138   grep -v '^ *+' conftest.er1 >conftest.err
28139   rm -f conftest.er1
28140   cat conftest.err >&5
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } &&
28143          { ac_try='test -z "$ac_cxx_werror_flag"
28144                          || test ! -s conftest.err'
28145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146   (eval $ac_try) 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); }; } &&
28150          { ac_try='test -s conftest.$ac_objext'
28151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152   (eval $ac_try) 2>&5
28153   ac_status=$?
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); }; }; then
28156   ac_cv_cxx_have_bi_iterator=yes
28157 else
28158   echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161 ac_cv_cxx_have_bi_iterator=no
28162 fi
28163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28164   ac_ext=c
28165 ac_cpp='$CPP $CPPFLAGS'
28166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28169
28170
28171 fi
28172 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28173 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28174 if test "$ac_cv_cxx_have_bi_iterator" = yes
28175 then
28176
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_BI_ITERATOR 1
28179 _ACEOF
28180
28181 else
28182
28183 cat >>confdefs.h <<\_ACEOF
28184 #define HAVE_BI_ITERATOR 0
28185 _ACEOF
28186
28187 fi
28188
28189 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28190 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28191 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28192   echo $ECHO_N "(cached) $ECHO_C" >&6
28193 else
28194
28195   ac_ext=cc
28196 ac_cpp='$CXXCPP $CPPFLAGS'
28197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28200
28201   cat >conftest.$ac_ext <<_ACEOF
28202 /* confdefs.h.  */
28203 _ACEOF
28204 cat confdefs.h >>conftest.$ac_ext
28205 cat >>conftest.$ac_ext <<_ACEOF
28206 /* end confdefs.h.  */
28207 #include <iterator>
28208 #ifdef HAVE_NAMESPACES
28209 using namespace std;
28210 #endif
28211 int
28212 main ()
28213 {
28214 forward_iterator<int,int> t; return 0;
28215   ;
28216   return 0;
28217 }
28218 _ACEOF
28219 rm -f conftest.$ac_objext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221   (eval $ac_compile) 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_cxx_werror_flag"
28229                          || test ! -s conftest.err'
28230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231   (eval $ac_try) 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest.$ac_objext'
28236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237   (eval $ac_try) 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; }; then
28241   ac_cv_cxx_have_fwd_iterator=yes
28242 else
28243   echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ac_cv_cxx_have_fwd_iterator=no
28247 fi
28248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28249   ac_ext=c
28250 ac_cpp='$CPP $CPPFLAGS'
28251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28254
28255
28256 fi
28257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28258 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28259 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28260 then
28261
28262 cat >>confdefs.h <<\_ACEOF
28263 #define HAVE_FWD_ITERATOR 1
28264 _ACEOF
28265
28266 else
28267
28268 cat >>confdefs.h <<\_ACEOF
28269 #define HAVE_FWD_ITERATOR 0
28270 _ACEOF
28271
28272 fi
28273
28274
28275 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28276 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28277 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28278   echo $ECHO_N "(cached) $ECHO_C" >&6
28279 else
28280   ac_ext=cc
28281 ac_cpp='$CXXCPP $CPPFLAGS'
28282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28285
28286    cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292 #include <math.h>
28293 int
28294 main ()
28295 {
28296 float f; isnan(f);
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext
28302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28303   (eval $ac_compile) 2>conftest.er1
28304   ac_status=$?
28305   grep -v '^ *+' conftest.er1 >conftest.err
28306   rm -f conftest.er1
28307   cat conftest.err >&5
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); } &&
28310          { ac_try='test -z "$ac_cxx_werror_flag"
28311                          || test ! -s conftest.err'
28312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313   (eval $ac_try) 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; } &&
28317          { ac_try='test -s conftest.$ac_objext'
28318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319   (eval $ac_try) 2>&5
28320   ac_status=$?
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); }; }; then
28323   ac_cv_func_isnan_in_math_h=yes
28324 else
28325   echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28327
28328 ac_cv_func_isnan_in_math_h=no
28329 fi
28330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28331   ac_ext=c
28332 ac_cpp='$CPP $CPPFLAGS'
28333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28336
28337 fi
28338 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28339 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28340
28341
28342 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28343
28344 cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_ISNAN_IN_MATH_H 1
28346 _ACEOF
28347
28348 fi
28349
28350 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28351 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28352 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28353   echo $ECHO_N "(cached) $ECHO_C" >&6
28354 else
28355   ac_ext=cc
28356 ac_cpp='$CXXCPP $CPPFLAGS'
28357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28360
28361    cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367 #include <cmath>
28368 int
28369 main ()
28370 {
28371 float f; isnan(f);
28372   ;
28373   return 0;
28374 }
28375 _ACEOF
28376 rm -f conftest.$ac_objext
28377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28378   (eval $ac_compile) 2>conftest.er1
28379   ac_status=$?
28380   grep -v '^ *+' conftest.er1 >conftest.err
28381   rm -f conftest.er1
28382   cat conftest.err >&5
28383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); } &&
28385          { ac_try='test -z "$ac_cxx_werror_flag"
28386                          || test ! -s conftest.err'
28387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388   (eval $ac_try) 2>&5
28389   ac_status=$?
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); }; } &&
28392          { ac_try='test -s conftest.$ac_objext'
28393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28394   (eval $ac_try) 2>&5
28395   ac_status=$?
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); }; }; then
28398   ac_cv_func_isnan_in_cmath=yes
28399 else
28400   echo "$as_me: failed program was:" >&5
28401 sed 's/^/| /' conftest.$ac_ext >&5
28402
28403 ac_cv_func_isnan_in_cmath=no
28404 fi
28405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28406   ac_ext=c
28407 ac_cpp='$CPP $CPPFLAGS'
28408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28411
28412 fi
28413 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28414 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28415
28416 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28417
28418 cat >>confdefs.h <<\_ACEOF
28419 #define HAVE_ISNAN_IN_CMATH 1
28420 _ACEOF
28421
28422 fi
28423
28424 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28425 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28426 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429   ac_ext=cc
28430 ac_cpp='$CXXCPP $CPPFLAGS'
28431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28434
28435    cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441 #include <cmath>
28442 int
28443 main ()
28444 {
28445 float f; std::isnan(f);
28446   ;
28447   return 0;
28448 }
28449 _ACEOF
28450 rm -f conftest.$ac_objext
28451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28452   (eval $ac_compile) 2>conftest.er1
28453   ac_status=$?
28454   grep -v '^ *+' conftest.er1 >conftest.err
28455   rm -f conftest.er1
28456   cat conftest.err >&5
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); } &&
28459          { ac_try='test -z "$ac_cxx_werror_flag"
28460                          || test ! -s conftest.err'
28461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462   (eval $ac_try) 2>&5
28463   ac_status=$?
28464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465   (exit $ac_status); }; } &&
28466          { ac_try='test -s conftest.$ac_objext'
28467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468   (eval $ac_try) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); }; }; then
28472   ac_cv_func_std_isnan_in_cmath=yes
28473 else
28474   echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ac_cv_func_std_isnan_in_cmath=no
28478 fi
28479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28480   ac_ext=c
28481 ac_cpp='$CPP $CPPFLAGS'
28482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28485
28486 fi
28487 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28488 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28489
28490 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28491
28492 cat >>confdefs.h <<\_ACEOF
28493 #define HAVE_STD_ISNAN_IN_CMATH 1
28494 _ACEOF
28495
28496 fi
28497
28498
28499 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28500 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28501 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28502   echo $ECHO_N "(cached) $ECHO_C" >&6
28503 else
28504   ac_ext=cc
28505 ac_cpp='$CXXCPP $CPPFLAGS'
28506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28509
28510    cat >conftest.$ac_ext <<_ACEOF
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516 #include <math.h>
28517 int
28518 main ()
28519 {
28520 float f; isinf(f);
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28527   (eval $ac_compile) 2>conftest.er1
28528   ac_status=$?
28529   grep -v '^ *+' conftest.er1 >conftest.err
28530   rm -f conftest.er1
28531   cat conftest.err >&5
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } &&
28534          { ac_try='test -z "$ac_cxx_werror_flag"
28535                          || test ! -s conftest.err'
28536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537   (eval $ac_try) 2>&5
28538   ac_status=$?
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); }; } &&
28541          { ac_try='test -s conftest.$ac_objext'
28542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543   (eval $ac_try) 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; }; then
28547   ac_cv_func_isinf_in_math_h=yes
28548 else
28549   echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28551
28552 ac_cv_func_isinf_in_math_h=no
28553 fi
28554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28555   ac_ext=c
28556 ac_cpp='$CPP $CPPFLAGS'
28557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28560
28561 fi
28562 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28563 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28564
28565 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28566
28567 cat >>confdefs.h <<\_ACEOF
28568 #define HAVE_ISINF_IN_MATH_H 1
28569 _ACEOF
28570
28571 fi
28572
28573 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28574 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28575 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28576   echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578   ac_ext=cc
28579 ac_cpp='$CXXCPP $CPPFLAGS'
28580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583
28584    cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h.  */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h.  */
28590 #include <cmath>
28591 int
28592 main ()
28593 {
28594 float f; isinf(f);
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28601   (eval $ac_compile) 2>conftest.er1
28602   ac_status=$?
28603   grep -v '^ *+' conftest.er1 >conftest.err
28604   rm -f conftest.er1
28605   cat conftest.err >&5
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } &&
28608          { ac_try='test -z "$ac_cxx_werror_flag"
28609                          || test ! -s conftest.err'
28610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611   (eval $ac_try) 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; } &&
28615          { ac_try='test -s conftest.$ac_objext'
28616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617   (eval $ac_try) 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ac_cv_func_isinf_in_cmath=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626 ac_cv_func_isinf_in_cmath=no
28627 fi
28628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28629   ac_ext=c
28630 ac_cpp='$CPP $CPPFLAGS'
28631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28634
28635 fi
28636 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28637 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28638
28639 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28640
28641 cat >>confdefs.h <<\_ACEOF
28642 #define HAVE_ISINF_IN_CMATH 1
28643 _ACEOF
28644
28645 fi
28646
28647 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28648 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28649 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28650   echo $ECHO_N "(cached) $ECHO_C" >&6
28651 else
28652   ac_ext=cc
28653 ac_cpp='$CXXCPP $CPPFLAGS'
28654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28657
28658    cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664 #include <cmath>
28665 int
28666 main ()
28667 {
28668 float f; std::isinf(f)}
28669   ;
28670   return 0;
28671 }
28672 _ACEOF
28673 rm -f conftest.$ac_objext
28674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28675   (eval $ac_compile) 2>conftest.er1
28676   ac_status=$?
28677   grep -v '^ *+' conftest.er1 >conftest.err
28678   rm -f conftest.er1
28679   cat conftest.err >&5
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); } &&
28682          { ac_try='test -z "$ac_cxx_werror_flag"
28683                          || test ! -s conftest.err'
28684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685   (eval $ac_try) 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); }; } &&
28689          { ac_try='test -s conftest.$ac_objext'
28690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691   (eval $ac_try) 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; }; then
28695   ac_cv_func_std_isinf_in_cmath=yes
28696 else
28697   echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28699
28700 ac_cv_func_std_isinf_in_cmath=no
28701 fi
28702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28703   ac_ext=c
28704 ac_cpp='$CPP $CPPFLAGS'
28705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28708
28709 fi
28710 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28711 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28712
28713 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28714
28715 cat >>confdefs.h <<\_ACEOF
28716 #define HAVE_STD_ISINF_IN_CMATH 1
28717 _ACEOF
28718
28719 fi
28720
28721 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28722 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28723 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28724   echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726   ac_ext=cc
28727 ac_cpp='$CXXCPP $CPPFLAGS'
28728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28731
28732    cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738 #include <ieeefp.h>
28739 int
28740 main ()
28741 {
28742 float f; finite(f);
28743   ;
28744   return 0;
28745 }
28746 _ACEOF
28747 rm -f conftest.$ac_objext
28748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28749   (eval $ac_compile) 2>conftest.er1
28750   ac_status=$?
28751   grep -v '^ *+' conftest.er1 >conftest.err
28752   rm -f conftest.er1
28753   cat conftest.err >&5
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); } &&
28756          { ac_try='test -z "$ac_cxx_werror_flag"
28757                          || test ! -s conftest.err'
28758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759   (eval $ac_try) 2>&5
28760   ac_status=$?
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); }; } &&
28763          { ac_try='test -s conftest.$ac_objext'
28764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765   (eval $ac_try) 2>&5
28766   ac_status=$?
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); }; }; then
28769   ac_cv_func_finite_in_ieeefp_h=yes
28770 else
28771   echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28773
28774 ac_cv_func_finite_in_ieeefp_h=no
28775 fi
28776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28777   ac_ext=c
28778 ac_cpp='$CPP $CPPFLAGS'
28779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28782
28783 fi
28784 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28786
28787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28788
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_FINITE_IN_IEEEFP_H 1
28791 _ACEOF
28792
28793 fi
28794
28795
28796
28797
28798
28799 for ac_header in stdlib.h unistd.h
28800 do
28801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28803   echo "$as_me:$LINENO: checking for $ac_header" >&5
28804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28806   echo $ECHO_N "(cached) $ECHO_C" >&6
28807 fi
28808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28810 else
28811   # Is the header compilable?
28812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28814 cat >conftest.$ac_ext <<_ACEOF
28815 /* confdefs.h.  */
28816 _ACEOF
28817 cat confdefs.h >>conftest.$ac_ext
28818 cat >>conftest.$ac_ext <<_ACEOF
28819 /* end confdefs.h.  */
28820 $ac_includes_default
28821 #include <$ac_header>
28822 _ACEOF
28823 rm -f conftest.$ac_objext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28825   (eval $ac_compile) 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } &&
28832          { ac_try='test -z "$ac_c_werror_flag"
28833                          || test ! -s conftest.err'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; } &&
28839          { ac_try='test -s conftest.$ac_objext'
28840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841   (eval $ac_try) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ac_header_compiler=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850 ac_header_compiler=no
28851 fi
28852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28854 echo "${ECHO_T}$ac_header_compiler" >&6
28855
28856 # Is the header present?
28857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28859 cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865 #include <$ac_header>
28866 _ACEOF
28867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } >/dev/null; then
28875   if test -s conftest.err; then
28876     ac_cpp_err=$ac_c_preproc_warn_flag
28877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28878   else
28879     ac_cpp_err=
28880   fi
28881 else
28882   ac_cpp_err=yes
28883 fi
28884 if test -z "$ac_cpp_err"; then
28885   ac_header_preproc=yes
28886 else
28887   echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890   ac_header_preproc=no
28891 fi
28892 rm -f conftest.err conftest.$ac_ext
28893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894 echo "${ECHO_T}$ac_header_preproc" >&6
28895
28896 # So?  What about this header?
28897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28898   yes:no: )
28899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28903     ac_header_preproc=yes
28904     ;;
28905   no:yes:* )
28906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28918     (
28919       cat <<\_ASBOX
28920 ## ----------------------------------- ##
28921 ## Report this to llvmbugs@cs.uiuc.edu ##
28922 ## ----------------------------------- ##
28923 _ASBOX
28924     ) |
28925       sed "s/^/$as_me: WARNING:     /" >&2
28926     ;;
28927 esac
28928 echo "$as_me:$LINENO: checking for $ac_header" >&5
28929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28931   echo $ECHO_N "(cached) $ECHO_C" >&6
28932 else
28933   eval "$as_ac_Header=\$ac_header_preproc"
28934 fi
28935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28937
28938 fi
28939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28940   cat >>confdefs.h <<_ACEOF
28941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28942 _ACEOF
28943
28944 fi
28945
28946 done
28947
28948
28949 for ac_func in getpagesize
28950 do
28951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28952 echo "$as_me:$LINENO: checking for $ac_func" >&5
28953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28954 if eval "test \"\${$as_ac_var+set}\" = set"; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   cat >conftest.$ac_ext <<_ACEOF
28958 /* confdefs.h.  */
28959 _ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h.  */
28963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28965 #define $ac_func innocuous_$ac_func
28966
28967 /* System header to define __stub macros and hopefully few prototypes,
28968     which can conflict with char $ac_func (); below.
28969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28970     <limits.h> exists even on freestanding compilers.  */
28971
28972 #ifdef __STDC__
28973 # include <limits.h>
28974 #else
28975 # include <assert.h>
28976 #endif
28977
28978 #undef $ac_func
28979
28980 /* Override any gcc2 internal prototype to avoid an error.  */
28981 #ifdef __cplusplus
28982 extern "C"
28983 {
28984 #endif
28985 /* We use char because int might match the return type of a gcc2
28986    builtin and then its argument prototype would still apply.  */
28987 char $ac_func ();
28988 /* The GNU C library defines this for functions which it implements
28989     to always fail with ENOSYS.  Some functions are actually named
28990     something starting with __ and the normal name is an alias.  */
28991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28992 choke me
28993 #else
28994 char (*f) () = $ac_func;
28995 #endif
28996 #ifdef __cplusplus
28997 }
28998 #endif
28999
29000 int
29001 main ()
29002 {
29003 return f != $ac_func;
29004   ;
29005   return 0;
29006 }
29007 _ACEOF
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29010   (eval $ac_link) 2>conftest.er1
29011   ac_status=$?
29012   grep -v '^ *+' conftest.er1 >conftest.err
29013   rm -f conftest.er1
29014   cat conftest.err >&5
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); } &&
29017          { ac_try='test -z "$ac_c_werror_flag"
29018                          || test ! -s conftest.err'
29019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020   (eval $ac_try) 2>&5
29021   ac_status=$?
29022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023   (exit $ac_status); }; } &&
29024          { ac_try='test -s conftest$ac_exeext'
29025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026   (eval $ac_try) 2>&5
29027   ac_status=$?
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); }; }; then
29030   eval "$as_ac_var=yes"
29031 else
29032   echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29034
29035 eval "$as_ac_var=no"
29036 fi
29037 rm -f conftest.err conftest.$ac_objext \
29038       conftest$ac_exeext conftest.$ac_ext
29039 fi
29040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29042 if test `eval echo '${'$as_ac_var'}'` = yes; then
29043   cat >>confdefs.h <<_ACEOF
29044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29045 _ACEOF
29046
29047 fi
29048 done
29049
29050 echo "$as_me:$LINENO: checking for working mmap" >&5
29051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29054 else
29055   if test "$cross_compiling" = yes; then
29056   ac_cv_func_mmap_fixed_mapped=no
29057 else
29058   cat >conftest.$ac_ext <<_ACEOF
29059 /* confdefs.h.  */
29060 _ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h.  */
29064 $ac_includes_default
29065 /* malloc might have been renamed as rpl_malloc. */
29066 #undef malloc
29067
29068 /* Thanks to Mike Haertel and Jim Avera for this test.
29069    Here is a matrix of mmap possibilities:
29070         mmap private not fixed
29071         mmap private fixed at somewhere currently unmapped
29072         mmap private fixed at somewhere already mapped
29073         mmap shared not fixed
29074         mmap shared fixed at somewhere currently unmapped
29075         mmap shared fixed at somewhere already mapped
29076    For private mappings, we should verify that changes cannot be read()
29077    back from the file, nor mmap's back from the file at a different
29078    address.  (There have been systems where private was not correctly
29079    implemented like the infamous i386 svr4.0, and systems where the
29080    VM page cache was not coherent with the file system buffer cache
29081    like early versions of FreeBSD and possibly contemporary NetBSD.)
29082    For shared mappings, we should conversely verify that changes get
29083    propagated back to all the places they're supposed to be.
29084
29085    Grep wants private fixed already mapped.
29086    The main things grep needs to know about mmap are:
29087    * does it exist and is it safe to write into the mmap'd area
29088    * how to use it (BSD variants)  */
29089
29090 #include <fcntl.h>
29091 #include <sys/mman.h>
29092
29093 #if !STDC_HEADERS && !HAVE_STDLIB_H
29094 char *malloc ();
29095 #endif
29096
29097 /* This mess was copied from the GNU getpagesize.h.  */
29098 #if !HAVE_GETPAGESIZE
29099 /* Assume that all systems that can run configure have sys/param.h.  */
29100 # if !HAVE_SYS_PARAM_H
29101 #  define HAVE_SYS_PARAM_H 1
29102 # endif
29103
29104 # ifdef _SC_PAGESIZE
29105 #  define getpagesize() sysconf(_SC_PAGESIZE)
29106 # else /* no _SC_PAGESIZE */
29107 #  if HAVE_SYS_PARAM_H
29108 #   include <sys/param.h>
29109 #   ifdef EXEC_PAGESIZE
29110 #    define getpagesize() EXEC_PAGESIZE
29111 #   else /* no EXEC_PAGESIZE */
29112 #    ifdef NBPG
29113 #     define getpagesize() NBPG * CLSIZE
29114 #     ifndef CLSIZE
29115 #      define CLSIZE 1
29116 #     endif /* no CLSIZE */
29117 #    else /* no NBPG */
29118 #     ifdef NBPC
29119 #      define getpagesize() NBPC
29120 #     else /* no NBPC */
29121 #      ifdef PAGESIZE
29122 #       define getpagesize() PAGESIZE
29123 #      endif /* PAGESIZE */
29124 #     endif /* no NBPC */
29125 #    endif /* no NBPG */
29126 #   endif /* no EXEC_PAGESIZE */
29127 #  else /* no HAVE_SYS_PARAM_H */
29128 #   define getpagesize() 8192   /* punt totally */
29129 #  endif /* no HAVE_SYS_PARAM_H */
29130 # endif /* no _SC_PAGESIZE */
29131
29132 #endif /* no HAVE_GETPAGESIZE */
29133
29134 int
29135 main ()
29136 {
29137   char *data, *data2, *data3;
29138   int i, pagesize;
29139   int fd;
29140
29141   pagesize = getpagesize ();
29142
29143   /* First, make a file with some known garbage in it. */
29144   data = (char *) malloc (pagesize);
29145   if (!data)
29146     exit (1);
29147   for (i = 0; i < pagesize; ++i)
29148     *(data + i) = rand ();
29149   umask (0);
29150   fd = creat ("conftest.mmap", 0600);
29151   if (fd < 0)
29152     exit (1);
29153   if (write (fd, data, pagesize) != pagesize)
29154     exit (1);
29155   close (fd);
29156
29157   /* Next, try to mmap the file at a fixed address which already has
29158      something else allocated at it.  If we can, also make sure that
29159      we see the same garbage.  */
29160   fd = open ("conftest.mmap", O_RDWR);
29161   if (fd < 0)
29162     exit (1);
29163   data2 = (char *) malloc (2 * pagesize);
29164   if (!data2)
29165     exit (1);
29166   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29167   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29168                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29169     exit (1);
29170   for (i = 0; i < pagesize; ++i)
29171     if (*(data + i) != *(data2 + i))
29172       exit (1);
29173
29174   /* Finally, make sure that changes to the mapped area do not
29175      percolate back to the file as seen by read().  (This is a bug on
29176      some variants of i386 svr4.0.)  */
29177   for (i = 0; i < pagesize; ++i)
29178     *(data2 + i) = *(data2 + i) + 1;
29179   data3 = (char *) malloc (pagesize);
29180   if (!data3)
29181     exit (1);
29182   if (read (fd, data3, pagesize) != pagesize)
29183     exit (1);
29184   for (i = 0; i < pagesize; ++i)
29185     if (*(data + i) != *(data3 + i))
29186       exit (1);
29187   close (fd);
29188   exit (0);
29189 }
29190 _ACEOF
29191 rm -f conftest$ac_exeext
29192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29193   (eval $ac_link) 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198   (eval $ac_try) 2>&5
29199   ac_status=$?
29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201   (exit $ac_status); }; }; then
29202   ac_cv_func_mmap_fixed_mapped=yes
29203 else
29204   echo "$as_me: program exited with status $ac_status" >&5
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29207
29208 ( exit $ac_status )
29209 ac_cv_func_mmap_fixed_mapped=no
29210 fi
29211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29212 fi
29213 fi
29214 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29215 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29216 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29217
29218 cat >>confdefs.h <<\_ACEOF
29219 #define HAVE_MMAP 1
29220 _ACEOF
29221
29222 fi
29223 rm -f conftest.mmap
29224
29225 echo "$as_me:$LINENO: checking for mmap of files" >&5
29226 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29227 if test "${ac_cv_func_mmap_file+set}" = set; then
29228   echo $ECHO_N "(cached) $ECHO_C" >&6
29229 else
29230    ac_ext=c
29231 ac_cpp='$CPP $CPPFLAGS'
29232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29235
29236   if test "$cross_compiling" = yes; then
29237   ac_cv_func_mmap_file=no
29238 else
29239   cat >conftest.$ac_ext <<_ACEOF
29240
29241     /* confdefs.h.  */
29242 _ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h.  */
29246
29247 #include <sys/types.h>
29248 #include <sys/mman.h>
29249 #include <fcntl.h>
29250
29251 int
29252 main ()
29253 {
29254
29255   int fd;
29256   fd = creat ("foo",0777);
29257   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29258   unlink ("foo");
29259   return (fd != (int) MAP_FAILED);
29260   ;
29261   return 0;
29262 }
29263 _ACEOF
29264 rm -f conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266   (eval $ac_link) 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; }; then
29275   ac_cv_func_mmap_file=yes
29276 else
29277   echo "$as_me: program exited with status $ac_status" >&5
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281 ( exit $ac_status )
29282 ac_cv_func_mmap_file=no
29283 fi
29284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29285 fi
29286   ac_ext=c
29287 ac_cpp='$CPP $CPPFLAGS'
29288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29291
29292
29293 fi
29294 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29295 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29296 if test "$ac_cv_func_mmap_file" = yes; then
29297
29298 cat >>confdefs.h <<\_ACEOF
29299 #define HAVE_MMAP_FILE
29300 _ACEOF
29301
29302    MMAP_FILE=yes
29303
29304 fi
29305
29306 echo "$as_me:$LINENO: checking for mprotect" >&5
29307 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29308 if test "${ac_cv_func_mprotect+set}" = set; then
29309   echo $ECHO_N "(cached) $ECHO_C" >&6
29310 else
29311   cat >conftest.$ac_ext <<_ACEOF
29312 /* confdefs.h.  */
29313 _ACEOF
29314 cat confdefs.h >>conftest.$ac_ext
29315 cat >>conftest.$ac_ext <<_ACEOF
29316 /* end confdefs.h.  */
29317 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29319 #define mprotect innocuous_mprotect
29320
29321 /* System header to define __stub macros and hopefully few prototypes,
29322     which can conflict with char mprotect (); below.
29323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29324     <limits.h> exists even on freestanding compilers.  */
29325
29326 #ifdef __STDC__
29327 # include <limits.h>
29328 #else
29329 # include <assert.h>
29330 #endif
29331
29332 #undef mprotect
29333
29334 /* Override any gcc2 internal prototype to avoid an error.  */
29335 #ifdef __cplusplus
29336 extern "C"
29337 {
29338 #endif
29339 /* We use char because int might match the return type of a gcc2
29340    builtin and then its argument prototype would still apply.  */
29341 char mprotect ();
29342 /* The GNU C library defines this for functions which it implements
29343     to always fail with ENOSYS.  Some functions are actually named
29344     something starting with __ and the normal name is an alias.  */
29345 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29346 choke me
29347 #else
29348 char (*f) () = mprotect;
29349 #endif
29350 #ifdef __cplusplus
29351 }
29352 #endif
29353
29354 int
29355 main ()
29356 {
29357 return f != mprotect;
29358   ;
29359   return 0;
29360 }
29361 _ACEOF
29362 rm -f conftest.$ac_objext conftest$ac_exeext
29363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29364   (eval $ac_link) 2>conftest.er1
29365   ac_status=$?
29366   grep -v '^ *+' conftest.er1 >conftest.err
29367   rm -f conftest.er1
29368   cat conftest.err >&5
29369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370   (exit $ac_status); } &&
29371          { ac_try='test -z "$ac_c_werror_flag"
29372                          || test ! -s conftest.err'
29373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374   (eval $ac_try) 2>&5
29375   ac_status=$?
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); }; } &&
29378          { ac_try='test -s conftest$ac_exeext'
29379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380   (eval $ac_try) 2>&5
29381   ac_status=$?
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); }; }; then
29384   ac_cv_func_mprotect=yes
29385 else
29386   echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29388
29389 ac_cv_func_mprotect=no
29390 fi
29391 rm -f conftest.err conftest.$ac_objext \
29392       conftest$ac_exeext conftest.$ac_ext
29393 fi
29394 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29395 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29396 if test $ac_cv_func_mprotect = yes; then
29397   :
29398 else
29399   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29400 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29401    { (exit 1); exit 1; }; }
29402 fi
29403
29404
29405 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29406 then
29407   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29408 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29409 fi
29410 if test "$ac_cv_func_mmap_file" = "no"
29411 then
29412   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29413 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29414 fi
29415
29416
29417 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29418 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29419 if test "${llvm_cv_llvmgcc+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   llvm_cv_llvmgcc='llvmgcc_not_found'
29423 if test -d "$LLVMGCCDIR" ; then
29424   if test -x "$LLVMGCCDIR/bin/gcc" ; then
29425     llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29426   fi
29427 fi
29428 fi
29429 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29430 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29431
29432 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29433 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29434 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29435   echo $ECHO_N "(cached) $ECHO_C" >&6
29436 else
29437   llvm_cv_llvmgcc_sanity="no"
29438 if test -x "$llvm_cv_llvmgcc" ; then
29439   cp /dev/null conftest.c
29440   "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29441   if test $? -eq 0 ; then
29442     llvm_cv_llvmgcc_sanity="yes"
29443   fi
29444   rm conftest.c
29445 fi
29446 fi
29447 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29448 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29449
29450 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29451   LLVMGCC="$llvm_cv_llvmgcc"
29452
29453   llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29454   LLVMCC1=$llvmcc1path
29455
29456   llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29457   LLVMCC1PLUS=$llvmcc1pluspath
29458
29459 fi
29460
29461 SHLIBEXT=$libltdl_cv_shlibext
29462
29463
29464 # Translate the various configuration directories and other basic
29465 # information into substitutions that will end up in Makefile.config.in
29466 # that these configured values can be used by the makefiles
29467 eval LLVM_PREFIX="${prefix}";
29468 eval LLVM_BINDIR="${prefix}/bin";
29469 eval LLVM_LIBDIR="${prefix}/lib";
29470 eval LLVM_DATADIR="${prefix}/share/llvm";
29471 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29472 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29473 eval LLVM_INCLUDEDIR="${prefix}/include";
29474 eval LLVM_INFODIR="${prefix}/info";
29475 eval LLVM_MANDIR="${prefix}/man";
29476 LLVM_CONFIGTIME=`date`
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488 # Place the various directores into the config.h file as #defines so that we
29489 # can know about the installation paths within LLVM.
29490
29491 cat >>confdefs.h <<_ACEOF
29492 #define LLVM_PREFIX "$LLVM_PREFIX"
29493 _ACEOF
29494
29495
29496 cat >>confdefs.h <<_ACEOF
29497 #define LLVM_BINDIR "$LLVM_BINDIR"
29498 _ACEOF
29499
29500
29501 cat >>confdefs.h <<_ACEOF
29502 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29503 _ACEOF
29504
29505
29506 cat >>confdefs.h <<_ACEOF
29507 #define LLVM_DATADIR "$LLVM_DATADIR"
29508 _ACEOF
29509
29510
29511 cat >>confdefs.h <<_ACEOF
29512 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29513 _ACEOF
29514
29515
29516 cat >>confdefs.h <<_ACEOF
29517 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29518 _ACEOF
29519
29520
29521 cat >>confdefs.h <<_ACEOF
29522 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29523 _ACEOF
29524
29525
29526 cat >>confdefs.h <<_ACEOF
29527 #define LLVM_INFODIR "$LLVM_INFODIR"
29528 _ACEOF
29529
29530
29531 cat >>confdefs.h <<_ACEOF
29532 #define LLVM_MANDIR "$LLVM_MANDIR"
29533 _ACEOF
29534
29535
29536 cat >>confdefs.h <<_ACEOF
29537 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29538 _ACEOF
29539
29540
29541
29542           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29543
29544
29545           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29546
29547           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29548
29549           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29550
29551           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29552
29553           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29554
29555
29556           ac_config_files="$ac_config_files Makefile.config"
29557
29558
29559                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29560
29561
29562           ac_config_files="$ac_config_files docs/doxygen.cfg"
29563
29564
29565           ac_config_commands="$ac_config_commands Makefile"
29566
29567
29568           ac_config_commands="$ac_config_commands Makefile.common"
29569
29570
29571           ac_config_commands="$ac_config_commands examples/Makefile"
29572
29573
29574           ac_config_commands="$ac_config_commands lib/Makefile"
29575
29576
29577           ac_config_commands="$ac_config_commands runtime/Makefile"
29578
29579
29580           ac_config_commands="$ac_config_commands test/Makefile"
29581
29582
29583           ac_config_commands="$ac_config_commands test/Makefile.tests"
29584
29585
29586           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29587
29588
29589           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29590
29591
29592           ac_config_commands="$ac_config_commands tools/Makefile"
29593
29594
29595           ac_config_commands="$ac_config_commands utils/Makefile"
29596
29597
29598           ac_config_commands="$ac_config_commands projects/Makefile"
29599
29600
29601
29602 cat >confcache <<\_ACEOF
29603 # This file is a shell script that caches the results of configure
29604 # tests run on this system so they can be shared between configure
29605 # scripts and configure runs, see configure's option --config-cache.
29606 # It is not useful on other systems.  If it contains results you don't
29607 # want to keep, you may remove or edit it.
29608 #
29609 # config.status only pays attention to the cache file if you give it
29610 # the --recheck option to rerun configure.
29611 #
29612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29614 # following values.
29615
29616 _ACEOF
29617
29618 # The following way of writing the cache mishandles newlines in values,
29619 # but we know of no workaround that is simple, portable, and efficient.
29620 # So, don't put newlines in cache variables' values.
29621 # Ultrix sh set writes to stderr and can't be redirected directly,
29622 # and sets the high bit in the cache file unless we assign to the vars.
29623 {
29624   (set) 2>&1 |
29625     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29626     *ac_space=\ *)
29627       # `set' does not quote correctly, so add quotes (double-quote
29628       # substitution turns \\\\ into \\, and sed turns \\ into \).
29629       sed -n \
29630         "s/'/'\\\\''/g;
29631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29632       ;;
29633     *)
29634       # `set' quotes correctly as required by POSIX, so do not add quotes.
29635       sed -n \
29636         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29637       ;;
29638     esac;
29639 } |
29640   sed '
29641      t clear
29642      : clear
29643      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29644      t end
29645      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29646      : end' >>confcache
29647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29648   if test -w $cache_file; then
29649     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29650     cat confcache >$cache_file
29651   else
29652     echo "not updating unwritable cache $cache_file"
29653   fi
29654 fi
29655 rm -f confcache
29656
29657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29658 # Let make expand exec_prefix.
29659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29660
29661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29663 # trailing colons and then remove the whole line if VPATH becomes empty
29664 # (actually we leave an empty line to preserve line numbers).
29665 if test "x$srcdir" = x.; then
29666   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29667 s/:*\$(srcdir):*/:/;
29668 s/:*\${srcdir}:*/:/;
29669 s/:*@srcdir@:*/:/;
29670 s/^\([^=]*=[     ]*\):*/\1/;
29671 s/:*$//;
29672 s/^[^=]*=[       ]*$//;
29673 }'
29674 fi
29675
29676 DEFS=-DHAVE_CONFIG_H
29677
29678 ac_libobjs=
29679 ac_ltlibobjs=
29680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29681   # 1. Remove the extension, and $U if already installed.
29682   ac_i=`echo "$ac_i" |
29683          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29684   # 2. Add them.
29685   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29686   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29687 done
29688 LIBOBJS=$ac_libobjs
29689
29690 LTLIBOBJS=$ac_ltlibobjs
29691
29692
29693 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29694   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29695 Usually this means the macro was only invoked conditionally." >&5
29696 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29697 Usually this means the macro was only invoked conditionally." >&2;}
29698    { (exit 1); exit 1; }; }
29699 fi
29700 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29701   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29702 Usually this means the macro was only invoked conditionally." >&5
29703 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29704 Usually this means the macro was only invoked conditionally." >&2;}
29705    { (exit 1); exit 1; }; }
29706 fi
29707
29708 : ${CONFIG_STATUS=./config.status}
29709 ac_clean_files_save=$ac_clean_files
29710 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29711 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29712 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29713 cat >$CONFIG_STATUS <<_ACEOF
29714 #! $SHELL
29715 # Generated by $as_me.
29716 # Run this file to recreate the current configuration.
29717 # Compiler output produced by configure, useful for debugging
29718 # configure, is in config.log if it exists.
29719
29720 debug=false
29721 ac_cs_recheck=false
29722 ac_cs_silent=false
29723 SHELL=\${CONFIG_SHELL-$SHELL}
29724 _ACEOF
29725
29726 cat >>$CONFIG_STATUS <<\_ACEOF
29727 ## --------------------- ##
29728 ## M4sh Initialization.  ##
29729 ## --------------------- ##
29730
29731 # Be Bourne compatible
29732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29733   emulate sh
29734   NULLCMD=:
29735   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29736   # is contrary to our usage.  Disable this feature.
29737   alias -g '${1+"$@"}'='"$@"'
29738 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29739   set -o posix
29740 fi
29741 DUALCASE=1; export DUALCASE # for MKS sh
29742
29743 # Support unset when possible.
29744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29745   as_unset=unset
29746 else
29747   as_unset=false
29748 fi
29749
29750
29751 # Work around bugs in pre-3.0 UWIN ksh.
29752 $as_unset ENV MAIL MAILPATH
29753 PS1='$ '
29754 PS2='> '
29755 PS4='+ '
29756
29757 # NLS nuisances.
29758 for as_var in \
29759   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29760   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29761   LC_TELEPHONE LC_TIME
29762 do
29763   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29764     eval $as_var=C; export $as_var
29765   else
29766     $as_unset $as_var
29767   fi
29768 done
29769
29770 # Required to use basename.
29771 if expr a : '\(a\)' >/dev/null 2>&1; then
29772   as_expr=expr
29773 else
29774   as_expr=false
29775 fi
29776
29777 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29778   as_basename=basename
29779 else
29780   as_basename=false
29781 fi
29782
29783
29784 # Name of the executable.
29785 as_me=`$as_basename "$0" ||
29786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29787          X"$0" : 'X\(//\)$' \| \
29788          X"$0" : 'X\(/\)$' \| \
29789          .     : '\(.\)' 2>/dev/null ||
29790 echo X/"$0" |
29791     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29792           /^X\/\(\/\/\)$/{ s//\1/; q; }
29793           /^X\/\(\/\).*/{ s//\1/; q; }
29794           s/.*/./; q'`
29795
29796
29797 # PATH needs CR, and LINENO needs CR and PATH.
29798 # Avoid depending upon Character Ranges.
29799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29802 as_cr_digits='0123456789'
29803 as_cr_alnum=$as_cr_Letters$as_cr_digits
29804
29805 # The user is always right.
29806 if test "${PATH_SEPARATOR+set}" != set; then
29807   echo "#! /bin/sh" >conf$$.sh
29808   echo  "exit 0"   >>conf$$.sh
29809   chmod +x conf$$.sh
29810   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29811     PATH_SEPARATOR=';'
29812   else
29813     PATH_SEPARATOR=:
29814   fi
29815   rm -f conf$$.sh
29816 fi
29817
29818
29819   as_lineno_1=$LINENO
29820   as_lineno_2=$LINENO
29821   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29822   test "x$as_lineno_1" != "x$as_lineno_2" &&
29823   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29824   # Find who we are.  Look in the path if we contain no path at all
29825   # relative or not.
29826   case $0 in
29827     *[\\/]* ) as_myself=$0 ;;
29828     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829 for as_dir in $PATH
29830 do
29831   IFS=$as_save_IFS
29832   test -z "$as_dir" && as_dir=.
29833   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29834 done
29835
29836        ;;
29837   esac
29838   # We did not find ourselves, most probably we were run as `sh COMMAND'
29839   # in which case we are not to be found in the path.
29840   if test "x$as_myself" = x; then
29841     as_myself=$0
29842   fi
29843   if test ! -f "$as_myself"; then
29844     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29845 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29846    { (exit 1); exit 1; }; }
29847   fi
29848   case $CONFIG_SHELL in
29849   '')
29850     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29851 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29852 do
29853   IFS=$as_save_IFS
29854   test -z "$as_dir" && as_dir=.
29855   for as_base in sh bash ksh sh5; do
29856          case $as_dir in
29857          /*)
29858            if ("$as_dir/$as_base" -c '
29859   as_lineno_1=$LINENO
29860   as_lineno_2=$LINENO
29861   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29862   test "x$as_lineno_1" != "x$as_lineno_2" &&
29863   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29864              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29865              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29866              CONFIG_SHELL=$as_dir/$as_base
29867              export CONFIG_SHELL
29868              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29869            fi;;
29870          esac
29871        done
29872 done
29873 ;;
29874   esac
29875
29876   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29877   # uniformly replaced by the line number.  The first 'sed' inserts a
29878   # line-number line before each line; the second 'sed' does the real
29879   # work.  The second script uses 'N' to pair each line-number line
29880   # with the numbered line, and appends trailing '-' during
29881   # substitution so that $LINENO is not a special case at line end.
29882   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29883   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29884   sed '=' <$as_myself |
29885     sed '
29886       N
29887       s,$,-,
29888       : loop
29889       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29890       t loop
29891       s,-$,,
29892       s,^['$as_cr_digits']*\n,,
29893     ' >$as_me.lineno &&
29894   chmod +x $as_me.lineno ||
29895     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29896 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29897    { (exit 1); exit 1; }; }
29898
29899   # Don't try to exec as it changes $[0], causing all sort of problems
29900   # (the dirname of $[0] is not the place where we might find the
29901   # original and so on.  Autoconf is especially sensible to this).
29902   . ./$as_me.lineno
29903   # Exit status is that of the last command.
29904   exit
29905 }
29906
29907
29908 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29909   *c*,-n*) ECHO_N= ECHO_C='
29910 ' ECHO_T='      ' ;;
29911   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29912   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29913 esac
29914
29915 if expr a : '\(a\)' >/dev/null 2>&1; then
29916   as_expr=expr
29917 else
29918   as_expr=false
29919 fi
29920
29921 rm -f conf$$ conf$$.exe conf$$.file
29922 echo >conf$$.file
29923 if ln -s conf$$.file conf$$ 2>/dev/null; then
29924   # We could just check for DJGPP; but this test a) works b) is more generic
29925   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29926   if test -f conf$$.exe; then
29927     # Don't use ln at all; we don't have any links
29928     as_ln_s='cp -p'
29929   else
29930     as_ln_s='ln -s'
29931   fi
29932 elif ln conf$$.file conf$$ 2>/dev/null; then
29933   as_ln_s=ln
29934 else
29935   as_ln_s='cp -p'
29936 fi
29937 rm -f conf$$ conf$$.exe conf$$.file
29938
29939 if mkdir -p . 2>/dev/null; then
29940   as_mkdir_p=:
29941 else
29942   test -d ./-p && rmdir ./-p
29943   as_mkdir_p=false
29944 fi
29945
29946 as_executable_p="test -f"
29947
29948 # Sed expression to map a string onto a valid CPP name.
29949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29950
29951 # Sed expression to map a string onto a valid variable name.
29952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29953
29954
29955 # IFS
29956 # We need space, tab and new line, in precisely that order.
29957 as_nl='
29958 '
29959 IFS="   $as_nl"
29960
29961 # CDPATH.
29962 $as_unset CDPATH
29963
29964 exec 6>&1
29965
29966 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29967 # report actual input values of CONFIG_FILES etc. instead of their
29968 # values after options handling.  Logging --version etc. is OK.
29969 exec 5>>config.log
29970 {
29971   echo
29972   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29973 ## Running $as_me. ##
29974 _ASBOX
29975 } >&5
29976 cat >&5 <<_CSEOF
29977
29978 This file was extended by llvm $as_me 1.4, which was
29979 generated by GNU Autoconf 2.59.  Invocation command line was
29980
29981   CONFIG_FILES    = $CONFIG_FILES
29982   CONFIG_HEADERS  = $CONFIG_HEADERS
29983   CONFIG_LINKS    = $CONFIG_LINKS
29984   CONFIG_COMMANDS = $CONFIG_COMMANDS
29985   $ $0 $@
29986
29987 _CSEOF
29988 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29989 echo >&5
29990 _ACEOF
29991
29992 # Files that config.status was made for.
29993 if test -n "$ac_config_files"; then
29994   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29995 fi
29996
29997 if test -n "$ac_config_headers"; then
29998   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29999 fi
30000
30001 if test -n "$ac_config_links"; then
30002   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30003 fi
30004
30005 if test -n "$ac_config_commands"; then
30006   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30007 fi
30008
30009 cat >>$CONFIG_STATUS <<\_ACEOF
30010
30011 ac_cs_usage="\
30012 \`$as_me' instantiates files from templates according to the
30013 current configuration.
30014
30015 Usage: $0 [OPTIONS] [FILE]...
30016
30017   -h, --help       print this help, then exit
30018   -V, --version    print version number, then exit
30019   -q, --quiet      do not print progress messages
30020   -d, --debug      don't remove temporary files
30021       --recheck    update $as_me by reconfiguring in the same conditions
30022   --file=FILE[:TEMPLATE]
30023                    instantiate the configuration file FILE
30024   --header=FILE[:TEMPLATE]
30025                    instantiate the configuration header FILE
30026
30027 Configuration files:
30028 $config_files
30029
30030 Configuration headers:
30031 $config_headers
30032
30033 Configuration links:
30034 $config_links
30035
30036 Configuration commands:
30037 $config_commands
30038
30039 Report bugs to <bug-autoconf@gnu.org>."
30040 _ACEOF
30041
30042 cat >>$CONFIG_STATUS <<_ACEOF
30043 ac_cs_version="\\
30044 llvm config.status 1.4
30045 configured by $0, generated by GNU Autoconf 2.59,
30046   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30047
30048 Copyright (C) 2003 Free Software Foundation, Inc.
30049 This config.status script is free software; the Free Software Foundation
30050 gives unlimited permission to copy, distribute and modify it."
30051 srcdir=$srcdir
30052 INSTALL="$INSTALL"
30053 _ACEOF
30054
30055 cat >>$CONFIG_STATUS <<\_ACEOF
30056 # If no file are specified by the user, then we need to provide default
30057 # value.  By we need to know if files were specified by the user.
30058 ac_need_defaults=:
30059 while test $# != 0
30060 do
30061   case $1 in
30062   --*=*)
30063     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30064     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30065     ac_shift=:
30066     ;;
30067   -*)
30068     ac_option=$1
30069     ac_optarg=$2
30070     ac_shift=shift
30071     ;;
30072   *) # This is not an option, so the user has probably given explicit
30073      # arguments.
30074      ac_option=$1
30075      ac_need_defaults=false;;
30076   esac
30077
30078   case $ac_option in
30079   # Handling of the options.
30080 _ACEOF
30081 cat >>$CONFIG_STATUS <<\_ACEOF
30082   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30083     ac_cs_recheck=: ;;
30084   --version | --vers* | -V )
30085     echo "$ac_cs_version"; exit 0 ;;
30086   --he | --h)
30087     # Conflict between --help and --header
30088     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30089 Try \`$0 --help' for more information." >&5
30090 echo "$as_me: error: ambiguous option: $1
30091 Try \`$0 --help' for more information." >&2;}
30092    { (exit 1); exit 1; }; };;
30093   --help | --hel | -h )
30094     echo "$ac_cs_usage"; exit 0 ;;
30095   --debug | --d* | -d )
30096     debug=: ;;
30097   --file | --fil | --fi | --f )
30098     $ac_shift
30099     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30100     ac_need_defaults=false;;
30101   --header | --heade | --head | --hea )
30102     $ac_shift
30103     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30104     ac_need_defaults=false;;
30105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30107     ac_cs_silent=: ;;
30108
30109   # This is an error.
30110   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30111 Try \`$0 --help' for more information." >&5
30112 echo "$as_me: error: unrecognized option: $1
30113 Try \`$0 --help' for more information." >&2;}
30114    { (exit 1); exit 1; }; } ;;
30115
30116   *) ac_config_targets="$ac_config_targets $1" ;;
30117
30118   esac
30119   shift
30120 done
30121
30122 ac_configure_extra_args=
30123
30124 if $ac_cs_silent; then
30125   exec 6>/dev/null
30126   ac_configure_extra_args="$ac_configure_extra_args --silent"
30127 fi
30128
30129 _ACEOF
30130 cat >>$CONFIG_STATUS <<_ACEOF
30131 if \$ac_cs_recheck; then
30132   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30133   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30134 fi
30135
30136 _ACEOF
30137
30138 cat >>$CONFIG_STATUS <<_ACEOF
30139 #
30140 # INIT-COMMANDS section.
30141 #
30142
30143 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30144 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30145 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30146 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30147 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30148 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30149 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30150 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30151 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
30152 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30153 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30154 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30155
30156 _ACEOF
30157
30158
30159
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 for ac_config_target in $ac_config_targets
30162 do
30163   case "$ac_config_target" in
30164   # Handling of arguments.
30165   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30166   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30167   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30168   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30169   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30170   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30171   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30172   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30173   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30174   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30175   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30176   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30177   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30178   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30179   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30180   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
30181   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30182   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30183   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30184   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30185   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30186   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30187   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30188   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30189   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30190   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30192    { (exit 1); exit 1; }; };;
30193   esac
30194 done
30195
30196 # If the user did not use the arguments to specify the items to instantiate,
30197 # then the envvar interface is used.  Set only those that are not.
30198 # We use the long form for the default assignment because of an extremely
30199 # bizarre bug on SunOS 4.1.3.
30200 if $ac_need_defaults; then
30201   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30202   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30203   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30204   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30205 fi
30206
30207 # Have a temporary directory for convenience.  Make it in the build tree
30208 # simply because there is no reason to put it here, and in addition,
30209 # creating and moving files from /tmp can sometimes cause problems.
30210 # Create a temporary directory, and hook for its removal unless debugging.
30211 $debug ||
30212 {
30213   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30214   trap '{ (exit 1); exit 1; }' 1 2 13 15
30215 }
30216
30217 # Create a (secure) tmp directory for tmp files.
30218
30219 {
30220   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30221   test -n "$tmp" && test -d "$tmp"
30222 }  ||
30223 {
30224   tmp=./confstat$$-$RANDOM
30225   (umask 077 && mkdir $tmp)
30226 } ||
30227 {
30228    echo "$me: cannot create a temporary directory in ." >&2
30229    { (exit 1); exit 1; }
30230 }
30231
30232 _ACEOF
30233
30234 cat >>$CONFIG_STATUS <<_ACEOF
30235
30236 #
30237 # CONFIG_FILES section.
30238 #
30239
30240 # No need to generate the scripts if there are no CONFIG_FILES.
30241 # This happens for instance when ./config.status config.h
30242 if test -n "\$CONFIG_FILES"; then
30243   # Protect against being on the right side of a sed subst in config.status.
30244   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30245    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30246 s,@SHELL@,$SHELL,;t t
30247 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30248 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30249 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30250 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30251 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30252 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30253 s,@exec_prefix@,$exec_prefix,;t t
30254 s,@prefix@,$prefix,;t t
30255 s,@program_transform_name@,$program_transform_name,;t t
30256 s,@bindir@,$bindir,;t t
30257 s,@sbindir@,$sbindir,;t t
30258 s,@libexecdir@,$libexecdir,;t t
30259 s,@datadir@,$datadir,;t t
30260 s,@sysconfdir@,$sysconfdir,;t t
30261 s,@sharedstatedir@,$sharedstatedir,;t t
30262 s,@localstatedir@,$localstatedir,;t t
30263 s,@libdir@,$libdir,;t t
30264 s,@includedir@,$includedir,;t t
30265 s,@oldincludedir@,$oldincludedir,;t t
30266 s,@infodir@,$infodir,;t t
30267 s,@mandir@,$mandir,;t t
30268 s,@build_alias@,$build_alias,;t t
30269 s,@host_alias@,$host_alias,;t t
30270 s,@target_alias@,$target_alias,;t t
30271 s,@DEFS@,$DEFS,;t t
30272 s,@ECHO_C@,$ECHO_C,;t t
30273 s,@ECHO_N@,$ECHO_N,;t t
30274 s,@ECHO_T@,$ECHO_T,;t t
30275 s,@LIBS@,$LIBS,;t t
30276 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30277 s,@subdirs@,$subdirs,;t t
30278 s,@build@,$build,;t t
30279 s,@build_cpu@,$build_cpu,;t t
30280 s,@build_vendor@,$build_vendor,;t t
30281 s,@build_os@,$build_os,;t t
30282 s,@host@,$host,;t t
30283 s,@host_cpu@,$host_cpu,;t t
30284 s,@host_vendor@,$host_vendor,;t t
30285 s,@host_os@,$host_os,;t t
30286 s,@target@,$target,;t t
30287 s,@target_cpu@,$target_cpu,;t t
30288 s,@target_vendor@,$target_vendor,;t t
30289 s,@target_os@,$target_os,;t t
30290 s,@OS@,$OS,;t t
30291 s,@ARCH@,$ARCH,;t t
30292 s,@ENDIAN@,$ENDIAN,;t t
30293 s,@CC@,$CC,;t t
30294 s,@CFLAGS@,$CFLAGS,;t t
30295 s,@LDFLAGS@,$LDFLAGS,;t t
30296 s,@CPPFLAGS@,$CPPFLAGS,;t t
30297 s,@ac_ct_CC@,$ac_ct_CC,;t t
30298 s,@EXEEXT@,$EXEEXT,;t t
30299 s,@OBJEXT@,$OBJEXT,;t t
30300 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30301 s,@JIT@,$JIT,;t t
30302 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30303 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30304 s,@CPP@,$CPP,;t t
30305 s,@CXX@,$CXX,;t t
30306 s,@CXXFLAGS@,$CXXFLAGS,;t t
30307 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30308 s,@LEX@,$LEX,;t t
30309 s,@LEXLIB@,$LEXLIB,;t t
30310 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30311 s,@FLEX@,$FLEX,;t t
30312 s,@YACC@,$YACC,;t t
30313 s,@BISON@,$BISON,;t t
30314 s,@ifGNUmake@,$ifGNUmake,;t t
30315 s,@LN_S@,$LN_S,;t t
30316 s,@DATE@,$DATE,;t t
30317 s,@FIND@,$FIND,;t t
30318 s,@GREP@,$GREP,;t t
30319 s,@MKDIR@,$MKDIR,;t t
30320 s,@MV@,$MV,;t t
30321 s,@PAX@,$PAX,;t t
30322 s,@RANLIB@,$RANLIB,;t t
30323 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30324 s,@RM@,$RM,;t t
30325 s,@SED@,$SED,;t t
30326 s,@TAR@,$TAR,;t t
30327 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30328 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30329 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30330 s,@BZIP2@,$BZIP2,;t t
30331 s,@DOT@,$DOT,;t t
30332 s,@DOXYGEN@,$DOXYGEN,;t t
30333 s,@ETAGS@,$ETAGS,;t t
30334 s,@GROFF@,$GROFF,;t t
30335 s,@GZIP@,$GZIP,;t t
30336 s,@POD2HTML@,$POD2HTML,;t t
30337 s,@POD2MAN@,$POD2MAN,;t t
30338 s,@PYTHON@,$PYTHON,;t t
30339 s,@QMTEST@,$QMTEST,;t t
30340 s,@RUNTEST@,$RUNTEST,;t t
30341 s,@tclsh@,$tclsh,;t t
30342 s,@TCLSH@,$TCLSH,;t t
30343 s,@ZIP@,$ZIP,;t t
30344 s,@EGREP@,$EGREP,;t t
30345 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30346 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30347 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30348 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30349 s,@LIBADD_DL@,$LIBADD_DL,;t t
30350 s,@ECHO@,$ECHO,;t t
30351 s,@AR@,$AR,;t t
30352 s,@ac_ct_AR@,$ac_ct_AR,;t t
30353 s,@STRIP@,$STRIP,;t t
30354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30355 s,@CXXCPP@,$CXXCPP,;t t
30356 s,@F77@,$F77,;t t
30357 s,@FFLAGS@,$FFLAGS,;t t
30358 s,@ac_ct_F77@,$ac_ct_F77,;t t
30359 s,@LIBTOOL@,$LIBTOOL,;t t
30360 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30361 s,@ALLOCA@,$ALLOCA,;t t
30362 s,@MMAP_FILE@,$MMAP_FILE,;t t
30363 s,@LLVMGCC@,$LLVMGCC,;t t
30364 s,@LLVMCC1@,$LLVMCC1,;t t
30365 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30366 s,@SHLIBEXT@,$SHLIBEXT,;t t
30367 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30368 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30369 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30370 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30371 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30372 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30373 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30374 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30375 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30376 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30377 s,@LIBOBJS@,$LIBOBJS,;t t
30378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30379 CEOF
30380
30381 _ACEOF
30382
30383   cat >>$CONFIG_STATUS <<\_ACEOF
30384   # Split the substitutions into bite-sized pieces for seds with
30385   # small command number limits, like on Digital OSF/1 and HP-UX.
30386   ac_max_sed_lines=48
30387   ac_sed_frag=1 # Number of current file.
30388   ac_beg=1 # First line for current file.
30389   ac_end=$ac_max_sed_lines # Line after last line for current file.
30390   ac_more_lines=:
30391   ac_sed_cmds=
30392   while $ac_more_lines; do
30393     if test $ac_beg -gt 1; then
30394       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30395     else
30396       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30397     fi
30398     if test ! -s $tmp/subs.frag; then
30399       ac_more_lines=false
30400     else
30401       # The purpose of the label and of the branching condition is to
30402       # speed up the sed processing (if there are no `@' at all, there
30403       # is no need to browse any of the substitutions).
30404       # These are the two extra sed commands mentioned above.
30405       (echo ':t
30406   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30407       if test -z "$ac_sed_cmds"; then
30408         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30409       else
30410         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30411       fi
30412       ac_sed_frag=`expr $ac_sed_frag + 1`
30413       ac_beg=$ac_end
30414       ac_end=`expr $ac_end + $ac_max_sed_lines`
30415     fi
30416   done
30417   if test -z "$ac_sed_cmds"; then
30418     ac_sed_cmds=cat
30419   fi
30420 fi # test -n "$CONFIG_FILES"
30421
30422 _ACEOF
30423 cat >>$CONFIG_STATUS <<\_ACEOF
30424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30426   case $ac_file in
30427   - | *:- | *:-:* ) # input from stdin
30428         cat >$tmp/stdin
30429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30433   * )   ac_file_in=$ac_file.in ;;
30434   esac
30435
30436   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30437   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30439          X"$ac_file" : 'X\(//\)[^/]' \| \
30440          X"$ac_file" : 'X\(//\)$' \| \
30441          X"$ac_file" : 'X\(/\)' \| \
30442          .     : '\(.\)' 2>/dev/null ||
30443 echo X"$ac_file" |
30444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30446           /^X\(\/\/\)$/{ s//\1/; q; }
30447           /^X\(\/\).*/{ s//\1/; q; }
30448           s/.*/./; q'`
30449   { if $as_mkdir_p; then
30450     mkdir -p "$ac_dir"
30451   else
30452     as_dir="$ac_dir"
30453     as_dirs=
30454     while test ! -d "$as_dir"; do
30455       as_dirs="$as_dir $as_dirs"
30456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30458          X"$as_dir" : 'X\(//\)[^/]' \| \
30459          X"$as_dir" : 'X\(//\)$' \| \
30460          X"$as_dir" : 'X\(/\)' \| \
30461          .     : '\(.\)' 2>/dev/null ||
30462 echo X"$as_dir" |
30463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30465           /^X\(\/\/\)$/{ s//\1/; q; }
30466           /^X\(\/\).*/{ s//\1/; q; }
30467           s/.*/./; q'`
30468     done
30469     test ! -n "$as_dirs" || mkdir $as_dirs
30470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30472    { (exit 1); exit 1; }; }; }
30473
30474   ac_builddir=.
30475
30476 if test "$ac_dir" != .; then
30477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30478   # A "../" for each directory in $ac_dir_suffix.
30479   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30480 else
30481   ac_dir_suffix= ac_top_builddir=
30482 fi
30483
30484 case $srcdir in
30485   .)  # No --srcdir option.  We are building in place.
30486     ac_srcdir=.
30487     if test -z "$ac_top_builddir"; then
30488        ac_top_srcdir=.
30489     else
30490        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30491     fi ;;
30492   [\\/]* | ?:[\\/]* )  # Absolute path.
30493     ac_srcdir=$srcdir$ac_dir_suffix;
30494     ac_top_srcdir=$srcdir ;;
30495   *) # Relative path.
30496     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30497     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30498 esac
30499
30500 # Do not use `cd foo && pwd` to compute absolute paths, because
30501 # the directories may not exist.
30502 case `pwd` in
30503 .) ac_abs_builddir="$ac_dir";;
30504 *)
30505   case "$ac_dir" in
30506   .) ac_abs_builddir=`pwd`;;
30507   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30508   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30509   esac;;
30510 esac
30511 case $ac_abs_builddir in
30512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30513 *)
30514   case ${ac_top_builddir}. in
30515   .) ac_abs_top_builddir=$ac_abs_builddir;;
30516   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30517   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30518   esac;;
30519 esac
30520 case $ac_abs_builddir in
30521 .) ac_abs_srcdir=$ac_srcdir;;
30522 *)
30523   case $ac_srcdir in
30524   .) ac_abs_srcdir=$ac_abs_builddir;;
30525   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30526   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30527   esac;;
30528 esac
30529 case $ac_abs_builddir in
30530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30531 *)
30532   case $ac_top_srcdir in
30533   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30534   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30535   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30536   esac;;
30537 esac
30538
30539
30540   case $INSTALL in
30541   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30542   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30543   esac
30544
30545   if test x"$ac_file" != x-; then
30546     { echo "$as_me:$LINENO: creating $ac_file" >&5
30547 echo "$as_me: creating $ac_file" >&6;}
30548     rm -f "$ac_file"
30549   fi
30550   # Let's still pretend it is `configure' which instantiates (i.e., don't
30551   # use $as_me), people would be surprised to read:
30552   #    /* config.h.  Generated by config.status.  */
30553   if test x"$ac_file" = x-; then
30554     configure_input=
30555   else
30556     configure_input="$ac_file.  "
30557   fi
30558   configure_input=$configure_input"Generated from `echo $ac_file_in |
30559                                      sed 's,.*/,,'` by configure."
30560
30561   # First look for the input files in the build tree, otherwise in the
30562   # src tree.
30563   ac_file_inputs=`IFS=:
30564     for f in $ac_file_in; do
30565       case $f in
30566       -) echo $tmp/stdin ;;
30567       [\\/$]*)
30568          # Absolute (can't be DOS-style, as IFS=:)
30569          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30570 echo "$as_me: error: cannot find input file: $f" >&2;}
30571    { (exit 1); exit 1; }; }
30572          echo "$f";;
30573       *) # Relative
30574          if test -f "$f"; then
30575            # Build tree
30576            echo "$f"
30577          elif test -f "$srcdir/$f"; then
30578            # Source tree
30579            echo "$srcdir/$f"
30580          else
30581            # /dev/null tree
30582            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30583 echo "$as_me: error: cannot find input file: $f" >&2;}
30584    { (exit 1); exit 1; }; }
30585          fi;;
30586       esac
30587     done` || { (exit 1); exit 1; }
30588 _ACEOF
30589 cat >>$CONFIG_STATUS <<_ACEOF
30590   sed "$ac_vpsub
30591 $extrasub
30592 _ACEOF
30593 cat >>$CONFIG_STATUS <<\_ACEOF
30594 :t
30595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30596 s,@configure_input@,$configure_input,;t t
30597 s,@srcdir@,$ac_srcdir,;t t
30598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30599 s,@top_srcdir@,$ac_top_srcdir,;t t
30600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30601 s,@builddir@,$ac_builddir,;t t
30602 s,@abs_builddir@,$ac_abs_builddir,;t t
30603 s,@top_builddir@,$ac_top_builddir,;t t
30604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30605 s,@INSTALL@,$ac_INSTALL,;t t
30606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30607   rm -f $tmp/stdin
30608   if test x"$ac_file" != x-; then
30609     mv $tmp/out $ac_file
30610   else
30611     cat $tmp/out
30612     rm -f $tmp/out
30613   fi
30614
30615 done
30616 _ACEOF
30617 cat >>$CONFIG_STATUS <<\_ACEOF
30618
30619 #
30620 # CONFIG_HEADER section.
30621 #
30622
30623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30625 #
30626 # ac_d sets the value in "#define NAME VALUE" lines.
30627 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30628 ac_dB='[         ].*$,\1#\2'
30629 ac_dC=' '
30630 ac_dD=',;t'
30631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30632 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30633 ac_uB='$,\1#\2define\3'
30634 ac_uC=' '
30635 ac_uD=',;t'
30636
30637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30638   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30639   case $ac_file in
30640   - | *:- | *:-:* ) # input from stdin
30641         cat >$tmp/stdin
30642         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30643         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30644   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30645         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30646   * )   ac_file_in=$ac_file.in ;;
30647   esac
30648
30649   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30650 echo "$as_me: creating $ac_file" >&6;}
30651
30652   # First look for the input files in the build tree, otherwise in the
30653   # src tree.
30654   ac_file_inputs=`IFS=:
30655     for f in $ac_file_in; do
30656       case $f in
30657       -) echo $tmp/stdin ;;
30658       [\\/$]*)
30659          # Absolute (can't be DOS-style, as IFS=:)
30660          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30661 echo "$as_me: error: cannot find input file: $f" >&2;}
30662    { (exit 1); exit 1; }; }
30663          # Do quote $f, to prevent DOS paths from being IFS'd.
30664          echo "$f";;
30665       *) # Relative
30666          if test -f "$f"; then
30667            # Build tree
30668            echo "$f"
30669          elif test -f "$srcdir/$f"; then
30670            # Source tree
30671            echo "$srcdir/$f"
30672          else
30673            # /dev/null tree
30674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30675 echo "$as_me: error: cannot find input file: $f" >&2;}
30676    { (exit 1); exit 1; }; }
30677          fi;;
30678       esac
30679     done` || { (exit 1); exit 1; }
30680   # Remove the trailing spaces.
30681   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30682
30683 _ACEOF
30684
30685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30686 # `conftest.undefs', that substitutes the proper values into
30687 # config.h.in to produce config.h.  The first handles `#define'
30688 # templates, and the second `#undef' templates.
30689 # And first: Protect against being on the right side of a sed subst in
30690 # config.status.  Protect against being in an unquoted here document
30691 # in config.status.
30692 rm -f conftest.defines conftest.undefs
30693 # Using a here document instead of a string reduces the quoting nightmare.
30694 # Putting comments in sed scripts is not portable.
30695 #
30696 # `end' is used to avoid that the second main sed command (meant for
30697 # 0-ary CPP macros) applies to n-ary macro definitions.
30698 # See the Autoconf documentation for `clear'.
30699 cat >confdef2sed.sed <<\_ACEOF
30700 s/[\\&,]/\\&/g
30701 s,[\\$`],\\&,g
30702 t clear
30703 : clear
30704 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30705 t end
30706 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30707 : end
30708 _ACEOF
30709 # If some macros were called several times there might be several times
30710 # the same #defines, which is useless.  Nevertheless, we may not want to
30711 # sort them, since we want the *last* AC-DEFINE to be honored.
30712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30714 rm -f confdef2sed.sed
30715
30716 # This sed command replaces #undef with comments.  This is necessary, for
30717 # example, in the case of _POSIX_SOURCE, which is predefined and required
30718 # on some systems where configure will not decide to define it.
30719 cat >>conftest.undefs <<\_ACEOF
30720 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30721 _ACEOF
30722
30723 # Break up conftest.defines because some shells have a limit on the size
30724 # of here documents, and old seds have small limits too (100 cmds).
30725 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30726 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30727 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30728 echo '  :' >>$CONFIG_STATUS
30729 rm -f conftest.tail
30730 while grep . conftest.defines >/dev/null
30731 do
30732   # Write a limited-size here document to $tmp/defines.sed.
30733   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30734   # Speed up: don't consider the non `#define' lines.
30735   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30736   # Work around the forget-to-reset-the-flag bug.
30737   echo 't clr' >>$CONFIG_STATUS
30738   echo ': clr' >>$CONFIG_STATUS
30739   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30740   echo 'CEOF
30741   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30742   rm -f $tmp/in
30743   mv $tmp/out $tmp/in
30744 ' >>$CONFIG_STATUS
30745   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30746   rm -f conftest.defines
30747   mv conftest.tail conftest.defines
30748 done
30749 rm -f conftest.defines
30750 echo '  fi # grep' >>$CONFIG_STATUS
30751 echo >>$CONFIG_STATUS
30752
30753 # Break up conftest.undefs because some shells have a limit on the size
30754 # of here documents, and old seds have small limits too (100 cmds).
30755 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30756 rm -f conftest.tail
30757 while grep . conftest.undefs >/dev/null
30758 do
30759   # Write a limited-size here document to $tmp/undefs.sed.
30760   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30761   # Speed up: don't consider the non `#undef'
30762   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30763   # Work around the forget-to-reset-the-flag bug.
30764   echo 't clr' >>$CONFIG_STATUS
30765   echo ': clr' >>$CONFIG_STATUS
30766   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30767   echo 'CEOF
30768   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30769   rm -f $tmp/in
30770   mv $tmp/out $tmp/in
30771 ' >>$CONFIG_STATUS
30772   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30773   rm -f conftest.undefs
30774   mv conftest.tail conftest.undefs
30775 done
30776 rm -f conftest.undefs
30777
30778 cat >>$CONFIG_STATUS <<\_ACEOF
30779   # Let's still pretend it is `configure' which instantiates (i.e., don't
30780   # use $as_me), people would be surprised to read:
30781   #    /* config.h.  Generated by config.status.  */
30782   if test x"$ac_file" = x-; then
30783     echo "/* Generated by configure.  */" >$tmp/config.h
30784   else
30785     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30786   fi
30787   cat $tmp/in >>$tmp/config.h
30788   rm -f $tmp/in
30789   if test x"$ac_file" != x-; then
30790     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30791       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30792 echo "$as_me: $ac_file is unchanged" >&6;}
30793     else
30794       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30796          X"$ac_file" : 'X\(//\)[^/]' \| \
30797          X"$ac_file" : 'X\(//\)$' \| \
30798          X"$ac_file" : 'X\(/\)' \| \
30799          .     : '\(.\)' 2>/dev/null ||
30800 echo X"$ac_file" |
30801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30803           /^X\(\/\/\)$/{ s//\1/; q; }
30804           /^X\(\/\).*/{ s//\1/; q; }
30805           s/.*/./; q'`
30806       { if $as_mkdir_p; then
30807     mkdir -p "$ac_dir"
30808   else
30809     as_dir="$ac_dir"
30810     as_dirs=
30811     while test ! -d "$as_dir"; do
30812       as_dirs="$as_dir $as_dirs"
30813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30815          X"$as_dir" : 'X\(//\)[^/]' \| \
30816          X"$as_dir" : 'X\(//\)$' \| \
30817          X"$as_dir" : 'X\(/\)' \| \
30818          .     : '\(.\)' 2>/dev/null ||
30819 echo X"$as_dir" |
30820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30822           /^X\(\/\/\)$/{ s//\1/; q; }
30823           /^X\(\/\).*/{ s//\1/; q; }
30824           s/.*/./; q'`
30825     done
30826     test ! -n "$as_dirs" || mkdir $as_dirs
30827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30829    { (exit 1); exit 1; }; }; }
30830
30831       rm -f $ac_file
30832       mv $tmp/config.h $ac_file
30833     fi
30834   else
30835     cat $tmp/config.h
30836     rm -f $tmp/config.h
30837   fi
30838 done
30839 _ACEOF
30840 cat >>$CONFIG_STATUS <<\_ACEOF
30841
30842 #
30843 # CONFIG_LINKS section.
30844 #
30845
30846 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30847   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30848   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30849
30850   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30851 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30852
30853   if test ! -r $srcdir/$ac_source; then
30854     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30855 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30856    { (exit 1); exit 1; }; }
30857   fi
30858   rm -f $ac_dest
30859
30860   # Make relative symlinks.
30861   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30863          X"$ac_dest" : 'X\(//\)[^/]' \| \
30864          X"$ac_dest" : 'X\(//\)$' \| \
30865          X"$ac_dest" : 'X\(/\)' \| \
30866          .     : '\(.\)' 2>/dev/null ||
30867 echo X"$ac_dest" |
30868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30870           /^X\(\/\/\)$/{ s//\1/; q; }
30871           /^X\(\/\).*/{ s//\1/; q; }
30872           s/.*/./; q'`
30873   { if $as_mkdir_p; then
30874     mkdir -p "$ac_dest_dir"
30875   else
30876     as_dir="$ac_dest_dir"
30877     as_dirs=
30878     while test ! -d "$as_dir"; do
30879       as_dirs="$as_dir $as_dirs"
30880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30882          X"$as_dir" : 'X\(//\)[^/]' \| \
30883          X"$as_dir" : 'X\(//\)$' \| \
30884          X"$as_dir" : 'X\(/\)' \| \
30885          .     : '\(.\)' 2>/dev/null ||
30886 echo X"$as_dir" |
30887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30889           /^X\(\/\/\)$/{ s//\1/; q; }
30890           /^X\(\/\).*/{ s//\1/; q; }
30891           s/.*/./; q'`
30892     done
30893     test ! -n "$as_dirs" || mkdir $as_dirs
30894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30895 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30896    { (exit 1); exit 1; }; }; }
30897
30898   ac_builddir=.
30899
30900 if test "$ac_dest_dir" != .; then
30901   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30902   # A "../" for each directory in $ac_dir_suffix.
30903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30904 else
30905   ac_dir_suffix= ac_top_builddir=
30906 fi
30907
30908 case $srcdir in
30909   .)  # No --srcdir option.  We are building in place.
30910     ac_srcdir=.
30911     if test -z "$ac_top_builddir"; then
30912        ac_top_srcdir=.
30913     else
30914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30915     fi ;;
30916   [\\/]* | ?:[\\/]* )  # Absolute path.
30917     ac_srcdir=$srcdir$ac_dir_suffix;
30918     ac_top_srcdir=$srcdir ;;
30919   *) # Relative path.
30920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30922 esac
30923
30924 # Do not use `cd foo && pwd` to compute absolute paths, because
30925 # the directories may not exist.
30926 case `pwd` in
30927 .) ac_abs_builddir="$ac_dest_dir";;
30928 *)
30929   case "$ac_dest_dir" in
30930   .) ac_abs_builddir=`pwd`;;
30931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30932   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30933   esac;;
30934 esac
30935 case $ac_abs_builddir in
30936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30937 *)
30938   case ${ac_top_builddir}. in
30939   .) ac_abs_top_builddir=$ac_abs_builddir;;
30940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30942   esac;;
30943 esac
30944 case $ac_abs_builddir in
30945 .) ac_abs_srcdir=$ac_srcdir;;
30946 *)
30947   case $ac_srcdir in
30948   .) ac_abs_srcdir=$ac_abs_builddir;;
30949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30951   esac;;
30952 esac
30953 case $ac_abs_builddir in
30954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30955 *)
30956   case $ac_top_srcdir in
30957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30960   esac;;
30961 esac
30962
30963
30964   case $srcdir in
30965   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30966       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30967   esac
30968
30969   # Try a symlink, then a hard link, then a copy.
30970   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30971     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30972     cp -p $srcdir/$ac_source $ac_dest ||
30973     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30974 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30975    { (exit 1); exit 1; }; }
30976 done
30977 _ACEOF
30978 cat >>$CONFIG_STATUS <<\_ACEOF
30979
30980 #
30981 # CONFIG_COMMANDS section.
30982 #
30983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30984   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30985   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30986   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30988          X"$ac_dest" : 'X\(//\)[^/]' \| \
30989          X"$ac_dest" : 'X\(//\)$' \| \
30990          X"$ac_dest" : 'X\(/\)' \| \
30991          .     : '\(.\)' 2>/dev/null ||
30992 echo X"$ac_dest" |
30993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30995           /^X\(\/\/\)$/{ s//\1/; q; }
30996           /^X\(\/\).*/{ s//\1/; q; }
30997           s/.*/./; q'`
30998   { if $as_mkdir_p; then
30999     mkdir -p "$ac_dir"
31000   else
31001     as_dir="$ac_dir"
31002     as_dirs=
31003     while test ! -d "$as_dir"; do
31004       as_dirs="$as_dir $as_dirs"
31005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31007          X"$as_dir" : 'X\(//\)[^/]' \| \
31008          X"$as_dir" : 'X\(//\)$' \| \
31009          X"$as_dir" : 'X\(/\)' \| \
31010          .     : '\(.\)' 2>/dev/null ||
31011 echo X"$as_dir" |
31012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31014           /^X\(\/\/\)$/{ s//\1/; q; }
31015           /^X\(\/\).*/{ s//\1/; q; }
31016           s/.*/./; q'`
31017     done
31018     test ! -n "$as_dirs" || mkdir $as_dirs
31019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31021    { (exit 1); exit 1; }; }; }
31022
31023   ac_builddir=.
31024
31025 if test "$ac_dir" != .; then
31026   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31027   # A "../" for each directory in $ac_dir_suffix.
31028   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31029 else
31030   ac_dir_suffix= ac_top_builddir=
31031 fi
31032
31033 case $srcdir in
31034   .)  # No --srcdir option.  We are building in place.
31035     ac_srcdir=.
31036     if test -z "$ac_top_builddir"; then
31037        ac_top_srcdir=.
31038     else
31039        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31040     fi ;;
31041   [\\/]* | ?:[\\/]* )  # Absolute path.
31042     ac_srcdir=$srcdir$ac_dir_suffix;
31043     ac_top_srcdir=$srcdir ;;
31044   *) # Relative path.
31045     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31046     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31047 esac
31048
31049 # Do not use `cd foo && pwd` to compute absolute paths, because
31050 # the directories may not exist.
31051 case `pwd` in
31052 .) ac_abs_builddir="$ac_dir";;
31053 *)
31054   case "$ac_dir" in
31055   .) ac_abs_builddir=`pwd`;;
31056   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31057   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31058   esac;;
31059 esac
31060 case $ac_abs_builddir in
31061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31062 *)
31063   case ${ac_top_builddir}. in
31064   .) ac_abs_top_builddir=$ac_abs_builddir;;
31065   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31066   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31067   esac;;
31068 esac
31069 case $ac_abs_builddir in
31070 .) ac_abs_srcdir=$ac_srcdir;;
31071 *)
31072   case $ac_srcdir in
31073   .) ac_abs_srcdir=$ac_abs_builddir;;
31074   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31075   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31076   esac;;
31077 esac
31078 case $ac_abs_builddir in
31079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31080 *)
31081   case $ac_top_srcdir in
31082   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31083   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31084   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31085   esac;;
31086 esac
31087
31088
31089   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31090 echo "$as_me: executing $ac_dest commands" >&6;}
31091   case $ac_dest in
31092     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31093     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31094     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31095     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31096     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31097     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31098     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31099     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31100     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
31101     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31102     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31103     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31104   esac
31105 done
31106 _ACEOF
31107
31108 cat >>$CONFIG_STATUS <<\_ACEOF
31109
31110 { (exit 0); exit 0; }
31111 _ACEOF
31112 chmod +x $CONFIG_STATUS
31113 ac_clean_files=$ac_clean_files_save
31114
31115
31116 # configure is writing to config.log, and then calls config.status.
31117 # config.status does its own redirection, appending to config.log.
31118 # Unfortunately, on DOS this fails, as config.log is still kept open
31119 # by configure, so config.status won't be able to write to it; its
31120 # output is simply discarded.  So we exec the FD to /dev/null,
31121 # effectively closing config.log, so it can be properly (re)opened and
31122 # appended to by config.status.  When coming back to configure, we
31123 # need to make the FD available again.
31124 if test "$no_create" != yes; then
31125   ac_cs_success=:
31126   ac_config_status_args=
31127   test "$silent" = yes &&
31128     ac_config_status_args="$ac_config_status_args --quiet"
31129   exec 5>/dev/null
31130   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31131   exec 5>>config.log
31132   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31133   # would make configure fail if this is the last instruction.
31134   $ac_cs_success || { (exit 1); exit 1; }
31135 fi
31136
31137 #
31138 # CONFIG_SUBDIRS section.
31139 #
31140 if test "$no_recursion" != yes; then
31141
31142   # Remove --cache-file and --srcdir arguments so they do not pile up.
31143   ac_sub_configure_args=
31144   ac_prev=
31145   for ac_arg in $ac_configure_args; do
31146     if test -n "$ac_prev"; then
31147       ac_prev=
31148       continue
31149     fi
31150     case $ac_arg in
31151     -cache-file | --cache-file | --cache-fil | --cache-fi \
31152     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31153       ac_prev=cache_file ;;
31154     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31155     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31156     | --c=*)
31157       ;;
31158     --config-cache | -C)
31159       ;;
31160     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31161       ac_prev=srcdir ;;
31162     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31163       ;;
31164     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31165       ac_prev=prefix ;;
31166     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31167       ;;
31168     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31169     esac
31170   done
31171
31172   # Always prepend --prefix to ensure using the same prefix
31173   # in subdir configurations.
31174   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31175
31176   ac_popdir=`pwd`
31177   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31178
31179     # Do not complain, so a configure script can configure whichever
31180     # parts of a large source tree are present.
31181     test -d $srcdir/$ac_dir || continue
31182
31183     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31184 echo "$as_me: configuring in $ac_dir" >&6;}
31185     { if $as_mkdir_p; then
31186     mkdir -p "$ac_dir"
31187   else
31188     as_dir="$ac_dir"
31189     as_dirs=
31190     while test ! -d "$as_dir"; do
31191       as_dirs="$as_dir $as_dirs"
31192       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31194          X"$as_dir" : 'X\(//\)[^/]' \| \
31195          X"$as_dir" : 'X\(//\)$' \| \
31196          X"$as_dir" : 'X\(/\)' \| \
31197          .     : '\(.\)' 2>/dev/null ||
31198 echo X"$as_dir" |
31199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31201           /^X\(\/\/\)$/{ s//\1/; q; }
31202           /^X\(\/\).*/{ s//\1/; q; }
31203           s/.*/./; q'`
31204     done
31205     test ! -n "$as_dirs" || mkdir $as_dirs
31206   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31208    { (exit 1); exit 1; }; }; }
31209
31210     ac_builddir=.
31211
31212 if test "$ac_dir" != .; then
31213   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31214   # A "../" for each directory in $ac_dir_suffix.
31215   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31216 else
31217   ac_dir_suffix= ac_top_builddir=
31218 fi
31219
31220 case $srcdir in
31221   .)  # No --srcdir option.  We are building in place.
31222     ac_srcdir=.
31223     if test -z "$ac_top_builddir"; then
31224        ac_top_srcdir=.
31225     else
31226        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31227     fi ;;
31228   [\\/]* | ?:[\\/]* )  # Absolute path.
31229     ac_srcdir=$srcdir$ac_dir_suffix;
31230     ac_top_srcdir=$srcdir ;;
31231   *) # Relative path.
31232     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31233     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31234 esac
31235
31236 # Do not use `cd foo && pwd` to compute absolute paths, because
31237 # the directories may not exist.
31238 case `pwd` in
31239 .) ac_abs_builddir="$ac_dir";;
31240 *)
31241   case "$ac_dir" in
31242   .) ac_abs_builddir=`pwd`;;
31243   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31244   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31245   esac;;
31246 esac
31247 case $ac_abs_builddir in
31248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31249 *)
31250   case ${ac_top_builddir}. in
31251   .) ac_abs_top_builddir=$ac_abs_builddir;;
31252   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31253   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31254   esac;;
31255 esac
31256 case $ac_abs_builddir in
31257 .) ac_abs_srcdir=$ac_srcdir;;
31258 *)
31259   case $ac_srcdir in
31260   .) ac_abs_srcdir=$ac_abs_builddir;;
31261   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31262   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31263   esac;;
31264 esac
31265 case $ac_abs_builddir in
31266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31267 *)
31268   case $ac_top_srcdir in
31269   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31270   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31271   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31272   esac;;
31273 esac
31274
31275
31276     cd $ac_dir
31277
31278     # Check for guested configure; otherwise get Cygnus style configure.
31279     if test -f $ac_srcdir/configure.gnu; then
31280       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31281     elif test -f $ac_srcdir/configure; then
31282       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31283     elif test -f $ac_srcdir/configure.in; then
31284       ac_sub_configure=$ac_configure
31285     else
31286       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31287 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31288       ac_sub_configure=
31289     fi
31290
31291     # The recursion is here.
31292     if test -n "$ac_sub_configure"; then
31293       # Make the cache file name correct relative to the subdirectory.
31294       case $cache_file in
31295       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31296       *) # Relative path.
31297         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31298       esac
31299
31300       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31301 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31302       # The eval makes quoting arguments work.
31303       eval $ac_sub_configure $ac_sub_configure_args \
31304            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31305         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31306 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31307    { (exit 1); exit 1; }; }
31308     fi
31309
31310     cd $ac_popdir
31311   done
31312 fi
31313
31314
31315 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31316  { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31317 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31318  { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31319 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31320  { echo "$as_me:$LINENO: WARNING: ***** " >&5
31321 echo "$as_me: WARNING: ***** " >&2;}
31322  { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31323 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31324  { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31325 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31326  { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31327 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31328 fi