Remove trailing whitespace at the end of lines
[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.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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/llvm-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/llvm-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 LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST 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 LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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.5cvs 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.5cvs:";;
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       Specify location of llvm-gcc install dir (default
1053                           searches PATH)
1054   --with-tclinclude       directory where tcl headers are
1055   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056   --with-pic              try to use only PIC/non-PIC objects [default=use
1057                           both]
1058   --with-tags[=TAGS]
1059                           include additional configurations [automatic]
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 llvm configure 1.5cvs
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180
1181 $LLVM_COPYRIGHT
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by llvm $as_me 1.5cvs, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535 ac_aux_dir=
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537   if test -f $ac_dir/install-sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install-sh -c"
1540     break
1541   elif test -f $ac_dir/install.sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install.sh -c"
1544     break
1545   elif test -f $ac_dir/shtool; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/shtool install -c"
1548     break
1549   fi
1550 done
1551 if test -z "$ac_aux_dir"; then
1552   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554    { (exit 1); exit 1; }; }
1555 fi
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561 if test ${srcdir} != "." ; then
1562   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565    { (exit 1); exit 1; }; }
1566   fi
1567 fi
1568
1569 for i in `ls ${srcdir}/projects`
1570 do
1571   if test -d ${srcdir}/projects/${i} ; then
1572     case ${i} in
1573       "CVS") ;;
1574       "sample")
1575
1576 subdirs="$subdirs projects/sample"
1577     ;;
1578       "Stacker")
1579
1580 subdirs="$subdirs projects/Stacker"
1581    ;;
1582       "llvm-test")
1583
1584 subdirs="$subdirs projects/llvm-test"
1585  ;;
1586       "llvm-reopt")
1587
1588 subdirs="$subdirs projects/llvm-reopt"
1589 ;;
1590       "llvm-gcc")
1591
1592 subdirs="$subdirs projects/llvm-gcc"
1593   ;;
1594       "llvm-java")
1595
1596 subdirs="$subdirs projects/llvm-java"
1597  ;;
1598       "llvm-tv")
1599
1600 subdirs="$subdirs projects/llvm-tv"
1601    ;;
1602       "llvm-fefw")
1603
1604 subdirs="$subdirs projects/llvm-fefw"
1605  ;;
1606       "llvm-poolalloc")
1607
1608 subdirs="$subdirs projects/llvm-poolalloc"
1609  ;;
1610       *)
1611         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613         ;;
1614     esac
1615   fi
1616 done
1617
1618
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632   ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636    { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640    { (exit 1); exit 1; }; }
1641
1642 fi
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1645 build=$ac_cv_build
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658   ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662    { (exit 1); exit 1; }; }
1663
1664 fi
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1667 host=$ac_cv_host
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680   ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684    { (exit 1); exit 1; }; }
1685
1686 fi
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698   test "$program_prefix$program_suffix$program_transform_name" = \
1699     NONENONEs,x,x, &&
1700   program_prefix=${target_alias}-
1701
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   case $build in
1708   *-*-aix*)
1709     llvm_cv_os_type="AIX"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-cygwin*)
1712     llvm_cv_os_type="Cygwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-darwin*)
1715     llvm_cv_os_type="Darwin"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-freebsd*)
1718     llvm_cv_os_type="FreeBSD"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-interix*)
1721     llvm_cv_os_type="Interix"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-linux*)
1724     llvm_cv_os_type="Linux"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-solaris*)
1727     llvm_cv_os_type="SunOS"
1728     llvm_cv_platform_type="Unix" ;;
1729   *-*-win32*)
1730     llvm_cv_os_type="Win32"
1731     llvm_cv_platform_type="Win32" ;;
1732   *-*-mingw*)
1733     llvm_cv_os_type="MingW"
1734     llvm_cv_platform_type="Win32" ;;
1735   *)
1736     llvm_cv_os_type="Unknown"
1737     llvm_cv_platform_type="Unknown" ;;
1738 esac
1739 fi
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746    { (exit 1); exit 1; }; }
1747 fi
1748
1749 OS=$llvm_cv_os_type
1750
1751
1752 case $llvm_cv_platform_type in
1753   Unix)
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1757 _ACEOF
1758
1759     LLVM_ON_UNIX=1
1760
1761     LLVM_ON_WIN32=0
1762
1763     ;;
1764   Win32)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=0
1771
1772     LLVM_ON_WIN32=1
1773
1774     ;;
1775 esac
1776
1777 case $target in
1778   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1779
1780   ;;
1781 esac
1782
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   case $target in
1789   i?86-*)                 llvm_cv_target_arch="x86" ;;
1790   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1791   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1792   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1793   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1794   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1795   *)                      llvm_cv_target_arch="Unknown" ;;
1796 esac
1797 fi
1798 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1800
1801 if test "$llvm_cv_target_arch" = "Unknown" ; then
1802   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804 fi
1805
1806 ARCH=$llvm_cv_target_arch
1807
1808
1809 ac_ext=c
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 if test -n "$ac_tool_prefix"; then
1815   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$CC"; then
1823   ac_cv_prog_CC="$CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 CC=$ac_cv_prog_CC
1842 if test -n "$CC"; then
1843   echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850 fi
1851 if test -z "$ac_cv_prog_CC"; then
1852   ac_ct_CC=$CC
1853   # Extract the first word of "gcc", so it can be a program name with args.
1854 set dummy gcc; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$ac_ct_CC"; then
1861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_ac_ct_CC="gcc"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888   CC=$ac_ct_CC
1889 else
1890   CC="$ac_cv_prog_CC"
1891 fi
1892
1893 if test -z "$CC"; then
1894   if test -n "$ac_tool_prefix"; then
1895   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$CC"; then
1903   ac_cv_prog_CC="$CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_CC="${ac_tool_prefix}cc"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 CC=$ac_cv_prog_CC
1922 if test -n "$CC"; then
1923   echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$ac_cv_prog_CC"; then
1932   ac_ct_CC=$CC
1933   # Extract the first word of "cc", so it can be a program name with args.
1934 set dummy cc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_CC"; then
1941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_CC="cc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960 if test -n "$ac_ct_CC"; then
1961   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962 echo "${ECHO_T}$ac_ct_CC" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968   CC=$ac_ct_CC
1969 else
1970   CC="$ac_cv_prog_CC"
1971 fi
1972
1973 fi
1974 if test -z "$CC"; then
1975   # Extract the first word of "cc", so it can be a program name with args.
1976 set dummy cc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985   ac_prog_rejected=no
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994        ac_prog_rejected=yes
1995        continue
1996      fi
1997     ac_cv_prog_CC="cc"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004 if test $ac_prog_rejected = yes; then
2005   # We found a bogon in the path, so make sure we never use it.
2006   set dummy $ac_cv_prog_CC
2007   shift
2008   if test $# != 0; then
2009     # We chose a different compiler from the bogus one.
2010     # However, it has the same basename, so the bogon will be chosen
2011     # first if we set CC to just the basename; use the full file name.
2012     shift
2013     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014   fi
2015 fi
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 fi
2028 if test -z "$CC"; then
2029   if test -n "$ac_tool_prefix"; then
2030   for ac_prog in cl
2031   do
2032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$CC"; then
2040   ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055
2056 fi
2057 fi
2058 CC=$ac_cv_prog_CC
2059 if test -n "$CC"; then
2060   echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6
2062 else
2063   echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2065 fi
2066
2067     test -n "$CC" && break
2068   done
2069 fi
2070 if test -z "$CC"; then
2071   ac_ct_CC=$CC
2072   for ac_prog in cl
2073 do
2074   # Extract the first word of "$ac_prog", so it can be a program name with args.
2075 set dummy $ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test -n "$ac_ct_CC"; then
2082   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091     ac_cv_prog_ac_ct_CC="$ac_prog"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097
2098 fi
2099 fi
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6
2104 else
2105   echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2107 fi
2108
2109   test -n "$ac_ct_CC" && break
2110 done
2111
2112   CC=$ac_ct_CC
2113 fi
2114
2115 fi
2116
2117
2118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&2;}
2122    { (exit 1); exit 1; }; }
2123
2124 # Provide some information about the compiler.
2125 echo "$as_me:$LINENO:" \
2126      "checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129   (eval $ac_compiler --version </dev/null >&5) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134   (eval $ac_compiler -v </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139   (eval $ac_compiler -V </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168   (eval $ac_link_default) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Find the output, starting from the most likely.  This scheme is
2173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174 # resort.
2175
2176 # Be careful to initialize this variable, since it used to be cached.
2177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178 ac_cv_exeext=
2179 # b.out is created by i960 compilers.
2180 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181 do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2185         ;;
2186     conftest.$ac_ext )
2187         # This is the source file.
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195         # FIXME: I believe we export ac_cv_exeext for Libtool,
2196         # but it would be cool to find out if it's true.  Does anybody
2197         # maintain Libtool? --akim.
2198         export ac_cv_exeext
2199         break;;
2200     * )
2201         break;;
2202   esac
2203 done
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6
2218
2219 # Check the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232     cross_compiling=no
2233   else
2234     if test "$cross_compiling" = maybe; then
2235         cross_compiling=yes
2236     else
2237         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243    { (exit 1); exit 1; }; }
2244     fi
2245   fi
2246 fi
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2249
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2258
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262   (eval $ac_link) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 # `rm'.
2270 for ac_file in conftest.exe conftest conftest.*; do
2271   test -f "$ac_file" || continue
2272   case $ac_file in
2273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275           export ac_cv_exeext
2276           break;;
2277     * ) break;;
2278   esac
2279 done
2280 else
2281   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest$ac_cv_exeext
2289 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6
2291
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2294 ac_exeext=$EXEEXT
2295 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297 if test "${ac_cv_objext+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.o conftest.obj
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; then
2321   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322   case $ac_file in
2323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2324     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325        break;;
2326   esac
2327 done
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337 fi
2338
2339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342 echo "${ECHO_T}$ac_cv_objext" >&6
2343 OBJEXT=$ac_cv_objext
2344 ac_objext=$OBJEXT
2345 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356
2357 int
2358 main ()
2359 {
2360 #ifndef __GNUC__
2361        choke me
2362 #endif
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   ac_compiler_gnu=yes
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_compiler_gnu=no
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400 fi
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2406 CFLAGS="-g"
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418
2419 int
2420 main ()
2421 {
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_c_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   ac_cv_prog_cc_g=yes
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 ac_cv_prog_cc_g=no
2455 fi
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460 if test "$ac_test_CFLAGS" = set; then
2461   CFLAGS=$ac_save_CFLAGS
2462 elif test $ac_cv_prog_cc_g = yes; then
2463   if test "$GCC" = yes; then
2464     CFLAGS="-g -O2"
2465   else
2466     CFLAGS="-g"
2467   fi
2468 else
2469   if test "$GCC" = yes; then
2470     CFLAGS="-O2"
2471   else
2472     CFLAGS=
2473   fi
2474 fi
2475 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   ac_cv_prog_cc_stdc=no
2481 ac_save_CC=$CC
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 #include <stdarg.h>
2489 #include <stdio.h>
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2496      char **p;
2497      int i;
2498 {
2499   return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503   char *s;
2504   va_list v;
2505   va_start (v,p);
2506   s = g (p, va_arg (v,int));
2507   va_end (v);
2508   return s;
2509 }
2510
2511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2512    function prototypes and stuff, but not '\xHH' hex character constants.
2513    These don't provoke an error unfortunately, instead are silently treated
2514    as 'x'.  The following induces an error, until -std1 is added to get
2515    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2516    array size at least.  It's necessary to write '\x00'==0 to get something
2517    that's true only with -std1.  */
2518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524 int argc;
2525 char **argv;
2526 int
2527 main ()
2528 {
2529 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 # Don't try gcc -ansi; that turns off useful extensions and
2535 # breaks some systems' header files.
2536 # AIX                   -qlanglvl=ansi
2537 # Ultrix and OSF/1      -std1
2538 # HP-UX 10.20 and later -Ae
2539 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2540 # SVR4                  -Xc -D__EXTENSIONS__
2541 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542 do
2543   CC="$ac_save_CC $ac_arg"
2544   rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   ac_cv_prog_cc_stdc=$ac_arg
2567 break
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext
2574 done
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2576 CC=$ac_save_CC
2577
2578 fi
2579
2580 case "x$ac_cv_prog_cc_stdc" in
2581   x|xno)
2582     echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2584   *)
2585     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587     CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 esac
2589
2590 # Some people use a C++ compiler to compile C.  Since we use `exit',
2591 # in C++ we need to declare it.  In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #ifndef __cplusplus
2596   choke me
2597 #endif
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   for ac_declaration in \
2622    '' \
2623    'extern "C" void std::exit (int) throw (); using std::exit;' \
2624    'extern "C" void std::exit (int); using std::exit;' \
2625    'extern "C" void exit (int) throw ();' \
2626    'extern "C" void exit (int);' \
2627    'void exit (int);'
2628 do
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 #include <stdlib.h>
2637 int
2638 main ()
2639 {
2640 exit (42);
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -z "$ac_c_werror_flag"
2655                          || test ! -s conftest.err'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   :
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 continue
2673 fi
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675   cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 $ac_declaration
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag"
2700                          || test ! -s conftest.err'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; } &&
2706          { ac_try='test -s conftest.$ac_objext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 done
2720 rm -f conftest*
2721 if test -n "$ac_declaration"; then
2722   echo '#ifdef __cplusplus' >>confdefs.h
2723   echo $ac_declaration      >>confdefs.h
2724   echo '#endif'             >>confdefs.h
2725 fi
2726
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742 if test "${ac_cv_c_bigendian+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   # See if sys/param.h defines the BYTE_ORDER macro.
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 #include <sys/types.h>
2753 #include <sys/param.h>
2754
2755 int
2756 main ()
2757 {
2758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759  bogus endian macros
2760 #endif
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag"
2776                          || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   # It does; now see whether it defined to BIG_ENDIAN or not.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795 #include <sys/types.h>
2796 #include <sys/param.h>
2797
2798 int
2799 main ()
2800 {
2801 #if BYTE_ORDER != BIG_ENDIAN
2802  not big endian
2803 #endif
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811   (eval $ac_compile) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag"
2819                          || test ! -s conftest.err'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; } &&
2825          { ac_try='test -s conftest.$ac_objext'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   ac_cv_c_bigendian=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_cv_c_bigendian=no
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 # It does not; compile a test program.
2844 if test "$cross_compiling" = yes; then
2845   # try to guess the endianness by grepping values into an object file
2846   ac_cv_c_bigendian=unknown
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859 int
2860 main ()
2861 {
2862  _ascii (); _ebcdic ();
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869   (eval $ac_compile) 2>conftest.er1
2870   ac_status=$?
2871   grep -v '^ *+' conftest.er1 >conftest.err
2872   rm -f conftest.er1
2873   cat conftest.err >&5
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          { ac_try='test -z "$ac_c_werror_flag"
2877                          || test ! -s conftest.err'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; } &&
2883          { ac_try='test -s conftest.$ac_objext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890   ac_cv_c_bigendian=yes
2891 fi
2892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893   if test "$ac_cv_c_bigendian" = unknown; then
2894     ac_cv_c_bigendian=no
2895   else
2896     # finding both strings is unlikely to happen, but who knows?
2897     ac_cv_c_bigendian=unknown
2898   fi
2899 fi
2900 else
2901   echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 else
2907   cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 int
2914 main ()
2915 {
2916   /* Are we little or big endian?  From Harbison&Steele.  */
2917   union
2918   {
2919     long l;
2920     char c[sizeof (long)];
2921   } u;
2922   u.l = 1;
2923   exit (u.c[sizeof (long) - 1] == 1);
2924 }
2925 _ACEOF
2926 rm -f conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928   (eval $ac_link) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   ac_cv_c_bigendian=no
2938 else
2939   echo "$as_me: program exited with status $ac_status" >&5
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ( exit $ac_status )
2944 ac_cv_c_bigendian=yes
2945 fi
2946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947 fi
2948 fi
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 fi
2951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953 case $ac_cv_c_bigendian in
2954   yes)
2955     ENDIAN=big
2956  ;;
2957   no)
2958     ENDIAN=little
2959  ;;
2960   *)
2961     { { echo "$as_me:$LINENO: error: unknown endianness
2962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963 echo "$as_me: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965    { (exit 1); exit 1; }; } ;;
2966 esac
2967
2968
2969
2970 # Check whether --enable-optimized or --disable-optimized was given.
2971 if test "${enable_optimized+set}" = set; then
2972   enableval="$enable_optimized"
2973
2974 else
2975   enableval=no
2976 fi;
2977 if test ${enableval} = "no" ; then
2978   ENABLE_OPTIMIZED=
2979
2980 else
2981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982
2983 fi
2984
2985 # Check whether --enable-jit or --disable-jit was given.
2986 if test "${enable_jit+set}" = set; then
2987   enableval="$enable_jit"
2988
2989 else
2990   enableval=default
2991 fi;
2992 if test ${enableval} = "no"
2993 then
2994   JIT=
2995
2996 else
2997   case "$llvm_cv_target_arch" in
2998     x86)     JIT=TARGET_HAS_JIT=1
2999  ;;
3000     Sparc)   JIT=TARGET_HAS_JIT=1
3001  ;;
3002     PowerPC) JIT=TARGET_HAS_JIT=1
3003  ;;
3004     x86_64)  JIT=
3005  ;;
3006     *)       JIT=
3007  ;;
3008   esac
3009 fi
3010
3011 # Check whether --enable-doxygen or --disable-doxygen was given.
3012 if test "${enable_doxygen+set}" = set; then
3013   enableval="$enable_doxygen"
3014
3015 else
3016   enableval=default
3017 fi;
3018 case "$enableval" in
3019   yes) ENABLE_DOXYGEN=1
3020  ;;
3021   no)  ENABLE_DOXYGEN=0
3022  ;;
3023   default) ENABLE_DOXYGEN=0
3024  ;;
3025   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3026 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3027    { (exit 1); exit 1; }; } ;;
3028 esac
3029
3030
3031 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3032 if test "${with_llvmgccdir+set}" = set; then
3033   withval="$with_llvmgccdir"
3034
3035 else
3036   withval=default
3037 fi;
3038 case "$withval" in
3039   default) WITH_LLVMGCCDIR=default ;;
3040   /*)      WITH_LLVMGCCDIR=$withval ;;
3041   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3042 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3043    { (exit 1); exit 1; }; } ;;
3044 esac
3045
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3053 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3054 # On Suns, sometimes $CPP names a directory.
3055 if test -n "$CPP" && test -d "$CPP"; then
3056   CPP=
3057 fi
3058 if test -z "$CPP"; then
3059   if test "${ac_cv_prog_CPP+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062       # Double quotes because CPP needs to be expanded
3063     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3064     do
3065       ac_preproc_ok=false
3066 for ac_c_preproc_warn_flag in '' yes
3067 do
3068   # Use a header file that comes with gcc, so configuring glibc
3069   # with a fresh cross-compiler works.
3070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071   # <limits.h> exists even on freestanding compilers.
3072   # On the NeXT, cc -E runs the code through the compiler's parser,
3073   # not just through cpp. "Syntax error" is here to catch this case.
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080 #ifdef __STDC__
3081 # include <limits.h>
3082 #else
3083 # include <assert.h>
3084 #endif
3085                      Syntax error
3086 _ACEOF
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } >/dev/null; then
3095   if test -s conftest.err; then
3096     ac_cpp_err=$ac_c_preproc_warn_flag
3097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098   else
3099     ac_cpp_err=
3100   fi
3101 else
3102   ac_cpp_err=yes
3103 fi
3104 if test -z "$ac_cpp_err"; then
3105   :
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110   # Broken: fails on valid input.
3111 continue
3112 fi
3113 rm -f conftest.err conftest.$ac_ext
3114
3115   # OK, works on sane cases.  Now check whether non-existent headers
3116   # can be detected and how.
3117   cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123 #include <ac_nonexistent.h>
3124 _ACEOF
3125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } >/dev/null; then
3133   if test -s conftest.err; then
3134     ac_cpp_err=$ac_c_preproc_warn_flag
3135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3136   else
3137     ac_cpp_err=
3138   fi
3139 else
3140   ac_cpp_err=yes
3141 fi
3142 if test -z "$ac_cpp_err"; then
3143   # Broken: success on invalid input.
3144 continue
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149   # Passes both tests.
3150 ac_preproc_ok=:
3151 break
3152 fi
3153 rm -f conftest.err conftest.$ac_ext
3154
3155 done
3156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157 rm -f conftest.err conftest.$ac_ext
3158 if $ac_preproc_ok; then
3159   break
3160 fi
3161
3162     done
3163     ac_cv_prog_CPP=$CPP
3164
3165 fi
3166   CPP=$ac_cv_prog_CPP
3167 else
3168   ac_cv_prog_CPP=$CPP
3169 fi
3170 echo "$as_me:$LINENO: result: $CPP" >&5
3171 echo "${ECHO_T}$CPP" >&6
3172 ac_preproc_ok=false
3173 for ac_c_preproc_warn_flag in '' yes
3174 do
3175   # Use a header file that comes with gcc, so configuring glibc
3176   # with a fresh cross-compiler works.
3177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3178   # <limits.h> exists even on freestanding compilers.
3179   # On the NeXT, cc -E runs the code through the compiler's parser,
3180   # not just through cpp. "Syntax error" is here to catch this case.
3181   cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #ifdef __STDC__
3188 # include <limits.h>
3189 #else
3190 # include <assert.h>
3191 #endif
3192                      Syntax error
3193 _ACEOF
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } >/dev/null; then
3202   if test -s conftest.err; then
3203     ac_cpp_err=$ac_c_preproc_warn_flag
3204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3205   else
3206     ac_cpp_err=
3207   fi
3208 else
3209   ac_cpp_err=yes
3210 fi
3211 if test -z "$ac_cpp_err"; then
3212   :
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217   # Broken: fails on valid input.
3218 continue
3219 fi
3220 rm -f conftest.err conftest.$ac_ext
3221
3222   # OK, works on sane cases.  Now check whether non-existent headers
3223   # can be detected and how.
3224   cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 #include <ac_nonexistent.h>
3231 _ACEOF
3232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } >/dev/null; then
3240   if test -s conftest.err; then
3241     ac_cpp_err=$ac_c_preproc_warn_flag
3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243   else
3244     ac_cpp_err=
3245   fi
3246 else
3247   ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250   # Broken: success on invalid input.
3251 continue
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256   # Passes both tests.
3257 ac_preproc_ok=:
3258 break
3259 fi
3260 rm -f conftest.err conftest.$ac_ext
3261
3262 done
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.$ac_ext
3265 if $ac_preproc_ok; then
3266   :
3267 else
3268   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." >&2;}
3272    { (exit 1); exit 1; }; }
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 if test -n "$ac_tool_prefix"; then
3287   for ac_prog in gcc
3288   do
3289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_CC+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   if test -n "$CC"; then
3297   ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317   echo "$as_me:$LINENO: result: $CC" >&5
3318 echo "${ECHO_T}$CC" >&6
3319 else
3320   echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3322 fi
3323
3324     test -n "$CC" && break
3325   done
3326 fi
3327 if test -z "$CC"; then
3328   ac_ct_CC=$CC
3329   for ac_prog in gcc
3330 do
3331   # Extract the first word of "$ac_prog", so it can be a program name with args.
3332 set dummy $ac_prog; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   if test -n "$ac_ct_CC"; then
3339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346   for ac_exec_ext in '' $ac_executable_extensions; do
3347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348     ac_cv_prog_ac_ct_CC="$ac_prog"
3349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358 if test -n "$ac_ct_CC"; then
3359   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3360 echo "${ECHO_T}$ac_ct_CC" >&6
3361 else
3362   echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366   test -n "$ac_ct_CC" && break
3367 done
3368
3369   CC=$ac_ct_CC
3370 fi
3371
3372
3373 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details." >&5
3375 echo "$as_me: error: no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details." >&2;}
3377    { (exit 1); exit 1; }; }
3378
3379 # Provide some information about the compiler.
3380 echo "$as_me:$LINENO:" \
3381      "checking for C compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3384   (eval $ac_compiler --version </dev/null >&5) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3389   (eval $ac_compiler -v </dev/null >&5) 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }
3393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3394   (eval $ac_compiler -V </dev/null >&5) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398
3399 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415        choke me
3416 #endif
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424   (eval $ac_compile) 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } &&
3431          { ac_try='test -z "$ac_c_werror_flag"
3432                          || test ! -s conftest.err'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; } &&
3438          { ac_try='test -s conftest.$ac_objext'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; }; then
3444   ac_compiler_gnu=yes
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 ac_compiler_gnu=no
3450 fi
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3457 GCC=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3460 CFLAGS="-g"
3461 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3463 if test "${ac_cv_prog_cc_g+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483   (eval $ac_compile) 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } &&
3490          { ac_try='test -z "$ac_c_werror_flag"
3491                          || test ! -s conftest.err'
3492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493   (eval $ac_try) 2>&5
3494   ac_status=$?
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); }; } &&
3497          { ac_try='test -s conftest.$ac_objext'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; }; then
3503   ac_cv_prog_cc_g=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 ac_cv_prog_cc_g=no
3509 fi
3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3513 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3514 if test "$ac_test_CFLAGS" = set; then
3515   CFLAGS=$ac_save_CFLAGS
3516 elif test $ac_cv_prog_cc_g = yes; then
3517   if test "$GCC" = yes; then
3518     CFLAGS="-g -O2"
3519   else
3520     CFLAGS="-g"
3521   fi
3522 else
3523   if test "$GCC" = yes; then
3524     CFLAGS="-O2"
3525   else
3526     CFLAGS=
3527   fi
3528 fi
3529 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3530 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3531 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   ac_cv_prog_cc_stdc=no
3535 ac_save_CC=$CC
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #include <stdarg.h>
3543 #include <stdio.h>
3544 #include <sys/types.h>
3545 #include <sys/stat.h>
3546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3547 struct buf { int x; };
3548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549 static char *e (p, i)
3550      char **p;
3551      int i;
3552 {
3553   return p[i];
3554 }
3555 static char *f (char * (*g) (char **, int), char **p, ...)
3556 {
3557   char *s;
3558   va_list v;
3559   va_start (v,p);
3560   s = g (p, va_arg (v,int));
3561   va_end (v);
3562   return s;
3563 }
3564
3565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3566    function prototypes and stuff, but not '\xHH' hex character constants.
3567    These don't provoke an error unfortunately, instead are silently treated
3568    as 'x'.  The following induces an error, until -std1 is added to get
3569    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3570    array size at least.  It's necessary to write '\x00'==0 to get something
3571    that's true only with -std1.  */
3572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578 int argc;
3579 char **argv;
3580 int
3581 main ()
3582 {
3583 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 # Don't try gcc -ansi; that turns off useful extensions and
3589 # breaks some systems' header files.
3590 # AIX                   -qlanglvl=ansi
3591 # Ultrix and OSF/1      -std1
3592 # HP-UX 10.20 and later -Ae
3593 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3594 # SVR4                  -Xc -D__EXTENSIONS__
3595 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597   CC="$ac_save_CC $ac_arg"
3598   rm -f conftest.$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600   (eval $ac_compile) 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } &&
3607          { ac_try='test -z "$ac_c_werror_flag"
3608                          || test ! -s conftest.err'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; } &&
3614          { ac_try='test -s conftest.$ac_objext'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   ac_cv_prog_cc_stdc=$ac_arg
3621 break
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 fi
3627 rm -f conftest.err conftest.$ac_objext
3628 done
3629 rm -f conftest.$ac_ext conftest.$ac_objext
3630 CC=$ac_save_CC
3631
3632 fi
3633
3634 case "x$ac_cv_prog_cc_stdc" in
3635   x|xno)
3636     echo "$as_me:$LINENO: result: none needed" >&5
3637 echo "${ECHO_T}none needed" >&6 ;;
3638   *)
3639     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3641     CC="$CC $ac_cv_prog_cc_stdc" ;;
3642 esac
3643
3644 # Some people use a C++ compiler to compile C.  Since we use `exit',
3645 # in C++ we need to declare it.  In case someone uses the same compiler
3646 # for both compiling C and C++ we need to have the C++ compiler decide
3647 # the declaration of exit, since it's the most demanding environment.
3648 cat >conftest.$ac_ext <<_ACEOF
3649 #ifndef __cplusplus
3650   choke me
3651 #endif
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655   (eval $ac_compile) 2>conftest.er1
3656   ac_status=$?
3657   grep -v '^ *+' conftest.er1 >conftest.err
3658   rm -f conftest.er1
3659   cat conftest.err >&5
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); } &&
3662          { ac_try='test -z "$ac_c_werror_flag"
3663                          || test ! -s conftest.err'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; } &&
3669          { ac_try='test -s conftest.$ac_objext'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   for ac_declaration in \
3676    '' \
3677    'extern "C" void std::exit (int) throw (); using std::exit;' \
3678    'extern "C" void std::exit (int); using std::exit;' \
3679    'extern "C" void exit (int) throw ();' \
3680    'extern "C" void exit (int);' \
3681    'void exit (int);'
3682 do
3683   cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 $ac_declaration
3690 #include <stdlib.h>
3691 int
3692 main ()
3693 {
3694 exit (42);
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701   (eval $ac_compile) 2>conftest.er1
3702   ac_status=$?
3703   grep -v '^ *+' conftest.er1 >conftest.err
3704   rm -f conftest.er1
3705   cat conftest.err >&5
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          { ac_try='test -z "$ac_c_werror_flag"
3709                          || test ! -s conftest.err'
3710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711   (eval $ac_try) 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; } &&
3715          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3721   :
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726 continue
3727 fi
3728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3729   cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h.  */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h.  */
3735 $ac_declaration
3736 int
3737 main ()
3738 {
3739 exit (42);
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746   (eval $ac_compile) 2>conftest.er1
3747   ac_status=$?
3748   grep -v '^ *+' conftest.er1 >conftest.err
3749   rm -f conftest.er1
3750   cat conftest.err >&5
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -z "$ac_c_werror_flag"
3754                          || test ! -s conftest.err'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; } &&
3760          { ac_try='test -s conftest.$ac_objext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   break
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 fi
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 done
3774 rm -f conftest*
3775 if test -n "$ac_declaration"; then
3776   echo '#ifdef __cplusplus' >>confdefs.h
3777   echo $ac_declaration      >>confdefs.h
3778   echo '#endif'             >>confdefs.h
3779 fi
3780
3781 else
3782   echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 fi
3786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793 ac_ext=cc
3794 ac_cpp='$CXXCPP $CPPFLAGS'
3795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3798 if test -n "$ac_tool_prefix"; then
3799   for ac_prog in $CCC g++
3800   do
3801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_prog_CXX+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   if test -n "$CXX"; then
3809   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   test -z "$as_dir" && as_dir=.
3816   for ac_exec_ext in '' $ac_executable_extensions; do
3817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820     break 2
3821   fi
3822 done
3823 done
3824
3825 fi
3826 fi
3827 CXX=$ac_cv_prog_CXX
3828 if test -n "$CXX"; then
3829   echo "$as_me:$LINENO: result: $CXX" >&5
3830 echo "${ECHO_T}$CXX" >&6
3831 else
3832   echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834 fi
3835
3836     test -n "$CXX" && break
3837   done
3838 fi
3839 if test -z "$CXX"; then
3840   ac_ct_CXX=$CXX
3841   for ac_prog in $CCC g++
3842 do
3843   # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test -n "$ac_ct_CXX"; then
3851   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_prog_ac_ct_CXX="$ac_prog"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867 fi
3868 fi
3869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3870 if test -n "$ac_ct_CXX"; then
3871   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3872 echo "${ECHO_T}$ac_ct_CXX" >&6
3873 else
3874   echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877
3878   test -n "$ac_ct_CXX" && break
3879 done
3880 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3881
3882   CXX=$ac_ct_CXX
3883 fi
3884
3885
3886 # Provide some information about the compiler.
3887 echo "$as_me:$LINENO:" \
3888      "checking for C++ compiler version" >&5
3889 ac_compiler=`set X $ac_compile; echo $2`
3890 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3891   (eval $ac_compiler --version </dev/null >&5) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }
3895 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3896   (eval $ac_compiler -v </dev/null >&5) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }
3900 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3901   (eval $ac_compiler -V </dev/null >&5) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }
3905
3906 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3907 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3908 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917
3918 int
3919 main ()
3920 {
3921 #ifndef __GNUC__
3922        choke me
3923 #endif
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931   (eval $ac_compile) 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } &&
3938          { ac_try='test -z "$ac_cxx_werror_flag"
3939                          || test ! -s conftest.err'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; } &&
3945          { ac_try='test -s conftest.$ac_objext'
3946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   ac_compiler_gnu=yes
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 ac_compiler_gnu=no
3957 fi
3958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3960
3961 fi
3962 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3963 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3964 GXX=`test $ac_compiler_gnu = yes && echo yes`
3965 ac_test_CXXFLAGS=${CXXFLAGS+set}
3966 ac_save_CXXFLAGS=$CXXFLAGS
3967 CXXFLAGS="-g"
3968 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3969 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3970 if test "${ac_cv_prog_cxx_g+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979
3980 int
3981 main ()
3982 {
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990   (eval $ac_compile) 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } &&
3997          { ac_try='test -z "$ac_cxx_werror_flag"
3998                          || test ! -s conftest.err'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; } &&
4004          { ac_try='test -s conftest.$ac_objext'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; }; then
4010   ac_cv_prog_cxx_g=yes
4011 else
4012   echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015 ac_cv_prog_cxx_g=no
4016 fi
4017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 fi
4019 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4021 if test "$ac_test_CXXFLAGS" = set; then
4022   CXXFLAGS=$ac_save_CXXFLAGS
4023 elif test $ac_cv_prog_cxx_g = yes; then
4024   if test "$GXX" = yes; then
4025     CXXFLAGS="-g -O2"
4026   else
4027     CXXFLAGS="-g"
4028   fi
4029 else
4030   if test "$GXX" = yes; then
4031     CXXFLAGS="-O2"
4032   else
4033     CXXFLAGS=
4034   fi
4035 fi
4036 for ac_declaration in \
4037    '' \
4038    'extern "C" void std::exit (int) throw (); using std::exit;' \
4039    'extern "C" void std::exit (int); using std::exit;' \
4040    'extern "C" void exit (int) throw ();' \
4041    'extern "C" void exit (int);' \
4042    'void exit (int);'
4043 do
4044   cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050 $ac_declaration
4051 #include <stdlib.h>
4052 int
4053 main ()
4054 {
4055 exit (42);
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062   (eval $ac_compile) 2>conftest.er1
4063   ac_status=$?
4064   grep -v '^ *+' conftest.er1 >conftest.err
4065   rm -f conftest.er1
4066   cat conftest.err >&5
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); } &&
4069          { ac_try='test -z "$ac_cxx_werror_flag"
4070                          || test ! -s conftest.err'
4071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072   (eval $ac_try) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; } &&
4076          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4082   :
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 continue
4088 fi
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090   cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 $ac_declaration
4097 int
4098 main ()
4099 {
4100 exit (42);
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107   (eval $ac_compile) 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } &&
4114          { ac_try='test -z "$ac_cxx_werror_flag"
4115                          || test ! -s conftest.err'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; } &&
4121          { ac_try='test -s conftest.$ac_objext'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   break
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 fi
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 done
4135 rm -f conftest*
4136 if test -n "$ac_declaration"; then
4137   echo '#ifdef __cplusplus' >>confdefs.h
4138   echo $ac_declaration      >>confdefs.h
4139   echo '#endif'             >>confdefs.h
4140 fi
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148 echo "$as_me:$LINENO: checking " >&5
4149 echo $ECHO_N "checking ... $ECHO_C" >&6
4150 if test "${ac_cv_has_flex+set}" = set; then
4151   echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153   for ac_prog in flex lex
4154 do
4155   # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_LEX+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$LEX"; then
4163   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_LEX="$ac_prog"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179 fi
4180 fi
4181 LEX=$ac_cv_prog_LEX
4182 if test -n "$LEX"; then
4183   echo "$as_me:$LINENO: result: $LEX" >&5
4184 echo "${ECHO_T}$LEX" >&6
4185 else
4186   echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4188 fi
4189
4190   test -n "$LEX" && break
4191 done
4192 test -n "$LEX" || LEX=":"
4193
4194 if test -z "$LEXLIB"
4195 then
4196   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4197 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4198 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_check_lib_save_LIBS=$LIBS
4202 LIBS="-lfl  $LIBS"
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209
4210 /* Override any gcc2 internal prototype to avoid an error.  */
4211 #ifdef __cplusplus
4212 extern "C"
4213 #endif
4214 /* We use char because int might match the return type of a gcc2
4215    builtin and then its argument prototype would still apply.  */
4216 char yywrap ();
4217 int
4218 main ()
4219 {
4220 yywrap ();
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227   (eval $ac_link) 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -z "$ac_c_werror_flag"
4235                          || test ! -s conftest.err'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; } &&
4241          { ac_try='test -s conftest$ac_exeext'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   ac_cv_lib_fl_yywrap=yes
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 ac_cv_lib_fl_yywrap=no
4253 fi
4254 rm -f conftest.err conftest.$ac_objext \
4255       conftest$ac_exeext conftest.$ac_ext
4256 LIBS=$ac_check_lib_save_LIBS
4257 fi
4258 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4259 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4260 if test $ac_cv_lib_fl_yywrap = yes; then
4261   LEXLIB="-lfl"
4262 else
4263   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4264 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4265 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   ac_check_lib_save_LIBS=$LIBS
4269 LIBS="-ll  $LIBS"
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h.  */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h.  */
4276
4277 /* Override any gcc2 internal prototype to avoid an error.  */
4278 #ifdef __cplusplus
4279 extern "C"
4280 #endif
4281 /* We use char because int might match the return type of a gcc2
4282    builtin and then its argument prototype would still apply.  */
4283 char yywrap ();
4284 int
4285 main ()
4286 {
4287 yywrap ();
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294   (eval $ac_link) 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } &&
4301          { ac_try='test -z "$ac_c_werror_flag"
4302                          || test ! -s conftest.err'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; } &&
4308          { ac_try='test -s conftest$ac_exeext'
4309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310   (eval $ac_try) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; }; then
4314   ac_cv_lib_l_yywrap=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_cv_lib_l_yywrap=no
4320 fi
4321 rm -f conftest.err conftest.$ac_objext \
4322       conftest$ac_exeext conftest.$ac_ext
4323 LIBS=$ac_check_lib_save_LIBS
4324 fi
4325 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4326 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4327 if test $ac_cv_lib_l_yywrap = yes; then
4328   LEXLIB="-ll"
4329 fi
4330
4331 fi
4332
4333 fi
4334
4335 if test "x$LEX" != "x:"; then
4336   echo "$as_me:$LINENO: checking lex output file root" >&5
4337 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4338 if test "${ac_cv_prog_lex_root+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   # The minimal lex program is just a single line: %%.  But some broken lexes
4342 # (Solaris, I think it was) want two %% lines, so accommodate them.
4343 cat >conftest.l <<_ACEOF
4344 %%
4345 %%
4346 _ACEOF
4347 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4348   (eval $LEX conftest.l) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }
4352 if test -f lex.yy.c; then
4353   ac_cv_prog_lex_root=lex.yy
4354 elif test -f lexyy.c; then
4355   ac_cv_prog_lex_root=lexyy
4356 else
4357   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4358 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4359    { (exit 1); exit 1; }; }
4360 fi
4361 fi
4362 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4363 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4364 rm -f conftest.l
4365 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4366
4367 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4368 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4369 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   # POSIX says lex can declare yytext either as a pointer or an array; the
4373 # default is implementation-dependent. Figure out which it is, since
4374 # not all implementations provide the %pointer and %array declarations.
4375 ac_cv_prog_lex_yytext_pointer=no
4376 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4377 ac_save_LIBS=$LIBS
4378 LIBS="$LIBS $LEXLIB"
4379 cat >conftest.$ac_ext <<_ACEOF
4380 `cat $LEX_OUTPUT_ROOT.c`
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384   (eval $ac_link) 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } &&
4391          { ac_try='test -z "$ac_c_werror_flag"
4392                          || test ! -s conftest.err'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; } &&
4398          { ac_try='test -s conftest$ac_exeext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_cv_prog_lex_yytext_pointer=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 fi
4410 rm -f conftest.err conftest.$ac_objext \
4411       conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_save_LIBS
4413 rm -f "${LEX_OUTPUT_ROOT}.c"
4414
4415 fi
4416 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4417 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4418 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4419
4420 cat >>confdefs.h <<\_ACEOF
4421 #define YYTEXT_POINTER 1
4422 _ACEOF
4423
4424 fi
4425
4426 fi
4427
4428 fi
4429 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4430 echo "${ECHO_T}$ac_cv_has_flex" >&6
4431 if test "$LEX" != "flex"; then
4432   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4433 echo "$as_me: error: flex not found but required" >&2;}
4434    { (exit 1); exit 1; }; }
4435 else
4436   FLEX=flex
4437
4438 fi
4439
4440 echo "$as_me:$LINENO: checking " >&5
4441 echo $ECHO_N "checking ... $ECHO_C" >&6
4442 if test "${llvm_cv_has_bison+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   for ac_prog in 'bison -y' byacc
4446 do
4447   # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_YACC+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   if test -n "$YACC"; then
4455   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464     ac_cv_prog_YACC="$ac_prog"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470
4471 fi
4472 fi
4473 YACC=$ac_cv_prog_YACC
4474 if test -n "$YACC"; then
4475   echo "$as_me:$LINENO: result: $YACC" >&5
4476 echo "${ECHO_T}$YACC" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482   test -n "$YACC" && break
4483 done
4484 test -n "$YACC" || YACC="yacc"
4485
4486 fi
4487 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4488 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4489 if test "$YACC" != "bison -y"; then
4490   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4491 echo "$as_me: error: bison not found but required" >&2;}
4492    { (exit 1); exit 1; }; }
4493 else
4494   BISON=bison
4495
4496 fi
4497
4498 echo "$as_me:$LINENO: checking for GNU make" >&5
4499 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4500 if test "${llvm_cv_gnu_make_command+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   llvm_cv_gnu_make_command=''
4504  for a in "$MAKE" make gmake gnumake ; do
4505   if test -z "$a" ; then continue ; fi ;
4506   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4507   then
4508    llvm_cv_gnu_make_command=$a ;
4509    break;
4510   fi
4511  done
4512 fi
4513 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4514 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4515  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4516    ifGNUmake='' ;
4517  else
4518    ifGNUmake='#' ;
4519    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4520 echo "${ECHO_T}\"Not found\"" >&6;
4521  fi
4522
4523
4524 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4525 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4526 LN_S=$as_ln_s
4527 if test "$LN_S" = "ln -s"; then
4528   echo "$as_me:$LINENO: result: yes" >&5
4529 echo "${ECHO_T}yes" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4532 echo "${ECHO_T}no, using $LN_S" >&6
4533 fi
4534
4535 # Extract the first word of "cmp", so it can be a program name with args.
4536 set dummy cmp; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_path_CMP+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   case $CMP in
4543   [\\/]* | ?:[\\/]*)
4544   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545   ;;
4546   *)
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552   for ac_exec_ext in '' $ac_executable_extensions; do
4553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559 done
4560
4561   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4562   ;;
4563 esac
4564 fi
4565 CMP=$ac_cv_path_CMP
4566
4567 if test -n "$CMP"; then
4568   echo "$as_me:$LINENO: result: $CMP" >&5
4569 echo "${ECHO_T}$CMP" >&6
4570 else
4571   echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4573 fi
4574
4575 # Extract the first word of "cp", so it can be a program name with args.
4576 set dummy cp; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_path_CP+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   case $CP in
4583   [\\/]* | ?:[\\/]*)
4584   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4585   ;;
4586   *)
4587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600
4601   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4602   ;;
4603 esac
4604 fi
4605 CP=$ac_cv_path_CP
4606
4607 if test -n "$CP"; then
4608   echo "$as_me:$LINENO: result: $CP" >&5
4609 echo "${ECHO_T}$CP" >&6
4610 else
4611   echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615 # Extract the first word of "date", so it can be a program name with args.
4616 set dummy date; ac_word=$2
4617 echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_path_DATE+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   case $DATE in
4623   [\\/]* | ?:[\\/]*)
4624   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4625   ;;
4626   *)
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640
4641   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4642   ;;
4643 esac
4644 fi
4645 DATE=$ac_cv_path_DATE
4646
4647 if test -n "$DATE"; then
4648   echo "$as_me:$LINENO: result: $DATE" >&5
4649 echo "${ECHO_T}$DATE" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 fi
4654
4655 # Extract the first word of "find", so it can be a program name with args.
4656 set dummy find; ac_word=$2
4657 echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659 if test "${ac_cv_path_FIND+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $FIND in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680
4681   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4682   ;;
4683 esac
4684 fi
4685 FIND=$ac_cv_path_FIND
4686
4687 if test -n "$FIND"; then
4688   echo "$as_me:$LINENO: result: $FIND" >&5
4689 echo "${ECHO_T}$FIND" >&6
4690 else
4691   echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695 # Extract the first word of "grep", so it can be a program name with args.
4696 set dummy grep; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_path_GREP+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   case $GREP in
4703   [\\/]* | ?:[\\/]*)
4704   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4705   ;;
4706   *)
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720
4721   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4722   ;;
4723 esac
4724 fi
4725 GREP=$ac_cv_path_GREP
4726
4727 if test -n "$GREP"; then
4728   echo "$as_me:$LINENO: result: $GREP" >&5
4729 echo "${ECHO_T}$GREP" >&6
4730 else
4731   echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4733 fi
4734
4735 # Extract the first word of "mkdir", so it can be a program name with args.
4736 set dummy mkdir; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_path_MKDIR+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   case $MKDIR in
4743   [\\/]* | ?:[\\/]*)
4744   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4745   ;;
4746   *)
4747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760
4761   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4762   ;;
4763 esac
4764 fi
4765 MKDIR=$ac_cv_path_MKDIR
4766
4767 if test -n "$MKDIR"; then
4768   echo "$as_me:$LINENO: result: $MKDIR" >&5
4769 echo "${ECHO_T}$MKDIR" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 # Extract the first word of "mv", so it can be a program name with args.
4776 set dummy mv; ac_word=$2
4777 echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_path_MV+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $MV in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4785   ;;
4786   *)
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_path_MV="$as_dir/$ac_word$ac_exec_ext"
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_path_MV" && ac_cv_path_MV="mv"
4802   ;;
4803 esac
4804 fi
4805 MV=$ac_cv_path_MV
4806
4807 if test -n "$MV"; then
4808   echo "$as_me:$LINENO: result: $MV" >&5
4809 echo "${ECHO_T}$MV" >&6
4810 else
4811   echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4813 fi
4814
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_RANLIB+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$RANLIB"; then
4824   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839
4840 fi
4841 fi
4842 RANLIB=$ac_cv_prog_RANLIB
4843 if test -n "$RANLIB"; then
4844   echo "$as_me:$LINENO: result: $RANLIB" >&5
4845 echo "${ECHO_T}$RANLIB" >&6
4846 else
4847   echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4849 fi
4850
4851 fi
4852 if test -z "$ac_cv_prog_RANLIB"; then
4853   ac_ct_RANLIB=$RANLIB
4854   # Extract the first word of "ranlib", so it can be a program name with args.
4855 set dummy ranlib; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   if test -n "$ac_ct_RANLIB"; then
4862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871     ac_cv_prog_ac_ct_RANLIB="ranlib"
4872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877
4878   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4879 fi
4880 fi
4881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882 if test -n "$ac_ct_RANLIB"; then
4883   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4885 else
4886   echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4888 fi
4889
4890   RANLIB=$ac_ct_RANLIB
4891 else
4892   RANLIB="$ac_cv_prog_RANLIB"
4893 fi
4894
4895 # Extract the first word of "rm", so it can be a program name with args.
4896 set dummy rm; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_path_RM+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   case $RM in
4903   [\\/]* | ?:[\\/]*)
4904   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4905   ;;
4906   *)
4907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920
4921   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4922   ;;
4923 esac
4924 fi
4925 RM=$ac_cv_path_RM
4926
4927 if test -n "$RM"; then
4928   echo "$as_me:$LINENO: result: $RM" >&5
4929 echo "${ECHO_T}$RM" >&6
4930 else
4931   echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4933 fi
4934
4935 # Extract the first word of "sed", so it can be a program name with args.
4936 set dummy sed; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_path_SED+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   case $SED in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960
4961   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4962   ;;
4963 esac
4964 fi
4965 SED=$ac_cv_path_SED
4966
4967 if test -n "$SED"; then
4968   echo "$as_me:$LINENO: result: $SED" >&5
4969 echo "${ECHO_T}$SED" >&6
4970 else
4971   echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4973 fi
4974
4975 # Extract the first word of "tar", so it can be a program name with args.
4976 set dummy tar; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_path_TAR+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   case $TAR in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000
5001   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5002   ;;
5003 esac
5004 fi
5005 TAR=$ac_cv_path_TAR
5006
5007 if test -n "$TAR"; then
5008   echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5010 else
5011   echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015
5016 # Find a good install program.  We prefer a C program (faster),
5017 # so one script is as good as another.  But avoid the broken or
5018 # incompatible versions:
5019 # SysV /etc/install, /usr/sbin/install
5020 # SunOS /usr/etc/install
5021 # IRIX /sbin/install
5022 # AIX /bin/install
5023 # AmigaOS /C/install, which installs bootblocks on floppy discs
5024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5027 # OS/2's system install, which has a completely different semantic
5028 # ./install, which can be erroneously created by make from ./install.sh.
5029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5031 if test -z "$INSTALL"; then
5032 if test "${ac_cv_path_install+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040   # Account for people who put trailing slashes in PATH elements.
5041 case $as_dir/ in
5042   ./ | .// | /cC/* | \
5043   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5044   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5045   /usr/ucb/* ) ;;
5046   *)
5047     # OSF1 and SCO ODT 3.0 have their own names for install.
5048     # Don't use installbsd from OSF since it installs stuff as root
5049     # by default.
5050     for ac_prog in ginstall scoinst install; do
5051       for ac_exec_ext in '' $ac_executable_extensions; do
5052         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5053           if test $ac_prog = install &&
5054             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055             # AIX install.  It has an incompatible calling convention.
5056             :
5057           elif test $ac_prog = install &&
5058             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5059             # program-specific install script used by HP pwplus--don't use.
5060             :
5061           else
5062             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5063             break 3
5064           fi
5065         fi
5066       done
5067     done
5068     ;;
5069 esac
5070 done
5071
5072
5073 fi
5074   if test "${ac_cv_path_install+set}" = set; then
5075     INSTALL=$ac_cv_path_install
5076   else
5077     # As a last resort, use the slow shell script.  We don't cache a
5078     # path for INSTALL within a source directory, because that will
5079     # break other packages using the cache if that directory is
5080     # removed, or if the path is relative.
5081     INSTALL=$ac_install_sh
5082   fi
5083 fi
5084 echo "$as_me:$LINENO: result: $INSTALL" >&5
5085 echo "${ECHO_T}$INSTALL" >&6
5086
5087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5088 # It thinks the first close brace ends the variable substitution.
5089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5090
5091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5092
5093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5094
5095
5096 # Extract the first word of "bzip2", so it can be a program name with args.
5097 set dummy bzip2; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_path_BZIP2+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   case $BZIP2 in
5104   [\\/]* | ?:[\\/]*)
5105   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121
5122   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5123   ;;
5124 esac
5125 fi
5126 BZIP2=$ac_cv_path_BZIP2
5127
5128 if test -n "$BZIP2"; then
5129   echo "$as_me:$LINENO: result: $BZIP2" >&5
5130 echo "${ECHO_T}$BZIP2" >&6
5131 else
5132   echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5134 fi
5135
5136 # Extract the first word of "dot", so it can be a program name with args.
5137 set dummy dot; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_path_DOT+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   case $DOT in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5163   ;;
5164 esac
5165 fi
5166 DOT=$ac_cv_path_DOT
5167
5168 if test -n "$DOT"; then
5169   echo "$as_me:$LINENO: result: $DOT" >&5
5170 echo "${ECHO_T}$DOT" >&6
5171 else
5172   echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176 # Extract the first word of "doxygen", so it can be a program name with args.
5177 set dummy doxygen; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case $DOXYGEN in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201
5202   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5203   ;;
5204 esac
5205 fi
5206 DOXYGEN=$ac_cv_path_DOXYGEN
5207
5208 if test -n "$DOXYGEN"; then
5209   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5210 echo "${ECHO_T}$DOXYGEN" >&6
5211 else
5212   echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214 fi
5215
5216 # Extract the first word of "etags", so it can be a program name with args.
5217 set dummy etags; ac_word=$2
5218 echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220 if test "${ac_cv_path_ETAGS+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   case $ETAGS in
5224   [\\/]* | ?:[\\/]*)
5225   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5226   ;;
5227   *)
5228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241
5242   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5243   ;;
5244 esac
5245 fi
5246 ETAGS=$ac_cv_path_ETAGS
5247
5248 if test -n "$ETAGS"; then
5249   echo "$as_me:$LINENO: result: $ETAGS" >&5
5250 echo "${ECHO_T}$ETAGS" >&6
5251 else
5252   echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5254 fi
5255
5256 # Extract the first word of "groff", so it can be a program name with args.
5257 set dummy groff; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_path_GROFF+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   case $GROFF in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5266   ;;
5267   *)
5268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273   for ac_exec_ext in '' $ac_executable_extensions; do
5274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281
5282   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5283   ;;
5284 esac
5285 fi
5286 GROFF=$ac_cv_path_GROFF
5287
5288 if test -n "$GROFF"; then
5289   echo "$as_me:$LINENO: result: $GROFF" >&5
5290 echo "${ECHO_T}$GROFF" >&6
5291 else
5292   echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295
5296 # Extract the first word of "gzip", so it can be a program name with args.
5297 set dummy gzip; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_path_GZIP+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   case $GZIP in
5304   [\\/]* | ?:[\\/]*)
5305   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5306   ;;
5307   *)
5308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313   for ac_exec_ext in '' $ac_executable_extensions; do
5314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320 done
5321
5322   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5323   ;;
5324 esac
5325 fi
5326 GZIP=$ac_cv_path_GZIP
5327
5328 if test -n "$GZIP"; then
5329   echo "$as_me:$LINENO: result: $GZIP" >&5
5330 echo "${ECHO_T}$GZIP" >&6
5331 else
5332   echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334 fi
5335
5336 # Extract the first word of "pod2html", so it can be a program name with args.
5337 set dummy pod2html; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_POD2HTML+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   case $POD2HTML in
5344   [\\/]* | ?:[\\/]*)
5345   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5346   ;;
5347   *)
5348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5363   ;;
5364 esac
5365 fi
5366 POD2HTML=$ac_cv_path_POD2HTML
5367
5368 if test -n "$POD2HTML"; then
5369   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5370 echo "${ECHO_T}$POD2HTML" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376 # Extract the first word of "pod2man", so it can be a program name with args.
5377 set dummy pod2man; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_POD2MAN+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   case $POD2MAN in
5384   [\\/]* | ?:[\\/]*)
5385   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5386   ;;
5387   *)
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393   for ac_exec_ext in '' $ac_executable_extensions; do
5394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400 done
5401
5402   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5403   ;;
5404 esac
5405 fi
5406 POD2MAN=$ac_cv_path_POD2MAN
5407
5408 if test -n "$POD2MAN"; then
5409   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5410 echo "${ECHO_T}$POD2MAN" >&6
5411 else
5412   echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5414 fi
5415
5416 # Extract the first word of "runtest", so it can be a program name with args.
5417 set dummy runtest; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_path_RUNTEST+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   case $RUNTEST in
5424   [\\/]* | ?:[\\/]*)
5425   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5426   ;;
5427   *)
5428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433   for ac_exec_ext in '' $ac_executable_extensions; do
5434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440 done
5441
5442   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5443   ;;
5444 esac
5445 fi
5446 RUNTEST=$ac_cv_path_RUNTEST
5447
5448 if test -n "$RUNTEST"; then
5449   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5450 echo "${ECHO_T}$RUNTEST" >&6
5451 else
5452   echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5454 fi
5455
5456
5457 no_itcl=true
5458 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5459 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5460
5461 # Check whether --with-tclinclude or --without-tclinclude was given.
5462 if test "${with_tclinclude+set}" = set; then
5463   withval="$with_tclinclude"
5464   with_tclinclude=${withval}
5465 else
5466   with_tclinclude=''
5467 fi;
5468 if test "${ac_cv_path_tclsh+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471
5472 if test x"${with_tclinclude}" != x ; then
5473   if test -f ${with_tclinclude}/tclsh ; then
5474     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5475   elif test -f ${with_tclinclude}/src/tclsh ; then
5476     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5477   else
5478     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5479 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5480    { (exit 1); exit 1; }; }
5481   fi
5482 fi
5483
5484 if test x"${ac_cv_path_tclsh}" = x ; then
5485   echo "$as_me:$LINENO: result: none" >&5
5486 echo "${ECHO_T}none" >&6
5487   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5488 do
5489   # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_path_TCLSH+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   case $TCLSH in
5497   [\\/]* | ?:[\\/]*)
5498   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5499   ;;
5500   *)
5501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514
5515   ;;
5516 esac
5517 fi
5518 TCLSH=$ac_cv_path_TCLSH
5519
5520 if test -n "$TCLSH"; then
5521   echo "$as_me:$LINENO: result: $TCLSH" >&5
5522 echo "${ECHO_T}$TCLSH" >&6
5523 else
5524   echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5526 fi
5527
5528   test -n "$TCLSH" && break
5529 done
5530
5531   if test x"${TCLSH}" = x ; then
5532     ac_cv_path_tclsh='';
5533   else
5534     ac_cv_path_tclsh="${TCLSH}";
5535   fi
5536 else
5537   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5538 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5539   TCLSH="${ac_cv_path_tclsh}"
5540
5541 fi
5542
5543 fi
5544
5545 # Extract the first word of "zip", so it can be a program name with args.
5546 set dummy zip; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_path_ZIP+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   case $ZIP in
5553   [\\/]* | ?:[\\/]*)
5554   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5555   ;;
5556   *)
5557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570
5571   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5572   ;;
5573 esac
5574 fi
5575 ZIP=$ac_cv_path_ZIP
5576
5577 if test -n "$ZIP"; then
5578   echo "$as_me:$LINENO: result: $ZIP" >&5
5579 echo "${ECHO_T}$ZIP" >&6
5580 else
5581   echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583 fi
5584
5585
5586 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5587 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5588 if test "${llvm_cv_link_use_r+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591    ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597   oldcflags="$CFLAGS"
5598   CFLAGS="$CFLAGS -Wl,-R."
5599   cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h.  */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h.  */
5605
5606 int
5607 main ()
5608 {
5609 int main() { return 0; }
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616   (eval $ac_link) 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -z "$ac_c_werror_flag"
5624                          || test ! -s conftest.err'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest$ac_exeext'
5631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632   (eval $ac_try) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); }; }; then
5636   llvm_cv_link_use_r=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 llvm_cv_link_use_r=no
5642 fi
5643 rm -f conftest.err conftest.$ac_objext \
5644       conftest$ac_exeext conftest.$ac_ext
5645   CFLAGS="$oldcflags"
5646   ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652
5653 fi
5654 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5655 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5656 if test "$llvm_cv_link_use_r" = yes ; then
5657
5658 cat >>confdefs.h <<\_ACEOF
5659 #define HAVE_LINK_R 1
5660 _ACEOF
5661
5662   fi
5663
5664
5665
5666
5667 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5668 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5669 if test "${ac_cv_c_const+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5678
5679 int
5680 main ()
5681 {
5682 /* FIXME: Include the comments suggested by Paul. */
5683 #ifndef __cplusplus
5684   /* Ultrix mips cc rejects this.  */
5685   typedef int charset[2];
5686   const charset x;
5687   /* SunOS 4.1.1 cc rejects this.  */
5688   char const *const *ccp;
5689   char **p;
5690   /* NEC SVR4.0.2 mips cc rejects this.  */
5691   struct point {int x, y;};
5692   static struct point const zero = {0,0};
5693   /* AIX XL C 1.02.0.0 rejects this.
5694      It does not let you subtract one const X* pointer from another in
5695      an arm of an if-expression whose if-part is not a constant
5696      expression */
5697   const char *g = "string";
5698   ccp = &g + (g ? g-g : 0);
5699   /* HPUX 7.0 cc rejects these. */
5700   ++ccp;
5701   p = (char**) ccp;
5702   ccp = (char const *const *) p;
5703   { /* SCO 3.2v4 cc rejects this.  */
5704     char *t;
5705     char const *s = 0 ? (char *) 0 : (char const *) 0;
5706
5707     *t++ = 0;
5708   }
5709   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5710     int x[] = {25, 17};
5711     const int *foo = &x[0];
5712     ++foo;
5713   }
5714   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5715     typedef const int *iptr;
5716     iptr p = 0;
5717     ++p;
5718   }
5719   { /* AIX XL C 1.02.0.0 rejects this saying
5720        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5721     struct s { int j; const int *ap[3]; };
5722     struct s *b; b->j = 5;
5723   }
5724   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5725     const int foo = 10;
5726   }
5727 #endif
5728
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735   (eval $ac_compile) 2>conftest.er1
5736   ac_status=$?
5737   grep -v '^ *+' conftest.er1 >conftest.err
5738   rm -f conftest.er1
5739   cat conftest.err >&5
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -z "$ac_c_werror_flag"
5743                          || test ! -s conftest.err'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; } &&
5749          { ac_try='test -s conftest.$ac_objext'
5750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751   (eval $ac_try) 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }; }; then
5755   ac_cv_c_const=yes
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 ac_cv_c_const=no
5761 fi
5762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 fi
5764 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5765 echo "${ECHO_T}$ac_cv_c_const" >&6
5766 if test $ac_cv_c_const = no; then
5767
5768 cat >>confdefs.h <<\_ACEOF
5769 #define const
5770 _ACEOF
5771
5772 fi
5773
5774
5775 echo "$as_me:$LINENO: checking for egrep" >&5
5776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5777 if test "${ac_cv_prog_egrep+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5781     then ac_cv_prog_egrep='grep -E'
5782     else ac_cv_prog_egrep='egrep'
5783     fi
5784 fi
5785 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5786 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5787  EGREP=$ac_cv_prog_egrep
5788
5789
5790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5792 if test "${ac_cv_header_stdc+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 #include <stdlib.h>
5802 #include <stdarg.h>
5803 #include <string.h>
5804 #include <float.h>
5805
5806 int
5807 main ()
5808 {
5809
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816   (eval $ac_compile) 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -z "$ac_c_werror_flag"
5824                          || test ! -s conftest.err'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_cv_header_stdc=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_cv_header_stdc=no
5842 fi
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844
5845 if test $ac_cv_header_stdc = yes; then
5846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5847   cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853 #include <string.h>
5854
5855 _ACEOF
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857   $EGREP "memchr" >/dev/null 2>&1; then
5858   :
5859 else
5860   ac_cv_header_stdc=no
5861 fi
5862 rm -f conftest*
5863
5864 fi
5865
5866 if test $ac_cv_header_stdc = yes; then
5867   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5868   cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h.  */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h.  */
5874 #include <stdlib.h>
5875
5876 _ACEOF
5877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5878   $EGREP "free" >/dev/null 2>&1; then
5879   :
5880 else
5881   ac_cv_header_stdc=no
5882 fi
5883 rm -f conftest*
5884
5885 fi
5886
5887 if test $ac_cv_header_stdc = yes; then
5888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5889   if test "$cross_compiling" = yes; then
5890   :
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <ctype.h>
5899 #if ((' ' & 0x0FF) == 0x020)
5900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5902 #else
5903 # define ISLOWER(c) \
5904                    (('a' <= (c) && (c) <= 'i') \
5905                      || ('j' <= (c) && (c) <= 'r') \
5906                      || ('s' <= (c) && (c) <= 'z'))
5907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5908 #endif
5909
5910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5911 int
5912 main ()
5913 {
5914   int i;
5915   for (i = 0; i < 256; i++)
5916     if (XOR (islower (i), ISLOWER (i))
5917         || toupper (i) != TOUPPER (i))
5918       exit(2);
5919   exit (0);
5920 }
5921 _ACEOF
5922 rm -f conftest$ac_exeext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924   (eval $ac_link) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   :
5934 else
5935   echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ( exit $ac_status )
5940 ac_cv_header_stdc=no
5941 fi
5942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5943 fi
5944 fi
5945 fi
5946 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5947 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5948 if test $ac_cv_header_stdc = yes; then
5949
5950 cat >>confdefs.h <<\_ACEOF
5951 #define STDC_HEADERS 1
5952 _ACEOF
5953
5954 fi
5955
5956
5957
5958
5959
5960
5961 ac_header_dirent=no
5962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5963   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5964 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5965 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 #include <sys/types.h>
5976 #include <$ac_hdr>
5977
5978 int
5979 main ()
5980 {
5981 if ((DIR *) 0)
5982 return 0;
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   eval "$as_ac_Header=yes"
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 eval "$as_ac_Header=no"
6015 fi
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021   cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6023 _ACEOF
6024
6025 ac_header_dirent=$ac_hdr; break
6026 fi
6027
6028 done
6029 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6030 if test $ac_header_dirent = dirent.h; then
6031   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6033 if test "${ac_cv_search_opendir+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   ac_func_search_save_LIBS=$LIBS
6037 ac_cv_search_opendir=no
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044
6045 /* Override any gcc2 internal prototype to avoid an error.  */
6046 #ifdef __cplusplus
6047 extern "C"
6048 #endif
6049 /* We use char because int might match the return type of a gcc2
6050    builtin and then its argument prototype would still apply.  */
6051 char opendir ();
6052 int
6053 main ()
6054 {
6055 opendir ();
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062   (eval $ac_link) 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -z "$ac_c_werror_flag"
6070                          || test ! -s conftest.err'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; } &&
6076          { ac_try='test -s conftest$ac_exeext'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; }; then
6082   ac_cv_search_opendir="none required"
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 fi
6088 rm -f conftest.err conftest.$ac_objext \
6089       conftest$ac_exeext conftest.$ac_ext
6090 if test "$ac_cv_search_opendir" = no; then
6091   for ac_lib in dir; do
6092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6093     cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099
6100 /* Override any gcc2 internal prototype to avoid an error.  */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105    builtin and then its argument prototype would still apply.  */
6106 char opendir ();
6107 int
6108 main ()
6109 {
6110 opendir ();
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117   (eval $ac_link) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"
6125                          || test ! -s conftest.err'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; } &&
6131          { ac_try='test -s conftest$ac_exeext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_cv_search_opendir="-l$ac_lib"
6138 break
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 fi
6144 rm -f conftest.err conftest.$ac_objext \
6145       conftest$ac_exeext conftest.$ac_ext
6146   done
6147 fi
6148 LIBS=$ac_func_search_save_LIBS
6149 fi
6150 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6151 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6152 if test "$ac_cv_search_opendir" != no; then
6153   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6154
6155 fi
6156
6157 else
6158   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6160 if test "${ac_cv_search_opendir+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   ac_func_search_save_LIBS=$LIBS
6164 ac_cv_search_opendir=no
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171
6172 /* Override any gcc2 internal prototype to avoid an error.  */
6173 #ifdef __cplusplus
6174 extern "C"
6175 #endif
6176 /* We use char because int might match the return type of a gcc2
6177    builtin and then its argument prototype would still apply.  */
6178 char opendir ();
6179 int
6180 main ()
6181 {
6182 opendir ();
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189   (eval $ac_link) 2>conftest.er1
6190   ac_status=$?
6191   grep -v '^ *+' conftest.er1 >conftest.err
6192   rm -f conftest.er1
6193   cat conftest.err >&5
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -z "$ac_c_werror_flag"
6197                          || test ! -s conftest.err'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; } &&
6203          { ac_try='test -s conftest$ac_exeext'
6204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205   (eval $ac_try) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); }; }; then
6209   ac_cv_search_opendir="none required"
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 fi
6215 rm -f conftest.err conftest.$ac_objext \
6216       conftest$ac_exeext conftest.$ac_ext
6217 if test "$ac_cv_search_opendir" = no; then
6218   for ac_lib in x; do
6219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6220     cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h.  */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h.  */
6226
6227 /* Override any gcc2 internal prototype to avoid an error.  */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232    builtin and then its argument prototype would still apply.  */
6233 char opendir ();
6234 int
6235 main ()
6236 {
6237 opendir ();
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244   (eval $ac_link) 2>conftest.er1
6245   ac_status=$?
6246   grep -v '^ *+' conftest.er1 >conftest.err
6247   rm -f conftest.er1
6248   cat conftest.err >&5
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); } &&
6251          { ac_try='test -z "$ac_c_werror_flag"
6252                          || test ! -s conftest.err'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest$ac_exeext'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; }; then
6264   ac_cv_search_opendir="-l$ac_lib"
6265 break
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 fi
6271 rm -f conftest.err conftest.$ac_objext \
6272       conftest$ac_exeext conftest.$ac_ext
6273   done
6274 fi
6275 LIBS=$ac_func_search_save_LIBS
6276 fi
6277 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6278 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6279 if test "$ac_cv_search_opendir" != no; then
6280   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6281
6282 fi
6283
6284 fi
6285
6286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6297                   inttypes.h stdint.h unistd.h
6298 do
6299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 $ac_includes_default
6312
6313 #include <$ac_header>
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317   (eval $ac_compile) 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -z "$ac_c_werror_flag"
6325                          || test ! -s conftest.err'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; } &&
6331          { ac_try='test -s conftest.$ac_objext'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   eval "$as_ac_Header=yes"
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 eval "$as_ac_Header=no"
6343 fi
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 fi
6346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6349   cat >>confdefs.h <<_ACEOF
6350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 _ACEOF
6352
6353 fi
6354
6355 done
6356
6357
6358
6359 for ac_header in dlfcn.h
6360 do
6361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363   echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 fi
6368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6370 else
6371   # Is the header compilable?
6372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 #include <$ac_header>
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385   (eval $ac_compile) 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } &&
6392          { ac_try='test -z "$ac_c_werror_flag"
6393                          || test ! -s conftest.err'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; } &&
6399          { ac_try='test -s conftest.$ac_objext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   ac_header_compiler=yes
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_header_compiler=no
6411 fi
6412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414 echo "${ECHO_T}$ac_header_compiler" >&6
6415
6416 # Is the header present?
6417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425 #include <$ac_header>
6426 _ACEOF
6427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429   ac_status=$?
6430   grep -v '^ *+' conftest.er1 >conftest.err
6431   rm -f conftest.er1
6432   cat conftest.err >&5
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } >/dev/null; then
6435   if test -s conftest.err; then
6436     ac_cpp_err=$ac_c_preproc_warn_flag
6437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6438   else
6439     ac_cpp_err=
6440   fi
6441 else
6442   ac_cpp_err=yes
6443 fi
6444 if test -z "$ac_cpp_err"; then
6445   ac_header_preproc=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450   ac_header_preproc=no
6451 fi
6452 rm -f conftest.err conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6454 echo "${ECHO_T}$ac_header_preproc" >&6
6455
6456 # So?  What about this header?
6457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458   yes:no: )
6459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6463     ac_header_preproc=yes
6464     ;;
6465   no:yes:* )
6466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6478     (
6479       cat <<\_ASBOX
6480 ## ----------------------------------- ##
6481 ## Report this to llvmbugs@cs.uiuc.edu ##
6482 ## ----------------------------------- ##
6483 _ASBOX
6484     ) |
6485       sed "s/^/$as_me: WARNING:     /" >&2
6486     ;;
6487 esac
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   eval "$as_ac_Header=\$ac_header_preproc"
6494 fi
6495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6497
6498 fi
6499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500   cat >>confdefs.h <<_ACEOF
6501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 _ACEOF
6503
6504 fi
6505
6506 done
6507
6508 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6509 if test "${enable_ltdl_install+set}" = set; then
6510   enableval="$enable_ltdl_install"
6511
6512 fi;
6513
6514
6515
6516 if test x"${enable_ltdl_install-no}" != xno; then
6517   INSTALL_LTDL_TRUE=
6518   INSTALL_LTDL_FALSE='#'
6519 else
6520   INSTALL_LTDL_TRUE='#'
6521   INSTALL_LTDL_FALSE=
6522 fi
6523
6524
6525
6526 if test x"${enable_ltdl_convenience-no}" != xno; then
6527   CONVENIENCE_LTDL_TRUE=
6528   CONVENIENCE_LTDL_FALSE='#'
6529 else
6530   CONVENIENCE_LTDL_TRUE='#'
6531   CONVENIENCE_LTDL_FALSE=
6532 fi
6533
6534
6535 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6537 library_names_spec=
6538 libname_spec='lib$name'
6539 soname_spec=
6540 shrext_cmds=".so"
6541 postinstall_cmds=
6542 postuninstall_cmds=
6543 finish_cmds=
6544 finish_eval=
6545 shlibpath_var=
6546 shlibpath_overrides_runpath=unknown
6547 version_type=none
6548 dynamic_linker="$host_os ld.so"
6549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6550 if test "$GCC" = yes; then
6551   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6552   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6553     # if the path contains ";" then we assume it to be the separator
6554     # otherwise default to the standard path separator (i.e. ":") - it is
6555     # assumed that no part of a normal pathname contains ";" but that should
6556     # okay in the real world where ";" in dirpaths is itself problematic.
6557     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6558   else
6559     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6560   fi
6561 else
6562   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6563 fi
6564 need_lib_prefix=unknown
6565 hardcode_into_libs=no
6566
6567 # when you set need_version to no, make sure it does not cause -set_version
6568 # flags to be left without arguments
6569 need_version=unknown
6570
6571 case $host_os in
6572 aix3*)
6573   version_type=linux
6574   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6575   shlibpath_var=LIBPATH
6576
6577   # AIX 3 has no versioning support, so we append a major version to the name.
6578   soname_spec='${libname}${release}${shared_ext}$major'
6579   ;;
6580
6581 aix4* | aix5*)
6582   version_type=linux
6583   need_lib_prefix=no
6584   need_version=no
6585   hardcode_into_libs=yes
6586   if test "$host_cpu" = ia64; then
6587     # AIX 5 supports IA64
6588     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6589     shlibpath_var=LD_LIBRARY_PATH
6590   else
6591     # With GCC up to 2.95.x, collect2 would create an import file
6592     # for dependence libraries.  The import file would start with
6593     # the line `#! .'.  This would cause the generated library to
6594     # depend on `.', always an invalid library.  This was fixed in
6595     # development snapshots of GCC prior to 3.0.
6596     case $host_os in
6597       aix4 | aix4.[01] | aix4.[01].*)
6598       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6599            echo ' yes '
6600            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6601         :
6602       else
6603         can_build_shared=no
6604       fi
6605       ;;
6606     esac
6607     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6608     # soname into executable. Probably we can add versioning support to
6609     # collect2, so additional links can be useful in future.
6610     if test "$aix_use_runtimelinking" = yes; then
6611       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6612       # instead of lib<name>.a to let people know that these are not
6613       # typical AIX shared libraries.
6614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6615     else
6616       # We preserve .a as extension for shared libraries through AIX4.2
6617       # and later when we are not doing run time linking.
6618       library_names_spec='${libname}${release}.a $libname.a'
6619       soname_spec='${libname}${release}${shared_ext}$major'
6620     fi
6621     shlibpath_var=LIBPATH
6622   fi
6623   ;;
6624
6625 amigaos*)
6626   library_names_spec='$libname.ixlibrary $libname.a'
6627   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6628   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'
6629   ;;
6630
6631 beos*)
6632   library_names_spec='${libname}${shared_ext}'
6633   dynamic_linker="$host_os ld.so"
6634   shlibpath_var=LIBRARY_PATH
6635   ;;
6636
6637 bsdi[45]*)
6638   version_type=linux
6639   need_version=no
6640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6641   soname_spec='${libname}${release}${shared_ext}$major'
6642   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6643   shlibpath_var=LD_LIBRARY_PATH
6644   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6645   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6646   # the default ld.so.conf also contains /usr/contrib/lib and
6647   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6648   # libtool to hard-code these into programs
6649   ;;
6650
6651 cygwin* | mingw* | pw32*)
6652   version_type=windows
6653   shrext_cmds=".dll"
6654   need_version=no
6655   need_lib_prefix=no
6656
6657   case $GCC,$host_os in
6658   yes,cygwin* | yes,mingw* | yes,pw32*)
6659     library_names_spec='$libname.dll.a'
6660     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6661     postinstall_cmds='base_file=`basename \${file}`~
6662       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6663       dldir=$destdir/`dirname \$dlpath`~
6664       test -d \$dldir || mkdir -p \$dldir~
6665       $install_prog $dir/$dlname \$dldir/$dlname'
6666     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6667       dlpath=$dir/\$dldll~
6668        $rm \$dlpath'
6669     shlibpath_overrides_runpath=yes
6670
6671     case $host_os in
6672     cygwin*)
6673       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6674       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6675       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6676       ;;
6677     mingw*)
6678       # MinGW DLLs use traditional 'lib' prefix
6679       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6680       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6681       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6682         # It is most probably a Windows format PATH printed by
6683         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6684         # path with ; separators, and with drive letters. We can handle the
6685         # drive letters (cygwin fileutils understands them), so leave them,
6686         # especially as we might pass files found there to a mingw objdump,
6687         # which wouldn't understand a cygwinified path. Ahh.
6688         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6689       else
6690         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6691       fi
6692       ;;
6693     pw32*)
6694       # pw32 DLLs use 'pw' prefix rather than 'lib'
6695       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6696       ;;
6697     esac
6698     ;;
6699
6700   *)
6701     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6702     ;;
6703   esac
6704   dynamic_linker='Win32 ld.exe'
6705   # FIXME: first we should search . and the directory the executable is in
6706   shlibpath_var=PATH
6707   ;;
6708
6709 darwin* | rhapsody*)
6710   dynamic_linker="$host_os dyld"
6711   version_type=darwin
6712   need_lib_prefix=no
6713   need_version=no
6714   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6715   soname_spec='${libname}${release}${major}$shared_ext'
6716   shlibpath_overrides_runpath=yes
6717   shlibpath_var=DYLD_LIBRARY_PATH
6718   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6719   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6720   if test "$GCC" = yes; then
6721     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"`
6722   else
6723     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6724   fi
6725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6726   ;;
6727
6728 dgux*)
6729   version_type=linux
6730   need_lib_prefix=no
6731   need_version=no
6732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6733   soname_spec='${libname}${release}${shared_ext}$major'
6734   shlibpath_var=LD_LIBRARY_PATH
6735   ;;
6736
6737 freebsd1*)
6738   dynamic_linker=no
6739   ;;
6740
6741 kfreebsd*-gnu)
6742   version_type=linux
6743   need_lib_prefix=no
6744   need_version=no
6745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6746   soname_spec='${libname}${release}${shared_ext}$major'
6747   shlibpath_var=LD_LIBRARY_PATH
6748   shlibpath_overrides_runpath=no
6749   hardcode_into_libs=yes
6750   dynamic_linker='GNU ld.so'
6751   ;;
6752
6753 freebsd*)
6754   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6755   version_type=freebsd-$objformat
6756   case $version_type in
6757     freebsd-elf*)
6758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6759       need_version=no
6760       need_lib_prefix=no
6761       ;;
6762     freebsd-*)
6763       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6764       need_version=yes
6765       ;;
6766   esac
6767   shlibpath_var=LD_LIBRARY_PATH
6768   case $host_os in
6769   freebsd2*)
6770     shlibpath_overrides_runpath=yes
6771     ;;
6772   freebsd3.01* | freebsdelf3.01*)
6773     shlibpath_overrides_runpath=yes
6774     hardcode_into_libs=yes
6775     ;;
6776   *) # from 3.2 on
6777     shlibpath_overrides_runpath=no
6778     hardcode_into_libs=yes
6779     ;;
6780   esac
6781   ;;
6782
6783 gnu*)
6784   version_type=linux
6785   need_lib_prefix=no
6786   need_version=no
6787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6788   soname_spec='${libname}${release}${shared_ext}$major'
6789   shlibpath_var=LD_LIBRARY_PATH
6790   hardcode_into_libs=yes
6791   ;;
6792
6793 hpux9* | hpux10* | hpux11*)
6794   # Give a soname corresponding to the major version so that dld.sl refuses to
6795   # link against other versions.
6796   version_type=sunos
6797   need_lib_prefix=no
6798   need_version=no
6799   case "$host_cpu" in
6800   ia64*)
6801     shrext_cmds='.so'
6802     hardcode_into_libs=yes
6803     dynamic_linker="$host_os dld.so"
6804     shlibpath_var=LD_LIBRARY_PATH
6805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6807     soname_spec='${libname}${release}${shared_ext}$major'
6808     if test "X$HPUX_IA64_MODE" = X32; then
6809       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6810     else
6811       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6812     fi
6813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6814     ;;
6815    hppa*64*)
6816      shrext_cmds='.sl'
6817      hardcode_into_libs=yes
6818      dynamic_linker="$host_os dld.sl"
6819      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6820      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6821      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6822      soname_spec='${libname}${release}${shared_ext}$major'
6823      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6824      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6825      ;;
6826    *)
6827     shrext_cmds='.sl'
6828     dynamic_linker="$host_os dld.sl"
6829     shlibpath_var=SHLIB_PATH
6830     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6832     soname_spec='${libname}${release}${shared_ext}$major'
6833     ;;
6834   esac
6835   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6836   postinstall_cmds='chmod 555 $lib'
6837   ;;
6838
6839 irix5* | irix6* | nonstopux*)
6840   case $host_os in
6841     nonstopux*) version_type=nonstopux ;;
6842     *)
6843         if test "$lt_cv_prog_gnu_ld" = yes; then
6844                 version_type=linux
6845         else
6846                 version_type=irix
6847         fi ;;
6848   esac
6849   need_lib_prefix=no
6850   need_version=no
6851   soname_spec='${libname}${release}${shared_ext}$major'
6852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6853   case $host_os in
6854   irix5* | nonstopux*)
6855     libsuff= shlibsuff=
6856     ;;
6857   *)
6858     case $LD in # libtool.m4 will add one of these switches to LD
6859     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6860       libsuff= shlibsuff= libmagic=32-bit;;
6861     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6862       libsuff=32 shlibsuff=N32 libmagic=N32;;
6863     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6864       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6865     *) libsuff= shlibsuff= libmagic=never-match;;
6866     esac
6867     ;;
6868   esac
6869   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6870   shlibpath_overrides_runpath=no
6871   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6872   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6873   hardcode_into_libs=yes
6874   ;;
6875
6876 # No shared lib support for Linux oldld, aout, or coff.
6877 linux*oldld* | linux*aout* | linux*coff*)
6878   dynamic_linker=no
6879   ;;
6880
6881 # This must be Linux ELF.
6882 linux*)
6883   version_type=linux
6884   need_lib_prefix=no
6885   need_version=no
6886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887   soname_spec='${libname}${release}${shared_ext}$major'
6888   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6889   shlibpath_var=LD_LIBRARY_PATH
6890   shlibpath_overrides_runpath=no
6891   # This implies no fast_install, which is unacceptable.
6892   # Some rework will be needed to allow for fast_install
6893   # before this can be enabled.
6894   hardcode_into_libs=yes
6895
6896   # Append ld.so.conf contents to the search path
6897   if test -f /etc/ld.so.conf; then
6898     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6899     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6900   fi
6901
6902   # We used to test for /lib/ld.so.1 and disable shared libraries on
6903   # powerpc, because MkLinux only supported shared libraries with the
6904   # GNU dynamic linker.  Since this was broken with cross compilers,
6905   # most powerpc-linux boxes support dynamic linking these days and
6906   # people can always --disable-shared, the test was removed, and we
6907   # assume the GNU/Linux dynamic linker is in use.
6908   dynamic_linker='GNU/Linux ld.so'
6909   ;;
6910
6911 knetbsd*-gnu)
6912   version_type=linux
6913   need_lib_prefix=no
6914   need_version=no
6915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6916   soname_spec='${libname}${release}${shared_ext}$major'
6917   shlibpath_var=LD_LIBRARY_PATH
6918   shlibpath_overrides_runpath=no
6919   hardcode_into_libs=yes
6920   dynamic_linker='GNU ld.so'
6921   ;;
6922
6923 netbsd*)
6924   version_type=sunos
6925   need_lib_prefix=no
6926   need_version=no
6927   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6929     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6930     dynamic_linker='NetBSD (a.out) ld.so'
6931   else
6932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6933     soname_spec='${libname}${release}${shared_ext}$major'
6934     dynamic_linker='NetBSD ld.elf_so'
6935   fi
6936   shlibpath_var=LD_LIBRARY_PATH
6937   shlibpath_overrides_runpath=yes
6938   hardcode_into_libs=yes
6939   ;;
6940
6941 newsos6)
6942   version_type=linux
6943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6944   shlibpath_var=LD_LIBRARY_PATH
6945   shlibpath_overrides_runpath=yes
6946   ;;
6947
6948 nto-qnx*)
6949   version_type=linux
6950   need_lib_prefix=no
6951   need_version=no
6952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953   soname_spec='${libname}${release}${shared_ext}$major'
6954   shlibpath_var=LD_LIBRARY_PATH
6955   shlibpath_overrides_runpath=yes
6956   ;;
6957
6958 openbsd*)
6959   version_type=sunos
6960   need_lib_prefix=no
6961   need_version=no
6962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6963   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6964   shlibpath_var=LD_LIBRARY_PATH
6965   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6966     case $host_os in
6967       openbsd2.[89] | openbsd2.[89].*)
6968         shlibpath_overrides_runpath=no
6969         ;;
6970       *)
6971         shlibpath_overrides_runpath=yes
6972         ;;
6973       esac
6974   else
6975     shlibpath_overrides_runpath=yes
6976   fi
6977   ;;
6978
6979 os2*)
6980   libname_spec='$name'
6981   shrext_cmds=".dll"
6982   need_lib_prefix=no
6983   library_names_spec='$libname${shared_ext} $libname.a'
6984   dynamic_linker='OS/2 ld.exe'
6985   shlibpath_var=LIBPATH
6986   ;;
6987
6988 osf3* | osf4* | osf5*)
6989   version_type=osf
6990   need_lib_prefix=no
6991   need_version=no
6992   soname_spec='${libname}${release}${shared_ext}$major'
6993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6994   shlibpath_var=LD_LIBRARY_PATH
6995   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6996   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6997   ;;
6998
6999 sco3.2v5*)
7000   version_type=osf
7001   soname_spec='${libname}${release}${shared_ext}$major'
7002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7003   shlibpath_var=LD_LIBRARY_PATH
7004   ;;
7005
7006 solaris*)
7007   version_type=linux
7008   need_lib_prefix=no
7009   need_version=no
7010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011   soname_spec='${libname}${release}${shared_ext}$major'
7012   shlibpath_var=LD_LIBRARY_PATH
7013   shlibpath_overrides_runpath=yes
7014   hardcode_into_libs=yes
7015   # ldd complains unless libraries are executable
7016   postinstall_cmds='chmod +x $lib'
7017   ;;
7018
7019 sunos4*)
7020   version_type=sunos
7021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7023   shlibpath_var=LD_LIBRARY_PATH
7024   shlibpath_overrides_runpath=yes
7025   if test "$with_gnu_ld" = yes; then
7026     need_lib_prefix=no
7027   fi
7028   need_version=yes
7029   ;;
7030
7031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7032   version_type=linux
7033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7034   soname_spec='${libname}${release}${shared_ext}$major'
7035   shlibpath_var=LD_LIBRARY_PATH
7036   case $host_vendor in
7037     sni)
7038       shlibpath_overrides_runpath=no
7039       need_lib_prefix=no
7040       export_dynamic_flag_spec='${wl}-Blargedynsym'
7041       runpath_var=LD_RUN_PATH
7042       ;;
7043     siemens)
7044       need_lib_prefix=no
7045       ;;
7046     motorola)
7047       need_lib_prefix=no
7048       need_version=no
7049       shlibpath_overrides_runpath=no
7050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7051       ;;
7052   esac
7053   ;;
7054
7055 sysv4*MP*)
7056   if test -d /usr/nec ;then
7057     version_type=linux
7058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7059     soname_spec='$libname${shared_ext}.$major'
7060     shlibpath_var=LD_LIBRARY_PATH
7061   fi
7062   ;;
7063
7064 uts4*)
7065   version_type=linux
7066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067   soname_spec='${libname}${release}${shared_ext}$major'
7068   shlibpath_var=LD_LIBRARY_PATH
7069   ;;
7070
7071 *)
7072   dynamic_linker=no
7073   ;;
7074 esac
7075 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7076 echo "${ECHO_T}$dynamic_linker" >&6
7077 test "$dynamic_linker" = no && can_build_shared=no
7078
7079
7080 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7081 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7082 if test "${libltdl_cv_shlibext+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085
7086 module=yes
7087 eval libltdl_cv_shlibext=$shrext_cmds
7088
7089 fi
7090 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7091 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7092 if test -n "$libltdl_cv_shlibext"; then
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7096 _ACEOF
7097
7098 fi
7099
7100
7101 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7102 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7103 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   libltdl_cv_shlibpath_var="$shlibpath_var"
7107 fi
7108 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7109 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7110 if test -n "$libltdl_cv_shlibpath_var"; then
7111
7112 cat >>confdefs.h <<_ACEOF
7113 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7114 _ACEOF
7115
7116 fi
7117
7118
7119 echo "$as_me:$LINENO: checking for the default library search path" >&5
7120 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7121 if test "${libltdl_cv_sys_search_path+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7125 fi
7126 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7127 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7128 if test -n "$libltdl_cv_sys_search_path"; then
7129   sys_search_path=
7130   for dir in $libltdl_cv_sys_search_path; do
7131     if test -z "$sys_search_path"; then
7132       sys_search_path="$dir"
7133     else
7134       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7135     fi
7136   done
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7140 _ACEOF
7141
7142 fi
7143
7144 echo "$as_me:$LINENO: checking for objdir" >&5
7145 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7146 if test "${libltdl_cv_objdir+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   libltdl_cv_objdir="$objdir"
7150   if test -n "$objdir"; then
7151     :
7152   else
7153     rm -f .libs 2>/dev/null
7154     mkdir .libs 2>/dev/null
7155     if test -d .libs; then
7156       libltdl_cv_objdir=.libs
7157     else
7158       # MS-DOS does not allow filenames that begin with a dot.
7159       libltdl_cv_objdir=_libs
7160     fi
7161   rmdir .libs 2>/dev/null
7162   fi
7163
7164 fi
7165 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7166 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7170 _ACEOF
7171
7172
7173 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7174 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7175 if test "${lt_cv_path_NM+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test -n "$NM"; then
7179   # Let the user override the test.
7180   lt_cv_path_NM="$NM"
7181 else
7182   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7183   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7184     IFS="$lt_save_ifs"
7185     test -z "$ac_dir" && ac_dir=.
7186     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7187     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7188       # Check to see if the nm accepts a BSD-compat flag.
7189       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7190       #   nm: unknown option "B" ignored
7191       # Tru64's nm complains that /dev/null is an invalid object file
7192       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7193       */dev/null* | *'Invalid file or object type'*)
7194         lt_cv_path_NM="$tmp_nm -B"
7195         break
7196         ;;
7197       *)
7198         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7199         */dev/null*)
7200           lt_cv_path_NM="$tmp_nm -p"
7201           break
7202           ;;
7203         *)
7204           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7205           continue # so that we can try to find one that supports BSD flags
7206           ;;
7207         esac
7208       esac
7209     fi
7210   done
7211   IFS="$lt_save_ifs"
7212   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7213 fi
7214 fi
7215 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7216 echo "${ECHO_T}$lt_cv_path_NM" >&6
7217 NM="$lt_cv_path_NM"
7218
7219
7220
7221
7222
7223 # Check for command to grab the raw symbol name followed by C symbol from nm.
7224 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7225 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7226 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229
7230 # These are sane defaults that work on at least a few old systems.
7231 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7232
7233 # Character class describing NM global symbol codes.
7234 symcode='[BCDEGRST]'
7235
7236 # Regexp to match symbols that can be accessed directly from C.
7237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7238
7239 # Transform the above into a raw symbol and a C symbol.
7240 symxfrm='\1 \2\3 \3'
7241
7242 # Transform an extracted symbol line into a proper C declaration
7243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7244
7245 # Transform an extracted symbol line into symbol name and symbol address
7246 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'"
7247
7248 # Define system-specific variables.
7249 case $host_os in
7250 aix*)
7251   symcode='[BCDT]'
7252   ;;
7253 cygwin* | mingw* | pw32*)
7254   symcode='[ABCDGISTW]'
7255   ;;
7256 hpux*) # Its linker distinguishes data from code symbols
7257   if test "$host_cpu" = ia64; then
7258     symcode='[ABCDEGRST]'
7259   fi
7260   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7261   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'"
7262   ;;
7263 linux*)
7264   if test "$host_cpu" = ia64; then
7265     symcode='[ABCDGIRSTW]'
7266     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7267     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'"
7268   fi
7269   ;;
7270 irix* | nonstopux*)
7271   symcode='[BCDEGRST]'
7272   ;;
7273 osf*)
7274   symcode='[BCDEGQRST]'
7275   ;;
7276 solaris* | sysv5*)
7277   symcode='[BDRT]'
7278   ;;
7279 sysv4)
7280   symcode='[DFNSTU]'
7281   ;;
7282 esac
7283
7284 # Handle CRLF in mingw tool chain
7285 opt_cr=
7286 case $build_os in
7287 mingw*)
7288   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7289   ;;
7290 esac
7291
7292 # If we're using GNU nm, then use its standard symbol codes.
7293 case `$NM -V 2>&1` in
7294 *GNU* | *'with BFD'*)
7295   symcode='[ABCDGIRSTW]' ;;
7296 esac
7297
7298 # Try without a prefix undercore, then with it.
7299 for ac_symprfx in "" "_"; do
7300
7301   # Write the raw and C identifiers.
7302   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7303
7304   # Check to see that the pipe works correctly.
7305   pipe_works=no
7306
7307   rm -f conftest*
7308   cat > conftest.$ac_ext <<EOF
7309 #ifdef __cplusplus
7310 extern "C" {
7311 #endif
7312 char nm_test_var;
7313 void nm_test_func(){}
7314 #ifdef __cplusplus
7315 }
7316 #endif
7317 int main(){nm_test_var='a';nm_test_func();return(0);}
7318 EOF
7319
7320   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321   (eval $ac_compile) 2>&5
7322   ac_status=$?
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); }; then
7325     # Now try to grab the symbols.
7326     nlist=conftest.nm
7327     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7328   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } && test -s "$nlist"; then
7332       # Try sorting and uniquifying the output.
7333       if sort "$nlist" | uniq > "$nlist"T; then
7334         mv -f "$nlist"T "$nlist"
7335       else
7336         rm -f "$nlist"T
7337       fi
7338
7339       # Make sure that we snagged all the symbols we need.
7340       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7341         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7342           cat <<EOF > conftest.$ac_ext
7343 #ifdef __cplusplus
7344 extern "C" {
7345 #endif
7346
7347 EOF
7348           # Now generate the symbol file.
7349           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7350
7351           cat <<EOF >> conftest.$ac_ext
7352 #if defined (__STDC__) && __STDC__
7353 # define lt_ptr_t void *
7354 #else
7355 # define lt_ptr_t char *
7356 # define const
7357 #endif
7358
7359 /* The mapping between symbol names and symbols. */
7360 const struct {
7361   const char *name;
7362   lt_ptr_t address;
7363 }
7364 lt_preloaded_symbols[] =
7365 {
7366 EOF
7367           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7368           cat <<\EOF >> conftest.$ac_ext
7369   {0, (lt_ptr_t) 0}
7370 };
7371
7372 #ifdef __cplusplus
7373 }
7374 #endif
7375 EOF
7376           # Now try linking the two files.
7377           mv conftest.$ac_objext conftstm.$ac_objext
7378           lt_save_LIBS="$LIBS"
7379           lt_save_CFLAGS="$CFLAGS"
7380           LIBS="conftstm.$ac_objext"
7381           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7382           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383   (eval $ac_link) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7387             pipe_works=yes
7388           fi
7389           LIBS="$lt_save_LIBS"
7390           CFLAGS="$lt_save_CFLAGS"
7391         else
7392           echo "cannot find nm_test_func in $nlist" >&5
7393         fi
7394       else
7395         echo "cannot find nm_test_var in $nlist" >&5
7396       fi
7397     else
7398       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7399     fi
7400   else
7401     echo "$progname: failed program was:" >&5
7402     cat conftest.$ac_ext >&5
7403   fi
7404   rm -f conftest* conftst*
7405
7406   # Do not use the global_symbol_pipe unless it works.
7407   if test "$pipe_works" = yes; then
7408     break
7409   else
7410     lt_cv_sys_global_symbol_pipe=
7411   fi
7412 done
7413
7414 fi
7415
7416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7417   lt_cv_sys_global_symbol_to_cdecl=
7418 fi
7419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7420   echo "$as_me:$LINENO: result: failed" >&5
7421 echo "${ECHO_T}failed" >&6
7422 else
7423   echo "$as_me:$LINENO: result: ok" >&5
7424 echo "${ECHO_T}ok" >&6
7425 fi
7426
7427
7428 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7429 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7430 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7434     libltdl_cv_preloaded_symbols=yes
7435   else
7436     libltdl_cv_preloaded_symbols=no
7437   fi
7438
7439 fi
7440 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7441 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7442 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7443
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_PRELOADED_SYMBOLS 1
7446 _ACEOF
7447
7448 fi
7449
7450 LIBADD_DL=
7451
7452 ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458
7459 echo "$as_me:$LINENO: checking for shl_load" >&5
7460 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7461 if test "${ac_cv_func_shl_load+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7472 #define shl_load innocuous_shl_load
7473
7474 /* System header to define __stub macros and hopefully few prototypes,
7475     which can conflict with char shl_load (); below.
7476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477     <limits.h> exists even on freestanding compilers.  */
7478
7479 #ifdef __STDC__
7480 # include <limits.h>
7481 #else
7482 # include <assert.h>
7483 #endif
7484
7485 #undef shl_load
7486
7487 /* Override any gcc2 internal prototype to avoid an error.  */
7488 #ifdef __cplusplus
7489 extern "C"
7490 {
7491 #endif
7492 /* We use char because int might match the return type of a gcc2
7493    builtin and then its argument prototype would still apply.  */
7494 char shl_load ();
7495 /* The GNU C library defines this for functions which it implements
7496     to always fail with ENOSYS.  Some functions are actually named
7497     something starting with __ and the normal name is an alias.  */
7498 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7499 choke me
7500 #else
7501 char (*f) () = shl_load;
7502 #endif
7503 #ifdef __cplusplus
7504 }
7505 #endif
7506
7507 int
7508 main ()
7509 {
7510 return f != shl_load;
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517   (eval $ac_link) 2>conftest.er1
7518   ac_status=$?
7519   grep -v '^ *+' conftest.er1 >conftest.err
7520   rm -f conftest.er1
7521   cat conftest.err >&5
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } &&
7524          { ac_try='test -z "$ac_c_werror_flag"
7525                          || test ! -s conftest.err'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; } &&
7531          { ac_try='test -s conftest$ac_exeext'
7532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533   (eval $ac_try) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   ac_cv_func_shl_load=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ac_cv_func_shl_load=no
7543 fi
7544 rm -f conftest.err conftest.$ac_objext \
7545       conftest$ac_exeext conftest.$ac_ext
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7548 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7549 if test $ac_cv_func_shl_load = yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SHL_LOAD 1
7553 _ACEOF
7554
7555 else
7556   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7557 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7558 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   ac_check_lib_save_LIBS=$LIBS
7562 LIBS="-ldld  $LIBS"
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569
7570 /* Override any gcc2 internal prototype to avoid an error.  */
7571 #ifdef __cplusplus
7572 extern "C"
7573 #endif
7574 /* We use char because int might match the return type of a gcc2
7575    builtin and then its argument prototype would still apply.  */
7576 char shl_load ();
7577 int
7578 main ()
7579 {
7580 shl_load ();
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587   (eval $ac_link) 2>conftest.er1
7588   ac_status=$?
7589   grep -v '^ *+' conftest.er1 >conftest.err
7590   rm -f conftest.er1
7591   cat conftest.err >&5
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } &&
7594          { ac_try='test -z "$ac_c_werror_flag"
7595                          || test ! -s conftest.err'
7596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597   (eval $ac_try) 2>&5
7598   ac_status=$?
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); }; } &&
7601          { ac_try='test -s conftest$ac_exeext'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; }; then
7607   ac_cv_lib_dld_shl_load=yes
7608 else
7609   echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 ac_cv_lib_dld_shl_load=no
7613 fi
7614 rm -f conftest.err conftest.$ac_objext \
7615       conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7617 fi
7618 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7619 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7620 if test $ac_cv_lib_dld_shl_load = yes; then
7621
7622 cat >>confdefs.h <<\_ACEOF
7623 #define HAVE_SHL_LOAD 1
7624 _ACEOF
7625
7626         LIBADD_DL="$LIBADD_DL -ldld"
7627 else
7628   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-ldl  $LIBS"
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641
7642 /* Override any gcc2 internal prototype to avoid an error.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647    builtin and then its argument prototype would still apply.  */
7648 char dlopen ();
7649 int
7650 main ()
7651 {
7652 dlopen ();
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659   (eval $ac_link) 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -z "$ac_c_werror_flag"
7667                          || test ! -s conftest.err'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_lib_dl_dlopen=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_lib_dl_dlopen=no
7685 fi
7686 rm -f conftest.err conftest.$ac_objext \
7687       conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7689 fi
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7692 if test $ac_cv_lib_dl_dlopen = yes; then
7693
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_LIBDL 1
7696 _ACEOF
7697
7698                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7699 else
7700   cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h.  */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h.  */
7706 #if HAVE_DLFCN_H
7707 #  include <dlfcn.h>
7708 #endif
7709
7710 int
7711 main ()
7712 {
7713 dlopen(0, 0);
7714   ;
7715   return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720   (eval $ac_link) 2>conftest.er1
7721   ac_status=$?
7722   grep -v '^ *+' conftest.er1 >conftest.err
7723   rm -f conftest.er1
7724   cat conftest.err >&5
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -z "$ac_c_werror_flag"
7728                          || test ! -s conftest.err'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; } &&
7734          { ac_try='test -s conftest$ac_exeext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_LIBDL 1
7743 _ACEOF
7744  libltdl_cv_func_dlopen="yes"
7745 else
7746   echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lsvld  $LIBS"
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 /* Override any gcc2 internal prototype to avoid an error.  */
7764 #ifdef __cplusplus
7765 extern "C"
7766 #endif
7767 /* We use char because int might match the return type of a gcc2
7768    builtin and then its argument prototype would still apply.  */
7769 char dlopen ();
7770 int
7771 main ()
7772 {
7773 dlopen ();
7774   ;
7775   return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780   (eval $ac_link) 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -z "$ac_c_werror_flag"
7788                          || test ! -s conftest.err'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; } &&
7794          { ac_try='test -s conftest$ac_exeext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   ac_cv_lib_svld_dlopen=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ac_cv_lib_svld_dlopen=no
7806 fi
7807 rm -f conftest.err conftest.$ac_objext \
7808       conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7810 fi
7811 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7812 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7813 if test $ac_cv_lib_svld_dlopen = yes; then
7814
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_LIBDL 1
7817 _ACEOF
7818
7819                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7820 else
7821   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   ac_check_lib_save_LIBS=$LIBS
7827 LIBS="-ldld  $LIBS"
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 /* Override any gcc2 internal prototype to avoid an error.  */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 /* We use char because int might match the return type of a gcc2
7840    builtin and then its argument prototype would still apply.  */
7841 char dld_link ();
7842 int
7843 main ()
7844 {
7845 dld_link ();
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852   (eval $ac_link) 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } &&
7859          { ac_try='test -z "$ac_c_werror_flag"
7860                          || test ! -s conftest.err'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; } &&
7866          { ac_try='test -s conftest$ac_exeext'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   ac_cv_lib_dld_dld_link=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_lib_dld_dld_link=no
7878 fi
7879 rm -f conftest.err conftest.$ac_objext \
7880       conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7885 if test $ac_cv_lib_dld_dld_link = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_DLD 1
7889 _ACEOF
7890
7891                 LIBADD_DL="$LIBADD_DL -ldld"
7892 else
7893   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7894 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7895 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7906 #define _dyld_func_lookup innocuous__dyld_func_lookup
7907
7908 /* System header to define __stub macros and hopefully few prototypes,
7909     which can conflict with char _dyld_func_lookup (); below.
7910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911     <limits.h> exists even on freestanding compilers.  */
7912
7913 #ifdef __STDC__
7914 # include <limits.h>
7915 #else
7916 # include <assert.h>
7917 #endif
7918
7919 #undef _dyld_func_lookup
7920
7921 /* Override any gcc2 internal prototype to avoid an error.  */
7922 #ifdef __cplusplus
7923 extern "C"
7924 {
7925 #endif
7926 /* We use char because int might match the return type of a gcc2
7927    builtin and then its argument prototype would still apply.  */
7928 char _dyld_func_lookup ();
7929 /* The GNU C library defines this for functions which it implements
7930     to always fail with ENOSYS.  Some functions are actually named
7931     something starting with __ and the normal name is an alias.  */
7932 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7933 choke me
7934 #else
7935 char (*f) () = _dyld_func_lookup;
7936 #endif
7937 #ifdef __cplusplus
7938 }
7939 #endif
7940
7941 int
7942 main ()
7943 {
7944 return f != _dyld_func_lookup;
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951   (eval $ac_link) 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag"
7959                          || test ! -s conftest.err'
7960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; } &&
7965          { ac_try='test -s conftest$ac_exeext'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; }; then
7971   ac_cv_func__dyld_func_lookup=yes
7972 else
7973   echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 ac_cv_func__dyld_func_lookup=no
7977 fi
7978 rm -f conftest.err conftest.$ac_objext \
7979       conftest$ac_exeext conftest.$ac_ext
7980 fi
7981 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7982 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7983 if test $ac_cv_func__dyld_func_lookup = yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_DYLD 1
7987 _ACEOF
7988
7989 fi
7990
7991
7992 fi
7993
7994
7995 fi
7996
7997
7998 fi
7999 rm -f conftest.err conftest.$ac_objext \
8000       conftest$ac_exeext conftest.$ac_ext
8001
8002 fi
8003
8004
8005 fi
8006
8007
8008 fi
8009
8010
8011 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8012 then
8013   lt_save_LIBS="$LIBS"
8014   LIBS="$LIBS $LIBADD_DL"
8015
8016 for ac_func in dlerror
8017 do
8018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8019 echo "$as_me:$LINENO: checking for $ac_func" >&5
8020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8021 if eval "test \"\${$as_ac_var+set}\" = set"; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8032 #define $ac_func innocuous_$ac_func
8033
8034 /* System header to define __stub macros and hopefully few prototypes,
8035     which can conflict with char $ac_func (); below.
8036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8037     <limits.h> exists even on freestanding compilers.  */
8038
8039 #ifdef __STDC__
8040 # include <limits.h>
8041 #else
8042 # include <assert.h>
8043 #endif
8044
8045 #undef $ac_func
8046
8047 /* Override any gcc2 internal prototype to avoid an error.  */
8048 #ifdef __cplusplus
8049 extern "C"
8050 {
8051 #endif
8052 /* We use char because int might match the return type of a gcc2
8053    builtin and then its argument prototype would still apply.  */
8054 char $ac_func ();
8055 /* The GNU C library defines this for functions which it implements
8056     to always fail with ENOSYS.  Some functions are actually named
8057     something starting with __ and the normal name is an alias.  */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8059 choke me
8060 #else
8061 char (*f) () = $ac_func;
8062 #endif
8063 #ifdef __cplusplus
8064 }
8065 #endif
8066
8067 int
8068 main ()
8069 {
8070 return f != $ac_func;
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077   (eval $ac_link) 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -z "$ac_c_werror_flag"
8085                          || test ! -s conftest.err'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   eval "$as_ac_var=yes"
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 eval "$as_ac_var=no"
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105       conftest$ac_exeext conftest.$ac_ext
8106 fi
8107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8109 if test `eval echo '${'$as_ac_var'}'` = yes; then
8110   cat >>confdefs.h <<_ACEOF
8111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8112 _ACEOF
8113
8114 fi
8115 done
8116
8117   LIBS="$lt_save_LIBS"
8118 fi
8119 ac_ext=c
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125
8126
8127 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8128 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8129 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   ac_cv_sys_symbol_underscore=no
8133   cat > conftest.$ac_ext <<EOF
8134 void nm_test_func(){}
8135 int main(){nm_test_func;return 0;}
8136 EOF
8137   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138   (eval $ac_compile) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; then
8142     # Now try to grab the symbols.
8143     ac_nlist=conftest.nm
8144     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8145   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && test -s "$ac_nlist"; then
8149       # See whether the symbols have a leading underscore.
8150       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8151         ac_cv_sys_symbol_underscore=yes
8152       else
8153         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8154           :
8155         else
8156           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8157         fi
8158       fi
8159     else
8160       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8161     fi
8162   else
8163     echo "configure: failed program was:" >&5
8164     cat conftest.c >&5
8165   fi
8166   rm -rf conftest*
8167
8168 fi
8169 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8170 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8171
8172
8173 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8174   if test x"$libltdl_cv_func_dlopen" = xyes ||
8175      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8176         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8177 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8178 if test "${libltdl_cv_need_uscore+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   libltdl_cv_need_uscore=unknown
8182           save_LIBS="$LIBS"
8183           LIBS="$LIBS $LIBADD_DL"
8184           if test "$cross_compiling" = yes; then :
8185   libltdl_cv_need_uscore=cross
8186 else
8187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8188   lt_status=$lt_dlunknown
8189   cat > conftest.$ac_ext <<EOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8192
8193 #if HAVE_DLFCN_H
8194 #include <dlfcn.h>
8195 #endif
8196
8197 #include <stdio.h>
8198
8199 #ifdef RTLD_GLOBAL
8200 #  define LT_DLGLOBAL           RTLD_GLOBAL
8201 #else
8202 #  ifdef DL_GLOBAL
8203 #    define LT_DLGLOBAL         DL_GLOBAL
8204 #  else
8205 #    define LT_DLGLOBAL         0
8206 #  endif
8207 #endif
8208
8209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8210    find out it does not work in some platform. */
8211 #ifndef LT_DLLAZY_OR_NOW
8212 #  ifdef RTLD_LAZY
8213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8214 #  else
8215 #    ifdef DL_LAZY
8216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8217 #    else
8218 #      ifdef RTLD_NOW
8219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8220 #      else
8221 #        ifdef DL_NOW
8222 #          define LT_DLLAZY_OR_NOW      DL_NOW
8223 #        else
8224 #          define LT_DLLAZY_OR_NOW      0
8225 #        endif
8226 #      endif
8227 #    endif
8228 #  endif
8229 #endif
8230
8231 #ifdef __cplusplus
8232 extern "C" void exit (int);
8233 #endif
8234
8235 void fnord() { int i=42;}
8236 int main ()
8237 {
8238   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8239   int status = $lt_dlunknown;
8240
8241   if (self)
8242     {
8243       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8244       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8245       /* dlclose (self); */
8246     }
8247
8248     exit (status);
8249 }
8250 EOF
8251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252   (eval $ac_link) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8256     (./conftest; exit; ) 2>/dev/null
8257     lt_status=$?
8258     case x$lt_status in
8259       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8260       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8261       x$lt_unknown|x*)  ;;
8262     esac
8263   else :
8264     # compilation failed
8265
8266   fi
8267 fi
8268 rm -fr conftest*
8269
8270           LIBS="$save_LIBS"
8271
8272 fi
8273 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8274 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8275   fi
8276 fi
8277
8278 if test x"$libltdl_cv_need_uscore" = xyes; then
8279
8280 cat >>confdefs.h <<\_ACEOF
8281 #define NEED_USCORE 1
8282 _ACEOF
8283
8284 fi
8285
8286
8287 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8288 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8289 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   # PORTME does your system automatically load deplibs for dlopen?
8293   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8294   # For now, we just catch OSes we know something about -- in the
8295   # future, we'll try test this programmatically.
8296   libltdl_cv_sys_dlopen_deplibs=unknown
8297   case "$host_os" in
8298   aix3*|aix4.1.*|aix4.2.*)
8299     # Unknown whether this is true for these versions of AIX, but
8300     # we want this `case' here to explicitly catch those versions.
8301     libltdl_cv_sys_dlopen_deplibs=unknown
8302     ;;
8303   aix[45]*)
8304     libltdl_cv_sys_dlopen_deplibs=yes
8305     ;;
8306   darwin*)
8307     # Assuming the user has installed a libdl from somewhere, this is true
8308     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8309     libltdl_cv_sys_dlopen_deplibs=yes
8310     ;;
8311   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8312     # GNU and its variants, using gnu ld.so (Glibc)
8313     libltdl_cv_sys_dlopen_deplibs=yes
8314     ;;
8315   hpux10*|hpux11*)
8316     libltdl_cv_sys_dlopen_deplibs=yes
8317     ;;
8318   irix[12345]*|irix6.[01]*)
8319     # Catch all versions of IRIX before 6.2, and indicate that we don't
8320     # know how it worked for any of those versions.
8321     libltdl_cv_sys_dlopen_deplibs=unknown
8322     ;;
8323   irix*)
8324     # The case above catches anything before 6.2, and it's known that
8325     # at 6.2 and later dlopen does load deplibs.
8326     libltdl_cv_sys_dlopen_deplibs=yes
8327     ;;
8328   netbsd*)
8329     libltdl_cv_sys_dlopen_deplibs=yes
8330     ;;
8331   openbsd*)
8332     libltdl_cv_sys_dlopen_deplibs=yes
8333     ;;
8334   osf[1234]*)
8335     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8336     # it did *not* use an RPATH in a shared library to find objects the
8337     # library depends on, so we explictly say `no'.
8338     libltdl_cv_sys_dlopen_deplibs=no
8339     ;;
8340   osf5.0|osf5.0a|osf5.1)
8341     # dlopen *does* load deplibs and with the right loader patch applied
8342     # it even uses RPATH in a shared library to search for shared objects
8343     # that the library depends on, but there's no easy way to know if that
8344     # patch is installed.  Since this is the case, all we can really
8345     # say is unknown -- it depends on the patch being installed.  If
8346     # it is, this changes to `yes'.  Without it, it would be `no'.
8347     libltdl_cv_sys_dlopen_deplibs=unknown
8348     ;;
8349   osf*)
8350     # the two cases above should catch all versions of osf <= 5.1.  Read
8351     # the comments above for what we know about them.
8352     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8353     # is used to find them so we can finally say `yes'.
8354     libltdl_cv_sys_dlopen_deplibs=yes
8355     ;;
8356   solaris*)
8357     libltdl_cv_sys_dlopen_deplibs=yes
8358     ;;
8359   esac
8360
8361 fi
8362 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8363 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8364 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8365
8366 cat >>confdefs.h <<\_ACEOF
8367 #define LTDL_DLOPEN_DEPLIBS 1
8368 _ACEOF
8369
8370 fi
8371
8372
8373 for ac_header in argz.h
8374 do
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377   echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 fi
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 else
8385   # Is the header compilable?
8386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 $ac_includes_default
8395 #include <$ac_header>
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399   (eval $ac_compile) 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag"
8407                          || test ! -s conftest.err'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest.$ac_objext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_header_compiler=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_header_compiler=no
8425 fi
8426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8429
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 #include <$ac_header>
8440 _ACEOF
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } >/dev/null; then
8449   if test -s conftest.err; then
8450     ac_cpp_err=$ac_c_preproc_warn_flag
8451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8452   else
8453     ac_cpp_err=
8454   fi
8455 else
8456   ac_cpp_err=yes
8457 fi
8458 if test -z "$ac_cpp_err"; then
8459   ac_header_preproc=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464   ac_header_preproc=no
8465 fi
8466 rm -f conftest.err conftest.$ac_ext
8467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468 echo "${ECHO_T}$ac_header_preproc" >&6
8469
8470 # So?  What about this header?
8471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8472   yes:no: )
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477     ac_header_preproc=yes
8478     ;;
8479   no:yes:* )
8480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8492     (
8493       cat <<\_ASBOX
8494 ## ----------------------------------- ##
8495 ## Report this to llvmbugs@cs.uiuc.edu ##
8496 ## ----------------------------------- ##
8497 _ASBOX
8498     ) |
8499       sed "s/^/$as_me: WARNING:     /" >&2
8500     ;;
8501 esac
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   eval "$as_ac_Header=\$ac_header_preproc"
8508 fi
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511
8512 fi
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514   cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 _ACEOF
8517
8518 fi
8519
8520 done
8521
8522
8523 echo "$as_me:$LINENO: checking for error_t" >&5
8524 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8525 if test "${ac_cv_type_error_t+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534 #if HAVE_ARGZ_H
8535 #  include <argz.h>
8536 #endif
8537
8538 int
8539 main ()
8540 {
8541 if ((error_t *) 0)
8542   return 0;
8543 if (sizeof (error_t))
8544   return 0;
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551   (eval $ac_compile) 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -z "$ac_c_werror_flag"
8559                          || test ! -s conftest.err'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; } &&
8565          { ac_try='test -s conftest.$ac_objext'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; }; then
8571   ac_cv_type_error_t=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 ac_cv_type_error_t=no
8577 fi
8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8581 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8582 if test $ac_cv_type_error_t = yes; then
8583
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_ERROR_T 1
8586 _ACEOF
8587
8588
8589 else
8590
8591 cat >>confdefs.h <<\_ACEOF
8592 #define error_t int
8593 _ACEOF
8594
8595 fi
8596
8597
8598
8599
8600
8601
8602
8603 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8604 do
8605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8606 echo "$as_me:$LINENO: checking for $ac_func" >&5
8607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8608 if eval "test \"\${$as_ac_var+set}\" = set"; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8619 #define $ac_func innocuous_$ac_func
8620
8621 /* System header to define __stub macros and hopefully few prototypes,
8622     which can conflict with char $ac_func (); below.
8623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624     <limits.h> exists even on freestanding compilers.  */
8625
8626 #ifdef __STDC__
8627 # include <limits.h>
8628 #else
8629 # include <assert.h>
8630 #endif
8631
8632 #undef $ac_func
8633
8634 /* Override any gcc2 internal prototype to avoid an error.  */
8635 #ifdef __cplusplus
8636 extern "C"
8637 {
8638 #endif
8639 /* We use char because int might match the return type of a gcc2
8640    builtin and then its argument prototype would still apply.  */
8641 char $ac_func ();
8642 /* The GNU C library defines this for functions which it implements
8643     to always fail with ENOSYS.  Some functions are actually named
8644     something starting with __ and the normal name is an alias.  */
8645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8646 choke me
8647 #else
8648 char (*f) () = $ac_func;
8649 #endif
8650 #ifdef __cplusplus
8651 }
8652 #endif
8653
8654 int
8655 main ()
8656 {
8657 return f != $ac_func;
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -z "$ac_c_werror_flag"
8672                          || test ! -s conftest.err'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; } &&
8678          { ac_try='test -s conftest$ac_exeext'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; }; then
8684   eval "$as_ac_var=yes"
8685 else
8686   echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 eval "$as_ac_var=no"
8690 fi
8691 rm -f conftest.err conftest.$ac_objext \
8692       conftest$ac_exeext conftest.$ac_ext
8693 fi
8694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8696 if test `eval echo '${'$as_ac_var'}'` = yes; then
8697   cat >>confdefs.h <<_ACEOF
8698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8699 _ACEOF
8700
8701 fi
8702 done
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8732                   stdio.h unistd.h
8733 do
8734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736   echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 fi
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743 else
8744   # Is the header compilable?
8745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 $ac_includes_default
8754 #include <$ac_header>
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758   (eval $ac_compile) 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -z "$ac_c_werror_flag"
8766                          || test ! -s conftest.err'
8767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768   (eval $ac_try) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; } &&
8772          { ac_try='test -s conftest.$ac_objext'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   ac_header_compiler=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_header_compiler=no
8784 fi
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787 echo "${ECHO_T}$ac_header_compiler" >&6
8788
8789 # Is the header present?
8790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798 #include <$ac_header>
8799 _ACEOF
8800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } >/dev/null; then
8808   if test -s conftest.err; then
8809     ac_cpp_err=$ac_c_preproc_warn_flag
8810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8811   else
8812     ac_cpp_err=
8813   fi
8814 else
8815   ac_cpp_err=yes
8816 fi
8817 if test -z "$ac_cpp_err"; then
8818   ac_header_preproc=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823   ac_header_preproc=no
8824 fi
8825 rm -f conftest.err conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8827 echo "${ECHO_T}$ac_header_preproc" >&6
8828
8829 # So?  What about this header?
8830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831   yes:no: )
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8836     ac_header_preproc=yes
8837     ;;
8838   no:yes:* )
8839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8851     (
8852       cat <<\_ASBOX
8853 ## ----------------------------------- ##
8854 ## Report this to llvmbugs@cs.uiuc.edu ##
8855 ## ----------------------------------- ##
8856 _ASBOX
8857     ) |
8858       sed "s/^/$as_me: WARNING:     /" >&2
8859     ;;
8860 esac
8861 echo "$as_me:$LINENO: checking for $ac_header" >&5
8862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   eval "$as_ac_Header=\$ac_header_preproc"
8867 fi
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870
8871 fi
8872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873   cat >>confdefs.h <<_ACEOF
8874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875 _ACEOF
8876
8877 fi
8878
8879 done
8880
8881
8882
8883
8884
8885 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8886 do
8887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889   echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 fi
8894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8896 else
8897   # Is the header compilable?
8898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h.  */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h.  */
8906 $ac_includes_default
8907 #include <$ac_header>
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag"
8919                          || test ! -s conftest.err'
8920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921   (eval $ac_try) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); }; } &&
8925          { ac_try='test -s conftest.$ac_objext'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   ac_header_compiler=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_header_compiler=no
8937 fi
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8941
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 #include <$ac_header>
8952 _ACEOF
8953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } >/dev/null; then
8961   if test -s conftest.err; then
8962     ac_cpp_err=$ac_c_preproc_warn_flag
8963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8964   else
8965     ac_cpp_err=
8966   fi
8967 else
8968   ac_cpp_err=yes
8969 fi
8970 if test -z "$ac_cpp_err"; then
8971   ac_header_preproc=yes
8972 else
8973   echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8975
8976   ac_header_preproc=no
8977 fi
8978 rm -f conftest.err conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 echo "${ECHO_T}$ac_header_preproc" >&6
8981
8982 # So?  What about this header?
8983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8984   yes:no: )
8985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989     ac_header_preproc=yes
8990     ;;
8991   no:yes:* )
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9004     (
9005       cat <<\_ASBOX
9006 ## ----------------------------------- ##
9007 ## Report this to llvmbugs@cs.uiuc.edu ##
9008 ## ----------------------------------- ##
9009 _ASBOX
9010     ) |
9011       sed "s/^/$as_me: WARNING:     /" >&2
9012     ;;
9013 esac
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   eval "$as_ac_Header=\$ac_header_preproc"
9020 fi
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023
9024 fi
9025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9026   cat >>confdefs.h <<_ACEOF
9027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9028 _ACEOF
9029
9030 fi
9031
9032 done
9033
9034
9035
9036 for ac_header in string.h strings.h
9037 do
9038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040   echo "$as_me:$LINENO: checking for $ac_header" >&5
9041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 fi
9045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9047 else
9048   # Is the header compilable?
9049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 $ac_includes_default
9058 #include <$ac_header>
9059 _ACEOF
9060 rm -f conftest.$ac_objext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9062   (eval $ac_compile) 2>conftest.er1
9063   ac_status=$?
9064   grep -v '^ *+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } &&
9069          { ac_try='test -z "$ac_c_werror_flag"
9070                          || test ! -s conftest.err'
9071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072   (eval $ac_try) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; } &&
9076          { ac_try='test -s conftest.$ac_objext'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_header_compiler=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_header_compiler=no
9088 fi
9089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6
9092
9093 # Is the header present?
9094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 #include <$ac_header>
9103 _ACEOF
9104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9106   ac_status=$?
9107   grep -v '^ *+' conftest.er1 >conftest.err
9108   rm -f conftest.er1
9109   cat conftest.err >&5
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } >/dev/null; then
9112   if test -s conftest.err; then
9113     ac_cpp_err=$ac_c_preproc_warn_flag
9114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9115   else
9116     ac_cpp_err=
9117   fi
9118 else
9119   ac_cpp_err=yes
9120 fi
9121 if test -z "$ac_cpp_err"; then
9122   ac_header_preproc=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127   ac_header_preproc=no
9128 fi
9129 rm -f conftest.err conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9131 echo "${ECHO_T}$ac_header_preproc" >&6
9132
9133 # So?  What about this header?
9134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9135   yes:no: )
9136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9140     ac_header_preproc=yes
9141     ;;
9142   no:yes:* )
9143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9155     (
9156       cat <<\_ASBOX
9157 ## ----------------------------------- ##
9158 ## Report this to llvmbugs@cs.uiuc.edu ##
9159 ## ----------------------------------- ##
9160 _ASBOX
9161     ) |
9162       sed "s/^/$as_me: WARNING:     /" >&2
9163     ;;
9164 esac
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   eval "$as_ac_Header=\$ac_header_preproc"
9171 fi
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174
9175 fi
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177   cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179 _ACEOF
9180  break
9181 fi
9182
9183 done
9184
9185
9186
9187
9188 for ac_func in strchr index
9189 do
9190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9191 echo "$as_me:$LINENO: checking for $ac_func" >&5
9192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_var+set}\" = set"; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9204 #define $ac_func innocuous_$ac_func
9205
9206 /* System header to define __stub macros and hopefully few prototypes,
9207     which can conflict with char $ac_func (); below.
9208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209     <limits.h> exists even on freestanding compilers.  */
9210
9211 #ifdef __STDC__
9212 # include <limits.h>
9213 #else
9214 # include <assert.h>
9215 #endif
9216
9217 #undef $ac_func
9218
9219 /* Override any gcc2 internal prototype to avoid an error.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 {
9223 #endif
9224 /* We use char because int might match the return type of a gcc2
9225    builtin and then its argument prototype would still apply.  */
9226 char $ac_func ();
9227 /* The GNU C library defines this for functions which it implements
9228     to always fail with ENOSYS.  Some functions are actually named
9229     something starting with __ and the normal name is an alias.  */
9230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9231 choke me
9232 #else
9233 char (*f) () = $ac_func;
9234 #endif
9235 #ifdef __cplusplus
9236 }
9237 #endif
9238
9239 int
9240 main ()
9241 {
9242 return f != $ac_func;
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249   (eval $ac_link) 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -z "$ac_c_werror_flag"
9257                          || test ! -s conftest.err'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; } &&
9263          { ac_try='test -s conftest$ac_exeext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   eval "$as_ac_var=yes"
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 eval "$as_ac_var=no"
9275 fi
9276 rm -f conftest.err conftest.$ac_objext \
9277       conftest$ac_exeext conftest.$ac_ext
9278 fi
9279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9281 if test `eval echo '${'$as_ac_var'}'` = yes; then
9282   cat >>confdefs.h <<_ACEOF
9283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9284 _ACEOF
9285  break
9286 fi
9287 done
9288
9289
9290
9291 for ac_func in strrchr rindex
9292 do
9293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294 echo "$as_me:$LINENO: checking for $ac_func" >&5
9295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_var+set}\" = set"; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9307 #define $ac_func innocuous_$ac_func
9308
9309 /* System header to define __stub macros and hopefully few prototypes,
9310     which can conflict with char $ac_func (); below.
9311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312     <limits.h> exists even on freestanding compilers.  */
9313
9314 #ifdef __STDC__
9315 # include <limits.h>
9316 #else
9317 # include <assert.h>
9318 #endif
9319
9320 #undef $ac_func
9321
9322 /* Override any gcc2 internal prototype to avoid an error.  */
9323 #ifdef __cplusplus
9324 extern "C"
9325 {
9326 #endif
9327 /* We use char because int might match the return type of a gcc2
9328    builtin and then its argument prototype would still apply.  */
9329 char $ac_func ();
9330 /* The GNU C library defines this for functions which it implements
9331     to always fail with ENOSYS.  Some functions are actually named
9332     something starting with __ and the normal name is an alias.  */
9333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9334 choke me
9335 #else
9336 char (*f) () = $ac_func;
9337 #endif
9338 #ifdef __cplusplus
9339 }
9340 #endif
9341
9342 int
9343 main ()
9344 {
9345 return f != $ac_func;
9346   ;
9347   return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352   (eval $ac_link) 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -z "$ac_c_werror_flag"
9360                          || test ! -s conftest.err'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; } &&
9366          { ac_try='test -s conftest$ac_exeext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   eval "$as_ac_var=yes"
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 eval "$as_ac_var=no"
9378 fi
9379 rm -f conftest.err conftest.$ac_objext \
9380       conftest$ac_exeext conftest.$ac_ext
9381 fi
9382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9384 if test `eval echo '${'$as_ac_var'}'` = yes; then
9385   cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9387 _ACEOF
9388  break
9389 fi
9390 done
9391
9392
9393
9394 for ac_func in memcpy bcopy
9395 do
9396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9397 echo "$as_me:$LINENO: checking for $ac_func" >&5
9398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9399 if eval "test \"\${$as_ac_var+set}\" = set"; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9410 #define $ac_func innocuous_$ac_func
9411
9412 /* System header to define __stub macros and hopefully few prototypes,
9413     which can conflict with char $ac_func (); below.
9414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415     <limits.h> exists even on freestanding compilers.  */
9416
9417 #ifdef __STDC__
9418 # include <limits.h>
9419 #else
9420 # include <assert.h>
9421 #endif
9422
9423 #undef $ac_func
9424
9425 /* Override any gcc2 internal prototype to avoid an error.  */
9426 #ifdef __cplusplus
9427 extern "C"
9428 {
9429 #endif
9430 /* We use char because int might match the return type of a gcc2
9431    builtin and then its argument prototype would still apply.  */
9432 char $ac_func ();
9433 /* The GNU C library defines this for functions which it implements
9434     to always fail with ENOSYS.  Some functions are actually named
9435     something starting with __ and the normal name is an alias.  */
9436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437 choke me
9438 #else
9439 char (*f) () = $ac_func;
9440 #endif
9441 #ifdef __cplusplus
9442 }
9443 #endif
9444
9445 int
9446 main ()
9447 {
9448 return f != $ac_func;
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455   (eval $ac_link) 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -z "$ac_c_werror_flag"
9463                          || test ! -s conftest.err'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; } &&
9469          { ac_try='test -s conftest$ac_exeext'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   eval "$as_ac_var=yes"
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480 eval "$as_ac_var=no"
9481 fi
9482 rm -f conftest.err conftest.$ac_objext \
9483       conftest$ac_exeext conftest.$ac_ext
9484 fi
9485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9487 if test `eval echo '${'$as_ac_var'}'` = yes; then
9488   cat >>confdefs.h <<_ACEOF
9489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9490 _ACEOF
9491  break
9492 fi
9493 done
9494
9495
9496
9497 for ac_func in memmove strcmp
9498 do
9499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9500 echo "$as_me:$LINENO: checking for $ac_func" >&5
9501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9502 if eval "test \"\${$as_ac_var+set}\" = set"; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9513 #define $ac_func innocuous_$ac_func
9514
9515 /* System header to define __stub macros and hopefully few prototypes,
9516     which can conflict with char $ac_func (); below.
9517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518     <limits.h> exists even on freestanding compilers.  */
9519
9520 #ifdef __STDC__
9521 # include <limits.h>
9522 #else
9523 # include <assert.h>
9524 #endif
9525
9526 #undef $ac_func
9527
9528 /* Override any gcc2 internal prototype to avoid an error.  */
9529 #ifdef __cplusplus
9530 extern "C"
9531 {
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534    builtin and then its argument prototype would still apply.  */
9535 char $ac_func ();
9536 /* The GNU C library defines this for functions which it implements
9537     to always fail with ENOSYS.  Some functions are actually named
9538     something starting with __ and the normal name is an alias.  */
9539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9540 choke me
9541 #else
9542 char (*f) () = $ac_func;
9543 #endif
9544 #ifdef __cplusplus
9545 }
9546 #endif
9547
9548 int
9549 main ()
9550 {
9551 return f != $ac_func;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -z "$ac_c_werror_flag"
9566                          || test ! -s conftest.err'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; } &&
9572          { ac_try='test -s conftest$ac_exeext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   eval "$as_ac_var=yes"
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 eval "$as_ac_var=no"
9584 fi
9585 rm -f conftest.err conftest.$ac_objext \
9586       conftest$ac_exeext conftest.$ac_ext
9587 fi
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9590 if test `eval echo '${'$as_ac_var'}'` = yes; then
9591   cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9593 _ACEOF
9594
9595 fi
9596 done
9597
9598
9599
9600
9601 for ac_func in closedir opendir readdir
9602 do
9603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_var+set}\" = set"; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9617 #define $ac_func innocuous_$ac_func
9618
9619 /* System header to define __stub macros and hopefully few prototypes,
9620     which can conflict with char $ac_func (); below.
9621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622     <limits.h> exists even on freestanding compilers.  */
9623
9624 #ifdef __STDC__
9625 # include <limits.h>
9626 #else
9627 # include <assert.h>
9628 #endif
9629
9630 #undef $ac_func
9631
9632 /* Override any gcc2 internal prototype to avoid an error.  */
9633 #ifdef __cplusplus
9634 extern "C"
9635 {
9636 #endif
9637 /* We use char because int might match the return type of a gcc2
9638    builtin and then its argument prototype would still apply.  */
9639 char $ac_func ();
9640 /* The GNU C library defines this for functions which it implements
9641     to always fail with ENOSYS.  Some functions are actually named
9642     something starting with __ and the normal name is an alias.  */
9643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9644 choke me
9645 #else
9646 char (*f) () = $ac_func;
9647 #endif
9648 #ifdef __cplusplus
9649 }
9650 #endif
9651
9652 int
9653 main ()
9654 {
9655 return f != $ac_func;
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662   (eval $ac_link) 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -z "$ac_c_werror_flag"
9670                          || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   eval "$as_ac_var=yes"
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 eval "$as_ac_var=no"
9688 fi
9689 rm -f conftest.err conftest.$ac_objext \
9690       conftest$ac_exeext conftest.$ac_ext
9691 fi
9692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9694 if test `eval echo '${'$as_ac_var'}'` = yes; then
9695   cat >>confdefs.h <<_ACEOF
9696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697 _ACEOF
9698
9699 fi
9700 done
9701
9702
9703 # Check whether --enable-shared or --disable-shared was given.
9704 if test "${enable_shared+set}" = set; then
9705   enableval="$enable_shared"
9706   p=${PACKAGE-default}
9707     case $enableval in
9708     yes) enable_shared=yes ;;
9709     no) enable_shared=no ;;
9710     *)
9711       enable_shared=no
9712       # Look at the argument we got.  We use all the common list separators.
9713       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9714       for pkg in $enableval; do
9715         IFS="$lt_save_ifs"
9716         if test "X$pkg" = "X$p"; then
9717           enable_shared=yes
9718         fi
9719       done
9720       IFS="$lt_save_ifs"
9721       ;;
9722     esac
9723 else
9724   enable_shared=yes
9725 fi;
9726
9727 # Check whether --enable-static or --disable-static was given.
9728 if test "${enable_static+set}" = set; then
9729   enableval="$enable_static"
9730   p=${PACKAGE-default}
9731     case $enableval in
9732     yes) enable_static=yes ;;
9733     no) enable_static=no ;;
9734     *)
9735      enable_static=no
9736       # Look at the argument we got.  We use all the common list separators.
9737       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9738       for pkg in $enableval; do
9739         IFS="$lt_save_ifs"
9740         if test "X$pkg" = "X$p"; then
9741           enable_static=yes
9742         fi
9743       done
9744       IFS="$lt_save_ifs"
9745       ;;
9746     esac
9747 else
9748   enable_static=yes
9749 fi;
9750
9751 # Check whether --enable-fast-install or --disable-fast-install was given.
9752 if test "${enable_fast_install+set}" = set; then
9753   enableval="$enable_fast_install"
9754   p=${PACKAGE-default}
9755     case $enableval in
9756     yes) enable_fast_install=yes ;;
9757     no) enable_fast_install=no ;;
9758     *)
9759       enable_fast_install=no
9760       # Look at the argument we got.  We use all the common list separators.
9761       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762       for pkg in $enableval; do
9763         IFS="$lt_save_ifs"
9764         if test "X$pkg" = "X$p"; then
9765           enable_fast_install=yes
9766         fi
9767       done
9768       IFS="$lt_save_ifs"
9769       ;;
9770     esac
9771 else
9772   enable_fast_install=yes
9773 fi;
9774
9775 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9776 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9777 if test "${lt_cv_path_SED+set}" = set; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780   # Loop through the user's path and test for sed and gsed.
9781 # Then use that list of sed's as ones to test for truncation.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9784 do
9785   IFS=$as_save_IFS
9786   test -z "$as_dir" && as_dir=.
9787   for lt_ac_prog in sed gsed; do
9788     for ac_exec_ext in '' $ac_executable_extensions; do
9789       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9790         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9791       fi
9792     done
9793   done
9794 done
9795 lt_ac_max=0
9796 lt_ac_count=0
9797 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9798 # along with /bin/sed that truncates output.
9799 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9800   test ! -f $lt_ac_sed && break
9801   cat /dev/null > conftest.in
9802   lt_ac_count=0
9803   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9804   # Check for GNU sed and select it if it is found.
9805   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9806     lt_cv_path_SED=$lt_ac_sed
9807     break
9808   fi
9809   while true; do
9810     cat conftest.in conftest.in >conftest.tmp
9811     mv conftest.tmp conftest.in
9812     cp conftest.in conftest.nl
9813     echo >>conftest.nl
9814     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9815     cmp -s conftest.out conftest.nl || break
9816     # 10000 chars as input seems more than enough
9817     test $lt_ac_count -gt 10 && break
9818     lt_ac_count=`expr $lt_ac_count + 1`
9819     if test $lt_ac_count -gt $lt_ac_max; then
9820       lt_ac_max=$lt_ac_count
9821       lt_cv_path_SED=$lt_ac_sed
9822     fi
9823   done
9824 done
9825
9826 fi
9827
9828 SED=$lt_cv_path_SED
9829 echo "$as_me:$LINENO: result: $SED" >&5
9830 echo "${ECHO_T}$SED" >&6
9831
9832
9833 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9834 if test "${with_gnu_ld+set}" = set; then
9835   withval="$with_gnu_ld"
9836   test "$withval" = no || with_gnu_ld=yes
9837 else
9838   with_gnu_ld=no
9839 fi;
9840 ac_prog=ld
9841 if test "$GCC" = yes; then
9842   # Check if gcc -print-prog-name=ld gives a path.
9843   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9844 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9845   case $host in
9846   *-*-mingw*)
9847     # gcc leaves a trailing carriage return which upsets mingw
9848     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9849   *)
9850     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9851   esac
9852   case $ac_prog in
9853     # Accept absolute paths.
9854     [\\/]* | ?:[\\/]*)
9855       re_direlt='/[^/][^/]*/\.\./'
9856       # Canonicalize the pathname of ld
9857       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9858       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9859         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9860       done
9861       test -z "$LD" && LD="$ac_prog"
9862       ;;
9863   "")
9864     # If it fails, then pretend we aren't using GCC.
9865     ac_prog=ld
9866     ;;
9867   *)
9868     # If it is relative, then search for the first ld in PATH.
9869     with_gnu_ld=unknown
9870     ;;
9871   esac
9872 elif test "$with_gnu_ld" = yes; then
9873   echo "$as_me:$LINENO: checking for GNU ld" >&5
9874 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9875 else
9876   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9877 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9878 fi
9879 if test "${lt_cv_path_LD+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882   if test -z "$LD"; then
9883   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9884   for ac_dir in $PATH; do
9885     IFS="$lt_save_ifs"
9886     test -z "$ac_dir" && ac_dir=.
9887     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9888       lt_cv_path_LD="$ac_dir/$ac_prog"
9889       # Check to see if the program is GNU ld.  I'd rather use --version,
9890       # but apparently some GNU ld's only accept -v.
9891       # Break only if it was the GNU/non-GNU ld that we prefer.
9892       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9893       *GNU* | *'with BFD'*)
9894         test "$with_gnu_ld" != no && break
9895         ;;
9896       *)
9897         test "$with_gnu_ld" != yes && break
9898         ;;
9899       esac
9900     fi
9901   done
9902   IFS="$lt_save_ifs"
9903 else
9904   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9905 fi
9906 fi
9907
9908 LD="$lt_cv_path_LD"
9909 if test -n "$LD"; then
9910   echo "$as_me:$LINENO: result: $LD" >&5
9911 echo "${ECHO_T}$LD" >&6
9912 else
9913   echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6
9915 fi
9916 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9917 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9918    { (exit 1); exit 1; }; }
9919 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9920 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9921 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9925 case `$LD -v 2>&1 </dev/null` in
9926 *GNU* | *'with BFD'*)
9927   lt_cv_prog_gnu_ld=yes
9928   ;;
9929 *)
9930   lt_cv_prog_gnu_ld=no
9931   ;;
9932 esac
9933 fi
9934 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9935 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9936 with_gnu_ld=$lt_cv_prog_gnu_ld
9937
9938
9939 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9940 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9941 if test "${lt_cv_ld_reload_flag+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   lt_cv_ld_reload_flag='-r'
9945 fi
9946 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9947 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9948 reload_flag=$lt_cv_ld_reload_flag
9949 case $reload_flag in
9950 "" | " "*) ;;
9951 *) reload_flag=" $reload_flag" ;;
9952 esac
9953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9954 case $host_os in
9955   darwin*)
9956     if test "$GCC" = yes; then
9957       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9958     else
9959       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9960     fi
9961     ;;
9962 esac
9963
9964 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9965 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9966 if test "${lt_cv_deplibs_check_method+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   lt_cv_file_magic_cmd='$MAGIC_CMD'
9970 lt_cv_file_magic_test_file=
9971 lt_cv_deplibs_check_method='unknown'
9972 # Need to set the preceding variable on all platforms that support
9973 # interlibrary dependencies.
9974 # 'none' -- dependencies not supported.
9975 # `unknown' -- same as none, but documents that we really don't know.
9976 # 'pass_all' -- all dependencies passed with no checks.
9977 # 'test_compile' -- check by making test program.
9978 # 'file_magic [[regex]]' -- check by looking for files in library path
9979 # which responds to the $file_magic_cmd with a given extended regex.
9980 # If you have `file' or equivalent on your system and you're not sure
9981 # whether `pass_all' will *always* work, you probably want this one.
9982
9983 case $host_os in
9984 aix4* | aix5*)
9985   lt_cv_deplibs_check_method=pass_all
9986   ;;
9987
9988 beos*)
9989   lt_cv_deplibs_check_method=pass_all
9990   ;;
9991
9992 bsdi[45]*)
9993   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9994   lt_cv_file_magic_cmd='/usr/bin/file -L'
9995   lt_cv_file_magic_test_file=/shlib/libc.so
9996   ;;
9997
9998 cygwin*)
9999   # func_win32_libid is a shell function defined in ltmain.sh
10000   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10001   lt_cv_file_magic_cmd='func_win32_libid'
10002   ;;
10003
10004 mingw* | pw32*)
10005   # Base MSYS/MinGW do not provide the 'file' command needed by
10006   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10007   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10008   lt_cv_file_magic_cmd='$OBJDUMP -f'
10009   ;;
10010
10011 darwin* | rhapsody*)
10012   lt_cv_deplibs_check_method=pass_all
10013   ;;
10014
10015 freebsd* | kfreebsd*-gnu)
10016   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10017     case $host_cpu in
10018     i*86 )
10019       # Not sure whether the presence of OpenBSD here was a mistake.
10020       # Let's accept both of them until this is cleared up.
10021       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10022       lt_cv_file_magic_cmd=/usr/bin/file
10023       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10024       ;;
10025     esac
10026   else
10027     lt_cv_deplibs_check_method=pass_all
10028   fi
10029   ;;
10030
10031 gnu*)
10032   lt_cv_deplibs_check_method=pass_all
10033   ;;
10034
10035 hpux10.20* | hpux11*)
10036   lt_cv_file_magic_cmd=/usr/bin/file
10037   case "$host_cpu" in
10038   ia64*)
10039     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10040     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10041     ;;
10042   hppa*64*)
10043     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]'
10044     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10045     ;;
10046   *)
10047     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10048     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10049     ;;
10050   esac
10051   ;;
10052
10053 irix5* | irix6* | nonstopux*)
10054   case $LD in
10055   *-32|*"-32 ") libmagic=32-bit;;
10056   *-n32|*"-n32 ") libmagic=N32;;
10057   *-64|*"-64 ") libmagic=64-bit;;
10058   *) libmagic=never-match;;
10059   esac
10060   lt_cv_deplibs_check_method=pass_all
10061   ;;
10062
10063 # This must be Linux ELF.
10064 linux*)
10065   lt_cv_deplibs_check_method=pass_all
10066   ;;
10067
10068 netbsd*)
10069   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10071   else
10072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10073   fi
10074   ;;
10075
10076 newos6*)
10077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10078   lt_cv_file_magic_cmd=/usr/bin/file
10079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10080   ;;
10081
10082 nto-qnx*)
10083   lt_cv_deplibs_check_method=unknown
10084   ;;
10085
10086 openbsd*)
10087   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10089   else
10090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10091   fi
10092   ;;
10093
10094 osf3* | osf4* | osf5*)
10095   lt_cv_deplibs_check_method=pass_all
10096   ;;
10097
10098 sco3.2v5*)
10099   lt_cv_deplibs_check_method=pass_all
10100   ;;
10101
10102 solaris*)
10103   lt_cv_deplibs_check_method=pass_all
10104   ;;
10105
10106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10107   case $host_vendor in
10108   motorola)
10109     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]'
10110     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10111     ;;
10112   ncr)
10113     lt_cv_deplibs_check_method=pass_all
10114     ;;
10115   sequent)
10116     lt_cv_file_magic_cmd='/bin/file'
10117     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10118     ;;
10119   sni)
10120     lt_cv_file_magic_cmd='/bin/file'
10121     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10122     lt_cv_file_magic_test_file=/lib/libc.so
10123     ;;
10124   siemens)
10125     lt_cv_deplibs_check_method=pass_all
10126     ;;
10127   esac
10128   ;;
10129
10130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10131   lt_cv_deplibs_check_method=pass_all
10132   ;;
10133 esac
10134
10135 fi
10136 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10137 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10138 file_magic_cmd=$lt_cv_file_magic_cmd
10139 deplibs_check_method=$lt_cv_deplibs_check_method
10140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10141
10142
10143
10144 # If no C compiler was specified, use CC.
10145 LTCC=${LTCC-"$CC"}
10146
10147 # Allow CC to be a program name with arguments.
10148 compiler=$CC
10149
10150 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10151 if test "${enable_libtool_lock+set}" = set; then
10152   enableval="$enable_libtool_lock"
10153
10154 fi;
10155 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10156
10157 # Some flags need to be propagated to the compiler or linker for good
10158 # libtool support.
10159 case $host in
10160 ia64-*-hpux*)
10161   # Find out which ABI we are using.
10162   echo 'int i;' > conftest.$ac_ext
10163   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164   (eval $ac_compile) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; then
10168     case `/usr/bin/file conftest.$ac_objext` in
10169     *ELF-32*)
10170       HPUX_IA64_MODE="32"
10171       ;;
10172     *ELF-64*)
10173       HPUX_IA64_MODE="64"
10174       ;;
10175     esac
10176   fi
10177   rm -rf conftest*
10178   ;;
10179 *-*-irix6*)
10180   # Find out which ABI we are using.
10181   echo '#line 10181 "configure"' > conftest.$ac_ext
10182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183   (eval $ac_compile) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; then
10187    if test "$lt_cv_prog_gnu_ld" = yes; then
10188     case `/usr/bin/file conftest.$ac_objext` in
10189     *32-bit*)
10190       LD="${LD-ld} -melf32bsmip"
10191       ;;
10192     *N32*)
10193       LD="${LD-ld} -melf32bmipn32"
10194       ;;
10195     *64-bit*)
10196       LD="${LD-ld} -melf64bmip"
10197       ;;
10198     esac
10199    else
10200     case `/usr/bin/file conftest.$ac_objext` in
10201     *32-bit*)
10202       LD="${LD-ld} -32"
10203       ;;
10204     *N32*)
10205       LD="${LD-ld} -n32"
10206       ;;
10207     *64-bit*)
10208       LD="${LD-ld} -64"
10209       ;;
10210     esac
10211    fi
10212   fi
10213   rm -rf conftest*
10214   ;;
10215
10216 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10217   # Find out which ABI we are using.
10218   echo 'int i;' > conftest.$ac_ext
10219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220   (eval $ac_compile) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; then
10224     case "`/usr/bin/file conftest.o`" in
10225     *32-bit*)
10226       case $host in
10227         x86_64-*linux*)
10228           LD="${LD-ld} -m elf_i386"
10229           ;;
10230         ppc64-*linux*|powerpc64-*linux*)
10231           LD="${LD-ld} -m elf32ppclinux"
10232           ;;
10233         s390x-*linux*)
10234           LD="${LD-ld} -m elf_s390"
10235           ;;
10236         sparc64-*linux*)
10237           LD="${LD-ld} -m elf32_sparc"
10238           ;;
10239       esac
10240       ;;
10241     *64-bit*)
10242       case $host in
10243         x86_64-*linux*)
10244           LD="${LD-ld} -m elf_x86_64"
10245           ;;
10246         ppc*-*linux*|powerpc*-*linux*)
10247           LD="${LD-ld} -m elf64ppc"
10248           ;;
10249         s390*-*linux*)
10250           LD="${LD-ld} -m elf64_s390"
10251           ;;
10252         sparc*-*linux*)
10253           LD="${LD-ld} -m elf64_sparc"
10254           ;;
10255       esac
10256       ;;
10257     esac
10258   fi
10259   rm -rf conftest*
10260   ;;
10261
10262 *-*-sco3.2v5*)
10263   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10264   SAVE_CFLAGS="$CFLAGS"
10265   CFLAGS="$CFLAGS -belf"
10266   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10267 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10268 if test "${lt_cv_cc_needs_belf+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_ext=c
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276
10277      cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h.  */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h.  */
10283
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287   (eval $ac_link) 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag"
10295                          || test ! -s conftest.err'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   lt_cv_cc_needs_belf=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 lt_cv_cc_needs_belf=no
10313 fi
10314 rm -f conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316      ac_ext=c
10317 ac_cpp='$CPP $CPPFLAGS'
10318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322 fi
10323 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10324 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10325   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10326     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10327     CFLAGS="$SAVE_CFLAGS"
10328   fi
10329   ;;
10330
10331 esac
10332
10333 need_locks="$enable_libtool_lock"
10334
10335
10336
10337
10338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10339     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10340     (test "X$CXX" != "Xg++"))) ; then
10341   ac_ext=cc
10342 ac_cpp='$CXXCPP $CPPFLAGS'
10343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10346 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10347 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10348 if test -z "$CXXCPP"; then
10349   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352       # Double quotes because CXXCPP needs to be expanded
10353     for CXXCPP in "$CXX -E" "/lib/cpp"
10354     do
10355       ac_preproc_ok=false
10356 for ac_cxx_preproc_warn_flag in '' yes
10357 do
10358   # Use a header file that comes with gcc, so configuring glibc
10359   # with a fresh cross-compiler works.
10360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361   # <limits.h> exists even on freestanding compilers.
10362   # On the NeXT, cc -E runs the code through the compiler's parser,
10363   # not just through cpp. "Syntax error" is here to catch this case.
10364   cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10375                      Syntax error
10376 _ACEOF
10377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } >/dev/null; then
10385   if test -s conftest.err; then
10386     ac_cpp_err=$ac_cxx_preproc_warn_flag
10387     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10388   else
10389     ac_cpp_err=
10390   fi
10391 else
10392   ac_cpp_err=yes
10393 fi
10394 if test -z "$ac_cpp_err"; then
10395   :
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400   # Broken: fails on valid input.
10401 continue
10402 fi
10403 rm -f conftest.err conftest.$ac_ext
10404
10405   # OK, works on sane cases.  Now check whether non-existent headers
10406   # can be detected and how.
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #include <ac_nonexistent.h>
10414 _ACEOF
10415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } >/dev/null; then
10423   if test -s conftest.err; then
10424     ac_cpp_err=$ac_cxx_preproc_warn_flag
10425     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10426   else
10427     ac_cpp_err=
10428   fi
10429 else
10430   ac_cpp_err=yes
10431 fi
10432 if test -z "$ac_cpp_err"; then
10433   # Broken: success on invalid input.
10434 continue
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439   # Passes both tests.
10440 ac_preproc_ok=:
10441 break
10442 fi
10443 rm -f conftest.err conftest.$ac_ext
10444
10445 done
10446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10447 rm -f conftest.err conftest.$ac_ext
10448 if $ac_preproc_ok; then
10449   break
10450 fi
10451
10452     done
10453     ac_cv_prog_CXXCPP=$CXXCPP
10454
10455 fi
10456   CXXCPP=$ac_cv_prog_CXXCPP
10457 else
10458   ac_cv_prog_CXXCPP=$CXXCPP
10459 fi
10460 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10461 echo "${ECHO_T}$CXXCPP" >&6
10462 ac_preproc_ok=false
10463 for ac_cxx_preproc_warn_flag in '' yes
10464 do
10465   # Use a header file that comes with gcc, so configuring glibc
10466   # with a fresh cross-compiler works.
10467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468   # <limits.h> exists even on freestanding compilers.
10469   # On the NeXT, cc -E runs the code through the compiler's parser,
10470   # not just through cpp. "Syntax error" is here to catch this case.
10471   cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 #ifdef __STDC__
10478 # include <limits.h>
10479 #else
10480 # include <assert.h>
10481 #endif
10482                      Syntax error
10483 _ACEOF
10484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10486   ac_status=$?
10487   grep -v '^ *+' conftest.er1 >conftest.err
10488   rm -f conftest.er1
10489   cat conftest.err >&5
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } >/dev/null; then
10492   if test -s conftest.err; then
10493     ac_cpp_err=$ac_cxx_preproc_warn_flag
10494     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10495   else
10496     ac_cpp_err=
10497   fi
10498 else
10499   ac_cpp_err=yes
10500 fi
10501 if test -z "$ac_cpp_err"; then
10502   :
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507   # Broken: fails on valid input.
10508 continue
10509 fi
10510 rm -f conftest.err conftest.$ac_ext
10511
10512   # OK, works on sane cases.  Now check whether non-existent headers
10513   # can be detected and how.
10514   cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520 #include <ac_nonexistent.h>
10521 _ACEOF
10522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } >/dev/null; then
10530   if test -s conftest.err; then
10531     ac_cpp_err=$ac_cxx_preproc_warn_flag
10532     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10533   else
10534     ac_cpp_err=
10535   fi
10536 else
10537   ac_cpp_err=yes
10538 fi
10539 if test -z "$ac_cpp_err"; then
10540   # Broken: success on invalid input.
10541 continue
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546   # Passes both tests.
10547 ac_preproc_ok=:
10548 break
10549 fi
10550 rm -f conftest.err conftest.$ac_ext
10551
10552 done
10553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10554 rm -f conftest.err conftest.$ac_ext
10555 if $ac_preproc_ok; then
10556   :
10557 else
10558   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10559 See \`config.log' for more details." >&5
10560 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561 See \`config.log' for more details." >&2;}
10562    { (exit 1); exit 1; }; }
10563 fi
10564
10565 ac_ext=cc
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10570
10571 fi
10572
10573
10574 ac_ext=f
10575 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10576 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10578 if test -n "$ac_tool_prefix"; then
10579   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10580   do
10581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10583 echo "$as_me:$LINENO: checking for $ac_word" >&5
10584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10585 if test "${ac_cv_prog_F77+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588   if test -n "$F77"; then
10589   ac_cv_prog_F77="$F77" # Let the user override the test.
10590 else
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10593 do
10594   IFS=$as_save_IFS
10595   test -z "$as_dir" && as_dir=.
10596   for ac_exec_ext in '' $ac_executable_extensions; do
10597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600     break 2
10601   fi
10602 done
10603 done
10604
10605 fi
10606 fi
10607 F77=$ac_cv_prog_F77
10608 if test -n "$F77"; then
10609   echo "$as_me:$LINENO: result: $F77" >&5
10610 echo "${ECHO_T}$F77" >&6
10611 else
10612   echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6
10614 fi
10615
10616     test -n "$F77" && break
10617   done
10618 fi
10619 if test -z "$F77"; then
10620   ac_ct_F77=$F77
10621   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10622 do
10623   # Extract the first word of "$ac_prog", so it can be a program name with args.
10624 set dummy $ac_prog; ac_word=$2
10625 echo "$as_me:$LINENO: checking for $ac_word" >&5
10626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   if test -n "$ac_ct_F77"; then
10631   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636   IFS=$as_save_IFS
10637   test -z "$as_dir" && as_dir=.
10638   for ac_exec_ext in '' $ac_executable_extensions; do
10639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640     ac_cv_prog_ac_ct_F77="$ac_prog"
10641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642     break 2
10643   fi
10644 done
10645 done
10646
10647 fi
10648 fi
10649 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10650 if test -n "$ac_ct_F77"; then
10651   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10652 echo "${ECHO_T}$ac_ct_F77" >&6
10653 else
10654   echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10656 fi
10657
10658   test -n "$ac_ct_F77" && break
10659 done
10660
10661   F77=$ac_ct_F77
10662 fi
10663
10664
10665 # Provide some information about the compiler.
10666 echo "$as_me:10666:" \
10667      "checking for Fortran 77 compiler version" >&5
10668 ac_compiler=`set X $ac_compile; echo $2`
10669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10670   (eval $ac_compiler --version </dev/null >&5) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }
10674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10675   (eval $ac_compiler -v </dev/null >&5) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }
10679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10680   (eval $ac_compiler -V </dev/null >&5) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }
10684 rm -f a.out
10685
10686 # If we don't use `.F' as extension, the preprocessor is not run on the
10687 # input file.  (Note that this only needs to work for GNU compilers.)
10688 ac_save_ext=$ac_ext
10689 ac_ext=F
10690 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10691 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10692 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   cat >conftest.$ac_ext <<_ACEOF
10696       program main
10697 #ifndef __GNUC__
10698        choke me
10699 #endif
10700
10701       end
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -z "$ac_f77_werror_flag"
10713                          || test ! -s conftest.err'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_compiler_gnu=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_compiler_gnu=no
10731 fi
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10734
10735 fi
10736 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10737 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10738 ac_ext=$ac_save_ext
10739 ac_test_FFLAGS=${FFLAGS+set}
10740 ac_save_FFLAGS=$FFLAGS
10741 FFLAGS=
10742 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10743 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10744 if test "${ac_cv_prog_f77_g+set}" = set; then
10745   echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747   FFLAGS=-g
10748 cat >conftest.$ac_ext <<_ACEOF
10749       program main
10750
10751       end
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755   (eval $ac_compile) 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -z "$ac_f77_werror_flag"
10763                          || test ! -s conftest.err'
10764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_prog_f77_g=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_prog_f77_g=no
10781 fi
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783
10784 fi
10785 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10786 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10787 if test "$ac_test_FFLAGS" = set; then
10788   FFLAGS=$ac_save_FFLAGS
10789 elif test $ac_cv_prog_f77_g = yes; then
10790   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10791     FFLAGS="-g -O2"
10792   else
10793     FFLAGS="-g"
10794   fi
10795 else
10796   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10797     FFLAGS="-O2"
10798   else
10799     FFLAGS=
10800   fi
10801 fi
10802
10803 G77=`test $ac_compiler_gnu = yes && echo yes`
10804 ac_ext=c
10805 ac_cpp='$CPP $CPPFLAGS'
10806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10809
10810
10811
10812 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10813
10814 # find the maximum length of command line arguments
10815 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10816 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10817 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820     i=0
10821   teststring="ABCD"
10822
10823   case $build_os in
10824   msdosdjgpp*)
10825     # On DJGPP, this test can blow up pretty badly due to problems in libc
10826     # (any single argument exceeding 2000 bytes causes a buffer overrun
10827     # during glob expansion).  Even if it were fixed, the result of this
10828     # check would be larger than it should be.
10829     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10830     ;;
10831
10832   gnu*)
10833     # Under GNU Hurd, this test is not required because there is
10834     # no limit to the length of command line arguments.
10835     # Libtool will interpret -1 as no limit whatsoever
10836     lt_cv_sys_max_cmd_len=-1;
10837     ;;
10838
10839   cygwin* | mingw*)
10840     # On Win9x/ME, this test blows up -- it succeeds, but takes
10841     # about 5 minutes as the teststring grows exponentially.
10842     # Worse, since 9x/ME are not pre-emptively multitasking,
10843     # you end up with a "frozen" computer, even though with patience
10844     # the test eventually succeeds (with a max line length of 256k).
10845     # Instead, let's just punt: use the minimum linelength reported by
10846     # all of the supported platforms: 8192 (on NT/2K/XP).
10847     lt_cv_sys_max_cmd_len=8192;
10848     ;;
10849
10850   amigaos*)
10851     # On AmigaOS with pdksh, this test takes hours, literally.
10852     # So we just punt and use a minimum line length of 8192.
10853     lt_cv_sys_max_cmd_len=8192;
10854     ;;
10855
10856   netbsd* | freebsd* | openbsd* | darwin* )
10857     # This has been around since 386BSD, at least.  Likely further.
10858     if test -x /sbin/sysctl; then
10859       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10860     elif test -x /usr/sbin/sysctl; then
10861       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10862     else
10863       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10864     fi
10865     # And add a safety zone
10866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10867     ;;
10868
10869  *)
10870     # If test is not a shell built-in, we'll probably end up computing a
10871     # maximum length that is only half of the actual maximum length, but
10872     # we can't tell.
10873     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10874     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10875                = "XX$teststring") >/dev/null 2>&1 &&
10876             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10877             lt_cv_sys_max_cmd_len=$new_result &&
10878             test $i != 17 # 1/2 MB should be enough
10879     do
10880       i=`expr $i + 1`
10881       teststring=$teststring$teststring
10882     done
10883     teststring=
10884     # Add a significant safety factor because C++ compilers can tack on massive
10885     # amounts of additional arguments before passing them to the linker.
10886     # It appears as though 1/2 is a usable value.
10887     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10888     ;;
10889   esac
10890
10891 fi
10892
10893 if test -n $lt_cv_sys_max_cmd_len ; then
10894   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10895 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10896 else
10897   echo "$as_me:$LINENO: result: none" >&5
10898 echo "${ECHO_T}none" >&6
10899 fi
10900
10901
10902
10903
10904 # Check for command to grab the raw symbol name followed by C symbol from nm.
10905 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10906 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10908   echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910
10911 # These are sane defaults that work on at least a few old systems.
10912 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10913
10914 # Character class describing NM global symbol codes.
10915 symcode='[BCDEGRST]'
10916
10917 # Regexp to match symbols that can be accessed directly from C.
10918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10919
10920 # Transform the above into a raw symbol and a C symbol.
10921 symxfrm='\1 \2\3 \3'
10922
10923 # Transform an extracted symbol line into a proper C declaration
10924 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10925
10926 # Transform an extracted symbol line into symbol name and symbol address
10927 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'"
10928
10929 # Define system-specific variables.
10930 case $host_os in
10931 aix*)
10932   symcode='[BCDT]'
10933   ;;
10934 cygwin* | mingw* | pw32*)
10935   symcode='[ABCDGISTW]'
10936   ;;
10937 hpux*) # Its linker distinguishes data from code symbols
10938   if test "$host_cpu" = ia64; then
10939     symcode='[ABCDEGRST]'
10940   fi
10941   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10942   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'"
10943   ;;
10944 linux*)
10945   if test "$host_cpu" = ia64; then
10946     symcode='[ABCDGIRSTW]'
10947     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10948     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'"
10949   fi
10950   ;;
10951 irix* | nonstopux*)
10952   symcode='[BCDEGRST]'
10953   ;;
10954 osf*)
10955   symcode='[BCDEGQRST]'
10956   ;;
10957 solaris* | sysv5*)
10958   symcode='[BDRT]'
10959   ;;
10960 sysv4)
10961   symcode='[DFNSTU]'
10962   ;;
10963 esac
10964
10965 # Handle CRLF in mingw tool chain
10966 opt_cr=
10967 case $build_os in
10968 mingw*)
10969   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10970   ;;
10971 esac
10972
10973 # If we're using GNU nm, then use its standard symbol codes.
10974 case `$NM -V 2>&1` in
10975 *GNU* | *'with BFD'*)
10976   symcode='[ABCDGIRSTW]' ;;
10977 esac
10978
10979 # Try without a prefix undercore, then with it.
10980 for ac_symprfx in "" "_"; do
10981
10982   # Write the raw and C identifiers.
10983   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10984
10985   # Check to see that the pipe works correctly.
10986   pipe_works=no
10987
10988   rm -f conftest*
10989   cat > conftest.$ac_ext <<EOF
10990 #ifdef __cplusplus
10991 extern "C" {
10992 #endif
10993 char nm_test_var;
10994 void nm_test_func(){}
10995 #ifdef __cplusplus
10996 }
10997 #endif
10998 int main(){nm_test_var='a';nm_test_func();return(0);}
10999 EOF
11000
11001   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002   (eval $ac_compile) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; then
11006     # Now try to grab the symbols.
11007     nlist=conftest.nm
11008     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11009   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } && test -s "$nlist"; then
11013       # Try sorting and uniquifying the output.
11014       if sort "$nlist" | uniq > "$nlist"T; then
11015         mv -f "$nlist"T "$nlist"
11016       else
11017         rm -f "$nlist"T
11018       fi
11019
11020       # Make sure that we snagged all the symbols we need.
11021       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11022         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11023           cat <<EOF > conftest.$ac_ext
11024 #ifdef __cplusplus
11025 extern "C" {
11026 #endif
11027
11028 EOF
11029           # Now generate the symbol file.
11030           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11031
11032           cat <<EOF >> conftest.$ac_ext
11033 #if defined (__STDC__) && __STDC__
11034 # define lt_ptr_t void *
11035 #else
11036 # define lt_ptr_t char *
11037 # define const
11038 #endif
11039
11040 /* The mapping between symbol names and symbols. */
11041 const struct {
11042   const char *name;
11043   lt_ptr_t address;
11044 }
11045 lt_preloaded_symbols[] =
11046 {
11047 EOF
11048           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11049           cat <<\EOF >> conftest.$ac_ext
11050   {0, (lt_ptr_t) 0}
11051 };
11052
11053 #ifdef __cplusplus
11054 }
11055 #endif
11056 EOF
11057           # Now try linking the two files.
11058           mv conftest.$ac_objext conftstm.$ac_objext
11059           lt_save_LIBS="$LIBS"
11060           lt_save_CFLAGS="$CFLAGS"
11061           LIBS="conftstm.$ac_objext"
11062           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11063           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11068             pipe_works=yes
11069           fi
11070           LIBS="$lt_save_LIBS"
11071           CFLAGS="$lt_save_CFLAGS"
11072         else
11073           echo "cannot find nm_test_func in $nlist" >&5
11074         fi
11075       else
11076         echo "cannot find nm_test_var in $nlist" >&5
11077       fi
11078     else
11079       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11080     fi
11081   else
11082     echo "$progname: failed program was:" >&5
11083     cat conftest.$ac_ext >&5
11084   fi
11085   rm -f conftest* conftst*
11086
11087   # Do not use the global_symbol_pipe unless it works.
11088   if test "$pipe_works" = yes; then
11089     break
11090   else
11091     lt_cv_sys_global_symbol_pipe=
11092   fi
11093 done
11094
11095 fi
11096
11097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11098   lt_cv_sys_global_symbol_to_cdecl=
11099 fi
11100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11101   echo "$as_me:$LINENO: result: failed" >&5
11102 echo "${ECHO_T}failed" >&6
11103 else
11104   echo "$as_me:$LINENO: result: ok" >&5
11105 echo "${ECHO_T}ok" >&6
11106 fi
11107
11108 echo "$as_me:$LINENO: checking for objdir" >&5
11109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11110 if test "${lt_cv_objdir+set}" = set; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113   rm -f .libs 2>/dev/null
11114 mkdir .libs 2>/dev/null
11115 if test -d .libs; then
11116   lt_cv_objdir=.libs
11117 else
11118   # MS-DOS does not allow filenames that begin with a dot.
11119   lt_cv_objdir=_libs
11120 fi
11121 rmdir .libs 2>/dev/null
11122 fi
11123 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11124 echo "${ECHO_T}$lt_cv_objdir" >&6
11125 objdir=$lt_cv_objdir
11126
11127
11128
11129
11130
11131 case $host_os in
11132 aix3*)
11133   # AIX sometimes has problems with the GCC collect2 program.  For some
11134   # reason, if we set the COLLECT_NAMES environment variable, the problems
11135   # vanish in a puff of smoke.
11136   if test "X${COLLECT_NAMES+set}" != Xset; then
11137     COLLECT_NAMES=
11138     export COLLECT_NAMES
11139   fi
11140   ;;
11141 esac
11142
11143 # Sed substitution that helps us do robust quoting.  It backslashifies
11144 # metacharacters that are still active within double-quoted strings.
11145 Xsed='sed -e s/^X//'
11146 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11147
11148 # Same as above, but do not quote variable references.
11149 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11150
11151 # Sed substitution to delay expansion of an escaped shell variable in a
11152 # double_quote_subst'ed string.
11153 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11154
11155 # Sed substitution to avoid accidental globbing in evaled expressions
11156 no_glob_subst='s/\*/\\\*/g'
11157
11158 # Constants:
11159 rm="rm -f"
11160
11161 # Global variables:
11162 default_ofile=mklib
11163 can_build_shared=yes
11164
11165 # All known linkers require a `.a' archive for static linking (except M$VC,
11166 # which needs '.lib').
11167 libext=a
11168 ltmain="$ac_aux_dir/ltmain.sh"
11169 ofile="$default_ofile"
11170 with_gnu_ld="$lt_cv_prog_gnu_ld"
11171
11172 if test -n "$ac_tool_prefix"; then
11173   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11174 set dummy ${ac_tool_prefix}ar; ac_word=$2
11175 echo "$as_me:$LINENO: checking for $ac_word" >&5
11176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11177 if test "${ac_cv_prog_AR+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   if test -n "$AR"; then
11181   ac_cv_prog_AR="$AR" # Let the user override the test.
11182 else
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186   IFS=$as_save_IFS
11187   test -z "$as_dir" && as_dir=.
11188   for ac_exec_ext in '' $ac_executable_extensions; do
11189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190     ac_cv_prog_AR="${ac_tool_prefix}ar"
11191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11192     break 2
11193   fi
11194 done
11195 done
11196
11197 fi
11198 fi
11199 AR=$ac_cv_prog_AR
11200 if test -n "$AR"; then
11201   echo "$as_me:$LINENO: result: $AR" >&5
11202 echo "${ECHO_T}$AR" >&6
11203 else
11204   echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6
11206 fi
11207
11208 fi
11209 if test -z "$ac_cv_prog_AR"; then
11210   ac_ct_AR=$AR
11211   # Extract the first word of "ar", so it can be a program name with args.
11212 set dummy ar; ac_word=$2
11213 echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   if test -n "$ac_ct_AR"; then
11219   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226   for ac_exec_ext in '' $ac_executable_extensions; do
11227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228     ac_cv_prog_ac_ct_AR="ar"
11229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233 done
11234
11235   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11236 fi
11237 fi
11238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11239 if test -n "$ac_ct_AR"; then
11240   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11241 echo "${ECHO_T}$ac_ct_AR" >&6
11242 else
11243   echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6
11245 fi
11246
11247   AR=$ac_ct_AR
11248 else
11249   AR="$ac_cv_prog_AR"
11250 fi
11251
11252 if test -n "$ac_tool_prefix"; then
11253   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11255 echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257 if test "${ac_cv_prog_RANLIB+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   if test -n "$RANLIB"; then
11261   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268   for ac_exec_ext in '' $ac_executable_extensions; do
11269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275 done
11276
11277 fi
11278 fi
11279 RANLIB=$ac_cv_prog_RANLIB
11280 if test -n "$RANLIB"; then
11281   echo "$as_me:$LINENO: result: $RANLIB" >&5
11282 echo "${ECHO_T}$RANLIB" >&6
11283 else
11284   echo "$as_me:$LINENO: result: no" >&5
11285 echo "${ECHO_T}no" >&6
11286 fi
11287
11288 fi
11289 if test -z "$ac_cv_prog_RANLIB"; then
11290   ac_ct_RANLIB=$RANLIB
11291   # Extract the first word of "ranlib", so it can be a program name with args.
11292 set dummy ranlib; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   if test -n "$ac_ct_RANLIB"; then
11299   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11303 do
11304   IFS=$as_save_IFS
11305   test -z "$as_dir" && as_dir=.
11306   for ac_exec_ext in '' $ac_executable_extensions; do
11307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308     ac_cv_prog_ac_ct_RANLIB="ranlib"
11309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310     break 2
11311   fi
11312 done
11313 done
11314
11315   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11316 fi
11317 fi
11318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11319 if test -n "$ac_ct_RANLIB"; then
11320   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11321 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11322 else
11323   echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11325 fi
11326
11327   RANLIB=$ac_ct_RANLIB
11328 else
11329   RANLIB="$ac_cv_prog_RANLIB"
11330 fi
11331
11332 if test -n "$ac_tool_prefix"; then
11333   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11334 set dummy ${ac_tool_prefix}strip; ac_word=$2
11335 echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337 if test "${ac_cv_prog_STRIP+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   if test -n "$STRIP"; then
11341   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11342 else
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346   IFS=$as_save_IFS
11347   test -z "$as_dir" && as_dir=.
11348   for ac_exec_ext in '' $ac_executable_extensions; do
11349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352     break 2
11353   fi
11354 done
11355 done
11356
11357 fi
11358 fi
11359 STRIP=$ac_cv_prog_STRIP
11360 if test -n "$STRIP"; then
11361   echo "$as_me:$LINENO: result: $STRIP" >&5
11362 echo "${ECHO_T}$STRIP" >&6
11363 else
11364   echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6
11366 fi
11367
11368 fi
11369 if test -z "$ac_cv_prog_STRIP"; then
11370   ac_ct_STRIP=$STRIP
11371   # Extract the first word of "strip", so it can be a program name with args.
11372 set dummy strip; ac_word=$2
11373 echo "$as_me:$LINENO: checking for $ac_word" >&5
11374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   if test -n "$ac_ct_STRIP"; then
11379   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11380 else
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11383 do
11384   IFS=$as_save_IFS
11385   test -z "$as_dir" && as_dir=.
11386   for ac_exec_ext in '' $ac_executable_extensions; do
11387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388     ac_cv_prog_ac_ct_STRIP="strip"
11389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11390     break 2
11391   fi
11392 done
11393 done
11394
11395   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11396 fi
11397 fi
11398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11399 if test -n "$ac_ct_STRIP"; then
11400   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11401 echo "${ECHO_T}$ac_ct_STRIP" >&6
11402 else
11403   echo "$as_me:$LINENO: result: no" >&5
11404 echo "${ECHO_T}no" >&6
11405 fi
11406
11407   STRIP=$ac_ct_STRIP
11408 else
11409   STRIP="$ac_cv_prog_STRIP"
11410 fi
11411
11412
11413 old_CC="$CC"
11414 old_CFLAGS="$CFLAGS"
11415
11416 # Set sane defaults for various variables
11417 test -z "$AR" && AR=ar
11418 test -z "$AR_FLAGS" && AR_FLAGS=cru
11419 test -z "$AS" && AS=as
11420 test -z "$CC" && CC=cc
11421 test -z "$LTCC" && LTCC=$CC
11422 test -z "$DLLTOOL" && DLLTOOL=dlltool
11423 test -z "$LD" && LD=ld
11424 test -z "$LN_S" && LN_S="ln -s"
11425 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11426 test -z "$NM" && NM=nm
11427 test -z "$SED" && SED=sed
11428 test -z "$OBJDUMP" && OBJDUMP=objdump
11429 test -z "$RANLIB" && RANLIB=:
11430 test -z "$STRIP" && STRIP=:
11431 test -z "$ac_objext" && ac_objext=o
11432
11433 # Determine commands to create old-style static archives.
11434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11435 old_postinstall_cmds='chmod 644 $oldlib'
11436 old_postuninstall_cmds=
11437
11438 if test -n "$RANLIB"; then
11439   case $host_os in
11440   openbsd*)
11441     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11442     ;;
11443   *)
11444     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11445     ;;
11446   esac
11447   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11448 fi
11449
11450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11451
11452 # Only perform the check for file, if the check method requires it
11453 case $deplibs_check_method in
11454 file_magic*)
11455   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11456     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11457 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11458 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   case $MAGIC_CMD in
11462 [\\/*] |  ?:[\\/]*)
11463   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11464   ;;
11465 *)
11466   lt_save_MAGIC_CMD="$MAGIC_CMD"
11467   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11468   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11469   for ac_dir in $ac_dummy; do
11470     IFS="$lt_save_ifs"
11471     test -z "$ac_dir" && ac_dir=.
11472     if test -f $ac_dir/${ac_tool_prefix}file; then
11473       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11474       if test -n "$file_magic_test_file"; then
11475         case $deplibs_check_method in
11476         "file_magic "*)
11477           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11478           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11479           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11480             $EGREP "$file_magic_regex" > /dev/null; then
11481             :
11482           else
11483             cat <<EOF 1>&2
11484
11485 *** Warning: the command libtool uses to detect shared libraries,
11486 *** $file_magic_cmd, produces output that libtool cannot recognize.
11487 *** The result is that libtool may fail to recognize shared libraries
11488 *** as such.  This will affect the creation of libtool libraries that
11489 *** depend on shared libraries, but programs linked with such libtool
11490 *** libraries will work regardless of this problem.  Nevertheless, you
11491 *** may want to report the problem to your system manager and/or to
11492 *** bug-libtool@gnu.org
11493
11494 EOF
11495           fi ;;
11496         esac
11497       fi
11498       break
11499     fi
11500   done
11501   IFS="$lt_save_ifs"
11502   MAGIC_CMD="$lt_save_MAGIC_CMD"
11503   ;;
11504 esac
11505 fi
11506
11507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11508 if test -n "$MAGIC_CMD"; then
11509   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11510 echo "${ECHO_T}$MAGIC_CMD" >&6
11511 else
11512   echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6
11514 fi
11515
11516 if test -z "$lt_cv_path_MAGIC_CMD"; then
11517   if test -n "$ac_tool_prefix"; then
11518     echo "$as_me:$LINENO: checking for file" >&5
11519 echo $ECHO_N "checking for file... $ECHO_C" >&6
11520 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   case $MAGIC_CMD in
11524 [\\/*] |  ?:[\\/]*)
11525   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11526   ;;
11527 *)
11528   lt_save_MAGIC_CMD="$MAGIC_CMD"
11529   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11530   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11531   for ac_dir in $ac_dummy; do
11532     IFS="$lt_save_ifs"
11533     test -z "$ac_dir" && ac_dir=.
11534     if test -f $ac_dir/file; then
11535       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11536       if test -n "$file_magic_test_file"; then
11537         case $deplibs_check_method in
11538         "file_magic "*)
11539           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11540           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11542             $EGREP "$file_magic_regex" > /dev/null; then
11543             :
11544           else
11545             cat <<EOF 1>&2
11546
11547 *** Warning: the command libtool uses to detect shared libraries,
11548 *** $file_magic_cmd, produces output that libtool cannot recognize.
11549 *** The result is that libtool may fail to recognize shared libraries
11550 *** as such.  This will affect the creation of libtool libraries that
11551 *** depend on shared libraries, but programs linked with such libtool
11552 *** libraries will work regardless of this problem.  Nevertheless, you
11553 *** may want to report the problem to your system manager and/or to
11554 *** bug-libtool@gnu.org
11555
11556 EOF
11557           fi ;;
11558         esac
11559       fi
11560       break
11561     fi
11562   done
11563   IFS="$lt_save_ifs"
11564   MAGIC_CMD="$lt_save_MAGIC_CMD"
11565   ;;
11566 esac
11567 fi
11568
11569 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11570 if test -n "$MAGIC_CMD"; then
11571   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11572 echo "${ECHO_T}$MAGIC_CMD" >&6
11573 else
11574   echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6
11576 fi
11577
11578   else
11579     MAGIC_CMD=:
11580   fi
11581 fi
11582
11583   fi
11584   ;;
11585 esac
11586
11587 enable_dlopen=yes
11588 enable_win32_dll=no
11589
11590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11591 if test "${enable_libtool_lock+set}" = set; then
11592   enableval="$enable_libtool_lock"
11593
11594 fi;
11595 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11596
11597
11598 # Check whether --with-pic or --without-pic was given.
11599 if test "${with_pic+set}" = set; then
11600   withval="$with_pic"
11601   pic_mode="$withval"
11602 else
11603   pic_mode=default
11604 fi;
11605 test -z "$pic_mode" && pic_mode=default
11606
11607 # Use C for the default configuration in the libtool script
11608 tagname=
11609 lt_save_CC="$CC"
11610 ac_ext=c
11611 ac_cpp='$CPP $CPPFLAGS'
11612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615
11616
11617 # Source file extension for C test sources.
11618 ac_ext=c
11619
11620 # Object file extension for compiled C test sources.
11621 objext=o
11622 objext=$objext
11623
11624 # Code to be used in simple compile tests
11625 lt_simple_compile_test_code="int some_variable = 0;\n"
11626
11627 # Code to be used in simple link tests
11628 lt_simple_link_test_code='int main(){return(0);}\n'
11629
11630
11631 # If no C compiler was specified, use CC.
11632 LTCC=${LTCC-"$CC"}
11633
11634 # Allow CC to be a program name with arguments.
11635 compiler=$CC
11636
11637
11638 #
11639 # Check for any special shared library compilation flags.
11640 #
11641 lt_prog_cc_shlib=
11642 if test "$GCC" = no; then
11643   case $host_os in
11644   sco3.2v5*)
11645     lt_prog_cc_shlib='-belf'
11646     ;;
11647   esac
11648 fi
11649 if test -n "$lt_prog_cc_shlib"; then
11650   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11651 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11652   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11653   else
11654     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11655 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11656     lt_cv_prog_cc_can_build_shared=no
11657   fi
11658 fi
11659
11660
11661 #
11662 # Check to make sure the static flag actually works.
11663 #
11664 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11665 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11666 if test "${lt_prog_compiler_static_works+set}" = set; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   lt_prog_compiler_static_works=no
11670    save_LDFLAGS="$LDFLAGS"
11671    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11672    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11674      # The compiler can only warn and ignore the option if not recognized
11675      # So say no if there are warnings
11676      if test -s conftest.err; then
11677        # Append any errors to the config.log.
11678        cat conftest.err 1>&5
11679      else
11680        lt_prog_compiler_static_works=yes
11681      fi
11682    fi
11683    $rm conftest*
11684    LDFLAGS="$save_LDFLAGS"
11685
11686 fi
11687 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11689
11690 if test x"$lt_prog_compiler_static_works" = xyes; then
11691     :
11692 else
11693     lt_prog_compiler_static=
11694 fi
11695
11696
11697
11698
11699 lt_prog_compiler_no_builtin_flag=
11700
11701 if test "$GCC" = yes; then
11702   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11703
11704
11705 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11706 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11707 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   lt_cv_prog_compiler_rtti_exceptions=no
11711   ac_outfile=conftest.$ac_objext
11712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11713    lt_compiler_flag="-fno-rtti -fno-exceptions"
11714    # Insert the option either (1) after the last *FLAGS variable, or
11715    # (2) before a word containing "conftest.", or (3) at the end.
11716    # Note that $ac_compile itself does not contain backslashes and begins
11717    # with a dollar sign (not a hyphen), so the echo should work correctly.
11718    # The option is referenced via a variable to avoid confusing sed.
11719    lt_compile=`echo "$ac_compile" | $SED \
11720    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11722    -e 's:$: $lt_compiler_flag:'`
11723    (eval echo "\"\$as_me:11723: $lt_compile\"" >&5)
11724    (eval "$lt_compile" 2>conftest.err)
11725    ac_status=$?
11726    cat conftest.err >&5
11727    echo "$as_me:11727: \$? = $ac_status" >&5
11728    if (exit $ac_status) && test -s "$ac_outfile"; then
11729      # The compiler can only warn and ignore the option if not recognized
11730      # So say no if there are warnings
11731      if test ! -s conftest.err; then
11732        lt_cv_prog_compiler_rtti_exceptions=yes
11733      fi
11734    fi
11735    $rm conftest*
11736
11737 fi
11738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11739 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11740
11741 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11742     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11743 else
11744     :
11745 fi
11746
11747 fi
11748
11749 lt_prog_compiler_wl=
11750 lt_prog_compiler_pic=
11751 lt_prog_compiler_static=
11752
11753 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11755
11756   if test "$GCC" = yes; then
11757     lt_prog_compiler_wl='-Wl,'
11758     lt_prog_compiler_static='-static'
11759
11760     case $host_os in
11761       aix*)
11762       # All AIX code is PIC.
11763       if test "$host_cpu" = ia64; then
11764         # AIX 5 now supports IA64 processor
11765         lt_prog_compiler_static='-Bstatic'
11766       fi
11767       ;;
11768
11769     amigaos*)
11770       # FIXME: we need at least 68020 code to build shared libraries, but
11771       # adding the `-m68020' flag to GCC prevents building anything better,
11772       # like `-m68040'.
11773       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11774       ;;
11775
11776     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11777       # PIC is the default for these OSes.
11778       ;;
11779
11780     mingw* | pw32* | os2*)
11781       # This hack is so that the source file can tell whether it is being
11782       # built for inclusion in a dll (and should export symbols for example).
11783       lt_prog_compiler_pic='-DDLL_EXPORT'
11784       ;;
11785
11786     darwin* | rhapsody*)
11787       # PIC is the default on this platform
11788       # Common symbols not allowed in MH_DYLIB files
11789       lt_prog_compiler_pic='-fno-common'
11790       ;;
11791
11792     msdosdjgpp*)
11793       # Just because we use GCC doesn't mean we suddenly get shared libraries
11794       # on systems that don't support them.
11795       lt_prog_compiler_can_build_shared=no
11796       enable_shared=no
11797       ;;
11798
11799     sysv4*MP*)
11800       if test -d /usr/nec; then
11801         lt_prog_compiler_pic=-Kconform_pic
11802       fi
11803       ;;
11804
11805     hpux*)
11806       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11807       # not for PA HP-UX.
11808       case "$host_cpu" in
11809       hppa*64*|ia64*)
11810         # +Z the default
11811         ;;
11812       *)
11813         lt_prog_compiler_pic='-fPIC'
11814         ;;
11815       esac
11816       ;;
11817
11818     *)
11819       lt_prog_compiler_pic='-fPIC'
11820       ;;
11821     esac
11822   else
11823     # PORTME Check for flag to pass linker flags through the system compiler.
11824     case $host_os in
11825     aix*)
11826       lt_prog_compiler_wl='-Wl,'
11827       if test "$host_cpu" = ia64; then
11828         # AIX 5 now supports IA64 processor
11829         lt_prog_compiler_static='-Bstatic'
11830       else
11831         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11832       fi
11833       ;;
11834       darwin*)
11835         # PIC is the default on this platform
11836         # Common symbols not allowed in MH_DYLIB files
11837        case "$cc_basename" in
11838          xlc*)
11839          lt_prog_compiler_pic='-qnocommon'
11840          lt_prog_compiler_wl='-Wl,'
11841          ;;
11842        esac
11843        ;;
11844
11845     mingw* | pw32* | os2*)
11846       # This hack is so that the source file can tell whether it is being
11847       # built for inclusion in a dll (and should export symbols for example).
11848       lt_prog_compiler_pic='-DDLL_EXPORT'
11849       ;;
11850
11851     hpux9* | hpux10* | hpux11*)
11852       lt_prog_compiler_wl='-Wl,'
11853       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11854       # not for PA HP-UX.
11855       case "$host_cpu" in
11856       hppa*64*|ia64*)
11857         # +Z the default
11858         ;;
11859       *)
11860         lt_prog_compiler_pic='+Z'
11861         ;;
11862       esac
11863       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11864       lt_prog_compiler_static='${wl}-a ${wl}archive'
11865       ;;
11866
11867     irix5* | irix6* | nonstopux*)
11868       lt_prog_compiler_wl='-Wl,'
11869       # PIC (with -KPIC) is the default.
11870       lt_prog_compiler_static='-non_shared'
11871       ;;
11872
11873     newsos6)
11874       lt_prog_compiler_pic='-KPIC'
11875       lt_prog_compiler_static='-Bstatic'
11876       ;;
11877
11878     linux*)
11879       case $CC in
11880       icc* | ecc*)
11881         lt_prog_compiler_wl='-Wl,'
11882         lt_prog_compiler_pic='-KPIC'
11883         lt_prog_compiler_static='-static'
11884         ;;
11885       ccc*)
11886         lt_prog_compiler_wl='-Wl,'
11887         # All Alpha code is PIC.
11888         lt_prog_compiler_static='-non_shared'
11889         ;;
11890       esac
11891       ;;
11892
11893     osf3* | osf4* | osf5*)
11894       lt_prog_compiler_wl='-Wl,'
11895       # All OSF/1 code is PIC.
11896       lt_prog_compiler_static='-non_shared'
11897       ;;
11898
11899     sco3.2v5*)
11900       lt_prog_compiler_pic='-Kpic'
11901       lt_prog_compiler_static='-dn'
11902       ;;
11903
11904     solaris*)
11905       lt_prog_compiler_wl='-Wl,'
11906       lt_prog_compiler_pic='-KPIC'
11907       lt_prog_compiler_static='-Bstatic'
11908       ;;
11909
11910     sunos4*)
11911       lt_prog_compiler_wl='-Qoption ld '
11912       lt_prog_compiler_pic='-PIC'
11913       lt_prog_compiler_static='-Bstatic'
11914       ;;
11915
11916     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11917       lt_prog_compiler_wl='-Wl,'
11918       lt_prog_compiler_pic='-KPIC'
11919       lt_prog_compiler_static='-Bstatic'
11920       ;;
11921
11922     sysv4*MP*)
11923       if test -d /usr/nec ;then
11924         lt_prog_compiler_pic='-Kconform_pic'
11925         lt_prog_compiler_static='-Bstatic'
11926       fi
11927       ;;
11928
11929     uts4*)
11930       lt_prog_compiler_pic='-pic'
11931       lt_prog_compiler_static='-Bstatic'
11932       ;;
11933
11934     *)
11935       lt_prog_compiler_can_build_shared=no
11936       ;;
11937     esac
11938   fi
11939
11940 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11941 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11942
11943 #
11944 # Check to make sure the PIC flag actually works.
11945 #
11946 if test -n "$lt_prog_compiler_pic"; then
11947
11948 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11950 if test "${lt_prog_compiler_pic_works+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   lt_prog_compiler_pic_works=no
11954   ac_outfile=conftest.$ac_objext
11955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11956    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11957    # Insert the option either (1) after the last *FLAGS variable, or
11958    # (2) before a word containing "conftest.", or (3) at the end.
11959    # Note that $ac_compile itself does not contain backslashes and begins
11960    # with a dollar sign (not a hyphen), so the echo should work correctly.
11961    # The option is referenced via a variable to avoid confusing sed.
11962    lt_compile=`echo "$ac_compile" | $SED \
11963    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965    -e 's:$: $lt_compiler_flag:'`
11966    (eval echo "\"\$as_me:11966: $lt_compile\"" >&5)
11967    (eval "$lt_compile" 2>conftest.err)
11968    ac_status=$?
11969    cat conftest.err >&5
11970    echo "$as_me:11970: \$? = $ac_status" >&5
11971    if (exit $ac_status) && test -s "$ac_outfile"; then
11972      # The compiler can only warn and ignore the option if not recognized
11973      # So say no if there are warnings
11974      if test ! -s conftest.err; then
11975        lt_prog_compiler_pic_works=yes
11976      fi
11977    fi
11978    $rm conftest*
11979
11980 fi
11981 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11982 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11983
11984 if test x"$lt_prog_compiler_pic_works" = xyes; then
11985     case $lt_prog_compiler_pic in
11986      "" | " "*) ;;
11987      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11988      esac
11989 else
11990     lt_prog_compiler_pic=
11991      lt_prog_compiler_can_build_shared=no
11992 fi
11993
11994 fi
11995 case "$host_os" in
11996   # For platforms which do not support PIC, -DPIC is meaningless:
11997   *djgpp*)
11998     lt_prog_compiler_pic=
11999     ;;
12000   *)
12001     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12002     ;;
12003 esac
12004
12005 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   lt_cv_prog_compiler_c_o=no
12011    $rm -r conftest 2>/dev/null
12012    mkdir conftest
12013    cd conftest
12014    mkdir out
12015    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12016
12017    lt_compiler_flag="-o out/conftest2.$ac_objext"
12018    # Insert the option either (1) after the last *FLAGS variable, or
12019    # (2) before a word containing "conftest.", or (3) at the end.
12020    # Note that $ac_compile itself does not contain backslashes and begins
12021    # with a dollar sign (not a hyphen), so the echo should work correctly.
12022    lt_compile=`echo "$ac_compile" | $SED \
12023    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12025    -e 's:$: $lt_compiler_flag:'`
12026    (eval echo "\"\$as_me:12026: $lt_compile\"" >&5)
12027    (eval "$lt_compile" 2>out/conftest.err)
12028    ac_status=$?
12029    cat out/conftest.err >&5
12030    echo "$as_me:12030: \$? = $ac_status" >&5
12031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12032    then
12033      # The compiler can only warn and ignore the option if not recognized
12034      # So say no if there are warnings
12035      if test ! -s out/conftest.err; then
12036        lt_cv_prog_compiler_c_o=yes
12037      fi
12038    fi
12039    chmod u+w .
12040    $rm conftest*
12041    # SGI C++ compiler will create directory out/ii_files/ for
12042    # template instantiation
12043    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12044    $rm out/* && rmdir out
12045    cd ..
12046    rmdir conftest
12047    $rm conftest*
12048
12049 fi
12050 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12051 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12052
12053
12054 hard_links="nottested"
12055 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12056   # do not overwrite the value of need_locks provided by the user
12057   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12058 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12059   hard_links=yes
12060   $rm conftest*
12061   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12062   touch conftest.a
12063   ln conftest.a conftest.b 2>&5 || hard_links=no
12064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065   echo "$as_me:$LINENO: result: $hard_links" >&5
12066 echo "${ECHO_T}$hard_links" >&6
12067   if test "$hard_links" = no; then
12068     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12069 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12070     need_locks=warn
12071   fi
12072 else
12073   need_locks=no
12074 fi
12075
12076 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12077 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12078
12079   runpath_var=
12080   allow_undefined_flag=
12081   enable_shared_with_static_runtimes=no
12082   archive_cmds=
12083   archive_expsym_cmds=
12084   old_archive_From_new_cmds=
12085   old_archive_from_expsyms_cmds=
12086   export_dynamic_flag_spec=
12087   whole_archive_flag_spec=
12088   thread_safe_flag_spec=
12089   hardcode_libdir_flag_spec=
12090   hardcode_libdir_flag_spec_ld=
12091   hardcode_libdir_separator=
12092   hardcode_direct=no
12093   hardcode_minus_L=no
12094   hardcode_shlibpath_var=unsupported
12095   link_all_deplibs=unknown
12096   hardcode_automatic=no
12097   module_cmds=
12098   module_expsym_cmds=
12099   always_export_symbols=no
12100   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12101   # include_expsyms should be a list of space-separated symbols to be *always*
12102   # included in the symbol list
12103   include_expsyms=
12104   # exclude_expsyms can be an extended regexp of symbols to exclude
12105   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12106   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12107   # as well as any symbol that contains `d'.
12108   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12109   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12110   # platforms (ab)use it in PIC code, but their linkers get confused if
12111   # the symbol is explicitly referenced.  Since portable code cannot
12112   # rely on this symbol name, it's probably fine to never include it in
12113   # preloaded symbol tables.
12114   extract_expsyms_cmds=
12115
12116   case $host_os in
12117   cygwin* | mingw* | pw32*)
12118     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12119     # When not using gcc, we currently assume that we are using
12120     # Microsoft Visual C++.
12121     if test "$GCC" != yes; then
12122       with_gnu_ld=no
12123     fi
12124     ;;
12125   openbsd*)
12126     with_gnu_ld=no
12127     ;;
12128   esac
12129
12130   ld_shlibs=yes
12131   if test "$with_gnu_ld" = yes; then
12132     # If archive_cmds runs LD, not CC, wlarc should be empty
12133     wlarc='${wl}'
12134
12135     # See if GNU ld supports shared libraries.
12136     case $host_os in
12137     aix3* | aix4* | aix5*)
12138       # On AIX/PPC, the GNU linker is very broken
12139       if test "$host_cpu" != ia64; then
12140         ld_shlibs=no
12141         cat <<EOF 1>&2
12142
12143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12144 *** to be unable to reliably create shared libraries on AIX.
12145 *** Therefore, libtool is disabling shared libraries support.  If you
12146 *** really care for shared libraries, you may want to modify your PATH
12147 *** so that a non-GNU linker is found, and then restart.
12148
12149 EOF
12150       fi
12151       ;;
12152
12153     amigaos*)
12154       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)'
12155       hardcode_libdir_flag_spec='-L$libdir'
12156       hardcode_minus_L=yes
12157
12158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12159       # that the semantics of dynamic libraries on AmigaOS, at least up
12160       # to version 4, is to share data among multiple programs linked
12161       # with the same dynamic library.  Since this doesn't match the
12162       # behavior of shared libraries on other platforms, we can't use
12163       # them.
12164       ld_shlibs=no
12165       ;;
12166
12167     beos*)
12168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12169         allow_undefined_flag=unsupported
12170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12171         # support --undefined.  This deserves some investigation.  FIXME
12172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12173       else
12174         ld_shlibs=no
12175       fi
12176       ;;
12177
12178     cygwin* | mingw* | pw32*)
12179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12180       # as there is no search path for DLLs.
12181       hardcode_libdir_flag_spec='-L$libdir'
12182       allow_undefined_flag=unsupported
12183       always_export_symbols=no
12184       enable_shared_with_static_runtimes=yes
12185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12186
12187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12189         # If the export-symbols file already is a .def file (1st line
12190         # is EXPORTS), use it as is; otherwise, prepend...
12191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12192           cp $export_symbols $output_objdir/$soname.def;
12193         else
12194           echo EXPORTS > $output_objdir/$soname.def;
12195           cat $export_symbols >> $output_objdir/$soname.def;
12196         fi~
12197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12198       else
12199         ld_shlibs=no
12200       fi
12201       ;;
12202
12203     netbsd*)
12204       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12205         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12206         wlarc=
12207       else
12208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12210       fi
12211       ;;
12212
12213     solaris* | sysv5*)
12214       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12215         ld_shlibs=no
12216         cat <<EOF 1>&2
12217
12218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12219 *** create shared libraries on Solaris systems.  Therefore, libtool
12220 *** is disabling shared libraries support.  We urge you to upgrade GNU
12221 *** binutils to release 2.9.1 or newer.  Another option is to modify
12222 *** your PATH or compiler configuration so that the native linker is
12223 *** used, and then restart.
12224
12225 EOF
12226       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12227         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12229       else
12230         ld_shlibs=no
12231       fi
12232       ;;
12233
12234     sunos4*)
12235       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12236       wlarc=
12237       hardcode_direct=yes
12238       hardcode_shlibpath_var=no
12239       ;;
12240
12241   linux*)
12242     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12243         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244         archive_cmds="$tmp_archive_cmds"
12245       supports_anon_versioning=no
12246       case `$LD -v 2>/dev/null` in
12247         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12248         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12249         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12250         *\ 2.11.*) ;; # other 2.11 versions
12251         *) supports_anon_versioning=yes ;;
12252       esac
12253       if test $supports_anon_versioning = yes; then
12254         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12256 $echo "local: *; };" >> $output_objdir/$libname.ver~
12257         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12258       else
12259         archive_expsym_cmds="$tmp_archive_cmds"
12260       fi
12261     else
12262       ld_shlibs=no
12263     fi
12264     ;;
12265
12266     *)
12267       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12270       else
12271         ld_shlibs=no
12272       fi
12273       ;;
12274     esac
12275
12276     if test "$ld_shlibs" = yes; then
12277       runpath_var=LD_RUN_PATH
12278       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12279       export_dynamic_flag_spec='${wl}--export-dynamic'
12280       # ancient GNU ld didn't support --whole-archive et. al.
12281       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12282         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12283       else
12284         whole_archive_flag_spec=
12285       fi
12286     fi
12287   else
12288     # PORTME fill in a description of your system's linker (not GNU ld)
12289     case $host_os in
12290     aix3*)
12291       allow_undefined_flag=unsupported
12292       always_export_symbols=yes
12293       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'
12294       # Note: this linker hardcodes the directories in LIBPATH if there
12295       # are no directories specified by -L.
12296       hardcode_minus_L=yes
12297       if test "$GCC" = yes && test -z "$link_static_flag"; then
12298         # Neither direct hardcoding nor static linking is supported with a
12299         # broken collect2.
12300         hardcode_direct=unsupported
12301       fi
12302       ;;
12303
12304     aix4* | aix5*)
12305       if test "$host_cpu" = ia64; then
12306         # On IA64, the linker does run time linking by default, so we don't
12307         # have to do anything special.
12308         aix_use_runtimelinking=no
12309         exp_sym_flag='-Bexport'
12310         no_entry_flag=""
12311       else
12312         # If we're using GNU nm, then we don't want the "-C" option.
12313         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12314         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12315           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'
12316         else
12317           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'
12318         fi
12319         aix_use_runtimelinking=no
12320
12321         # Test if we are trying to use run time linking or normal
12322         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12323         # need to do runtime linking.
12324         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12325           for ld_flag in $LDFLAGS; do
12326           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12327             aix_use_runtimelinking=yes
12328             break
12329           fi
12330           done
12331         esac
12332
12333         exp_sym_flag='-bexport'
12334         no_entry_flag='-bnoentry'
12335       fi
12336
12337       # When large executables or shared objects are built, AIX ld can
12338       # have problems creating the table of contents.  If linking a library
12339       # or program results in "error TOC overflow" add -mminimal-toc to
12340       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12341       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342
12343       archive_cmds=''
12344       hardcode_direct=yes
12345       hardcode_libdir_separator=':'
12346       link_all_deplibs=yes
12347
12348       if test "$GCC" = yes; then
12349         case $host_os in aix4.012|aix4.012.*)
12350         # We only want to do this on AIX 4.2 and lower, the check
12351         # below for broken collect2 doesn't work under 4.3+
12352           collect2name=`${CC} -print-prog-name=collect2`
12353           if test -f "$collect2name" && \
12354            strings "$collect2name" | grep resolve_lib_name >/dev/null
12355           then
12356           # We have reworked collect2
12357           hardcode_direct=yes
12358           else
12359           # We have old collect2
12360           hardcode_direct=unsupported
12361           # It fails to find uninstalled libraries when the uninstalled
12362           # path is not listed in the libpath.  Setting hardcode_minus_L
12363           # to unsupported forces relinking
12364           hardcode_minus_L=yes
12365           hardcode_libdir_flag_spec='-L$libdir'
12366           hardcode_libdir_separator=
12367           fi
12368         esac
12369         shared_flag='-shared'
12370       else
12371         # not using gcc
12372         if test "$host_cpu" = ia64; then
12373         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12374         # chokes on -Wl,-G. The following line is correct:
12375           shared_flag='-G'
12376         else
12377         if test "$aix_use_runtimelinking" = yes; then
12378             shared_flag='${wl}-G'
12379           else
12380             shared_flag='${wl}-bM:SRE'
12381         fi
12382         fi
12383       fi
12384
12385       # It seems that -bexpall does not export symbols beginning with
12386       # underscore (_), so it is better to generate a list of symbols to export.
12387       always_export_symbols=yes
12388       if test "$aix_use_runtimelinking" = yes; then
12389         # Warning - without using the other runtime loading flags (-brtl),
12390         # -berok will link without error, but may produce a broken library.
12391         allow_undefined_flag='-berok'
12392        # Determine the default libpath from the value encoded in an empty executable.
12393        cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399
12400 int
12401 main ()
12402 {
12403
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410   (eval $ac_link) 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag"
12418                          || test ! -s conftest.err'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430
12431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12432 }'`
12433 # Check for a 64-bit object if we didn't find anything.
12434 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; }
12435 }'`; fi
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 fi
12441 rm -f conftest.err conftest.$ac_objext \
12442       conftest$ac_exeext conftest.$ac_ext
12443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12444
12445        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12446         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"
12447        else
12448         if test "$host_cpu" = ia64; then
12449           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12450           allow_undefined_flag="-z nodefs"
12451           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"
12452         else
12453          # Determine the default libpath from the value encoded in an empty executable.
12454          cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460
12461 int
12462 main ()
12463 {
12464
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471   (eval $ac_link) 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } &&
12478          { ac_try='test -z "$ac_c_werror_flag"
12479                          || test ! -s conftest.err'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491
12492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12493 }'`
12494 # Check for a 64-bit object if we didn't find anything.
12495 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; }
12496 }'`; fi
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 fi
12502 rm -f conftest.err conftest.$ac_objext \
12503       conftest$ac_exeext conftest.$ac_ext
12504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12505
12506          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12507           # Warning - without using the other run time loading flags,
12508           # -berok will link without error, but may produce a broken library.
12509           no_undefined_flag=' ${wl}-bernotok'
12510           allow_undefined_flag=' ${wl}-berok'
12511           # -bexpall does not export symbols beginning with underscore (_)
12512           always_export_symbols=yes
12513           # Exported symbols can be pulled into shared objects from archives
12514           whole_archive_flag_spec=' '
12515           archive_cmds_need_lc=yes
12516           # This is similar to how AIX traditionally builds it's shared libraries.
12517           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'
12518         fi
12519       fi
12520       ;;
12521
12522     amigaos*)
12523       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)'
12524       hardcode_libdir_flag_spec='-L$libdir'
12525       hardcode_minus_L=yes
12526       # see comment about different semantics on the GNU ld section
12527       ld_shlibs=no
12528       ;;
12529
12530     bsdi[45]*)
12531       export_dynamic_flag_spec=-rdynamic
12532       ;;
12533
12534     cygwin* | mingw* | pw32*)
12535       # When not using gcc, we currently assume that we are using
12536       # Microsoft Visual C++.
12537       # hardcode_libdir_flag_spec is actually meaningless, as there is
12538       # no search path for DLLs.
12539       hardcode_libdir_flag_spec=' '
12540       allow_undefined_flag=unsupported
12541       # Tell ltmain to make .lib files, not .a files.
12542       libext=lib
12543       # Tell ltmain to make .dll files, not .so files.
12544       shrext_cmds=".dll"
12545       # FIXME: Setting linknames here is a bad hack.
12546       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12547       # The linker will automatically build a .lib file if we build a DLL.
12548       old_archive_From_new_cmds='true'
12549       # FIXME: Should let the user specify the lib program.
12550       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12551       fix_srcfile_path='`cygpath -w "$srcfile"`'
12552       enable_shared_with_static_runtimes=yes
12553       ;;
12554
12555     darwin* | rhapsody*)
12556       case "$host_os" in
12557         rhapsody* | darwin1.[012])
12558          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12559          ;;
12560        *) # Darwin 1.3 on
12561          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12562            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12563          else
12564            case ${MACOSX_DEPLOYMENT_TARGET} in
12565              10.[012])
12566                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12567                ;;
12568              10.*)
12569                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12570                ;;
12571            esac
12572          fi
12573          ;;
12574       esac
12575       archive_cmds_need_lc=no
12576       hardcode_direct=no
12577       hardcode_automatic=yes
12578       hardcode_shlibpath_var=unsupported
12579       whole_archive_flag_spec=''
12580       link_all_deplibs=yes
12581     if test "$GCC" = yes ; then
12582         output_verbose_link_cmd='echo'
12583         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12584       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12585       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12586       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}'
12587       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}'
12588     else
12589       case "$cc_basename" in
12590         xlc*)
12591          output_verbose_link_cmd='echo'
12592          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12593          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12594           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12595          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}'
12596           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}'
12597           ;;
12598        *)
12599          ld_shlibs=no
12600           ;;
12601       esac
12602     fi
12603       ;;
12604
12605     dgux*)
12606       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12607       hardcode_libdir_flag_spec='-L$libdir'
12608       hardcode_shlibpath_var=no
12609       ;;
12610
12611     freebsd1*)
12612       ld_shlibs=no
12613       ;;
12614
12615     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12616     # support.  Future versions do this automatically, but an explicit c++rt0.o
12617     # does not break anything, and helps significantly (at the cost of a little
12618     # extra space).
12619     freebsd2.2*)
12620       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12621       hardcode_libdir_flag_spec='-R$libdir'
12622       hardcode_direct=yes
12623       hardcode_shlibpath_var=no
12624       ;;
12625
12626     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12627     freebsd2*)
12628       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12629       hardcode_direct=yes
12630       hardcode_minus_L=yes
12631       hardcode_shlibpath_var=no
12632       ;;
12633
12634     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12635     freebsd* | kfreebsd*-gnu)
12636       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12637       hardcode_libdir_flag_spec='-R$libdir'
12638       hardcode_direct=yes
12639       hardcode_shlibpath_var=no
12640       ;;
12641
12642     hpux9*)
12643       if test "$GCC" = yes; then
12644         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'
12645       else
12646         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'
12647       fi
12648       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12649       hardcode_libdir_separator=:
12650       hardcode_direct=yes
12651
12652       # hardcode_minus_L: Not really in the search PATH,
12653       # but as the default location of the library.
12654       hardcode_minus_L=yes
12655       export_dynamic_flag_spec='${wl}-E'
12656       ;;
12657
12658     hpux10* | hpux11*)
12659       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12660         case "$host_cpu" in
12661         hppa*64*|ia64*)
12662           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12663           ;;
12664         *)
12665           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12666           ;;
12667         esac
12668       else
12669         case "$host_cpu" in
12670         hppa*64*|ia64*)
12671           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12672           ;;
12673         *)
12674           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12675           ;;
12676         esac
12677       fi
12678       if test "$with_gnu_ld" = no; then
12679         case "$host_cpu" in
12680         hppa*64*)
12681           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682           hardcode_libdir_flag_spec_ld='+b $libdir'
12683           hardcode_libdir_separator=:
12684           hardcode_direct=no
12685           hardcode_shlibpath_var=no
12686           ;;
12687         ia64*)
12688           hardcode_libdir_flag_spec='-L$libdir'
12689           hardcode_direct=no
12690           hardcode_shlibpath_var=no
12691
12692           # hardcode_minus_L: Not really in the search PATH,
12693           # but as the default location of the library.
12694           hardcode_minus_L=yes
12695           ;;
12696         *)
12697           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12698           hardcode_libdir_separator=:
12699           hardcode_direct=yes
12700           export_dynamic_flag_spec='${wl}-E'
12701
12702           # hardcode_minus_L: Not really in the search PATH,
12703           # but as the default location of the library.
12704           hardcode_minus_L=yes
12705           ;;
12706         esac
12707       fi
12708       ;;
12709
12710     irix5* | irix6* | nonstopux*)
12711       if test "$GCC" = yes; then
12712         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'
12713       else
12714         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'
12715         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12716       fi
12717       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12718       hardcode_libdir_separator=:
12719       link_all_deplibs=yes
12720       ;;
12721
12722     netbsd*)
12723       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12724         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12725       else
12726         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12727       fi
12728       hardcode_libdir_flag_spec='-R$libdir'
12729       hardcode_direct=yes
12730       hardcode_shlibpath_var=no
12731       ;;
12732
12733     newsos6)
12734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735       hardcode_direct=yes
12736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12737       hardcode_libdir_separator=:
12738       hardcode_shlibpath_var=no
12739       ;;
12740
12741     openbsd*)
12742       hardcode_direct=yes
12743       hardcode_shlibpath_var=no
12744       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12745         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12746         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12747         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12748         export_dynamic_flag_spec='${wl}-E'
12749       else
12750        case $host_os in
12751          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12752            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753            hardcode_libdir_flag_spec='-R$libdir'
12754            ;;
12755          *)
12756            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12758            ;;
12759        esac
12760       fi
12761       ;;
12762
12763     os2*)
12764       hardcode_libdir_flag_spec='-L$libdir'
12765       hardcode_minus_L=yes
12766       allow_undefined_flag=unsupported
12767       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'
12768       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12769       ;;
12770
12771     osf3*)
12772       if test "$GCC" = yes; then
12773         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12774         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'
12775       else
12776         allow_undefined_flag=' -expect_unresolved \*'
12777         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'
12778       fi
12779       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12780       hardcode_libdir_separator=:
12781       ;;
12782
12783     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12784       if test "$GCC" = yes; then
12785         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12786         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'
12787         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12788       else
12789         allow_undefined_flag=' -expect_unresolved \*'
12790         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'
12791         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12792         $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'
12793
12794         # Both c and cxx compiler support -rpath directly
12795         hardcode_libdir_flag_spec='-rpath $libdir'
12796       fi
12797       hardcode_libdir_separator=:
12798       ;;
12799
12800     sco3.2v5*)
12801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12802       hardcode_shlibpath_var=no
12803       export_dynamic_flag_spec='${wl}-Bexport'
12804       runpath_var=LD_RUN_PATH
12805       hardcode_runpath_var=yes
12806       ;;
12807
12808     solaris*)
12809       no_undefined_flag=' -z text'
12810       if test "$GCC" = yes; then
12811         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12812         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12813           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12814       else
12815         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12816         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12817         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12818       fi
12819       hardcode_libdir_flag_spec='-R$libdir'
12820       hardcode_shlibpath_var=no
12821       case $host_os in
12822       solaris2.[0-5] | solaris2.[0-5].*) ;;
12823       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12824         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12825       esac
12826       link_all_deplibs=yes
12827       ;;
12828
12829     sunos4*)
12830       if test "x$host_vendor" = xsequent; then
12831         # Use $CC to link under sequent, because it throws in some extra .o
12832         # files that make .init and .fini sections work.
12833         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12834       else
12835         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12836       fi
12837       hardcode_libdir_flag_spec='-L$libdir'
12838       hardcode_direct=yes
12839       hardcode_minus_L=yes
12840       hardcode_shlibpath_var=no
12841       ;;
12842
12843     sysv4)
12844       case $host_vendor in
12845         sni)
12846           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847           hardcode_direct=yes # is this really true???
12848         ;;
12849         siemens)
12850           ## LD is ld it makes a PLAMLIB
12851           ## CC just makes a GrossModule.
12852           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12853           reload_cmds='$CC -r -o $output$reload_objs'
12854           hardcode_direct=no
12855         ;;
12856         motorola)
12857           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12859         ;;
12860       esac
12861       runpath_var='LD_RUN_PATH'
12862       hardcode_shlibpath_var=no
12863       ;;
12864
12865     sysv4.3*)
12866       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867       hardcode_shlibpath_var=no
12868       export_dynamic_flag_spec='-Bexport'
12869       ;;
12870
12871     sysv4*MP*)
12872       if test -d /usr/nec; then
12873         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12874         hardcode_shlibpath_var=no
12875         runpath_var=LD_RUN_PATH
12876         hardcode_runpath_var=yes
12877         ld_shlibs=yes
12878       fi
12879       ;;
12880
12881     sysv4.2uw2*)
12882       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883       hardcode_direct=yes
12884       hardcode_minus_L=no
12885       hardcode_shlibpath_var=no
12886       hardcode_runpath_var=yes
12887       runpath_var=LD_RUN_PATH
12888       ;;
12889
12890    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12891       no_undefined_flag='${wl}-z ${wl}text'
12892       if test "$GCC" = yes; then
12893         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12894       else
12895         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896       fi
12897       runpath_var='LD_RUN_PATH'
12898       hardcode_shlibpath_var=no
12899       ;;
12900
12901     sysv5*)
12902       no_undefined_flag=' -z text'
12903       # $CC -shared without GNU ld will not create a library from C++
12904       # object files and a static libstdc++, better avoid it by now
12905       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12908       hardcode_libdir_flag_spec=
12909       hardcode_shlibpath_var=no
12910       runpath_var='LD_RUN_PATH'
12911       ;;
12912
12913     uts4*)
12914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915       hardcode_libdir_flag_spec='-L$libdir'
12916       hardcode_shlibpath_var=no
12917       ;;
12918
12919     *)
12920       ld_shlibs=no
12921       ;;
12922     esac
12923   fi
12924
12925 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12926 echo "${ECHO_T}$ld_shlibs" >&6
12927 test "$ld_shlibs" = no && can_build_shared=no
12928
12929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12930 if test "$GCC" = yes; then
12931   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12932 fi
12933
12934 #
12935 # Do we need to explicitly link libc?
12936 #
12937 case "x$archive_cmds_need_lc" in
12938 x|xyes)
12939   # Assume -lc should be added
12940   archive_cmds_need_lc=yes
12941
12942   if test "$enable_shared" = yes && test "$GCC" = yes; then
12943     case $archive_cmds in
12944     *'~'*)
12945       # FIXME: we may have to deal with multi-command sequences.
12946       ;;
12947     '$CC '*)
12948       # Test whether the compiler implicitly links with -lc since on some
12949       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12950       # to ld, don't add -lc before -lgcc.
12951       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12953       $rm conftest*
12954       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12955
12956       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } 2>conftest.err; then
12961         soname=conftest
12962         lib=conftest
12963         libobjs=conftest.$ac_objext
12964         deplibs=
12965         wl=$lt_prog_compiler_wl
12966         compiler_flags=-v
12967         linker_flags=-v
12968         verstring=
12969         output_objdir=.
12970         libname=conftest
12971         lt_save_allow_undefined_flag=$allow_undefined_flag
12972         allow_undefined_flag=
12973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12974   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }
12978         then
12979           archive_cmds_need_lc=no
12980         else
12981           archive_cmds_need_lc=yes
12982         fi
12983         allow_undefined_flag=$lt_save_allow_undefined_flag
12984       else
12985         cat conftest.err 1>&5
12986       fi
12987       $rm conftest*
12988       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12989 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12990       ;;
12991     esac
12992   fi
12993   ;;
12994 esac
12995
12996 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12998 library_names_spec=
12999 libname_spec='lib$name'
13000 soname_spec=
13001 shrext_cmds=".so"
13002 postinstall_cmds=
13003 postuninstall_cmds=
13004 finish_cmds=
13005 finish_eval=
13006 shlibpath_var=
13007 shlibpath_overrides_runpath=unknown
13008 version_type=none
13009 dynamic_linker="$host_os ld.so"
13010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13011 if test "$GCC" = yes; then
13012   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13013   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13014     # if the path contains ";" then we assume it to be the separator
13015     # otherwise default to the standard path separator (i.e. ":") - it is
13016     # assumed that no part of a normal pathname contains ";" but that should
13017     # okay in the real world where ";" in dirpaths is itself problematic.
13018     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13019   else
13020     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13021   fi
13022 else
13023   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13024 fi
13025 need_lib_prefix=unknown
13026 hardcode_into_libs=no
13027
13028 # when you set need_version to no, make sure it does not cause -set_version
13029 # flags to be left without arguments
13030 need_version=unknown
13031
13032 case $host_os in
13033 aix3*)
13034   version_type=linux
13035   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13036   shlibpath_var=LIBPATH
13037
13038   # AIX 3 has no versioning support, so we append a major version to the name.
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   ;;
13041
13042 aix4* | aix5*)
13043   version_type=linux
13044   need_lib_prefix=no
13045   need_version=no
13046   hardcode_into_libs=yes
13047   if test "$host_cpu" = ia64; then
13048     # AIX 5 supports IA64
13049     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13050     shlibpath_var=LD_LIBRARY_PATH
13051   else
13052     # With GCC up to 2.95.x, collect2 would create an import file
13053     # for dependence libraries.  The import file would start with
13054     # the line `#! .'.  This would cause the generated library to
13055     # depend on `.', always an invalid library.  This was fixed in
13056     # development snapshots of GCC prior to 3.0.
13057     case $host_os in
13058       aix4 | aix4.[01] | aix4.[01].*)
13059       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13060            echo ' yes '
13061            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13062         :
13063       else
13064         can_build_shared=no
13065       fi
13066       ;;
13067     esac
13068     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13069     # soname into executable. Probably we can add versioning support to
13070     # collect2, so additional links can be useful in future.
13071     if test "$aix_use_runtimelinking" = yes; then
13072       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13073       # instead of lib<name>.a to let people know that these are not
13074       # typical AIX shared libraries.
13075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076     else
13077       # We preserve .a as extension for shared libraries through AIX4.2
13078       # and later when we are not doing run time linking.
13079       library_names_spec='${libname}${release}.a $libname.a'
13080       soname_spec='${libname}${release}${shared_ext}$major'
13081     fi
13082     shlibpath_var=LIBPATH
13083   fi
13084   ;;
13085
13086 amigaos*)
13087   library_names_spec='$libname.ixlibrary $libname.a'
13088   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13089   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'
13090   ;;
13091
13092 beos*)
13093   library_names_spec='${libname}${shared_ext}'
13094   dynamic_linker="$host_os ld.so"
13095   shlibpath_var=LIBRARY_PATH
13096   ;;
13097
13098 bsdi[45]*)
13099   version_type=linux
13100   need_version=no
13101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13102   soname_spec='${libname}${release}${shared_ext}$major'
13103   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13104   shlibpath_var=LD_LIBRARY_PATH
13105   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13106   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13107   # the default ld.so.conf also contains /usr/contrib/lib and
13108   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13109   # libtool to hard-code these into programs
13110   ;;
13111
13112 cygwin* | mingw* | pw32*)
13113   version_type=windows
13114   shrext_cmds=".dll"
13115   need_version=no
13116   need_lib_prefix=no
13117
13118   case $GCC,$host_os in
13119   yes,cygwin* | yes,mingw* | yes,pw32*)
13120     library_names_spec='$libname.dll.a'
13121     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13122     postinstall_cmds='base_file=`basename \${file}`~
13123       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13124       dldir=$destdir/`dirname \$dlpath`~
13125       test -d \$dldir || mkdir -p \$dldir~
13126       $install_prog $dir/$dlname \$dldir/$dlname'
13127     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13128       dlpath=$dir/\$dldll~
13129        $rm \$dlpath'
13130     shlibpath_overrides_runpath=yes
13131
13132     case $host_os in
13133     cygwin*)
13134       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13135       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13136       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13137       ;;
13138     mingw*)
13139       # MinGW DLLs use traditional 'lib' prefix
13140       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13141       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13142       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13143         # It is most probably a Windows format PATH printed by
13144         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13145         # path with ; separators, and with drive letters. We can handle the
13146         # drive letters (cygwin fileutils understands them), so leave them,
13147         # especially as we might pass files found there to a mingw objdump,
13148         # which wouldn't understand a cygwinified path. Ahh.
13149         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13150       else
13151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13152       fi
13153       ;;
13154     pw32*)
13155       # pw32 DLLs use 'pw' prefix rather than 'lib'
13156       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13157       ;;
13158     esac
13159     ;;
13160
13161   *)
13162     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13163     ;;
13164   esac
13165   dynamic_linker='Win32 ld.exe'
13166   # FIXME: first we should search . and the directory the executable is in
13167   shlibpath_var=PATH
13168   ;;
13169
13170 darwin* | rhapsody*)
13171   dynamic_linker="$host_os dyld"
13172   version_type=darwin
13173   need_lib_prefix=no
13174   need_version=no
13175   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13176   soname_spec='${libname}${release}${major}$shared_ext'
13177   shlibpath_overrides_runpath=yes
13178   shlibpath_var=DYLD_LIBRARY_PATH
13179   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13180   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13181   if test "$GCC" = yes; then
13182     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"`
13183   else
13184     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13185   fi
13186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13187   ;;
13188
13189 dgux*)
13190   version_type=linux
13191   need_lib_prefix=no
13192   need_version=no
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   shlibpath_var=LD_LIBRARY_PATH
13196   ;;
13197
13198 freebsd1*)
13199   dynamic_linker=no
13200   ;;
13201
13202 kfreebsd*-gnu)
13203   version_type=linux
13204   need_lib_prefix=no
13205   need_version=no
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13207   soname_spec='${libname}${release}${shared_ext}$major'
13208   shlibpath_var=LD_LIBRARY_PATH
13209   shlibpath_overrides_runpath=no
13210   hardcode_into_libs=yes
13211   dynamic_linker='GNU ld.so'
13212   ;;
13213
13214 freebsd*)
13215   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13216   version_type=freebsd-$objformat
13217   case $version_type in
13218     freebsd-elf*)
13219       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13220       need_version=no
13221       need_lib_prefix=no
13222       ;;
13223     freebsd-*)
13224       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13225       need_version=yes
13226       ;;
13227   esac
13228   shlibpath_var=LD_LIBRARY_PATH
13229   case $host_os in
13230   freebsd2*)
13231     shlibpath_overrides_runpath=yes
13232     ;;
13233   freebsd3.01* | freebsdelf3.01*)
13234     shlibpath_overrides_runpath=yes
13235     hardcode_into_libs=yes
13236     ;;
13237   *) # from 3.2 on
13238     shlibpath_overrides_runpath=no
13239     hardcode_into_libs=yes
13240     ;;
13241   esac
13242   ;;
13243
13244 gnu*)
13245   version_type=linux
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13249   soname_spec='${libname}${release}${shared_ext}$major'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   hardcode_into_libs=yes
13252   ;;
13253
13254 hpux9* | hpux10* | hpux11*)
13255   # Give a soname corresponding to the major version so that dld.sl refuses to
13256   # link against other versions.
13257   version_type=sunos
13258   need_lib_prefix=no
13259   need_version=no
13260   case "$host_cpu" in
13261   ia64*)
13262     shrext_cmds='.so'
13263     hardcode_into_libs=yes
13264     dynamic_linker="$host_os dld.so"
13265     shlibpath_var=LD_LIBRARY_PATH
13266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268     soname_spec='${libname}${release}${shared_ext}$major'
13269     if test "X$HPUX_IA64_MODE" = X32; then
13270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13271     else
13272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13273     fi
13274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13275     ;;
13276    hppa*64*)
13277      shrext_cmds='.sl'
13278      hardcode_into_libs=yes
13279      dynamic_linker="$host_os dld.sl"
13280      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13281      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13283      soname_spec='${libname}${release}${shared_ext}$major'
13284      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13285      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13286      ;;
13287    *)
13288     shrext_cmds='.sl'
13289     dynamic_linker="$host_os dld.sl"
13290     shlibpath_var=SHLIB_PATH
13291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293     soname_spec='${libname}${release}${shared_ext}$major'
13294     ;;
13295   esac
13296   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13297   postinstall_cmds='chmod 555 $lib'
13298   ;;
13299
13300 irix5* | irix6* | nonstopux*)
13301   case $host_os in
13302     nonstopux*) version_type=nonstopux ;;
13303     *)
13304         if test "$lt_cv_prog_gnu_ld" = yes; then
13305                 version_type=linux
13306         else
13307                 version_type=irix
13308         fi ;;
13309   esac
13310   need_lib_prefix=no
13311   need_version=no
13312   soname_spec='${libname}${release}${shared_ext}$major'
13313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13314   case $host_os in
13315   irix5* | nonstopux*)
13316     libsuff= shlibsuff=
13317     ;;
13318   *)
13319     case $LD in # libtool.m4 will add one of these switches to LD
13320     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13321       libsuff= shlibsuff= libmagic=32-bit;;
13322     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13323       libsuff=32 shlibsuff=N32 libmagic=N32;;
13324     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13325       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13326     *) libsuff= shlibsuff= libmagic=never-match;;
13327     esac
13328     ;;
13329   esac
13330   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13331   shlibpath_overrides_runpath=no
13332   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13333   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13334   hardcode_into_libs=yes
13335   ;;
13336
13337 # No shared lib support for Linux oldld, aout, or coff.
13338 linux*oldld* | linux*aout* | linux*coff*)
13339   dynamic_linker=no
13340   ;;
13341
13342 # This must be Linux ELF.
13343 linux*)
13344   version_type=linux
13345   need_lib_prefix=no
13346   need_version=no
13347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348   soname_spec='${libname}${release}${shared_ext}$major'
13349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   shlibpath_overrides_runpath=no
13352   # This implies no fast_install, which is unacceptable.
13353   # Some rework will be needed to allow for fast_install
13354   # before this can be enabled.
13355   hardcode_into_libs=yes
13356
13357   # Append ld.so.conf contents to the search path
13358   if test -f /etc/ld.so.conf; then
13359     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13360     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13361   fi
13362
13363   # We used to test for /lib/ld.so.1 and disable shared libraries on
13364   # powerpc, because MkLinux only supported shared libraries with the
13365   # GNU dynamic linker.  Since this was broken with cross compilers,
13366   # most powerpc-linux boxes support dynamic linking these days and
13367   # people can always --disable-shared, the test was removed, and we
13368   # assume the GNU/Linux dynamic linker is in use.
13369   dynamic_linker='GNU/Linux ld.so'
13370   ;;
13371
13372 knetbsd*-gnu)
13373   version_type=linux
13374   need_lib_prefix=no
13375   need_version=no
13376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13377   soname_spec='${libname}${release}${shared_ext}$major'
13378   shlibpath_var=LD_LIBRARY_PATH
13379   shlibpath_overrides_runpath=no
13380   hardcode_into_libs=yes
13381   dynamic_linker='GNU ld.so'
13382   ;;
13383
13384 netbsd*)
13385   version_type=sunos
13386   need_lib_prefix=no
13387   need_version=no
13388   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13390     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391     dynamic_linker='NetBSD (a.out) ld.so'
13392   else
13393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13394     soname_spec='${libname}${release}${shared_ext}$major'
13395     dynamic_linker='NetBSD ld.elf_so'
13396   fi
13397   shlibpath_var=LD_LIBRARY_PATH
13398   shlibpath_overrides_runpath=yes
13399   hardcode_into_libs=yes
13400   ;;
13401
13402 newsos6)
13403   version_type=linux
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   shlibpath_overrides_runpath=yes
13407   ;;
13408
13409 nto-qnx*)
13410   version_type=linux
13411   need_lib_prefix=no
13412   need_version=no
13413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414   soname_spec='${libname}${release}${shared_ext}$major'
13415   shlibpath_var=LD_LIBRARY_PATH
13416   shlibpath_overrides_runpath=yes
13417   ;;
13418
13419 openbsd*)
13420   version_type=sunos
13421   need_lib_prefix=no
13422   need_version=no
13423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13424   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13425   shlibpath_var=LD_LIBRARY_PATH
13426   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13427     case $host_os in
13428       openbsd2.[89] | openbsd2.[89].*)
13429         shlibpath_overrides_runpath=no
13430         ;;
13431       *)
13432         shlibpath_overrides_runpath=yes
13433         ;;
13434       esac
13435   else
13436     shlibpath_overrides_runpath=yes
13437   fi
13438   ;;
13439
13440 os2*)
13441   libname_spec='$name'
13442   shrext_cmds=".dll"
13443   need_lib_prefix=no
13444   library_names_spec='$libname${shared_ext} $libname.a'
13445   dynamic_linker='OS/2 ld.exe'
13446   shlibpath_var=LIBPATH
13447   ;;
13448
13449 osf3* | osf4* | osf5*)
13450   version_type=osf
13451   need_lib_prefix=no
13452   need_version=no
13453   soname_spec='${libname}${release}${shared_ext}$major'
13454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13457   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13458   ;;
13459
13460 sco3.2v5*)
13461   version_type=osf
13462   soname_spec='${libname}${release}${shared_ext}$major'
13463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   ;;
13466
13467 solaris*)
13468   version_type=linux
13469   need_lib_prefix=no
13470   need_version=no
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472   soname_spec='${libname}${release}${shared_ext}$major'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   shlibpath_overrides_runpath=yes
13475   hardcode_into_libs=yes
13476   # ldd complains unless libraries are executable
13477   postinstall_cmds='chmod +x $lib'
13478   ;;
13479
13480 sunos4*)
13481   version_type=sunos
13482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13483   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13484   shlibpath_var=LD_LIBRARY_PATH
13485   shlibpath_overrides_runpath=yes
13486   if test "$with_gnu_ld" = yes; then
13487     need_lib_prefix=no
13488   fi
13489   need_version=yes
13490   ;;
13491
13492 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13493   version_type=linux
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   case $host_vendor in
13498     sni)
13499       shlibpath_overrides_runpath=no
13500       need_lib_prefix=no
13501       export_dynamic_flag_spec='${wl}-Blargedynsym'
13502       runpath_var=LD_RUN_PATH
13503       ;;
13504     siemens)
13505       need_lib_prefix=no
13506       ;;
13507     motorola)
13508       need_lib_prefix=no
13509       need_version=no
13510       shlibpath_overrides_runpath=no
13511       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13512       ;;
13513   esac
13514   ;;
13515
13516 sysv4*MP*)
13517   if test -d /usr/nec ;then
13518     version_type=linux
13519     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13520     soname_spec='$libname${shared_ext}.$major'
13521     shlibpath_var=LD_LIBRARY_PATH
13522   fi
13523   ;;
13524
13525 uts4*)
13526   version_type=linux
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528   soname_spec='${libname}${release}${shared_ext}$major'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   ;;
13531
13532 *)
13533   dynamic_linker=no
13534   ;;
13535 esac
13536 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13537 echo "${ECHO_T}$dynamic_linker" >&6
13538 test "$dynamic_linker" = no && can_build_shared=no
13539
13540 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13542 hardcode_action=
13543 if test -n "$hardcode_libdir_flag_spec" || \
13544    test -n "$runpath_var" || \
13545    test "X$hardcode_automatic" = "Xyes" ; then
13546
13547   # We can hardcode non-existant directories.
13548   if test "$hardcode_direct" != no &&
13549      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550      # have to relink, otherwise we might link with an installed library
13551      # when we should be linking with a yet-to-be-installed one
13552      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13553      test "$hardcode_minus_L" != no; then
13554     # Linking always hardcodes the temporary library directory.
13555     hardcode_action=relink
13556   else
13557     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558     hardcode_action=immediate
13559   fi
13560 else
13561   # We cannot hardcode anything, or else we can only hardcode existing
13562   # directories.
13563   hardcode_action=unsupported
13564 fi
13565 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13566 echo "${ECHO_T}$hardcode_action" >&6
13567
13568 if test "$hardcode_action" = relink; then
13569   # Fast installation is not supported
13570   enable_fast_install=no
13571 elif test "$shlibpath_overrides_runpath" = yes ||
13572      test "$enable_shared" = no; then
13573   # Fast installation is not necessary
13574   enable_fast_install=needless
13575 fi
13576
13577 striplib=
13578 old_striplib=
13579 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13580 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13581 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13582   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13583   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13584   echo "$as_me:$LINENO: result: yes" >&5
13585 echo "${ECHO_T}yes" >&6
13586 else
13587 # FIXME - insert some real tests, host_os isn't really good enough
13588   case $host_os in
13589    darwin*)
13590        if test -n "$STRIP" ; then
13591          striplib="$STRIP -x"
13592          echo "$as_me:$LINENO: result: yes" >&5
13593 echo "${ECHO_T}yes" >&6
13594        else
13595   echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6
13597 fi
13598        ;;
13599    *)
13600   echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13602     ;;
13603   esac
13604 fi
13605
13606 if test "x$enable_dlopen" != xyes; then
13607   enable_dlopen=unknown
13608   enable_dlopen_self=unknown
13609   enable_dlopen_self_static=unknown
13610 else
13611   lt_cv_dlopen=no
13612   lt_cv_dlopen_libs=
13613
13614   case $host_os in
13615   beos*)
13616     lt_cv_dlopen="load_add_on"
13617     lt_cv_dlopen_libs=
13618     lt_cv_dlopen_self=yes
13619     ;;
13620
13621   mingw* | pw32*)
13622     lt_cv_dlopen="LoadLibrary"
13623     lt_cv_dlopen_libs=
13624    ;;
13625
13626   cygwin*)
13627     lt_cv_dlopen="dlopen"
13628     lt_cv_dlopen_libs=
13629    ;;
13630
13631   darwin*)
13632   # if libdl is installed we need to link against it
13633     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13634 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-ldl  $LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646
13647 /* Override any gcc2 internal prototype to avoid an error.  */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 /* We use char because int might match the return type of a gcc2
13652    builtin and then its argument prototype would still apply.  */
13653 char dlopen ();
13654 int
13655 main ()
13656 {
13657 dlopen ();
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664   (eval $ac_link) 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -z "$ac_c_werror_flag"
13672                          || test ! -s conftest.err'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest$ac_exeext'
13679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680   (eval $ac_try) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684   ac_cv_lib_dl_dlopen=yes
13685 else
13686   echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 ac_cv_lib_dl_dlopen=no
13690 fi
13691 rm -f conftest.err conftest.$ac_objext \
13692       conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13694 fi
13695 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13697 if test $ac_cv_lib_dl_dlopen = yes; then
13698   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13699 else
13700
13701     lt_cv_dlopen="dyld"
13702     lt_cv_dlopen_libs=
13703     lt_cv_dlopen_self=yes
13704
13705 fi
13706
13707    ;;
13708
13709   *)
13710     echo "$as_me:$LINENO: checking for shl_load" >&5
13711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13712 if test "${ac_cv_func_shl_load+set}" = set; then
13713   echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715   cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13723 #define shl_load innocuous_shl_load
13724
13725 /* System header to define __stub macros and hopefully few prototypes,
13726     which can conflict with char shl_load (); below.
13727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13728     <limits.h> exists even on freestanding compilers.  */
13729
13730 #ifdef __STDC__
13731 # include <limits.h>
13732 #else
13733 # include <assert.h>
13734 #endif
13735
13736 #undef shl_load
13737
13738 /* Override any gcc2 internal prototype to avoid an error.  */
13739 #ifdef __cplusplus
13740 extern "C"
13741 {
13742 #endif
13743 /* We use char because int might match the return type of a gcc2
13744    builtin and then its argument prototype would still apply.  */
13745 char shl_load ();
13746 /* The GNU C library defines this for functions which it implements
13747     to always fail with ENOSYS.  Some functions are actually named
13748     something starting with __ and the normal name is an alias.  */
13749 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13750 choke me
13751 #else
13752 char (*f) () = shl_load;
13753 #endif
13754 #ifdef __cplusplus
13755 }
13756 #endif
13757
13758 int
13759 main ()
13760 {
13761 return f != shl_load;
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768   (eval $ac_link) 2>conftest.er1
13769   ac_status=$?
13770   grep -v '^ *+' conftest.er1 >conftest.err
13771   rm -f conftest.er1
13772   cat conftest.err >&5
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); } &&
13775          { ac_try='test -z "$ac_c_werror_flag"
13776                          || test ! -s conftest.err'
13777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778   (eval $ac_try) 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }; } &&
13782          { ac_try='test -s conftest$ac_exeext'
13783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784   (eval $ac_try) 2>&5
13785   ac_status=$?
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); }; }; then
13788   ac_cv_func_shl_load=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 ac_cv_func_shl_load=no
13794 fi
13795 rm -f conftest.err conftest.$ac_objext \
13796       conftest$ac_exeext conftest.$ac_ext
13797 fi
13798 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13800 if test $ac_cv_func_shl_load = yes; then
13801   lt_cv_dlopen="shl_load"
13802 else
13803   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13804 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13805 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   ac_check_lib_save_LIBS=$LIBS
13809 LIBS="-ldld  $LIBS"
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816
13817 /* Override any gcc2 internal prototype to avoid an error.  */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 /* We use char because int might match the return type of a gcc2
13822    builtin and then its argument prototype would still apply.  */
13823 char shl_load ();
13824 int
13825 main ()
13826 {
13827 shl_load ();
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834   (eval $ac_link) 2>conftest.er1
13835   ac_status=$?
13836   grep -v '^ *+' conftest.er1 >conftest.err
13837   rm -f conftest.er1
13838   cat conftest.err >&5
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } &&
13841          { ac_try='test -z "$ac_c_werror_flag"
13842                          || test ! -s conftest.err'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; } &&
13848          { ac_try='test -s conftest$ac_exeext'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   ac_cv_lib_dld_shl_load=yes
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_cv_lib_dld_shl_load=no
13860 fi
13861 rm -f conftest.err conftest.$ac_objext \
13862       conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13864 fi
13865 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13867 if test $ac_cv_lib_dld_shl_load = yes; then
13868   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13869 else
13870   echo "$as_me:$LINENO: checking for dlopen" >&5
13871 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13872 if test "${ac_cv_func_dlopen+set}" = set; then
13873   echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875   cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h.  */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h.  */
13881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13883 #define dlopen innocuous_dlopen
13884
13885 /* System header to define __stub macros and hopefully few prototypes,
13886     which can conflict with char dlopen (); below.
13887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888     <limits.h> exists even on freestanding compilers.  */
13889
13890 #ifdef __STDC__
13891 # include <limits.h>
13892 #else
13893 # include <assert.h>
13894 #endif
13895
13896 #undef dlopen
13897
13898 /* Override any gcc2 internal prototype to avoid an error.  */
13899 #ifdef __cplusplus
13900 extern "C"
13901 {
13902 #endif
13903 /* We use char because int might match the return type of a gcc2
13904    builtin and then its argument prototype would still apply.  */
13905 char dlopen ();
13906 /* The GNU C library defines this for functions which it implements
13907     to always fail with ENOSYS.  Some functions are actually named
13908     something starting with __ and the normal name is an alias.  */
13909 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13910 choke me
13911 #else
13912 char (*f) () = dlopen;
13913 #endif
13914 #ifdef __cplusplus
13915 }
13916 #endif
13917
13918 int
13919 main ()
13920 {
13921 return f != dlopen;
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928   (eval $ac_link) 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_c_werror_flag"
13936                          || test ! -s conftest.err'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; } &&
13942          { ac_try='test -s conftest$ac_exeext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_cv_func_dlopen=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_cv_func_dlopen=no
13954 fi
13955 rm -f conftest.err conftest.$ac_objext \
13956       conftest$ac_exeext conftest.$ac_ext
13957 fi
13958 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13959 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13960 if test $ac_cv_func_dlopen = yes; then
13961   lt_cv_dlopen="dlopen"
13962 else
13963   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968   ac_check_lib_save_LIBS=$LIBS
13969 LIBS="-ldl  $LIBS"
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h.  */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h.  */
13976
13977 /* Override any gcc2 internal prototype to avoid an error.  */
13978 #ifdef __cplusplus
13979 extern "C"
13980 #endif
13981 /* We use char because int might match the return type of a gcc2
13982    builtin and then its argument prototype would still apply.  */
13983 char dlopen ();
13984 int
13985 main ()
13986 {
13987 dlopen ();
13988   ;
13989   return 0;
13990 }
13991 _ACEOF
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13994   (eval $ac_link) 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } &&
14001          { ac_try='test -z "$ac_c_werror_flag"
14002                          || test ! -s conftest.err'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; } &&
14008          { ac_try='test -s conftest$ac_exeext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_cv_lib_dl_dlopen=yes
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_cv_lib_dl_dlopen=no
14020 fi
14021 rm -f conftest.err conftest.$ac_objext \
14022       conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14024 fi
14025 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14027 if test $ac_cv_lib_dl_dlopen = yes; then
14028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14029 else
14030   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lsvld  $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h.  */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h.  */
14043
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 /* We use char because int might match the return type of a gcc2
14049    builtin and then its argument prototype would still apply.  */
14050 char dlopen ();
14051 int
14052 main ()
14053 {
14054 dlopen ();
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061   (eval $ac_link) 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -z "$ac_c_werror_flag"
14069                          || test ! -s conftest.err'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; } &&
14075          { ac_try='test -s conftest$ac_exeext'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }; then
14081   ac_cv_lib_svld_dlopen=yes
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_cv_lib_svld_dlopen=no
14087 fi
14088 rm -f conftest.err conftest.$ac_objext \
14089       conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14091 fi
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14094 if test $ac_cv_lib_svld_dlopen = yes; then
14095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14096 else
14097   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14098 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   ac_check_lib_save_LIBS=$LIBS
14103 LIBS="-ldld  $LIBS"
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110
14111 /* Override any gcc2 internal prototype to avoid an error.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 /* We use char because int might match the return type of a gcc2
14116    builtin and then its argument prototype would still apply.  */
14117 char dld_link ();
14118 int
14119 main ()
14120 {
14121 dld_link ();
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128   (eval $ac_link) 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } &&
14135          { ac_try='test -z "$ac_c_werror_flag"
14136                          || test ! -s conftest.err'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; } &&
14142          { ac_try='test -s conftest$ac_exeext'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; }; then
14148   ac_cv_lib_dld_dld_link=yes
14149 else
14150   echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153 ac_cv_lib_dld_dld_link=no
14154 fi
14155 rm -f conftest.err conftest.$ac_objext \
14156       conftest$ac_exeext conftest.$ac_ext
14157 LIBS=$ac_check_lib_save_LIBS
14158 fi
14159 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14160 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14161 if test $ac_cv_lib_dld_dld_link = yes; then
14162   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14163 fi
14164
14165
14166 fi
14167
14168
14169 fi
14170
14171
14172 fi
14173
14174
14175 fi
14176
14177
14178 fi
14179
14180     ;;
14181   esac
14182
14183   if test "x$lt_cv_dlopen" != xno; then
14184     enable_dlopen=yes
14185   else
14186     enable_dlopen=no
14187   fi
14188
14189   case $lt_cv_dlopen in
14190   dlopen)
14191     save_CPPFLAGS="$CPPFLAGS"
14192     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14193
14194     save_LDFLAGS="$LDFLAGS"
14195     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14196
14197     save_LIBS="$LIBS"
14198     LIBS="$lt_cv_dlopen_libs $LIBS"
14199
14200     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14201 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14202 if test "${lt_cv_dlopen_self+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205           if test "$cross_compiling" = yes; then :
14206   lt_cv_dlopen_self=cross
14207 else
14208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14209   lt_status=$lt_dlunknown
14210   cat > conftest.$ac_ext <<EOF
14211 #line 14211 "configure"
14212 #include "confdefs.h"
14213
14214 #if HAVE_DLFCN_H
14215 #include <dlfcn.h>
14216 #endif
14217
14218 #include <stdio.h>
14219
14220 #ifdef RTLD_GLOBAL
14221 #  define LT_DLGLOBAL           RTLD_GLOBAL
14222 #else
14223 #  ifdef DL_GLOBAL
14224 #    define LT_DLGLOBAL         DL_GLOBAL
14225 #  else
14226 #    define LT_DLGLOBAL         0
14227 #  endif
14228 #endif
14229
14230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14231    find out it does not work in some platform. */
14232 #ifndef LT_DLLAZY_OR_NOW
14233 #  ifdef RTLD_LAZY
14234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14235 #  else
14236 #    ifdef DL_LAZY
14237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14238 #    else
14239 #      ifdef RTLD_NOW
14240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14241 #      else
14242 #        ifdef DL_NOW
14243 #          define LT_DLLAZY_OR_NOW      DL_NOW
14244 #        else
14245 #          define LT_DLLAZY_OR_NOW      0
14246 #        endif
14247 #      endif
14248 #    endif
14249 #  endif
14250 #endif
14251
14252 #ifdef __cplusplus
14253 extern "C" void exit (int);
14254 #endif
14255
14256 void fnord() { int i=42;}
14257 int main ()
14258 {
14259   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14260   int status = $lt_dlunknown;
14261
14262   if (self)
14263     {
14264       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14265       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14266       /* dlclose (self); */
14267     }
14268
14269     exit (status);
14270 }
14271 EOF
14272   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14273   (eval $ac_link) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14277     (./conftest; exit; ) 2>/dev/null
14278     lt_status=$?
14279     case x$lt_status in
14280       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14281       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14282       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14283     esac
14284   else :
14285     # compilation failed
14286     lt_cv_dlopen_self=no
14287   fi
14288 fi
14289 rm -fr conftest*
14290
14291
14292 fi
14293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14294 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14295
14296     if test "x$lt_cv_dlopen_self" = xyes; then
14297       LDFLAGS="$LDFLAGS $link_static_flag"
14298       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14299 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14300 if test "${lt_cv_dlopen_self_static+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303           if test "$cross_compiling" = yes; then :
14304   lt_cv_dlopen_self_static=cross
14305 else
14306   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14307   lt_status=$lt_dlunknown
14308   cat > conftest.$ac_ext <<EOF
14309 #line 14309 "configure"
14310 #include "confdefs.h"
14311
14312 #if HAVE_DLFCN_H
14313 #include <dlfcn.h>
14314 #endif
14315
14316 #include <stdio.h>
14317
14318 #ifdef RTLD_GLOBAL
14319 #  define LT_DLGLOBAL           RTLD_GLOBAL
14320 #else
14321 #  ifdef DL_GLOBAL
14322 #    define LT_DLGLOBAL         DL_GLOBAL
14323 #  else
14324 #    define LT_DLGLOBAL         0
14325 #  endif
14326 #endif
14327
14328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329    find out it does not work in some platform. */
14330 #ifndef LT_DLLAZY_OR_NOW
14331 #  ifdef RTLD_LAZY
14332 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14333 #  else
14334 #    ifdef DL_LAZY
14335 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14336 #    else
14337 #      ifdef RTLD_NOW
14338 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14339 #      else
14340 #        ifdef DL_NOW
14341 #          define LT_DLLAZY_OR_NOW      DL_NOW
14342 #        else
14343 #          define LT_DLLAZY_OR_NOW      0
14344 #        endif
14345 #      endif
14346 #    endif
14347 #  endif
14348 #endif
14349
14350 #ifdef __cplusplus
14351 extern "C" void exit (int);
14352 #endif
14353
14354 void fnord() { int i=42;}
14355 int main ()
14356 {
14357   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14358   int status = $lt_dlunknown;
14359
14360   if (self)
14361     {
14362       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14363       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14364       /* dlclose (self); */
14365     }
14366
14367     exit (status);
14368 }
14369 EOF
14370   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371   (eval $ac_link) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14375     (./conftest; exit; ) 2>/dev/null
14376     lt_status=$?
14377     case x$lt_status in
14378       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14379       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14380       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14381     esac
14382   else :
14383     # compilation failed
14384     lt_cv_dlopen_self_static=no
14385   fi
14386 fi
14387 rm -fr conftest*
14388
14389
14390 fi
14391 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14392 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14393     fi
14394
14395     CPPFLAGS="$save_CPPFLAGS"
14396     LDFLAGS="$save_LDFLAGS"
14397     LIBS="$save_LIBS"
14398     ;;
14399   esac
14400
14401   case $lt_cv_dlopen_self in
14402   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14403   *) enable_dlopen_self=unknown ;;
14404   esac
14405
14406   case $lt_cv_dlopen_self_static in
14407   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14408   *) enable_dlopen_self_static=unknown ;;
14409   esac
14410 fi
14411
14412
14413 # Report which librarie types wil actually be built
14414 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14416 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14417 echo "${ECHO_T}$can_build_shared" >&6
14418
14419 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14421 test "$can_build_shared" = "no" && enable_shared=no
14422
14423 # On AIX, shared libraries and static libraries use the same namespace, and
14424 # are all built from PIC.
14425 case "$host_os" in
14426 aix3*)
14427   test "$enable_shared" = yes && enable_static=no
14428   if test -n "$RANLIB"; then
14429     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14430     postinstall_cmds='$RANLIB $lib'
14431   fi
14432   ;;
14433
14434 aix4* | aix5*)
14435   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14436     test "$enable_shared" = yes && enable_static=no
14437   fi
14438     ;;
14439 esac
14440 echo "$as_me:$LINENO: result: $enable_shared" >&5
14441 echo "${ECHO_T}$enable_shared" >&6
14442
14443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14445 # Make sure either enable_shared or enable_static is yes.
14446 test "$enable_shared" = yes || enable_static=yes
14447 echo "$as_me:$LINENO: result: $enable_static" >&5
14448 echo "${ECHO_T}$enable_static" >&6
14449
14450 # The else clause should only fire when bootstrapping the
14451 # libtool distribution, otherwise you forgot to ship ltmain.sh
14452 # with your package, and you will get complaints that there are
14453 # no rules to generate ltmain.sh.
14454 if test -f "$ltmain"; then
14455   # See if we are running on zsh, and set the options which allow our commands through
14456   # without removal of \ escapes.
14457   if test -n "${ZSH_VERSION+set}" ; then
14458     setopt NO_GLOB_SUBST
14459   fi
14460   # Now quote all the things that may contain metacharacters while being
14461   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14462   # variables and quote the copies for generation of the libtool script.
14463   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14464     SED SHELL STRIP \
14465     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14466     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14467     deplibs_check_method reload_flag reload_cmds need_locks \
14468     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14469     lt_cv_sys_global_symbol_to_c_name_address \
14470     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14471     old_postinstall_cmds old_postuninstall_cmds \
14472     compiler \
14473     CC \
14474     LD \
14475     lt_prog_compiler_wl \
14476     lt_prog_compiler_pic \
14477     lt_prog_compiler_static \
14478     lt_prog_compiler_no_builtin_flag \
14479     export_dynamic_flag_spec \
14480     thread_safe_flag_spec \
14481     whole_archive_flag_spec \
14482     enable_shared_with_static_runtimes \
14483     old_archive_cmds \
14484     old_archive_from_new_cmds \
14485     predep_objects \
14486     postdep_objects \
14487     predeps \
14488     postdeps \
14489     compiler_lib_search_path \
14490     archive_cmds \
14491     archive_expsym_cmds \
14492     postinstall_cmds \
14493     postuninstall_cmds \
14494     old_archive_from_expsyms_cmds \
14495     allow_undefined_flag \
14496     no_undefined_flag \
14497     export_symbols_cmds \
14498     hardcode_libdir_flag_spec \
14499     hardcode_libdir_flag_spec_ld \
14500     hardcode_libdir_separator \
14501     hardcode_automatic \
14502     module_cmds \
14503     module_expsym_cmds \
14504     lt_cv_prog_compiler_c_o \
14505     exclude_expsyms \
14506     include_expsyms; do
14507
14508     case $var in
14509     old_archive_cmds | \
14510     old_archive_from_new_cmds | \
14511     archive_cmds | \
14512     archive_expsym_cmds | \
14513     module_cmds | \
14514     module_expsym_cmds | \
14515     old_archive_from_expsyms_cmds | \
14516     export_symbols_cmds | \
14517     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14518     postinstall_cmds | postuninstall_cmds | \
14519     old_postinstall_cmds | old_postuninstall_cmds | \
14520     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14521       # Double-quote double-evaled strings.
14522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14523       ;;
14524     *)
14525       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14526       ;;
14527     esac
14528   done
14529
14530   case $lt_echo in
14531   *'\$0 --fallback-echo"')
14532     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14533     ;;
14534   esac
14535
14536 cfgfile="${ofile}T"
14537   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14538   $rm -f "$cfgfile"
14539   { echo "$as_me:$LINENO: creating $ofile" >&5
14540 echo "$as_me: creating $ofile" >&6;}
14541
14542   cat <<__EOF__ >> "$cfgfile"
14543 #! $SHELL
14544
14545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14547 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14548 #
14549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14550 # Free Software Foundation, Inc.
14551 #
14552 # This file is part of GNU Libtool:
14553 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14554 #
14555 # This program is free software; you can redistribute it and/or modify
14556 # it under the terms of the GNU General Public License as published by
14557 # the Free Software Foundation; either version 2 of the License, or
14558 # (at your option) any later version.
14559 #
14560 # This program is distributed in the hope that it will be useful, but
14561 # WITHOUT ANY WARRANTY; without even the implied warranty of
14562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14563 # General Public License for more details.
14564 #
14565 # You should have received a copy of the GNU General Public License
14566 # along with this program; if not, write to the Free Software
14567 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14568 #
14569 # As a special exception to the GNU General Public License, if you
14570 # distribute this file as part of a program that contains a
14571 # configuration script generated by Autoconf, you may include it under
14572 # the same distribution terms that you use for the rest of that program.
14573
14574 # A sed program that does not truncate output.
14575 SED=$lt_SED
14576
14577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14578 Xsed="$SED -e s/^X//"
14579
14580 # The HP-UX ksh and POSIX shell print the target directory to stdout
14581 # if CDPATH is set.
14582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14583
14584 # The names of the tagged configurations supported by this script.
14585 available_tags=
14586
14587 # ### BEGIN LIBTOOL CONFIG
14588
14589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14590
14591 # Shell to use when invoking shell scripts.
14592 SHELL=$lt_SHELL
14593
14594 # Whether or not to build shared libraries.
14595 build_libtool_libs=$enable_shared
14596
14597 # Whether or not to build static libraries.
14598 build_old_libs=$enable_static
14599
14600 # Whether or not to add -lc for building shared libraries.
14601 build_libtool_need_lc=$archive_cmds_need_lc
14602
14603 # Whether or not to disallow shared libs when runtime libs are static
14604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14605
14606 # Whether or not to optimize for fast installation.
14607 fast_install=$enable_fast_install
14608
14609 # The host system.
14610 host_alias=$host_alias
14611 host=$host
14612
14613 # An echo program that does not interpret backslashes.
14614 echo=$lt_echo
14615
14616 # The archiver.
14617 AR=$lt_AR
14618 AR_FLAGS=$lt_AR_FLAGS
14619
14620 # A C compiler.
14621 LTCC=$lt_LTCC
14622
14623 # A language-specific compiler.
14624 CC=$lt_compiler
14625
14626 # Is the compiler the GNU C compiler?
14627 with_gcc=$GCC
14628
14629 # An ERE matcher.
14630 EGREP=$lt_EGREP
14631
14632 # The linker used to build libraries.
14633 LD=$lt_LD
14634
14635 # Whether we need hard or soft links.
14636 LN_S=$lt_LN_S
14637
14638 # A BSD-compatible nm program.
14639 NM=$lt_NM
14640
14641 # A symbol stripping program
14642 STRIP=$lt_STRIP
14643
14644 # Used to examine libraries when file_magic_cmd begins "file"
14645 MAGIC_CMD=$MAGIC_CMD
14646
14647 # Used on cygwin: DLL creation program.
14648 DLLTOOL="$DLLTOOL"
14649
14650 # Used on cygwin: object dumper.
14651 OBJDUMP="$OBJDUMP"
14652
14653 # Used on cygwin: assembler.
14654 AS="$AS"
14655
14656 # The name of the directory that contains temporary libtool files.
14657 objdir=$objdir
14658
14659 # How to create reloadable object files.
14660 reload_flag=$lt_reload_flag
14661 reload_cmds=$lt_reload_cmds
14662
14663 # How to pass a linker flag through the compiler.
14664 wl=$lt_lt_prog_compiler_wl
14665
14666 # Object file suffix (normally "o").
14667 objext="$ac_objext"
14668
14669 # Old archive suffix (normally "a").
14670 libext="$libext"
14671
14672 # Shared library suffix (normally ".so").
14673 shrext_cmds='$shrext_cmds'
14674
14675 # Executable file suffix (normally "").
14676 exeext="$exeext"
14677
14678 # Additional compiler flags for building library objects.
14679 pic_flag=$lt_lt_prog_compiler_pic
14680 pic_mode=$pic_mode
14681
14682 # What is the maximum length of a command?
14683 max_cmd_len=$lt_cv_sys_max_cmd_len
14684
14685 # Does compiler simultaneously support -c and -o options?
14686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14687
14688 # Must we lock files when doing compilation ?
14689 need_locks=$lt_need_locks
14690
14691 # Do we need the lib prefix for modules?
14692 need_lib_prefix=$need_lib_prefix
14693
14694 # Do we need a version for libraries?
14695 need_version=$need_version
14696
14697 # Whether dlopen is supported.
14698 dlopen_support=$enable_dlopen
14699
14700 # Whether dlopen of programs is supported.
14701 dlopen_self=$enable_dlopen_self
14702
14703 # Whether dlopen of statically linked programs is supported.
14704 dlopen_self_static=$enable_dlopen_self_static
14705
14706 # Compiler flag to prevent dynamic linking.
14707 link_static_flag=$lt_lt_prog_compiler_static
14708
14709 # Compiler flag to turn off builtin functions.
14710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14711
14712 # Compiler flag to allow reflexive dlopens.
14713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14714
14715 # Compiler flag to generate shared objects directly from archives.
14716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14717
14718 # Compiler flag to generate thread-safe objects.
14719 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14720
14721 # Library versioning type.
14722 version_type=$version_type
14723
14724 # Format of library name prefix.
14725 libname_spec=$lt_libname_spec
14726
14727 # List of archive names.  First name is the real one, the rest are links.
14728 # The last name is the one that the linker finds with -lNAME.
14729 library_names_spec=$lt_library_names_spec
14730
14731 # The coded name of the library, if different from the real name.
14732 soname_spec=$lt_soname_spec
14733
14734 # Commands used to build and install an old-style archive.
14735 RANLIB=$lt_RANLIB
14736 old_archive_cmds=$lt_old_archive_cmds
14737 old_postinstall_cmds=$lt_old_postinstall_cmds
14738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14739
14740 # Create an old-style archive from a shared archive.
14741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14742
14743 # Create a temporary old-style archive to link instead of a shared archive.
14744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14745
14746 # Commands used to build and install a shared archive.
14747 archive_cmds=$lt_archive_cmds
14748 archive_expsym_cmds=$lt_archive_expsym_cmds
14749 postinstall_cmds=$lt_postinstall_cmds
14750 postuninstall_cmds=$lt_postuninstall_cmds
14751
14752 # Commands used to build a loadable module (assumed same as above if empty)
14753 module_cmds=$lt_module_cmds
14754 module_expsym_cmds=$lt_module_expsym_cmds
14755
14756 # Commands to strip libraries.
14757 old_striplib=$lt_old_striplib
14758 striplib=$lt_striplib
14759
14760 # Dependencies to place before the objects being linked to create a
14761 # shared library.
14762 predep_objects=$lt_predep_objects
14763
14764 # Dependencies to place after the objects being linked to create a
14765 # shared library.
14766 postdep_objects=$lt_postdep_objects
14767
14768 # Dependencies to place before the objects being linked to create a
14769 # shared library.
14770 predeps=$lt_predeps
14771
14772 # Dependencies to place after the objects being linked to create a
14773 # shared library.
14774 postdeps=$lt_postdeps
14775
14776 # The library search path used internally by the compiler when linking
14777 # a shared library.
14778 compiler_lib_search_path=$lt_compiler_lib_search_path
14779
14780 # Method to check whether dependent libraries are shared objects.
14781 deplibs_check_method=$lt_deplibs_check_method
14782
14783 # Command to use when deplibs_check_method == file_magic.
14784 file_magic_cmd=$lt_file_magic_cmd
14785
14786 # Flag that allows shared libraries with undefined symbols to be built.
14787 allow_undefined_flag=$lt_allow_undefined_flag
14788
14789 # Flag that forces no undefined symbols.
14790 no_undefined_flag=$lt_no_undefined_flag
14791
14792 # Commands used to finish a libtool library installation in a directory.
14793 finish_cmds=$lt_finish_cmds
14794
14795 # Same as above, but a single script fragment to be evaled but not shown.
14796 finish_eval=$lt_finish_eval
14797
14798 # Take the output of nm and produce a listing of raw symbols and C names.
14799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14800
14801 # Transform the output of nm in a proper C declaration
14802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14803
14804 # Transform the output of nm in a C name address pair
14805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14806
14807 # This is the shared library runtime path variable.
14808 runpath_var=$runpath_var
14809
14810 # This is the shared library path variable.
14811 shlibpath_var=$shlibpath_var
14812
14813 # Is shlibpath searched before the hard-coded library search path?
14814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14815
14816 # How to hardcode a shared library path into an executable.
14817 hardcode_action=$hardcode_action
14818
14819 # Whether we should hardcode library paths into libraries.
14820 hardcode_into_libs=$hardcode_into_libs
14821
14822 # Flag to hardcode \$libdir into a binary during linking.
14823 # This must work even if \$libdir does not exist.
14824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14825
14826 # If ld is used when linking, flag to hardcode \$libdir into
14827 # a binary during linking. This must work even if \$libdir does
14828 # not exist.
14829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14830
14831 # Whether we need a single -rpath flag with a separated argument.
14832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14833
14834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14835 # resulting binary.
14836 hardcode_direct=$hardcode_direct
14837
14838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14839 # resulting binary.
14840 hardcode_minus_L=$hardcode_minus_L
14841
14842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14843 # the resulting binary.
14844 hardcode_shlibpath_var=$hardcode_shlibpath_var
14845
14846 # Set to yes if building a shared library automatically hardcodes DIR into the library
14847 # and all subsequent libraries and executables linked against it.
14848 hardcode_automatic=$hardcode_automatic
14849
14850 # Variables whose values should be saved in libtool wrapper scripts and
14851 # restored at relink time.
14852 variables_saved_for_relink="$variables_saved_for_relink"
14853
14854 # Whether libtool must link a program against all its dependency libraries.
14855 link_all_deplibs=$link_all_deplibs
14856
14857 # Compile-time system search path for libraries
14858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14859
14860 # Run-time system search path for libraries
14861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14862
14863 # Fix the shell variable \$srcfile for the compiler.
14864 fix_srcfile_path="$fix_srcfile_path"
14865
14866 # Set to yes if exported symbols are required.
14867 always_export_symbols=$always_export_symbols
14868
14869 # The commands to list exported symbols.
14870 export_symbols_cmds=$lt_export_symbols_cmds
14871
14872 # The commands to extract the exported symbol list from a shared archive.
14873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14874
14875 # Symbols that should not be listed in the preloaded symbols.
14876 exclude_expsyms=$lt_exclude_expsyms
14877
14878 # Symbols that must always be exported.
14879 include_expsyms=$lt_include_expsyms
14880
14881 # ### END LIBTOOL CONFIG
14882
14883 __EOF__
14884
14885
14886   case $host_os in
14887   aix3*)
14888     cat <<\EOF >> "$cfgfile"
14889
14890 # AIX sometimes has problems with the GCC collect2 program.  For some
14891 # reason, if we set the COLLECT_NAMES environment variable, the problems
14892 # vanish in a puff of smoke.
14893 if test "X${COLLECT_NAMES+set}" != Xset; then
14894   COLLECT_NAMES=
14895   export COLLECT_NAMES
14896 fi
14897 EOF
14898     ;;
14899   esac
14900
14901   # We use sed instead of cat because bash on DJGPP gets confused if
14902   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14903   # text mode, it properly converts lines to CR/LF.  This bash problem
14904   # is reportedly fixed, but why not run on old versions too?
14905   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14906
14907   mv -f "$cfgfile" "$ofile" || \
14908     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14909   chmod +x "$ofile"
14910
14911 else
14912   # If there is no Makefile yet, we rely on a make rule to execute
14913   # `config.status --recheck' to rerun these tests and create the
14914   # libtool script then.
14915   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14916   if test -f "$ltmain_in"; then
14917     test -f Makefile && make "$ltmain"
14918   fi
14919 fi
14920
14921
14922 ac_ext=c
14923 ac_cpp='$CPP $CPPFLAGS'
14924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927
14928 CC="$lt_save_CC"
14929
14930
14931 # Check whether --with-tags or --without-tags was given.
14932 if test "${with_tags+set}" = set; then
14933   withval="$with_tags"
14934   tagnames="$withval"
14935 fi;
14936
14937 if test -f "$ltmain" && test -n "$tagnames"; then
14938   if test ! -f "${ofile}"; then
14939     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14941   fi
14942
14943   if test -z "$LTCC"; then
14944     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14945     if test -z "$LTCC"; then
14946       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14948     else
14949       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14951     fi
14952   fi
14953
14954   # Extract list of available tagged configurations in $ofile.
14955   # Note that this assumes the entire list is on one line.
14956   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14957
14958   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14959   for tagname in $tagnames; do
14960     IFS="$lt_save_ifs"
14961     # Check whether tagname contains only valid characters
14962     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14963     "") ;;
14964     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14965 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14966    { (exit 1); exit 1; }; }
14967         ;;
14968     esac
14969
14970     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14971     then
14972       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14973 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14974    { (exit 1); exit 1; }; }
14975     fi
14976
14977     # Update the list of available tags.
14978     if test -n "$tagname"; then
14979       echo appending configuration tag "$tagname" to $ofile
14980
14981       case $tagname in
14982       CXX)
14983         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14984             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14985             (test "X$CXX" != "Xg++"))) ; then
14986           ac_ext=cc
14987 ac_cpp='$CXXCPP $CPPFLAGS'
14988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14991
14992
14993
14994
14995 archive_cmds_need_lc_CXX=no
14996 allow_undefined_flag_CXX=
14997 always_export_symbols_CXX=no
14998 archive_expsym_cmds_CXX=
14999 export_dynamic_flag_spec_CXX=
15000 hardcode_direct_CXX=no
15001 hardcode_libdir_flag_spec_CXX=
15002 hardcode_libdir_flag_spec_ld_CXX=
15003 hardcode_libdir_separator_CXX=
15004 hardcode_minus_L_CXX=no
15005 hardcode_automatic_CXX=no
15006 module_cmds_CXX=
15007 module_expsym_cmds_CXX=
15008 link_all_deplibs_CXX=unknown
15009 old_archive_cmds_CXX=$old_archive_cmds
15010 no_undefined_flag_CXX=
15011 whole_archive_flag_spec_CXX=
15012 enable_shared_with_static_runtimes_CXX=no
15013
15014 # Dependencies to place before and after the object being linked:
15015 predep_objects_CXX=
15016 postdep_objects_CXX=
15017 predeps_CXX=
15018 postdeps_CXX=
15019 compiler_lib_search_path_CXX=
15020
15021 # Source file extension for C++ test sources.
15022 ac_ext=cc
15023
15024 # Object file extension for compiled C++ test sources.
15025 objext=o
15026 objext_CXX=$objext
15027
15028 # Code to be used in simple compile tests
15029 lt_simple_compile_test_code="int some_variable = 0;\n"
15030
15031 # Code to be used in simple link tests
15032 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15033
15034 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15035
15036 # If no C compiler was specified, use CC.
15037 LTCC=${LTCC-"$CC"}
15038
15039 # Allow CC to be a program name with arguments.
15040 compiler=$CC
15041
15042
15043 # Allow CC to be a program name with arguments.
15044 lt_save_CC=$CC
15045 lt_save_LD=$LD
15046 lt_save_GCC=$GCC
15047 GCC=$GXX
15048 lt_save_with_gnu_ld=$with_gnu_ld
15049 lt_save_path_LD=$lt_cv_path_LD
15050 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15051   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15052 else
15053   unset lt_cv_prog_gnu_ld
15054 fi
15055 if test -n "${lt_cv_path_LDCXX+set}"; then
15056   lt_cv_path_LD=$lt_cv_path_LDCXX
15057 else
15058   unset lt_cv_path_LD
15059 fi
15060 test -z "${LDCXX+set}" || LD=$LDCXX
15061 CC=${CXX-"c++"}
15062 compiler=$CC
15063 compiler_CXX=$CC
15064 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15065
15066 # We don't want -fno-exception wen compiling C++ code, so set the
15067 # no_builtin_flag separately
15068 if test "$GXX" = yes; then
15069   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15070 else
15071   lt_prog_compiler_no_builtin_flag_CXX=
15072 fi
15073
15074 if test "$GXX" = yes; then
15075   # Set up default GNU C++ configuration
15076
15077
15078 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15079 if test "${with_gnu_ld+set}" = set; then
15080   withval="$with_gnu_ld"
15081   test "$withval" = no || with_gnu_ld=yes
15082 else
15083   with_gnu_ld=no
15084 fi;
15085 ac_prog=ld
15086 if test "$GCC" = yes; then
15087   # Check if gcc -print-prog-name=ld gives a path.
15088   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15089 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15090   case $host in
15091   *-*-mingw*)
15092     # gcc leaves a trailing carriage return which upsets mingw
15093     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15094   *)
15095     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15096   esac
15097   case $ac_prog in
15098     # Accept absolute paths.
15099     [\\/]* | ?:[\\/]*)
15100       re_direlt='/[^/][^/]*/\.\./'
15101       # Canonicalize the pathname of ld
15102       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15103       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15104         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15105       done
15106       test -z "$LD" && LD="$ac_prog"
15107       ;;
15108   "")
15109     # If it fails, then pretend we aren't using GCC.
15110     ac_prog=ld
15111     ;;
15112   *)
15113     # If it is relative, then search for the first ld in PATH.
15114     with_gnu_ld=unknown
15115     ;;
15116   esac
15117 elif test "$with_gnu_ld" = yes; then
15118   echo "$as_me:$LINENO: checking for GNU ld" >&5
15119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15120 else
15121   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15123 fi
15124 if test "${lt_cv_path_LD+set}" = set; then
15125   echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127   if test -z "$LD"; then
15128   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15129   for ac_dir in $PATH; do
15130     IFS="$lt_save_ifs"
15131     test -z "$ac_dir" && ac_dir=.
15132     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15133       lt_cv_path_LD="$ac_dir/$ac_prog"
15134       # Check to see if the program is GNU ld.  I'd rather use --version,
15135       # but apparently some GNU ld's only accept -v.
15136       # Break only if it was the GNU/non-GNU ld that we prefer.
15137       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15138       *GNU* | *'with BFD'*)
15139         test "$with_gnu_ld" != no && break
15140         ;;
15141       *)
15142         test "$with_gnu_ld" != yes && break
15143         ;;
15144       esac
15145     fi
15146   done
15147   IFS="$lt_save_ifs"
15148 else
15149   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15150 fi
15151 fi
15152
15153 LD="$lt_cv_path_LD"
15154 if test -n "$LD"; then
15155   echo "$as_me:$LINENO: result: $LD" >&5
15156 echo "${ECHO_T}$LD" >&6
15157 else
15158   echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6
15160 fi
15161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15163    { (exit 1); exit 1; }; }
15164 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15166 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15170 case `$LD -v 2>&1 </dev/null` in
15171 *GNU* | *'with BFD'*)
15172   lt_cv_prog_gnu_ld=yes
15173   ;;
15174 *)
15175   lt_cv_prog_gnu_ld=no
15176   ;;
15177 esac
15178 fi
15179 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15180 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15181 with_gnu_ld=$lt_cv_prog_gnu_ld
15182
15183
15184
15185   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15186   # archiving commands below assume that GNU ld is being used.
15187   if test "$with_gnu_ld" = yes; then
15188     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189     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'
15190
15191     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15192     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15193
15194     # If archive_cmds runs LD, not CC, wlarc should be empty
15195     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15196     #     investigate it a little bit more. (MM)
15197     wlarc='${wl}'
15198
15199     # ancient GNU ld didn't support --whole-archive et. al.
15200     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15201         grep 'no-whole-archive' > /dev/null; then
15202       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203     else
15204       whole_archive_flag_spec_CXX=
15205     fi
15206   else
15207     with_gnu_ld=no
15208     wlarc=
15209
15210     # A generic and very simple default shared library creation
15211     # command for GNU C++ for the case where it uses the native
15212     # linker, instead of GNU ld.  If possible, this setting should
15213     # overridden to take advantage of the native linker features on
15214     # the platform it is being used on.
15215     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15216   fi
15217
15218   # Commands to make compiler produce verbose output that lists
15219   # what "hidden" libraries, object files and flags are used when
15220   # linking a shared library.
15221   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15222
15223 else
15224   GXX=no
15225   with_gnu_ld=no
15226   wlarc=
15227 fi
15228
15229 # PORTME: fill in a description of your system's C++ link characteristics
15230 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15232 ld_shlibs_CXX=yes
15233 case $host_os in
15234   aix3*)
15235     # FIXME: insert proper C++ library support
15236     ld_shlibs_CXX=no
15237     ;;
15238   aix4* | aix5*)
15239     if test "$host_cpu" = ia64; then
15240       # On IA64, the linker does run time linking by default, so we don't
15241       # have to do anything special.
15242       aix_use_runtimelinking=no
15243       exp_sym_flag='-Bexport'
15244       no_entry_flag=""
15245     else
15246       aix_use_runtimelinking=no
15247
15248       # Test if we are trying to use run time linking or normal
15249       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250       # need to do runtime linking.
15251       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252         for ld_flag in $LDFLAGS; do
15253           case $ld_flag in
15254           *-brtl*)
15255             aix_use_runtimelinking=yes
15256             break
15257             ;;
15258           esac
15259         done
15260       esac
15261
15262       exp_sym_flag='-bexport'
15263       no_entry_flag='-bnoentry'
15264     fi
15265
15266     # When large executables or shared objects are built, AIX ld can
15267     # have problems creating the table of contents.  If linking a library
15268     # or program results in "error TOC overflow" add -mminimal-toc to
15269     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15270     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15271
15272     archive_cmds_CXX=''
15273     hardcode_direct_CXX=yes
15274     hardcode_libdir_separator_CXX=':'
15275     link_all_deplibs_CXX=yes
15276
15277     if test "$GXX" = yes; then
15278       case $host_os in aix4.012|aix4.012.*)
15279       # We only want to do this on AIX 4.2 and lower, the check
15280       # below for broken collect2 doesn't work under 4.3+
15281         collect2name=`${CC} -print-prog-name=collect2`
15282         if test -f "$collect2name" && \
15283            strings "$collect2name" | grep resolve_lib_name >/dev/null
15284         then
15285           # We have reworked collect2
15286           hardcode_direct_CXX=yes
15287         else
15288           # We have old collect2
15289           hardcode_direct_CXX=unsupported
15290           # It fails to find uninstalled libraries when the uninstalled
15291           # path is not listed in the libpath.  Setting hardcode_minus_L
15292           # to unsupported forces relinking
15293           hardcode_minus_L_CXX=yes
15294           hardcode_libdir_flag_spec_CXX='-L$libdir'
15295           hardcode_libdir_separator_CXX=
15296         fi
15297       esac
15298       shared_flag='-shared'
15299     else
15300       # not using gcc
15301       if test "$host_cpu" = ia64; then
15302         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303         # chokes on -Wl,-G. The following line is correct:
15304         shared_flag='-G'
15305       else
15306         if test "$aix_use_runtimelinking" = yes; then
15307           shared_flag='${wl}-G'
15308         else
15309           shared_flag='${wl}-bM:SRE'
15310         fi
15311       fi
15312     fi
15313
15314     # It seems that -bexpall does not export symbols beginning with
15315     # underscore (_), so it is better to generate a list of symbols to export.
15316     always_export_symbols_CXX=yes
15317     if test "$aix_use_runtimelinking" = yes; then
15318       # Warning - without using the other runtime loading flags (-brtl),
15319       # -berok will link without error, but may produce a broken library.
15320       allow_undefined_flag_CXX='-berok'
15321       # Determine the default libpath from the value encoded in an empty executable.
15322       cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328
15329 int
15330 main ()
15331 {
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339   (eval $ac_link) 2>conftest.er1
15340   ac_status=$?
15341   grep -v '^ *+' conftest.er1 >conftest.err
15342   rm -f conftest.er1
15343   cat conftest.err >&5
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } &&
15346          { ac_try='test -z "$ac_cxx_werror_flag"
15347                          || test ! -s conftest.err'
15348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349   (eval $ac_try) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; } &&
15353          { ac_try='test -s conftest$ac_exeext'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; }; then
15359
15360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15361 }'`
15362 # Check for a 64-bit object if we didn't find anything.
15363 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; }
15364 }'`; fi
15365 else
15366   echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 fi
15370 rm -f conftest.err conftest.$ac_objext \
15371       conftest$ac_exeext conftest.$ac_ext
15372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15373
15374       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15375
15376       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"
15377      else
15378       if test "$host_cpu" = ia64; then
15379         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15380         allow_undefined_flag_CXX="-z nodefs"
15381         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"
15382       else
15383         # Determine the default libpath from the value encoded in an empty executable.
15384         cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390
15391 int
15392 main ()
15393 {
15394
15395   ;
15396   return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401   (eval $ac_link) 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -z "$ac_cxx_werror_flag"
15409                          || test ! -s conftest.err'
15410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411   (eval $ac_try) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; } &&
15415          { ac_try='test -s conftest$ac_exeext'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; }; then
15421
15422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15423 }'`
15424 # Check for a 64-bit object if we didn't find anything.
15425 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; }
15426 }'`; fi
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 fi
15432 rm -f conftest.err conftest.$ac_objext \
15433       conftest$ac_exeext conftest.$ac_ext
15434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15435
15436         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15437         # Warning - without using the other run time loading flags,
15438         # -berok will link without error, but may produce a broken library.
15439         no_undefined_flag_CXX=' ${wl}-bernotok'
15440         allow_undefined_flag_CXX=' ${wl}-berok'
15441         # -bexpall does not export symbols beginning with underscore (_)
15442         always_export_symbols_CXX=yes
15443         # Exported symbols can be pulled into shared objects from archives
15444         whole_archive_flag_spec_CXX=' '
15445         archive_cmds_need_lc_CXX=yes
15446         # This is similar to how AIX traditionally builds it's shared libraries.
15447         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'
15448       fi
15449     fi
15450     ;;
15451   chorus*)
15452     case $cc_basename in
15453       *)
15454         # FIXME: insert proper C++ library support
15455         ld_shlibs_CXX=no
15456         ;;
15457     esac
15458     ;;
15459
15460
15461   cygwin* | mingw* | pw32*)
15462     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15463     # as there is no search path for DLLs.
15464     hardcode_libdir_flag_spec_CXX='-L$libdir'
15465     allow_undefined_flag_CXX=unsupported
15466     always_export_symbols_CXX=no
15467     enable_shared_with_static_runtimes_CXX=yes
15468
15469     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15470       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'
15471       # If the export-symbols file already is a .def file (1st line
15472       # is EXPORTS), use it as is; otherwise, prepend...
15473       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15474         cp $export_symbols $output_objdir/$soname.def;
15475       else
15476         echo EXPORTS > $output_objdir/$soname.def;
15477         cat $export_symbols >> $output_objdir/$soname.def;
15478       fi~
15479       $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'
15480     else
15481       ld_shlibs_CXX=no
15482     fi
15483   ;;
15484       darwin* | rhapsody*)
15485         case "$host_os" in
15486         rhapsody* | darwin1.[012])
15487          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15488          ;;
15489        *) # Darwin 1.3 on
15490          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15491            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15492          else
15493            case ${MACOSX_DEPLOYMENT_TARGET} in
15494              10.[012])
15495                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15496                ;;
15497              10.*)
15498                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15499                ;;
15500            esac
15501          fi
15502          ;;
15503         esac
15504       archive_cmds_need_lc_CXX=no
15505       hardcode_direct_CXX=no
15506       hardcode_automatic_CXX=yes
15507       hardcode_shlibpath_var_CXX=unsupported
15508       whole_archive_flag_spec_CXX=''
15509       link_all_deplibs_CXX=yes
15510
15511     if test "$GXX" = yes ; then
15512       lt_int_apple_cc_single_mod=no
15513       output_verbose_link_cmd='echo'
15514       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15515        lt_int_apple_cc_single_mod=yes
15516       fi
15517       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15518        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15519       else
15520           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'
15521         fi
15522         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15523         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15524           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15525             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}'
15526           else
15527             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}'
15528           fi
15529             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}'
15530       else
15531       case "$cc_basename" in
15532         xlc*)
15533          output_verbose_link_cmd='echo'
15534           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'
15535           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15536           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15537           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}'
15538           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}'
15539           ;;
15540        *)
15541          ld_shlibs_CXX=no
15542           ;;
15543       esac
15544       fi
15545         ;;
15546
15547   dgux*)
15548     case $cc_basename in
15549       ec++)
15550         # FIXME: insert proper C++ library support
15551         ld_shlibs_CXX=no
15552         ;;
15553       ghcx)
15554         # Green Hills C++ Compiler
15555         # FIXME: insert proper C++ library support
15556         ld_shlibs_CXX=no
15557         ;;
15558       *)
15559         # FIXME: insert proper C++ library support
15560         ld_shlibs_CXX=no
15561         ;;
15562     esac
15563     ;;
15564   freebsd12*)
15565     # C++ shared libraries reported to be fairly broken before switch to ELF
15566     ld_shlibs_CXX=no
15567     ;;
15568   freebsd-elf*)
15569     archive_cmds_need_lc_CXX=no
15570     ;;
15571   freebsd* | kfreebsd*-gnu)
15572     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15573     # conventions
15574     ld_shlibs_CXX=yes
15575     ;;
15576   gnu*)
15577     ;;
15578   hpux9*)
15579     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15580     hardcode_libdir_separator_CXX=:
15581     export_dynamic_flag_spec_CXX='${wl}-E'
15582     hardcode_direct_CXX=yes
15583     hardcode_minus_L_CXX=yes # Not in the search PATH,
15584                                 # but as the default
15585                                 # location of the library.
15586
15587     case $cc_basename in
15588     CC)
15589       # FIXME: insert proper C++ library support
15590       ld_shlibs_CXX=no
15591       ;;
15592     aCC)
15593       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'
15594       # Commands to make compiler produce verbose output that lists
15595       # what "hidden" libraries, object files and flags are used when
15596       # linking a shared library.
15597       #
15598       # There doesn't appear to be a way to prevent this compiler from
15599       # explicitly linking system object files so we need to strip them
15600       # from the output so that they don't get included in the library
15601       # dependencies.
15602       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'
15603       ;;
15604     *)
15605       if test "$GXX" = yes; then
15606         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'
15607       else
15608         # FIXME: insert proper C++ library support
15609         ld_shlibs_CXX=no
15610       fi
15611       ;;
15612     esac
15613     ;;
15614   hpux10*|hpux11*)
15615     if test $with_gnu_ld = no; then
15616       case "$host_cpu" in
15617       hppa*64*)
15618         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15620         hardcode_libdir_separator_CXX=:
15621         ;;
15622       ia64*)
15623         hardcode_libdir_flag_spec_CXX='-L$libdir'
15624         ;;
15625       *)
15626         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15627         hardcode_libdir_separator_CXX=:
15628         export_dynamic_flag_spec_CXX='${wl}-E'
15629         ;;
15630       esac
15631     fi
15632     case "$host_cpu" in
15633     hppa*64*)
15634       hardcode_direct_CXX=no
15635       hardcode_shlibpath_var_CXX=no
15636       ;;
15637     ia64*)
15638       hardcode_direct_CXX=no
15639       hardcode_shlibpath_var_CXX=no
15640       hardcode_minus_L_CXX=yes # Not in the search PATH,
15641                                               # but as the default
15642                                               # location of the library.
15643       ;;
15644     *)
15645       hardcode_direct_CXX=yes
15646       hardcode_minus_L_CXX=yes # Not in the search PATH,
15647                                               # but as the default
15648                                               # location of the library.
15649       ;;
15650     esac
15651
15652     case $cc_basename in
15653       CC)
15654         # FIXME: insert proper C++ library support
15655         ld_shlibs_CXX=no
15656         ;;
15657       aCC)
15658         case "$host_cpu" in
15659         hppa*64*|ia64*)
15660           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15661           ;;
15662         *)
15663           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15664           ;;
15665         esac
15666         # Commands to make compiler produce verbose output that lists
15667         # what "hidden" libraries, object files and flags are used when
15668         # linking a shared library.
15669         #
15670         # There doesn't appear to be a way to prevent this compiler from
15671         # explicitly linking system object files so we need to strip them
15672         # from the output so that they don't get included in the library
15673         # dependencies.
15674         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'
15675         ;;
15676       *)
15677         if test "$GXX" = yes; then
15678           if test $with_gnu_ld = no; then
15679             case "$host_cpu" in
15680             ia64*|hppa*64*)
15681               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15682               ;;
15683             *)
15684               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'
15685               ;;
15686             esac
15687           fi
15688         else
15689           # FIXME: insert proper C++ library support
15690           ld_shlibs_CXX=no
15691         fi
15692         ;;
15693     esac
15694     ;;
15695   irix5* | irix6*)
15696     case $cc_basename in
15697       CC)
15698         # SGI C++
15699         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'
15700
15701         # Archives containing C++ object files must be created using
15702         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15703         # necessary to make sure instantiated templates are included
15704         # in the archive.
15705         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15706         ;;
15707       *)
15708         if test "$GXX" = yes; then
15709           if test "$with_gnu_ld" = no; then
15710             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'
15711           else
15712             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'
15713           fi
15714         fi
15715         link_all_deplibs_CXX=yes
15716         ;;
15717     esac
15718     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15719     hardcode_libdir_separator_CXX=:
15720     ;;
15721   linux*)
15722     case $cc_basename in
15723       KCC)
15724         # Kuck and Associates, Inc. (KAI) C++ Compiler
15725
15726         # KCC will only create a shared library if the output file
15727         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728         # to its proper name (with version) after linking.
15729         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'
15730         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'
15731         # Commands to make compiler produce verbose output that lists
15732         # what "hidden" libraries, object files and flags are used when
15733         # linking a shared library.
15734         #
15735         # There doesn't appear to be a way to prevent this compiler from
15736         # explicitly linking system object files so we need to strip them
15737         # from the output so that they don't get included in the library
15738         # dependencies.
15739         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'
15740
15741         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15742         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15743
15744         # Archives containing C++ object files must be created using
15745         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15747         ;;
15748       icpc)
15749         # Intel C++
15750         with_gnu_ld=yes
15751         # version 8.0 and above of icpc choke on multiply defined symbols
15752         # if we add $predep_objects and $postdep_objects, however 7.1 and
15753         # earlier do not add the objects themselves.
15754         case `$CC -V 2>&1` in
15755         *"Version 7."*)
15756           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757           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'
15758           ;;
15759         *)  # Version 8.0 or newer
15760           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762           ;;
15763         esac
15764         archive_cmds_need_lc_CXX=no
15765         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15766         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15767         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15768         ;;
15769       cxx)
15770         # Compaq C++
15771         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772         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'
15773
15774         runpath_var=LD_RUN_PATH
15775         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15776         hardcode_libdir_separator_CXX=:
15777
15778         # Commands to make compiler produce verbose output that lists
15779         # what "hidden" libraries, object files and flags are used when
15780         # linking a shared library.
15781         #
15782         # There doesn't appear to be a way to prevent this compiler from
15783         # explicitly linking system object files so we need to strip them
15784         # from the output so that they don't get included in the library
15785         # dependencies.
15786         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'
15787         ;;
15788     esac
15789     ;;
15790   lynxos*)
15791     # FIXME: insert proper C++ library support
15792     ld_shlibs_CXX=no
15793     ;;
15794   m88k*)
15795     # FIXME: insert proper C++ library support
15796     ld_shlibs_CXX=no
15797     ;;
15798   mvs*)
15799     case $cc_basename in
15800       cxx)
15801         # FIXME: insert proper C++ library support
15802         ld_shlibs_CXX=no
15803         ;;
15804       *)
15805         # FIXME: insert proper C++ library support
15806         ld_shlibs_CXX=no
15807         ;;
15808     esac
15809     ;;
15810   netbsd*)
15811     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15812       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15813       wlarc=
15814       hardcode_libdir_flag_spec_CXX='-R$libdir'
15815       hardcode_direct_CXX=yes
15816       hardcode_shlibpath_var_CXX=no
15817     fi
15818     # Workaround some broken pre-1.5 toolchains
15819     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15820     ;;
15821   openbsd2*)
15822     # C++ shared libraries are fairly broken
15823     ld_shlibs_CXX=no
15824     ;;
15825   openbsd*)
15826     hardcode_direct_CXX=yes
15827     hardcode_shlibpath_var_CXX=no
15828     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15829     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15831       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15832       export_dynamic_flag_spec_CXX='${wl}-E'
15833       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15834     fi
15835     output_verbose_link_cmd='echo'
15836     ;;
15837   osf3*)
15838     case $cc_basename in
15839       KCC)
15840         # Kuck and Associates, Inc. (KAI) C++ Compiler
15841
15842         # KCC will only create a shared library if the output file
15843         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15844         # to its proper name (with version) after linking.
15845         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'
15846
15847         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15848         hardcode_libdir_separator_CXX=:
15849
15850         # Archives containing C++ object files must be created using
15851         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15852         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15853
15854         ;;
15855       RCC)
15856         # Rational C++ 2.4.1
15857         # FIXME: insert proper C++ library support
15858         ld_shlibs_CXX=no
15859         ;;
15860       cxx)
15861         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15862         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'
15863
15864         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15865         hardcode_libdir_separator_CXX=:
15866
15867         # Commands to make compiler produce verbose output that lists
15868         # what "hidden" libraries, object files and flags are used when
15869         # linking a shared library.
15870         #
15871         # There doesn't appear to be a way to prevent this compiler from
15872         # explicitly linking system object files so we need to strip them
15873         # from the output so that they don't get included in the library
15874         # dependencies.
15875         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'
15876         ;;
15877       *)
15878         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15879           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15880           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'
15881
15882           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15883           hardcode_libdir_separator_CXX=:
15884
15885           # Commands to make compiler produce verbose output that lists
15886           # what "hidden" libraries, object files and flags are used when
15887           # linking a shared library.
15888           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15889
15890         else
15891           # FIXME: insert proper C++ library support
15892           ld_shlibs_CXX=no
15893         fi
15894         ;;
15895     esac
15896     ;;
15897   osf4* | osf5*)
15898     case $cc_basename in
15899       KCC)
15900         # Kuck and Associates, Inc. (KAI) C++ Compiler
15901
15902         # KCC will only create a shared library if the output file
15903         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15904         # to its proper name (with version) after linking.
15905         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'
15906
15907         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15908         hardcode_libdir_separator_CXX=:
15909
15910         # Archives containing C++ object files must be created using
15911         # the KAI C++ compiler.
15912         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15913         ;;
15914       RCC)
15915         # Rational C++ 2.4.1
15916         # FIXME: insert proper C++ library support
15917         ld_shlibs_CXX=no
15918         ;;
15919       cxx)
15920         allow_undefined_flag_CXX=' -expect_unresolved \*'
15921         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'
15922         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15923           echo "-hidden">> $lib.exp~
15924           $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~
15925           $rm $lib.exp'
15926
15927         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15928         hardcode_libdir_separator_CXX=:
15929
15930         # Commands to make compiler produce verbose output that lists
15931         # what "hidden" libraries, object files and flags are used when
15932         # linking a shared library.
15933         #
15934         # There doesn't appear to be a way to prevent this compiler from
15935         # explicitly linking system object files so we need to strip them
15936         # from the output so that they don't get included in the library
15937         # dependencies.
15938         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'
15939         ;;
15940       *)
15941         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15942           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15943          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'
15944
15945           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15946           hardcode_libdir_separator_CXX=:
15947
15948           # Commands to make compiler produce verbose output that lists
15949           # what "hidden" libraries, object files and flags are used when
15950           # linking a shared library.
15951           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15952
15953         else
15954           # FIXME: insert proper C++ library support
15955           ld_shlibs_CXX=no
15956         fi
15957         ;;
15958     esac
15959     ;;
15960   psos*)
15961     # FIXME: insert proper C++ library support
15962     ld_shlibs_CXX=no
15963     ;;
15964   sco*)
15965     archive_cmds_need_lc_CXX=no
15966     case $cc_basename in
15967       CC)
15968         # FIXME: insert proper C++ library support
15969         ld_shlibs_CXX=no
15970         ;;
15971       *)
15972         # FIXME: insert proper C++ library support
15973         ld_shlibs_CXX=no
15974         ;;
15975     esac
15976     ;;
15977   sunos4*)
15978     case $cc_basename in
15979       CC)
15980         # Sun C++ 4.x
15981         # FIXME: insert proper C++ library support
15982         ld_shlibs_CXX=no
15983         ;;
15984       lcc)
15985         # Lucid
15986         # FIXME: insert proper C++ library support
15987         ld_shlibs_CXX=no
15988         ;;
15989       *)
15990         # FIXME: insert proper C++ library support
15991         ld_shlibs_CXX=no
15992         ;;
15993     esac
15994     ;;
15995   solaris*)
15996     case $cc_basename in
15997       CC)
15998         # Sun C++ 4.2, 5.x and Centerline C++
15999         no_undefined_flag_CXX=' -zdefs'
16000         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16001         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16002         $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'
16003
16004         hardcode_libdir_flag_spec_CXX='-R$libdir'
16005         hardcode_shlibpath_var_CXX=no
16006         case $host_os in
16007           solaris2.0-5 | solaris2.0-5.*) ;;
16008           *)
16009             # The C++ compiler is used as linker so we must use $wl
16010             # flag to pass the commands to the underlying system
16011             # linker.
16012             # Supported since Solaris 2.6 (maybe 2.5.1?)
16013             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16014             ;;
16015         esac
16016         link_all_deplibs_CXX=yes
16017
16018         # Commands to make compiler produce verbose output that lists
16019         # what "hidden" libraries, object files and flags are used when
16020         # linking a shared library.
16021         #
16022         # There doesn't appear to be a way to prevent this compiler from
16023         # explicitly linking system object files so we need to strip them
16024         # from the output so that they don't get included in the library
16025         # dependencies.
16026         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'
16027
16028         # Archives containing C++ object files must be created using
16029         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16030         # necessary to make sure instantiated templates are included
16031         # in the archive.
16032         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16033         ;;
16034       gcx)
16035         # Green Hills C++ Compiler
16036         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16037
16038         # The C++ compiler must be used to create the archive.
16039         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16040         ;;
16041       *)
16042         # GNU C++ compiler with Solaris linker
16043         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16044           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16045           if $CC --version | grep -v '^2\.7' > /dev/null; then
16046             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16047             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16049
16050             # Commands to make compiler produce verbose output that lists
16051             # what "hidden" libraries, object files and flags are used when
16052             # linking a shared library.
16053             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16054           else
16055             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16056             # platform.
16057             archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16065           fi
16066
16067           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16068         fi
16069         ;;
16070     esac
16071     ;;
16072   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16073     archive_cmds_need_lc_CXX=no
16074     ;;
16075   tandem*)
16076     case $cc_basename in
16077       NCC)
16078         # NonStop-UX NCC 3.20
16079         # FIXME: insert proper C++ library support
16080         ld_shlibs_CXX=no
16081         ;;
16082       *)
16083         # FIXME: insert proper C++ library support
16084         ld_shlibs_CXX=no
16085         ;;
16086     esac
16087     ;;
16088   vxworks*)
16089     # FIXME: insert proper C++ library support
16090     ld_shlibs_CXX=no
16091     ;;
16092   *)
16093     # FIXME: insert proper C++ library support
16094     ld_shlibs_CXX=no
16095     ;;
16096 esac
16097 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16098 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16099 test "$ld_shlibs_CXX" = no && can_build_shared=no
16100
16101 GCC_CXX="$GXX"
16102 LD_CXX="$LD"
16103
16104
16105 cat > conftest.$ac_ext <<EOF
16106 class Foo
16107 {
16108 public:
16109   Foo (void) { a = 0; }
16110 private:
16111   int a;
16112 };
16113 EOF
16114
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116   (eval $ac_compile) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; then
16120   # Parse the compiler output and extract the necessary
16121   # objects, libraries and library flags.
16122
16123   # Sentinel used to keep track of whether or not we are before
16124   # the conftest object file.
16125   pre_test_object_deps_done=no
16126
16127   # The `*' in the case matches for architectures that use `case' in
16128   # $output_verbose_cmd can trigger glob expansion during the loop
16129   # eval without this substitution.
16130   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16131
16132   for p in `eval $output_verbose_link_cmd`; do
16133     case $p in
16134
16135     -L* | -R* | -l*)
16136        # Some compilers place space between "-{L,R}" and the path.
16137        # Remove the space.
16138        if test $p = "-L" \
16139           || test $p = "-R"; then
16140          prev=$p
16141          continue
16142        else
16143          prev=
16144        fi
16145
16146        if test "$pre_test_object_deps_done" = no; then
16147          case $p in
16148          -L* | -R*)
16149            # Internal compiler library paths should come after those
16150            # provided the user.  The postdeps already come after the
16151            # user supplied libs so there is no need to process them.
16152            if test -z "$compiler_lib_search_path_CXX"; then
16153              compiler_lib_search_path_CXX="${prev}${p}"
16154            else
16155              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16156            fi
16157            ;;
16158          # The "-l" case would never come before the object being
16159          # linked, so don't bother handling this case.
16160          esac
16161        else
16162          if test -z "$postdeps_CXX"; then
16163            postdeps_CXX="${prev}${p}"
16164          else
16165            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16166          fi
16167        fi
16168        ;;
16169
16170     *.$objext)
16171        # This assumes that the test object file only shows up
16172        # once in the compiler output.
16173        if test "$p" = "conftest.$objext"; then
16174          pre_test_object_deps_done=yes
16175          continue
16176        fi
16177
16178        if test "$pre_test_object_deps_done" = no; then
16179          if test -z "$predep_objects_CXX"; then
16180            predep_objects_CXX="$p"
16181          else
16182            predep_objects_CXX="$predep_objects_CXX $p"
16183          fi
16184        else
16185          if test -z "$postdep_objects_CXX"; then
16186            postdep_objects_CXX="$p"
16187          else
16188            postdep_objects_CXX="$postdep_objects_CXX $p"
16189          fi
16190        fi
16191        ;;
16192
16193     *) ;; # Ignore the rest.
16194
16195     esac
16196   done
16197
16198   # Clean up.
16199   rm -f a.out a.exe
16200 else
16201   echo "libtool.m4: error: problem compiling CXX test program"
16202 fi
16203
16204 $rm -f confest.$objext
16205
16206 case " $postdeps_CXX " in
16207 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16208 esac
16209
16210 lt_prog_compiler_wl_CXX=
16211 lt_prog_compiler_pic_CXX=
16212 lt_prog_compiler_static_CXX=
16213
16214 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16215 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16216
16217   # C++ specific cases for pic, static, wl, etc.
16218   if test "$GXX" = yes; then
16219     lt_prog_compiler_wl_CXX='-Wl,'
16220     lt_prog_compiler_static_CXX='-static'
16221
16222     case $host_os in
16223     aix*)
16224       # All AIX code is PIC.
16225       if test "$host_cpu" = ia64; then
16226         # AIX 5 now supports IA64 processor
16227         lt_prog_compiler_static_CXX='-Bstatic'
16228       fi
16229       ;;
16230     amigaos*)
16231       # FIXME: we need at least 68020 code to build shared libraries, but
16232       # adding the `-m68020' flag to GCC prevents building anything better,
16233       # like `-m68040'.
16234       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16235       ;;
16236     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16237       # PIC is the default for these OSes.
16238       ;;
16239     mingw* | os2* | pw32*)
16240       # This hack is so that the source file can tell whether it is being
16241       # built for inclusion in a dll (and should export symbols for example).
16242       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16243       ;;
16244     darwin* | rhapsody*)
16245       # PIC is the default on this platform
16246       # Common symbols not allowed in MH_DYLIB files
16247       lt_prog_compiler_pic_CXX='-fno-common'
16248       ;;
16249     *djgpp*)
16250       # DJGPP does not support shared libraries at all
16251       lt_prog_compiler_pic_CXX=
16252       ;;
16253     sysv4*MP*)
16254       if test -d /usr/nec; then
16255         lt_prog_compiler_pic_CXX=-Kconform_pic
16256       fi
16257       ;;
16258     hpux*)
16259       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16260       # not for PA HP-UX.
16261       case "$host_cpu" in
16262       hppa*64*|ia64*)
16263         ;;
16264       *)
16265         lt_prog_compiler_pic_CXX='-fPIC'
16266         ;;
16267       esac
16268       ;;
16269     *)
16270       lt_prog_compiler_pic_CXX='-fPIC'
16271       ;;
16272     esac
16273   else
16274     case $host_os in
16275       aix4* | aix5*)
16276         # All AIX code is PIC.
16277         if test "$host_cpu" = ia64; then
16278           # AIX 5 now supports IA64 processor
16279           lt_prog_compiler_static_CXX='-Bstatic'
16280         else
16281           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16282         fi
16283         ;;
16284       chorus*)
16285         case $cc_basename in
16286         cxch68)
16287           # Green Hills C++ Compiler
16288           # _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"
16289           ;;
16290         esac
16291         ;;
16292        darwin*)
16293          # PIC is the default on this platform
16294          # Common symbols not allowed in MH_DYLIB files
16295          case "$cc_basename" in
16296            xlc*)
16297            lt_prog_compiler_pic_CXX='-qnocommon'
16298            lt_prog_compiler_wl_CXX='-Wl,'
16299            ;;
16300          esac
16301        ;;
16302       dgux*)
16303         case $cc_basename in
16304           ec++)
16305             lt_prog_compiler_pic_CXX='-KPIC'
16306             ;;
16307           ghcx)
16308             # Green Hills C++ Compiler
16309             lt_prog_compiler_pic_CXX='-pic'
16310             ;;
16311           *)
16312             ;;
16313         esac
16314         ;;
16315       freebsd* | kfreebsd*-gnu)
16316         # FreeBSD uses GNU C++
16317         ;;
16318       hpux9* | hpux10* | hpux11*)
16319         case $cc_basename in
16320           CC)
16321             lt_prog_compiler_wl_CXX='-Wl,'
16322             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16323             if test "$host_cpu" != ia64; then
16324               lt_prog_compiler_pic_CXX='+Z'
16325             fi
16326             ;;
16327           aCC)
16328             lt_prog_compiler_wl_CXX='-Wl,'
16329             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16330             case "$host_cpu" in
16331             hppa*64*|ia64*)
16332               # +Z the default
16333               ;;
16334             *)
16335               lt_prog_compiler_pic_CXX='+Z'
16336               ;;
16337             esac
16338             ;;
16339           *)
16340             ;;
16341         esac
16342         ;;
16343       irix5* | irix6* | nonstopux*)
16344         case $cc_basename in
16345           CC)
16346             lt_prog_compiler_wl_CXX='-Wl,'
16347             lt_prog_compiler_static_CXX='-non_shared'
16348             # CC pic flag -KPIC is the default.
16349             ;;
16350           *)
16351             ;;
16352         esac
16353         ;;
16354       linux*)
16355         case $cc_basename in
16356           KCC)
16357             # KAI C++ Compiler
16358             lt_prog_compiler_wl_CXX='--backend -Wl,'
16359             lt_prog_compiler_pic_CXX='-fPIC'
16360             ;;
16361           icpc)
16362             # Intel C++
16363             lt_prog_compiler_wl_CXX='-Wl,'
16364             lt_prog_compiler_pic_CXX='-KPIC'
16365             lt_prog_compiler_static_CXX='-static'
16366             ;;
16367           cxx)
16368             # Compaq C++
16369             # Make sure the PIC flag is empty.  It appears that all Alpha
16370             # Linux and Compaq Tru64 Unix objects are PIC.
16371             lt_prog_compiler_pic_CXX=
16372             lt_prog_compiler_static_CXX='-non_shared'
16373             ;;
16374           *)
16375             ;;
16376         esac
16377         ;;
16378       lynxos*)
16379         ;;
16380       m88k*)
16381         ;;
16382       mvs*)
16383         case $cc_basename in
16384           cxx)
16385             lt_prog_compiler_pic_CXX='-W c,exportall'
16386             ;;
16387           *)
16388             ;;
16389         esac
16390         ;;
16391       netbsd*)
16392         ;;
16393       osf3* | osf4* | osf5*)
16394         case $cc_basename in
16395           KCC)
16396             lt_prog_compiler_wl_CXX='--backend -Wl,'
16397             ;;
16398           RCC)
16399             # Rational C++ 2.4.1
16400             lt_prog_compiler_pic_CXX='-pic'
16401             ;;
16402           cxx)
16403             # Digital/Compaq C++
16404             lt_prog_compiler_wl_CXX='-Wl,'
16405             # Make sure the PIC flag is empty.  It appears that all Alpha
16406             # Linux and Compaq Tru64 Unix objects are PIC.
16407             lt_prog_compiler_pic_CXX=
16408             lt_prog_compiler_static_CXX='-non_shared'
16409             ;;
16410           *)
16411             ;;
16412         esac
16413         ;;
16414       psos*)
16415         ;;
16416       sco*)
16417         case $cc_basename in
16418           CC)
16419             lt_prog_compiler_pic_CXX='-fPIC'
16420             ;;
16421           *)
16422             ;;
16423         esac
16424         ;;
16425       solaris*)
16426         case $cc_basename in
16427           CC)
16428             # Sun C++ 4.2, 5.x and Centerline C++
16429             lt_prog_compiler_pic_CXX='-KPIC'
16430             lt_prog_compiler_static_CXX='-Bstatic'
16431             lt_prog_compiler_wl_CXX='-Qoption ld '
16432             ;;
16433           gcx)
16434             # Green Hills C++ Compiler
16435             lt_prog_compiler_pic_CXX='-PIC'
16436             ;;
16437           *)
16438             ;;
16439         esac
16440         ;;
16441       sunos4*)
16442         case $cc_basename in
16443           CC)
16444             # Sun C++ 4.x
16445             lt_prog_compiler_pic_CXX='-pic'
16446             lt_prog_compiler_static_CXX='-Bstatic'
16447             ;;
16448           lcc)
16449             # Lucid
16450             lt_prog_compiler_pic_CXX='-pic'
16451             ;;
16452           *)
16453             ;;
16454         esac
16455         ;;
16456       tandem*)
16457         case $cc_basename in
16458           NCC)
16459             # NonStop-UX NCC 3.20
16460             lt_prog_compiler_pic_CXX='-KPIC'
16461             ;;
16462           *)
16463             ;;
16464         esac
16465         ;;
16466       unixware*)
16467         ;;
16468       vxworks*)
16469         ;;
16470       *)
16471         lt_prog_compiler_can_build_shared_CXX=no
16472         ;;
16473     esac
16474   fi
16475
16476 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16477 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16478
16479 #
16480 # Check to make sure the PIC flag actually works.
16481 #
16482 if test -n "$lt_prog_compiler_pic_CXX"; then
16483
16484 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16486 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   lt_prog_compiler_pic_works_CXX=no
16490   ac_outfile=conftest.$ac_objext
16491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16492    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16493    # Insert the option either (1) after the last *FLAGS variable, or
16494    # (2) before a word containing "conftest.", or (3) at the end.
16495    # Note that $ac_compile itself does not contain backslashes and begins
16496    # with a dollar sign (not a hyphen), so the echo should work correctly.
16497    # The option is referenced via a variable to avoid confusing sed.
16498    lt_compile=`echo "$ac_compile" | $SED \
16499    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16501    -e 's:$: $lt_compiler_flag:'`
16502    (eval echo "\"\$as_me:16502: $lt_compile\"" >&5)
16503    (eval "$lt_compile" 2>conftest.err)
16504    ac_status=$?
16505    cat conftest.err >&5
16506    echo "$as_me:16506: \$? = $ac_status" >&5
16507    if (exit $ac_status) && test -s "$ac_outfile"; then
16508      # The compiler can only warn and ignore the option if not recognized
16509      # So say no if there are warnings
16510      if test ! -s conftest.err; then
16511        lt_prog_compiler_pic_works_CXX=yes
16512      fi
16513    fi
16514    $rm conftest*
16515
16516 fi
16517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16518 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16519
16520 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16521     case $lt_prog_compiler_pic_CXX in
16522      "" | " "*) ;;
16523      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16524      esac
16525 else
16526     lt_prog_compiler_pic_CXX=
16527      lt_prog_compiler_can_build_shared_CXX=no
16528 fi
16529
16530 fi
16531 case "$host_os" in
16532   # For platforms which do not support PIC, -DPIC is meaningless:
16533   *djgpp*)
16534     lt_prog_compiler_pic_CXX=
16535     ;;
16536   *)
16537     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16538     ;;
16539 esac
16540
16541 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16543 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16544   echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546   lt_cv_prog_compiler_c_o_CXX=no
16547    $rm -r conftest 2>/dev/null
16548    mkdir conftest
16549    cd conftest
16550    mkdir out
16551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
16553    lt_compiler_flag="-o out/conftest2.$ac_objext"
16554    # Insert the option either (1) after the last *FLAGS variable, or
16555    # (2) before a word containing "conftest.", or (3) at the end.
16556    # Note that $ac_compile itself does not contain backslashes and begins
16557    # with a dollar sign (not a hyphen), so the echo should work correctly.
16558    lt_compile=`echo "$ac_compile" | $SED \
16559    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561    -e 's:$: $lt_compiler_flag:'`
16562    (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563    (eval "$lt_compile" 2>out/conftest.err)
16564    ac_status=$?
16565    cat out/conftest.err >&5
16566    echo "$as_me:16566: \$? = $ac_status" >&5
16567    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16568    then
16569      # The compiler can only warn and ignore the option if not recognized
16570      # So say no if there are warnings
16571      if test ! -s out/conftest.err; then
16572        lt_cv_prog_compiler_c_o_CXX=yes
16573      fi
16574    fi
16575    chmod u+w .
16576    $rm conftest*
16577    # SGI C++ compiler will create directory out/ii_files/ for
16578    # template instantiation
16579    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16580    $rm out/* && rmdir out
16581    cd ..
16582    rmdir conftest
16583    $rm conftest*
16584
16585 fi
16586 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16588
16589
16590 hard_links="nottested"
16591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16592   # do not overwrite the value of need_locks provided by the user
16593   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16595   hard_links=yes
16596   $rm conftest*
16597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16598   touch conftest.a
16599   ln conftest.a conftest.b 2>&5 || hard_links=no
16600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601   echo "$as_me:$LINENO: result: $hard_links" >&5
16602 echo "${ECHO_T}$hard_links" >&6
16603   if test "$hard_links" = no; then
16604     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16606     need_locks=warn
16607   fi
16608 else
16609   need_locks=no
16610 fi
16611
16612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16614
16615   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16616   case $host_os in
16617   aix4* | aix5*)
16618     # If we're using GNU nm, then we don't want the "-C" option.
16619     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16620     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16621       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'
16622     else
16623       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'
16624     fi
16625     ;;
16626   pw32*)
16627     export_symbols_cmds_CXX="$ltdll_cmds"
16628   ;;
16629   cygwin* | mingw*)
16630     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16631   ;;
16632   *)
16633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16634   ;;
16635   esac
16636
16637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16639 test "$ld_shlibs_CXX" = no && can_build_shared=no
16640
16641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16642 if test "$GCC" = yes; then
16643   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16644 fi
16645
16646 #
16647 # Do we need to explicitly link libc?
16648 #
16649 case "x$archive_cmds_need_lc_CXX" in
16650 x|xyes)
16651   # Assume -lc should be added
16652   archive_cmds_need_lc_CXX=yes
16653
16654   if test "$enable_shared" = yes && test "$GCC" = yes; then
16655     case $archive_cmds_CXX in
16656     *'~'*)
16657       # FIXME: we may have to deal with multi-command sequences.
16658       ;;
16659     '$CC '*)
16660       # Test whether the compiler implicitly links with -lc since on some
16661       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16662       # to ld, don't add -lc before -lgcc.
16663       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16665       $rm conftest*
16666       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16667
16668       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } 2>conftest.err; then
16673         soname=conftest
16674         lib=conftest
16675         libobjs=conftest.$ac_objext
16676         deplibs=
16677         wl=$lt_prog_compiler_wl_CXX
16678         compiler_flags=-v
16679         linker_flags=-v
16680         verstring=
16681         output_objdir=.
16682         libname=conftest
16683         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16684         allow_undefined_flag_CXX=
16685         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16686   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }
16690         then
16691           archive_cmds_need_lc_CXX=no
16692         else
16693           archive_cmds_need_lc_CXX=yes
16694         fi
16695         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16696       else
16697         cat conftest.err 1>&5
16698       fi
16699       $rm conftest*
16700       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16701 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16702       ;;
16703     esac
16704   fi
16705   ;;
16706 esac
16707
16708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16710 library_names_spec=
16711 libname_spec='lib$name'
16712 soname_spec=
16713 shrext_cmds=".so"
16714 postinstall_cmds=
16715 postuninstall_cmds=
16716 finish_cmds=
16717 finish_eval=
16718 shlibpath_var=
16719 shlibpath_overrides_runpath=unknown
16720 version_type=none
16721 dynamic_linker="$host_os ld.so"
16722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16723 if test "$GCC" = yes; then
16724   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16725   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16726     # if the path contains ";" then we assume it to be the separator
16727     # otherwise default to the standard path separator (i.e. ":") - it is
16728     # assumed that no part of a normal pathname contains ";" but that should
16729     # okay in the real world where ";" in dirpaths is itself problematic.
16730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16731   else
16732     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16733   fi
16734 else
16735   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16736 fi
16737 need_lib_prefix=unknown
16738 hardcode_into_libs=no
16739
16740 # when you set need_version to no, make sure it does not cause -set_version
16741 # flags to be left without arguments
16742 need_version=unknown
16743
16744 case $host_os in
16745 aix3*)
16746   version_type=linux
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16748   shlibpath_var=LIBPATH
16749
16750   # AIX 3 has no versioning support, so we append a major version to the name.
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   ;;
16753
16754 aix4* | aix5*)
16755   version_type=linux
16756   need_lib_prefix=no
16757   need_version=no
16758   hardcode_into_libs=yes
16759   if test "$host_cpu" = ia64; then
16760     # AIX 5 supports IA64
16761     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16762     shlibpath_var=LD_LIBRARY_PATH
16763   else
16764     # With GCC up to 2.95.x, collect2 would create an import file
16765     # for dependence libraries.  The import file would start with
16766     # the line `#! .'.  This would cause the generated library to
16767     # depend on `.', always an invalid library.  This was fixed in
16768     # development snapshots of GCC prior to 3.0.
16769     case $host_os in
16770       aix4 | aix4.[01] | aix4.[01].*)
16771       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16772            echo ' yes '
16773            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16774         :
16775       else
16776         can_build_shared=no
16777       fi
16778       ;;
16779     esac
16780     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16781     # soname into executable. Probably we can add versioning support to
16782     # collect2, so additional links can be useful in future.
16783     if test "$aix_use_runtimelinking" = yes; then
16784       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16785       # instead of lib<name>.a to let people know that these are not
16786       # typical AIX shared libraries.
16787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788     else
16789       # We preserve .a as extension for shared libraries through AIX4.2
16790       # and later when we are not doing run time linking.
16791       library_names_spec='${libname}${release}.a $libname.a'
16792       soname_spec='${libname}${release}${shared_ext}$major'
16793     fi
16794     shlibpath_var=LIBPATH
16795   fi
16796   ;;
16797
16798 amigaos*)
16799   library_names_spec='$libname.ixlibrary $libname.a'
16800   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16801   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'
16802   ;;
16803
16804 beos*)
16805   library_names_spec='${libname}${shared_ext}'
16806   dynamic_linker="$host_os ld.so"
16807   shlibpath_var=LIBRARY_PATH
16808   ;;
16809
16810 bsdi[45]*)
16811   version_type=linux
16812   need_version=no
16813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814   soname_spec='${libname}${release}${shared_ext}$major'
16815   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16818   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16819   # the default ld.so.conf also contains /usr/contrib/lib and
16820   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16821   # libtool to hard-code these into programs
16822   ;;
16823
16824 cygwin* | mingw* | pw32*)
16825   version_type=windows
16826   shrext_cmds=".dll"
16827   need_version=no
16828   need_lib_prefix=no
16829
16830   case $GCC,$host_os in
16831   yes,cygwin* | yes,mingw* | yes,pw32*)
16832     library_names_spec='$libname.dll.a'
16833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834     postinstall_cmds='base_file=`basename \${file}`~
16835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16836       dldir=$destdir/`dirname \$dlpath`~
16837       test -d \$dldir || mkdir -p \$dldir~
16838       $install_prog $dir/$dlname \$dldir/$dlname'
16839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16840       dlpath=$dir/\$dldll~
16841        $rm \$dlpath'
16842     shlibpath_overrides_runpath=yes
16843
16844     case $host_os in
16845     cygwin*)
16846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16848       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16849       ;;
16850     mingw*)
16851       # MinGW DLLs use traditional 'lib' prefix
16852       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16853       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16854       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16855         # It is most probably a Windows format PATH printed by
16856         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16857         # path with ; separators, and with drive letters. We can handle the
16858         # drive letters (cygwin fileutils understands them), so leave them,
16859         # especially as we might pass files found there to a mingw objdump,
16860         # which wouldn't understand a cygwinified path. Ahh.
16861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16862       else
16863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16864       fi
16865       ;;
16866     pw32*)
16867       # pw32 DLLs use 'pw' prefix rather than 'lib'
16868       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16869       ;;
16870     esac
16871     ;;
16872
16873   *)
16874     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16875     ;;
16876   esac
16877   dynamic_linker='Win32 ld.exe'
16878   # FIXME: first we should search . and the directory the executable is in
16879   shlibpath_var=PATH
16880   ;;
16881
16882 darwin* | rhapsody*)
16883   dynamic_linker="$host_os dyld"
16884   version_type=darwin
16885   need_lib_prefix=no
16886   need_version=no
16887   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16888   soname_spec='${libname}${release}${major}$shared_ext'
16889   shlibpath_overrides_runpath=yes
16890   shlibpath_var=DYLD_LIBRARY_PATH
16891   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16892   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16893   if test "$GCC" = yes; then
16894     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"`
16895   else
16896     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16897   fi
16898   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16899   ;;
16900
16901 dgux*)
16902   version_type=linux
16903   need_lib_prefix=no
16904   need_version=no
16905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16906   soname_spec='${libname}${release}${shared_ext}$major'
16907   shlibpath_var=LD_LIBRARY_PATH
16908   ;;
16909
16910 freebsd1*)
16911   dynamic_linker=no
16912   ;;
16913
16914 kfreebsd*-gnu)
16915   version_type=linux
16916   need_lib_prefix=no
16917   need_version=no
16918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16919   soname_spec='${libname}${release}${shared_ext}$major'
16920   shlibpath_var=LD_LIBRARY_PATH
16921   shlibpath_overrides_runpath=no
16922   hardcode_into_libs=yes
16923   dynamic_linker='GNU ld.so'
16924   ;;
16925
16926 freebsd*)
16927   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16928   version_type=freebsd-$objformat
16929   case $version_type in
16930     freebsd-elf*)
16931       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16932       need_version=no
16933       need_lib_prefix=no
16934       ;;
16935     freebsd-*)
16936       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16937       need_version=yes
16938       ;;
16939   esac
16940   shlibpath_var=LD_LIBRARY_PATH
16941   case $host_os in
16942   freebsd2*)
16943     shlibpath_overrides_runpath=yes
16944     ;;
16945   freebsd3.01* | freebsdelf3.01*)
16946     shlibpath_overrides_runpath=yes
16947     hardcode_into_libs=yes
16948     ;;
16949   *) # from 3.2 on
16950     shlibpath_overrides_runpath=no
16951     hardcode_into_libs=yes
16952     ;;
16953   esac
16954   ;;
16955
16956 gnu*)
16957   version_type=linux
16958   need_lib_prefix=no
16959   need_version=no
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   shlibpath_var=LD_LIBRARY_PATH
16963   hardcode_into_libs=yes
16964   ;;
16965
16966 hpux9* | hpux10* | hpux11*)
16967   # Give a soname corresponding to the major version so that dld.sl refuses to
16968   # link against other versions.
16969   version_type=sunos
16970   need_lib_prefix=no
16971   need_version=no
16972   case "$host_cpu" in
16973   ia64*)
16974     shrext_cmds='.so'
16975     hardcode_into_libs=yes
16976     dynamic_linker="$host_os dld.so"
16977     shlibpath_var=LD_LIBRARY_PATH
16978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980     soname_spec='${libname}${release}${shared_ext}$major'
16981     if test "X$HPUX_IA64_MODE" = X32; then
16982       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16983     else
16984       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16985     fi
16986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16987     ;;
16988    hppa*64*)
16989      shrext_cmds='.sl'
16990      hardcode_into_libs=yes
16991      dynamic_linker="$host_os dld.sl"
16992      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16993      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16994      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995      soname_spec='${libname}${release}${shared_ext}$major'
16996      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16997      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998      ;;
16999    *)
17000     shrext_cmds='.sl'
17001     dynamic_linker="$host_os dld.sl"
17002     shlibpath_var=SHLIB_PATH
17003     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005     soname_spec='${libname}${release}${shared_ext}$major'
17006     ;;
17007   esac
17008   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17009   postinstall_cmds='chmod 555 $lib'
17010   ;;
17011
17012 irix5* | irix6* | nonstopux*)
17013   case $host_os in
17014     nonstopux*) version_type=nonstopux ;;
17015     *)
17016         if test "$lt_cv_prog_gnu_ld" = yes; then
17017                 version_type=linux
17018         else
17019                 version_type=irix
17020         fi ;;
17021   esac
17022   need_lib_prefix=no
17023   need_version=no
17024   soname_spec='${libname}${release}${shared_ext}$major'
17025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17026   case $host_os in
17027   irix5* | nonstopux*)
17028     libsuff= shlibsuff=
17029     ;;
17030   *)
17031     case $LD in # libtool.m4 will add one of these switches to LD
17032     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17033       libsuff= shlibsuff= libmagic=32-bit;;
17034     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17035       libsuff=32 shlibsuff=N32 libmagic=N32;;
17036     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17037       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17038     *) libsuff= shlibsuff= libmagic=never-match;;
17039     esac
17040     ;;
17041   esac
17042   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17043   shlibpath_overrides_runpath=no
17044   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17045   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17046   hardcode_into_libs=yes
17047   ;;
17048
17049 # No shared lib support for Linux oldld, aout, or coff.
17050 linux*oldld* | linux*aout* | linux*coff*)
17051   dynamic_linker=no
17052   ;;
17053
17054 # This must be Linux ELF.
17055 linux*)
17056   version_type=linux
17057   need_lib_prefix=no
17058   need_version=no
17059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060   soname_spec='${libname}${release}${shared_ext}$major'
17061   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17062   shlibpath_var=LD_LIBRARY_PATH
17063   shlibpath_overrides_runpath=no
17064   # This implies no fast_install, which is unacceptable.
17065   # Some rework will be needed to allow for fast_install
17066   # before this can be enabled.
17067   hardcode_into_libs=yes
17068
17069   # Append ld.so.conf contents to the search path
17070   if test -f /etc/ld.so.conf; then
17071     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17072     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17073   fi
17074
17075   # We used to test for /lib/ld.so.1 and disable shared libraries on
17076   # powerpc, because MkLinux only supported shared libraries with the
17077   # GNU dynamic linker.  Since this was broken with cross compilers,
17078   # most powerpc-linux boxes support dynamic linking these days and
17079   # people can always --disable-shared, the test was removed, and we
17080   # assume the GNU/Linux dynamic linker is in use.
17081   dynamic_linker='GNU/Linux ld.so'
17082   ;;
17083
17084 knetbsd*-gnu)
17085   version_type=linux
17086   need_lib_prefix=no
17087   need_version=no
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17089   soname_spec='${libname}${release}${shared_ext}$major'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   shlibpath_overrides_runpath=no
17092   hardcode_into_libs=yes
17093   dynamic_linker='GNU ld.so'
17094   ;;
17095
17096 netbsd*)
17097   version_type=sunos
17098   need_lib_prefix=no
17099   need_version=no
17100   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17102     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17103     dynamic_linker='NetBSD (a.out) ld.so'
17104   else
17105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17106     soname_spec='${libname}${release}${shared_ext}$major'
17107     dynamic_linker='NetBSD ld.elf_so'
17108   fi
17109   shlibpath_var=LD_LIBRARY_PATH
17110   shlibpath_overrides_runpath=yes
17111   hardcode_into_libs=yes
17112   ;;
17113
17114 newsos6)
17115   version_type=linux
17116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   shlibpath_overrides_runpath=yes
17119   ;;
17120
17121 nto-qnx*)
17122   version_type=linux
17123   need_lib_prefix=no
17124   need_version=no
17125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126   soname_spec='${libname}${release}${shared_ext}$major'
17127   shlibpath_var=LD_LIBRARY_PATH
17128   shlibpath_overrides_runpath=yes
17129   ;;
17130
17131 openbsd*)
17132   version_type=sunos
17133   need_lib_prefix=no
17134   need_version=no
17135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17137   shlibpath_var=LD_LIBRARY_PATH
17138   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17139     case $host_os in
17140       openbsd2.[89] | openbsd2.[89].*)
17141         shlibpath_overrides_runpath=no
17142         ;;
17143       *)
17144         shlibpath_overrides_runpath=yes
17145         ;;
17146       esac
17147   else
17148     shlibpath_overrides_runpath=yes
17149   fi
17150   ;;
17151
17152 os2*)
17153   libname_spec='$name'
17154   shrext_cmds=".dll"
17155   need_lib_prefix=no
17156   library_names_spec='$libname${shared_ext} $libname.a'
17157   dynamic_linker='OS/2 ld.exe'
17158   shlibpath_var=LIBPATH
17159   ;;
17160
17161 osf3* | osf4* | osf5*)
17162   version_type=osf
17163   need_lib_prefix=no
17164   need_version=no
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17169   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17170   ;;
17171
17172 sco3.2v5*)
17173   version_type=osf
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176   shlibpath_var=LD_LIBRARY_PATH
17177   ;;
17178
17179 solaris*)
17180   version_type=linux
17181   need_lib_prefix=no
17182   need_version=no
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   shlibpath_overrides_runpath=yes
17187   hardcode_into_libs=yes
17188   # ldd complains unless libraries are executable
17189   postinstall_cmds='chmod +x $lib'
17190   ;;
17191
17192 sunos4*)
17193   version_type=sunos
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17196   shlibpath_var=LD_LIBRARY_PATH
17197   shlibpath_overrides_runpath=yes
17198   if test "$with_gnu_ld" = yes; then
17199     need_lib_prefix=no
17200   fi
17201   need_version=yes
17202   ;;
17203
17204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17205   version_type=linux
17206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207   soname_spec='${libname}${release}${shared_ext}$major'
17208   shlibpath_var=LD_LIBRARY_PATH
17209   case $host_vendor in
17210     sni)
17211       shlibpath_overrides_runpath=no
17212       need_lib_prefix=no
17213       export_dynamic_flag_spec='${wl}-Blargedynsym'
17214       runpath_var=LD_RUN_PATH
17215       ;;
17216     siemens)
17217       need_lib_prefix=no
17218       ;;
17219     motorola)
17220       need_lib_prefix=no
17221       need_version=no
17222       shlibpath_overrides_runpath=no
17223       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17224       ;;
17225   esac
17226   ;;
17227
17228 sysv4*MP*)
17229   if test -d /usr/nec ;then
17230     version_type=linux
17231     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17232     soname_spec='$libname${shared_ext}.$major'
17233     shlibpath_var=LD_LIBRARY_PATH
17234   fi
17235   ;;
17236
17237 uts4*)
17238   version_type=linux
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   ;;
17243
17244 *)
17245   dynamic_linker=no
17246   ;;
17247 esac
17248 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17249 echo "${ECHO_T}$dynamic_linker" >&6
17250 test "$dynamic_linker" = no && can_build_shared=no
17251
17252 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17254 hardcode_action_CXX=
17255 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17256    test -n "$runpath_var_CXX" || \
17257    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17258
17259   # We can hardcode non-existant directories.
17260   if test "$hardcode_direct_CXX" != no &&
17261      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17262      # have to relink, otherwise we might link with an installed library
17263      # when we should be linking with a yet-to-be-installed one
17264      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17265      test "$hardcode_minus_L_CXX" != no; then
17266     # Linking always hardcodes the temporary library directory.
17267     hardcode_action_CXX=relink
17268   else
17269     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17270     hardcode_action_CXX=immediate
17271   fi
17272 else
17273   # We cannot hardcode anything, or else we can only hardcode existing
17274   # directories.
17275   hardcode_action_CXX=unsupported
17276 fi
17277 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17278 echo "${ECHO_T}$hardcode_action_CXX" >&6
17279
17280 if test "$hardcode_action_CXX" = relink; then
17281   # Fast installation is not supported
17282   enable_fast_install=no
17283 elif test "$shlibpath_overrides_runpath" = yes ||
17284      test "$enable_shared" = no; then
17285   # Fast installation is not necessary
17286   enable_fast_install=needless
17287 fi
17288
17289 striplib=
17290 old_striplib=
17291 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17292 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17293 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17294   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17295   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17296   echo "$as_me:$LINENO: result: yes" >&5
17297 echo "${ECHO_T}yes" >&6
17298 else
17299 # FIXME - insert some real tests, host_os isn't really good enough
17300   case $host_os in
17301    darwin*)
17302        if test -n "$STRIP" ; then
17303          striplib="$STRIP -x"
17304          echo "$as_me:$LINENO: result: yes" >&5
17305 echo "${ECHO_T}yes" >&6
17306        else
17307   echo "$as_me:$LINENO: result: no" >&5
17308 echo "${ECHO_T}no" >&6
17309 fi
17310        ;;
17311    *)
17312   echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17314     ;;
17315   esac
17316 fi
17317
17318 if test "x$enable_dlopen" != xyes; then
17319   enable_dlopen=unknown
17320   enable_dlopen_self=unknown
17321   enable_dlopen_self_static=unknown
17322 else
17323   lt_cv_dlopen=no
17324   lt_cv_dlopen_libs=
17325
17326   case $host_os in
17327   beos*)
17328     lt_cv_dlopen="load_add_on"
17329     lt_cv_dlopen_libs=
17330     lt_cv_dlopen_self=yes
17331     ;;
17332
17333   mingw* | pw32*)
17334     lt_cv_dlopen="LoadLibrary"
17335     lt_cv_dlopen_libs=
17336    ;;
17337
17338   cygwin*)
17339     lt_cv_dlopen="dlopen"
17340     lt_cv_dlopen_libs=
17341    ;;
17342
17343   darwin*)
17344   # if libdl is installed we need to link against it
17345     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348   echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350   ac_check_lib_save_LIBS=$LIBS
17351 LIBS="-ldl  $LIBS"
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358
17359 /* Override any gcc2 internal prototype to avoid an error.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 /* We use char because int might match the return type of a gcc2
17364    builtin and then its argument prototype would still apply.  */
17365 char dlopen ();
17366 int
17367 main ()
17368 {
17369 dlopen ();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376   (eval $ac_link) 2>conftest.er1
17377   ac_status=$?
17378   grep -v '^ *+' conftest.er1 >conftest.err
17379   rm -f conftest.er1
17380   cat conftest.err >&5
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } &&
17383          { ac_try='test -z "$ac_cxx_werror_flag"
17384                          || test ! -s conftest.err'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   ac_cv_lib_dl_dlopen=yes
17397 else
17398   echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 ac_cv_lib_dl_dlopen=no
17402 fi
17403 rm -f conftest.err conftest.$ac_objext \
17404       conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409 if test $ac_cv_lib_dl_dlopen = yes; then
17410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17411 else
17412
17413     lt_cv_dlopen="dyld"
17414     lt_cv_dlopen_libs=
17415     lt_cv_dlopen_self=yes
17416
17417 fi
17418
17419    ;;
17420
17421   *)
17422     echo "$as_me:$LINENO: checking for shl_load" >&5
17423 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17424 if test "${ac_cv_func_shl_load+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17435 #define shl_load innocuous_shl_load
17436
17437 /* System header to define __stub macros and hopefully few prototypes,
17438     which can conflict with char shl_load (); below.
17439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440     <limits.h> exists even on freestanding compilers.  */
17441
17442 #ifdef __STDC__
17443 # include <limits.h>
17444 #else
17445 # include <assert.h>
17446 #endif
17447
17448 #undef shl_load
17449
17450 /* Override any gcc2 internal prototype to avoid an error.  */
17451 #ifdef __cplusplus
17452 extern "C"
17453 {
17454 #endif
17455 /* We use char because int might match the return type of a gcc2
17456    builtin and then its argument prototype would still apply.  */
17457 char shl_load ();
17458 /* The GNU C library defines this for functions which it implements
17459     to always fail with ENOSYS.  Some functions are actually named
17460     something starting with __ and the normal name is an alias.  */
17461 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17462 choke me
17463 #else
17464 char (*f) () = shl_load;
17465 #endif
17466 #ifdef __cplusplus
17467 }
17468 #endif
17469
17470 int
17471 main ()
17472 {
17473 return f != shl_load;
17474   ;
17475   return 0;
17476 }
17477 _ACEOF
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480   (eval $ac_link) 2>conftest.er1
17481   ac_status=$?
17482   grep -v '^ *+' conftest.er1 >conftest.err
17483   rm -f conftest.er1
17484   cat conftest.err >&5
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } &&
17487          { ac_try='test -z "$ac_cxx_werror_flag"
17488                          || test ! -s conftest.err'
17489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490   (eval $ac_try) 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); }; } &&
17494          { ac_try='test -s conftest$ac_exeext'
17495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496   (eval $ac_try) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; }; then
17500   ac_cv_func_shl_load=yes
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 ac_cv_func_shl_load=no
17506 fi
17507 rm -f conftest.err conftest.$ac_objext \
17508       conftest$ac_exeext conftest.$ac_ext
17509 fi
17510 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17511 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17512 if test $ac_cv_func_shl_load = yes; then
17513   lt_cv_dlopen="shl_load"
17514 else
17515   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17518   echo $ECHO_N "(cached) $ECHO_C" >&6
17519 else
17520   ac_check_lib_save_LIBS=$LIBS
17521 LIBS="-ldld  $LIBS"
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528
17529 /* Override any gcc2 internal prototype to avoid an error.  */
17530 #ifdef __cplusplus
17531 extern "C"
17532 #endif
17533 /* We use char because int might match the return type of a gcc2
17534    builtin and then its argument prototype would still apply.  */
17535 char shl_load ();
17536 int
17537 main ()
17538 {
17539 shl_load ();
17540   ;
17541   return 0;
17542 }
17543 _ACEOF
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17546   (eval $ac_link) 2>conftest.er1
17547   ac_status=$?
17548   grep -v '^ *+' conftest.er1 >conftest.err
17549   rm -f conftest.er1
17550   cat conftest.err >&5
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); } &&
17553          { ac_try='test -z "$ac_cxx_werror_flag"
17554                          || test ! -s conftest.err'
17555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556   (eval $ac_try) 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; } &&
17560          { ac_try='test -s conftest$ac_exeext'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; }; then
17566   ac_cv_lib_dld_shl_load=yes
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 ac_cv_lib_dld_shl_load=no
17572 fi
17573 rm -f conftest.err conftest.$ac_objext \
17574       conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS
17576 fi
17577 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17578 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17579 if test $ac_cv_lib_dld_shl_load = yes; then
17580   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17581 else
17582   echo "$as_me:$LINENO: checking for dlopen" >&5
17583 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17584 if test "${ac_cv_func_dlopen+set}" = set; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17595 #define dlopen innocuous_dlopen
17596
17597 /* System header to define __stub macros and hopefully few prototypes,
17598     which can conflict with char dlopen (); below.
17599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600     <limits.h> exists even on freestanding compilers.  */
17601
17602 #ifdef __STDC__
17603 # include <limits.h>
17604 #else
17605 # include <assert.h>
17606 #endif
17607
17608 #undef dlopen
17609
17610 /* Override any gcc2 internal prototype to avoid an error.  */
17611 #ifdef __cplusplus
17612 extern "C"
17613 {
17614 #endif
17615 /* We use char because int might match the return type of a gcc2
17616    builtin and then its argument prototype would still apply.  */
17617 char dlopen ();
17618 /* The GNU C library defines this for functions which it implements
17619     to always fail with ENOSYS.  Some functions are actually named
17620     something starting with __ and the normal name is an alias.  */
17621 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17622 choke me
17623 #else
17624 char (*f) () = dlopen;
17625 #endif
17626 #ifdef __cplusplus
17627 }
17628 #endif
17629
17630 int
17631 main ()
17632 {
17633 return f != dlopen;
17634   ;
17635   return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640   (eval $ac_link) 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } &&
17647          { ac_try='test -z "$ac_cxx_werror_flag"
17648                          || test ! -s conftest.err'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest$ac_exeext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_cv_func_dlopen=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_cv_func_dlopen=no
17666 fi
17667 rm -f conftest.err conftest.$ac_objext \
17668       conftest$ac_exeext conftest.$ac_ext
17669 fi
17670 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17671 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17672 if test $ac_cv_func_dlopen = yes; then
17673   lt_cv_dlopen="dlopen"
17674 else
17675   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680   ac_check_lib_save_LIBS=$LIBS
17681 LIBS="-ldl  $LIBS"
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 /* Override any gcc2 internal prototype to avoid an error.  */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 /* We use char because int might match the return type of a gcc2
17694    builtin and then its argument prototype would still apply.  */
17695 char dlopen ();
17696 int
17697 main ()
17698 {
17699 dlopen ();
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706   (eval $ac_link) 2>conftest.er1
17707   ac_status=$?
17708   grep -v '^ *+' conftest.er1 >conftest.err
17709   rm -f conftest.er1
17710   cat conftest.err >&5
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); } &&
17713          { ac_try='test -z "$ac_cxx_werror_flag"
17714                          || test ! -s conftest.err'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; } &&
17720          { ac_try='test -s conftest$ac_exeext'
17721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722   (eval $ac_try) 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; }; then
17726   ac_cv_lib_dl_dlopen=yes
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_cv_lib_dl_dlopen=no
17732 fi
17733 rm -f conftest.err conftest.$ac_objext \
17734       conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17736 fi
17737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17739 if test $ac_cv_lib_dl_dlopen = yes; then
17740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741 else
17742   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17743 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17744 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   ac_check_lib_save_LIBS=$LIBS
17748 LIBS="-lsvld  $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755
17756 /* Override any gcc2 internal prototype to avoid an error.  */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 /* We use char because int might match the return type of a gcc2
17761    builtin and then its argument prototype would still apply.  */
17762 char dlopen ();
17763 int
17764 main ()
17765 {
17766 dlopen ();
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773   (eval $ac_link) 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -z "$ac_cxx_werror_flag"
17781                          || test ! -s conftest.err'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; } &&
17787          { ac_try='test -s conftest$ac_exeext'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   ac_cv_lib_svld_dlopen=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ac_cv_lib_svld_dlopen=no
17799 fi
17800 rm -f conftest.err conftest.$ac_objext \
17801       conftest$ac_exeext conftest.$ac_ext
17802 LIBS=$ac_check_lib_save_LIBS
17803 fi
17804 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17805 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17806 if test $ac_cv_lib_svld_dlopen = yes; then
17807   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17808 else
17809   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17810 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17811 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   ac_check_lib_save_LIBS=$LIBS
17815 LIBS="-ldld  $LIBS"
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822
17823 /* Override any gcc2 internal prototype to avoid an error.  */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 /* We use char because int might match the return type of a gcc2
17828    builtin and then its argument prototype would still apply.  */
17829 char dld_link ();
17830 int
17831 main ()
17832 {
17833 dld_link ();
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840   (eval $ac_link) 2>conftest.er1
17841   ac_status=$?
17842   grep -v '^ *+' conftest.er1 >conftest.err
17843   rm -f conftest.er1
17844   cat conftest.err >&5
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); } &&
17847          { ac_try='test -z "$ac_cxx_werror_flag"
17848                          || test ! -s conftest.err'
17849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850   (eval $ac_try) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; } &&
17854          { ac_try='test -s conftest$ac_exeext'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }; then
17860   ac_cv_lib_dld_dld_link=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 ac_cv_lib_dld_dld_link=no
17866 fi
17867 rm -f conftest.err conftest.$ac_objext \
17868       conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17870 fi
17871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17873 if test $ac_cv_lib_dld_dld_link = yes; then
17874   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17875 fi
17876
17877
17878 fi
17879
17880
17881 fi
17882
17883
17884 fi
17885
17886
17887 fi
17888
17889
17890 fi
17891
17892     ;;
17893   esac
17894
17895   if test "x$lt_cv_dlopen" != xno; then
17896     enable_dlopen=yes
17897   else
17898     enable_dlopen=no
17899   fi
17900
17901   case $lt_cv_dlopen in
17902   dlopen)
17903     save_CPPFLAGS="$CPPFLAGS"
17904     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17905
17906     save_LDFLAGS="$LDFLAGS"
17907     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17908
17909     save_LIBS="$LIBS"
17910     LIBS="$lt_cv_dlopen_libs $LIBS"
17911
17912     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17913 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17914 if test "${lt_cv_dlopen_self+set}" = set; then
17915   echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917           if test "$cross_compiling" = yes; then :
17918   lt_cv_dlopen_self=cross
17919 else
17920   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17921   lt_status=$lt_dlunknown
17922   cat > conftest.$ac_ext <<EOF
17923 #line 17923 "configure"
17924 #include "confdefs.h"
17925
17926 #if HAVE_DLFCN_H
17927 #include <dlfcn.h>
17928 #endif
17929
17930 #include <stdio.h>
17931
17932 #ifdef RTLD_GLOBAL
17933 #  define LT_DLGLOBAL           RTLD_GLOBAL
17934 #else
17935 #  ifdef DL_GLOBAL
17936 #    define LT_DLGLOBAL         DL_GLOBAL
17937 #  else
17938 #    define LT_DLGLOBAL         0
17939 #  endif
17940 #endif
17941
17942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17943    find out it does not work in some platform. */
17944 #ifndef LT_DLLAZY_OR_NOW
17945 #  ifdef RTLD_LAZY
17946 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17947 #  else
17948 #    ifdef DL_LAZY
17949 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17950 #    else
17951 #      ifdef RTLD_NOW
17952 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17953 #      else
17954 #        ifdef DL_NOW
17955 #          define LT_DLLAZY_OR_NOW      DL_NOW
17956 #        else
17957 #          define LT_DLLAZY_OR_NOW      0
17958 #        endif
17959 #      endif
17960 #    endif
17961 #  endif
17962 #endif
17963
17964 #ifdef __cplusplus
17965 extern "C" void exit (int);
17966 #endif
17967
17968 void fnord() { int i=42;}
17969 int main ()
17970 {
17971   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17972   int status = $lt_dlunknown;
17973
17974   if (self)
17975     {
17976       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17977       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978       /* dlclose (self); */
17979     }
17980
17981     exit (status);
17982 }
17983 EOF
17984   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985   (eval $ac_link) 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17989     (./conftest; exit; ) 2>/dev/null
17990     lt_status=$?
17991     case x$lt_status in
17992       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17993       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17994       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17995     esac
17996   else :
17997     # compilation failed
17998     lt_cv_dlopen_self=no
17999   fi
18000 fi
18001 rm -fr conftest*
18002
18003
18004 fi
18005 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18006 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18007
18008     if test "x$lt_cv_dlopen_self" = xyes; then
18009       LDFLAGS="$LDFLAGS $link_static_flag"
18010       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18011 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18012 if test "${lt_cv_dlopen_self_static+set}" = set; then
18013   echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015           if test "$cross_compiling" = yes; then :
18016   lt_cv_dlopen_self_static=cross
18017 else
18018   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18019   lt_status=$lt_dlunknown
18020   cat > conftest.$ac_ext <<EOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18023
18024 #if HAVE_DLFCN_H
18025 #include <dlfcn.h>
18026 #endif
18027
18028 #include <stdio.h>
18029
18030 #ifdef RTLD_GLOBAL
18031 #  define LT_DLGLOBAL           RTLD_GLOBAL
18032 #else
18033 #  ifdef DL_GLOBAL
18034 #    define LT_DLGLOBAL         DL_GLOBAL
18035 #  else
18036 #    define LT_DLGLOBAL         0
18037 #  endif
18038 #endif
18039
18040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18041    find out it does not work in some platform. */
18042 #ifndef LT_DLLAZY_OR_NOW
18043 #  ifdef RTLD_LAZY
18044 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18045 #  else
18046 #    ifdef DL_LAZY
18047 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18048 #    else
18049 #      ifdef RTLD_NOW
18050 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18051 #      else
18052 #        ifdef DL_NOW
18053 #          define LT_DLLAZY_OR_NOW      DL_NOW
18054 #        else
18055 #          define LT_DLLAZY_OR_NOW      0
18056 #        endif
18057 #      endif
18058 #    endif
18059 #  endif
18060 #endif
18061
18062 #ifdef __cplusplus
18063 extern "C" void exit (int);
18064 #endif
18065
18066 void fnord() { int i=42;}
18067 int main ()
18068 {
18069   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070   int status = $lt_dlunknown;
18071
18072   if (self)
18073     {
18074       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18075       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18076       /* dlclose (self); */
18077     }
18078
18079     exit (status);
18080 }
18081 EOF
18082   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083   (eval $ac_link) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18087     (./conftest; exit; ) 2>/dev/null
18088     lt_status=$?
18089     case x$lt_status in
18090       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18091       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18092       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18093     esac
18094   else :
18095     # compilation failed
18096     lt_cv_dlopen_self_static=no
18097   fi
18098 fi
18099 rm -fr conftest*
18100
18101
18102 fi
18103 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18104 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18105     fi
18106
18107     CPPFLAGS="$save_CPPFLAGS"
18108     LDFLAGS="$save_LDFLAGS"
18109     LIBS="$save_LIBS"
18110     ;;
18111   esac
18112
18113   case $lt_cv_dlopen_self in
18114   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18115   *) enable_dlopen_self=unknown ;;
18116   esac
18117
18118   case $lt_cv_dlopen_self_static in
18119   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18120   *) enable_dlopen_self_static=unknown ;;
18121   esac
18122 fi
18123
18124
18125 # The else clause should only fire when bootstrapping the
18126 # libtool distribution, otherwise you forgot to ship ltmain.sh
18127 # with your package, and you will get complaints that there are
18128 # no rules to generate ltmain.sh.
18129 if test -f "$ltmain"; then
18130   # See if we are running on zsh, and set the options which allow our commands through
18131   # without removal of \ escapes.
18132   if test -n "${ZSH_VERSION+set}" ; then
18133     setopt NO_GLOB_SUBST
18134   fi
18135   # Now quote all the things that may contain metacharacters while being
18136   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18137   # variables and quote the copies for generation of the libtool script.
18138   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18139     SED SHELL STRIP \
18140     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18141     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18142     deplibs_check_method reload_flag reload_cmds need_locks \
18143     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18144     lt_cv_sys_global_symbol_to_c_name_address \
18145     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18146     old_postinstall_cmds old_postuninstall_cmds \
18147     compiler_CXX \
18148     CC_CXX \
18149     LD_CXX \
18150     lt_prog_compiler_wl_CXX \
18151     lt_prog_compiler_pic_CXX \
18152     lt_prog_compiler_static_CXX \
18153     lt_prog_compiler_no_builtin_flag_CXX \
18154     export_dynamic_flag_spec_CXX \
18155     thread_safe_flag_spec_CXX \
18156     whole_archive_flag_spec_CXX \
18157     enable_shared_with_static_runtimes_CXX \
18158     old_archive_cmds_CXX \
18159     old_archive_from_new_cmds_CXX \
18160     predep_objects_CXX \
18161     postdep_objects_CXX \
18162     predeps_CXX \
18163     postdeps_CXX \
18164     compiler_lib_search_path_CXX \
18165     archive_cmds_CXX \
18166     archive_expsym_cmds_CXX \
18167     postinstall_cmds_CXX \
18168     postuninstall_cmds_CXX \
18169     old_archive_from_expsyms_cmds_CXX \
18170     allow_undefined_flag_CXX \
18171     no_undefined_flag_CXX \
18172     export_symbols_cmds_CXX \
18173     hardcode_libdir_flag_spec_CXX \
18174     hardcode_libdir_flag_spec_ld_CXX \
18175     hardcode_libdir_separator_CXX \
18176     hardcode_automatic_CXX \
18177     module_cmds_CXX \
18178     module_expsym_cmds_CXX \
18179     lt_cv_prog_compiler_c_o_CXX \
18180     exclude_expsyms_CXX \
18181     include_expsyms_CXX; do
18182
18183     case $var in
18184     old_archive_cmds_CXX | \
18185     old_archive_from_new_cmds_CXX | \
18186     archive_cmds_CXX | \
18187     archive_expsym_cmds_CXX | \
18188     module_cmds_CXX | \
18189     module_expsym_cmds_CXX | \
18190     old_archive_from_expsyms_cmds_CXX | \
18191     export_symbols_cmds_CXX | \
18192     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18193     postinstall_cmds | postuninstall_cmds | \
18194     old_postinstall_cmds | old_postuninstall_cmds | \
18195     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18196       # Double-quote double-evaled strings.
18197       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18198       ;;
18199     *)
18200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18201       ;;
18202     esac
18203   done
18204
18205   case $lt_echo in
18206   *'\$0 --fallback-echo"')
18207     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18208     ;;
18209   esac
18210
18211 cfgfile="$ofile"
18212
18213   cat <<__EOF__ >> "$cfgfile"
18214 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18215
18216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18217
18218 # Shell to use when invoking shell scripts.
18219 SHELL=$lt_SHELL
18220
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18223
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18226
18227 # Whether or not to add -lc for building shared libraries.
18228 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18229
18230 # Whether or not to disallow shared libs when runtime libs are static
18231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18232
18233 # Whether or not to optimize for fast installation.
18234 fast_install=$enable_fast_install
18235
18236 # The host system.
18237 host_alias=$host_alias
18238 host=$host
18239
18240 # An echo program that does not interpret backslashes.
18241 echo=$lt_echo
18242
18243 # The archiver.
18244 AR=$lt_AR
18245 AR_FLAGS=$lt_AR_FLAGS
18246
18247 # A C compiler.
18248 LTCC=$lt_LTCC
18249
18250 # A language-specific compiler.
18251 CC=$lt_compiler_CXX
18252
18253 # Is the compiler the GNU C compiler?
18254 with_gcc=$GCC_CXX
18255
18256 # An ERE matcher.
18257 EGREP=$lt_EGREP
18258
18259 # The linker used to build libraries.
18260 LD=$lt_LD_CXX
18261
18262 # Whether we need hard or soft links.
18263 LN_S=$lt_LN_S
18264
18265 # A BSD-compatible nm program.
18266 NM=$lt_NM
18267
18268 # A symbol stripping program
18269 STRIP=$lt_STRIP
18270
18271 # Used to examine libraries when file_magic_cmd begins "file"
18272 MAGIC_CMD=$MAGIC_CMD
18273
18274 # Used on cygwin: DLL creation program.
18275 DLLTOOL="$DLLTOOL"
18276
18277 # Used on cygwin: object dumper.
18278 OBJDUMP="$OBJDUMP"
18279
18280 # Used on cygwin: assembler.
18281 AS="$AS"
18282
18283 # The name of the directory that contains temporary libtool files.
18284 objdir=$objdir
18285
18286 # How to create reloadable object files.
18287 reload_flag=$lt_reload_flag
18288 reload_cmds=$lt_reload_cmds
18289
18290 # How to pass a linker flag through the compiler.
18291 wl=$lt_lt_prog_compiler_wl_CXX
18292
18293 # Object file suffix (normally "o").
18294 objext="$ac_objext"
18295
18296 # Old archive suffix (normally "a").
18297 libext="$libext"
18298
18299 # Shared library suffix (normally ".so").
18300 shrext_cmds='$shrext_cmds'
18301
18302 # Executable file suffix (normally "").
18303 exeext="$exeext"
18304
18305 # Additional compiler flags for building library objects.
18306 pic_flag=$lt_lt_prog_compiler_pic_CXX
18307 pic_mode=$pic_mode
18308
18309 # What is the maximum length of a command?
18310 max_cmd_len=$lt_cv_sys_max_cmd_len
18311
18312 # Does compiler simultaneously support -c and -o options?
18313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18314
18315 # Must we lock files when doing compilation ?
18316 need_locks=$lt_need_locks
18317
18318 # Do we need the lib prefix for modules?
18319 need_lib_prefix=$need_lib_prefix
18320
18321 # Do we need a version for libraries?
18322 need_version=$need_version
18323
18324 # Whether dlopen is supported.
18325 dlopen_support=$enable_dlopen
18326
18327 # Whether dlopen of programs is supported.
18328 dlopen_self=$enable_dlopen_self
18329
18330 # Whether dlopen of statically linked programs is supported.
18331 dlopen_self_static=$enable_dlopen_self_static
18332
18333 # Compiler flag to prevent dynamic linking.
18334 link_static_flag=$lt_lt_prog_compiler_static_CXX
18335
18336 # Compiler flag to turn off builtin functions.
18337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18338
18339 # Compiler flag to allow reflexive dlopens.
18340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18341
18342 # Compiler flag to generate shared objects directly from archives.
18343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18344
18345 # Compiler flag to generate thread-safe objects.
18346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18347
18348 # Library versioning type.
18349 version_type=$version_type
18350
18351 # Format of library name prefix.
18352 libname_spec=$lt_libname_spec
18353
18354 # List of archive names.  First name is the real one, the rest are links.
18355 # The last name is the one that the linker finds with -lNAME.
18356 library_names_spec=$lt_library_names_spec
18357
18358 # The coded name of the library, if different from the real name.
18359 soname_spec=$lt_soname_spec
18360
18361 # Commands used to build and install an old-style archive.
18362 RANLIB=$lt_RANLIB
18363 old_archive_cmds=$lt_old_archive_cmds_CXX
18364 old_postinstall_cmds=$lt_old_postinstall_cmds
18365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18366
18367 # Create an old-style archive from a shared archive.
18368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18369
18370 # Create a temporary old-style archive to link instead of a shared archive.
18371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18372
18373 # Commands used to build and install a shared archive.
18374 archive_cmds=$lt_archive_cmds_CXX
18375 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18376 postinstall_cmds=$lt_postinstall_cmds
18377 postuninstall_cmds=$lt_postuninstall_cmds
18378
18379 # Commands used to build a loadable module (assumed same as above if empty)
18380 module_cmds=$lt_module_cmds_CXX
18381 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18382
18383 # Commands to strip libraries.
18384 old_striplib=$lt_old_striplib
18385 striplib=$lt_striplib
18386
18387 # Dependencies to place before the objects being linked to create a
18388 # shared library.
18389 predep_objects=$lt_predep_objects_CXX
18390
18391 # Dependencies to place after the objects being linked to create a
18392 # shared library.
18393 postdep_objects=$lt_postdep_objects_CXX
18394
18395 # Dependencies to place before the objects being linked to create a
18396 # shared library.
18397 predeps=$lt_predeps_CXX
18398
18399 # Dependencies to place after the objects being linked to create a
18400 # shared library.
18401 postdeps=$lt_postdeps_CXX
18402
18403 # The library search path used internally by the compiler when linking
18404 # a shared library.
18405 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18406
18407 # Method to check whether dependent libraries are shared objects.
18408 deplibs_check_method=$lt_deplibs_check_method
18409
18410 # Command to use when deplibs_check_method == file_magic.
18411 file_magic_cmd=$lt_file_magic_cmd
18412
18413 # Flag that allows shared libraries with undefined symbols to be built.
18414 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18415
18416 # Flag that forces no undefined symbols.
18417 no_undefined_flag=$lt_no_undefined_flag_CXX
18418
18419 # Commands used to finish a libtool library installation in a directory.
18420 finish_cmds=$lt_finish_cmds
18421
18422 # Same as above, but a single script fragment to be evaled but not shown.
18423 finish_eval=$lt_finish_eval
18424
18425 # Take the output of nm and produce a listing of raw symbols and C names.
18426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18427
18428 # Transform the output of nm in a proper C declaration
18429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18430
18431 # Transform the output of nm in a C name address pair
18432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18433
18434 # This is the shared library runtime path variable.
18435 runpath_var=$runpath_var
18436
18437 # This is the shared library path variable.
18438 shlibpath_var=$shlibpath_var
18439
18440 # Is shlibpath searched before the hard-coded library search path?
18441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18442
18443 # How to hardcode a shared library path into an executable.
18444 hardcode_action=$hardcode_action_CXX
18445
18446 # Whether we should hardcode library paths into libraries.
18447 hardcode_into_libs=$hardcode_into_libs
18448
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist.
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18452
18453 # If ld is used when linking, flag to hardcode \$libdir into
18454 # a binary during linking. This must work even if \$libdir does
18455 # not exist.
18456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18457
18458 # Whether we need a single -rpath flag with a separated argument.
18459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18460
18461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18462 # resulting binary.
18463 hardcode_direct=$hardcode_direct_CXX
18464
18465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18466 # resulting binary.
18467 hardcode_minus_L=$hardcode_minus_L_CXX
18468
18469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18470 # the resulting binary.
18471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18472
18473 # Set to yes if building a shared library automatically hardcodes DIR into the library
18474 # and all subsequent libraries and executables linked against it.
18475 hardcode_automatic=$hardcode_automatic_CXX
18476
18477 # Variables whose values should be saved in libtool wrapper scripts and
18478 # restored at relink time.
18479 variables_saved_for_relink="$variables_saved_for_relink"
18480
18481 # Whether libtool must link a program against all its dependency libraries.
18482 link_all_deplibs=$link_all_deplibs_CXX
18483
18484 # Compile-time system search path for libraries
18485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18486
18487 # Run-time system search path for libraries
18488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18489
18490 # Fix the shell variable \$srcfile for the compiler.
18491 fix_srcfile_path="$fix_srcfile_path_CXX"
18492
18493 # Set to yes if exported symbols are required.
18494 always_export_symbols=$always_export_symbols_CXX
18495
18496 # The commands to list exported symbols.
18497 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18498
18499 # The commands to extract the exported symbol list from a shared archive.
18500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18501
18502 # Symbols that should not be listed in the preloaded symbols.
18503 exclude_expsyms=$lt_exclude_expsyms_CXX
18504
18505 # Symbols that must always be exported.
18506 include_expsyms=$lt_include_expsyms_CXX
18507
18508 # ### END LIBTOOL TAG CONFIG: $tagname
18509
18510 __EOF__
18511
18512
18513 else
18514   # If there is no Makefile yet, we rely on a make rule to execute
18515   # `config.status --recheck' to rerun these tests and create the
18516   # libtool script then.
18517   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18518   if test -f "$ltmain_in"; then
18519     test -f Makefile && make "$ltmain"
18520   fi
18521 fi
18522
18523
18524 ac_ext=c
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530 CC=$lt_save_CC
18531 LDCXX=$LD
18532 LD=$lt_save_LD
18533 GCC=$lt_save_GCC
18534 with_gnu_ldcxx=$with_gnu_ld
18535 with_gnu_ld=$lt_save_with_gnu_ld
18536 lt_cv_path_LDCXX=$lt_cv_path_LD
18537 lt_cv_path_LD=$lt_save_path_LD
18538 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18539 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18540
18541         else
18542           tagname=""
18543         fi
18544         ;;
18545
18546       F77)
18547         if test -n "$F77" && test "X$F77" != "Xno"; then
18548
18549 ac_ext=f
18550 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18551 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18553
18554
18555 archive_cmds_need_lc_F77=no
18556 allow_undefined_flag_F77=
18557 always_export_symbols_F77=no
18558 archive_expsym_cmds_F77=
18559 export_dynamic_flag_spec_F77=
18560 hardcode_direct_F77=no
18561 hardcode_libdir_flag_spec_F77=
18562 hardcode_libdir_flag_spec_ld_F77=
18563 hardcode_libdir_separator_F77=
18564 hardcode_minus_L_F77=no
18565 hardcode_automatic_F77=no
18566 module_cmds_F77=
18567 module_expsym_cmds_F77=
18568 link_all_deplibs_F77=unknown
18569 old_archive_cmds_F77=$old_archive_cmds
18570 no_undefined_flag_F77=
18571 whole_archive_flag_spec_F77=
18572 enable_shared_with_static_runtimes_F77=no
18573
18574 # Source file extension for f77 test sources.
18575 ac_ext=f
18576
18577 # Object file extension for compiled f77 test sources.
18578 objext=o
18579 objext_F77=$objext
18580
18581 # Code to be used in simple compile tests
18582 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18583
18584 # Code to be used in simple link tests
18585 lt_simple_link_test_code="      program t\n      end\n"
18586
18587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18588
18589 # If no C compiler was specified, use CC.
18590 LTCC=${LTCC-"$CC"}
18591
18592 # Allow CC to be a program name with arguments.
18593 compiler=$CC
18594
18595
18596 # Allow CC to be a program name with arguments.
18597 lt_save_CC="$CC"
18598 CC=${F77-"f77"}
18599 compiler=$CC
18600 compiler_F77=$CC
18601 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18602
18603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18606 echo "${ECHO_T}$can_build_shared" >&6
18607
18608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18610 test "$can_build_shared" = "no" && enable_shared=no
18611
18612 # On AIX, shared libraries and static libraries use the same namespace, and
18613 # are all built from PIC.
18614 case "$host_os" in
18615 aix3*)
18616   test "$enable_shared" = yes && enable_static=no
18617   if test -n "$RANLIB"; then
18618     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18619     postinstall_cmds='$RANLIB $lib'
18620   fi
18621   ;;
18622 aix4* | aix5*)
18623   test "$enable_shared" = yes && enable_static=no
18624   ;;
18625 esac
18626 echo "$as_me:$LINENO: result: $enable_shared" >&5
18627 echo "${ECHO_T}$enable_shared" >&6
18628
18629 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18630 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18631 # Make sure either enable_shared or enable_static is yes.
18632 test "$enable_shared" = yes || enable_static=yes
18633 echo "$as_me:$LINENO: result: $enable_static" >&5
18634 echo "${ECHO_T}$enable_static" >&6
18635
18636 test "$ld_shlibs_F77" = no && can_build_shared=no
18637
18638 GCC_F77="$G77"
18639 LD_F77="$LD"
18640
18641 lt_prog_compiler_wl_F77=
18642 lt_prog_compiler_pic_F77=
18643 lt_prog_compiler_static_F77=
18644
18645 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18646 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18647
18648   if test "$GCC" = yes; then
18649     lt_prog_compiler_wl_F77='-Wl,'
18650     lt_prog_compiler_static_F77='-static'
18651
18652     case $host_os in
18653       aix*)
18654       # All AIX code is PIC.
18655       if test "$host_cpu" = ia64; then
18656         # AIX 5 now supports IA64 processor
18657         lt_prog_compiler_static_F77='-Bstatic'
18658       fi
18659       ;;
18660
18661     amigaos*)
18662       # FIXME: we need at least 68020 code to build shared libraries, but
18663       # adding the `-m68020' flag to GCC prevents building anything better,
18664       # like `-m68040'.
18665       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18666       ;;
18667
18668     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18669       # PIC is the default for these OSes.
18670       ;;
18671
18672     mingw* | pw32* | os2*)
18673       # This hack is so that the source file can tell whether it is being
18674       # built for inclusion in a dll (and should export symbols for example).
18675       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18676       ;;
18677
18678     darwin* | rhapsody*)
18679       # PIC is the default on this platform
18680       # Common symbols not allowed in MH_DYLIB files
18681       lt_prog_compiler_pic_F77='-fno-common'
18682       ;;
18683
18684     msdosdjgpp*)
18685       # Just because we use GCC doesn't mean we suddenly get shared libraries
18686       # on systems that don't support them.
18687       lt_prog_compiler_can_build_shared_F77=no
18688       enable_shared=no
18689       ;;
18690
18691     sysv4*MP*)
18692       if test -d /usr/nec; then
18693         lt_prog_compiler_pic_F77=-Kconform_pic
18694       fi
18695       ;;
18696
18697     hpux*)
18698       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18699       # not for PA HP-UX.
18700       case "$host_cpu" in
18701       hppa*64*|ia64*)
18702         # +Z the default
18703         ;;
18704       *)
18705         lt_prog_compiler_pic_F77='-fPIC'
18706         ;;
18707       esac
18708       ;;
18709
18710     *)
18711       lt_prog_compiler_pic_F77='-fPIC'
18712       ;;
18713     esac
18714   else
18715     # PORTME Check for flag to pass linker flags through the system compiler.
18716     case $host_os in
18717     aix*)
18718       lt_prog_compiler_wl_F77='-Wl,'
18719       if test "$host_cpu" = ia64; then
18720         # AIX 5 now supports IA64 processor
18721         lt_prog_compiler_static_F77='-Bstatic'
18722       else
18723         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18724       fi
18725       ;;
18726       darwin*)
18727         # PIC is the default on this platform
18728         # Common symbols not allowed in MH_DYLIB files
18729        case "$cc_basename" in
18730          xlc*)
18731          lt_prog_compiler_pic_F77='-qnocommon'
18732          lt_prog_compiler_wl_F77='-Wl,'
18733          ;;
18734        esac
18735        ;;
18736
18737     mingw* | pw32* | os2*)
18738       # This hack is so that the source file can tell whether it is being
18739       # built for inclusion in a dll (and should export symbols for example).
18740       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18741       ;;
18742
18743     hpux9* | hpux10* | hpux11*)
18744       lt_prog_compiler_wl_F77='-Wl,'
18745       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18746       # not for PA HP-UX.
18747       case "$host_cpu" in
18748       hppa*64*|ia64*)
18749         # +Z the default
18750         ;;
18751       *)
18752         lt_prog_compiler_pic_F77='+Z'
18753         ;;
18754       esac
18755       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18756       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18757       ;;
18758
18759     irix5* | irix6* | nonstopux*)
18760       lt_prog_compiler_wl_F77='-Wl,'
18761       # PIC (with -KPIC) is the default.
18762       lt_prog_compiler_static_F77='-non_shared'
18763       ;;
18764
18765     newsos6)
18766       lt_prog_compiler_pic_F77='-KPIC'
18767       lt_prog_compiler_static_F77='-Bstatic'
18768       ;;
18769
18770     linux*)
18771       case $CC in
18772       icc* | ecc*)
18773         lt_prog_compiler_wl_F77='-Wl,'
18774         lt_prog_compiler_pic_F77='-KPIC'
18775         lt_prog_compiler_static_F77='-static'
18776         ;;
18777       ccc*)
18778         lt_prog_compiler_wl_F77='-Wl,'
18779         # All Alpha code is PIC.
18780         lt_prog_compiler_static_F77='-non_shared'
18781         ;;
18782       esac
18783       ;;
18784
18785     osf3* | osf4* | osf5*)
18786       lt_prog_compiler_wl_F77='-Wl,'
18787       # All OSF/1 code is PIC.
18788       lt_prog_compiler_static_F77='-non_shared'
18789       ;;
18790
18791     sco3.2v5*)
18792       lt_prog_compiler_pic_F77='-Kpic'
18793       lt_prog_compiler_static_F77='-dn'
18794       ;;
18795
18796     solaris*)
18797       lt_prog_compiler_wl_F77='-Wl,'
18798       lt_prog_compiler_pic_F77='-KPIC'
18799       lt_prog_compiler_static_F77='-Bstatic'
18800       ;;
18801
18802     sunos4*)
18803       lt_prog_compiler_wl_F77='-Qoption ld '
18804       lt_prog_compiler_pic_F77='-PIC'
18805       lt_prog_compiler_static_F77='-Bstatic'
18806       ;;
18807
18808     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18809       lt_prog_compiler_wl_F77='-Wl,'
18810       lt_prog_compiler_pic_F77='-KPIC'
18811       lt_prog_compiler_static_F77='-Bstatic'
18812       ;;
18813
18814     sysv4*MP*)
18815       if test -d /usr/nec ;then
18816         lt_prog_compiler_pic_F77='-Kconform_pic'
18817         lt_prog_compiler_static_F77='-Bstatic'
18818       fi
18819       ;;
18820
18821     uts4*)
18822       lt_prog_compiler_pic_F77='-pic'
18823       lt_prog_compiler_static_F77='-Bstatic'
18824       ;;
18825
18826     *)
18827       lt_prog_compiler_can_build_shared_F77=no
18828       ;;
18829     esac
18830   fi
18831
18832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18833 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18834
18835 #
18836 # Check to make sure the PIC flag actually works.
18837 #
18838 if test -n "$lt_prog_compiler_pic_F77"; then
18839
18840 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18842 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   lt_prog_compiler_pic_works_F77=no
18846   ac_outfile=conftest.$ac_objext
18847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18848    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18849    # Insert the option either (1) after the last *FLAGS variable, or
18850    # (2) before a word containing "conftest.", or (3) at the end.
18851    # Note that $ac_compile itself does not contain backslashes and begins
18852    # with a dollar sign (not a hyphen), so the echo should work correctly.
18853    # The option is referenced via a variable to avoid confusing sed.
18854    lt_compile=`echo "$ac_compile" | $SED \
18855    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18857    -e 's:$: $lt_compiler_flag:'`
18858    (eval echo "\"\$as_me:18858: $lt_compile\"" >&5)
18859    (eval "$lt_compile" 2>conftest.err)
18860    ac_status=$?
18861    cat conftest.err >&5
18862    echo "$as_me:18862: \$? = $ac_status" >&5
18863    if (exit $ac_status) && test -s "$ac_outfile"; then
18864      # The compiler can only warn and ignore the option if not recognized
18865      # So say no if there are warnings
18866      if test ! -s conftest.err; then
18867        lt_prog_compiler_pic_works_F77=yes
18868      fi
18869    fi
18870    $rm conftest*
18871
18872 fi
18873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18874 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18875
18876 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18877     case $lt_prog_compiler_pic_F77 in
18878      "" | " "*) ;;
18879      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18880      esac
18881 else
18882     lt_prog_compiler_pic_F77=
18883      lt_prog_compiler_can_build_shared_F77=no
18884 fi
18885
18886 fi
18887 case "$host_os" in
18888   # For platforms which do not support PIC, -DPIC is meaningless:
18889   *djgpp*)
18890     lt_prog_compiler_pic_F77=
18891     ;;
18892   *)
18893     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18894     ;;
18895 esac
18896
18897 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18899 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   lt_cv_prog_compiler_c_o_F77=no
18903    $rm -r conftest 2>/dev/null
18904    mkdir conftest
18905    cd conftest
18906    mkdir out
18907    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18908
18909    lt_compiler_flag="-o out/conftest2.$ac_objext"
18910    # Insert the option either (1) after the last *FLAGS variable, or
18911    # (2) before a word containing "conftest.", or (3) at the end.
18912    # Note that $ac_compile itself does not contain backslashes and begins
18913    # with a dollar sign (not a hyphen), so the echo should work correctly.
18914    lt_compile=`echo "$ac_compile" | $SED \
18915    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18917    -e 's:$: $lt_compiler_flag:'`
18918    (eval echo "\"\$as_me:18918: $lt_compile\"" >&5)
18919    (eval "$lt_compile" 2>out/conftest.err)
18920    ac_status=$?
18921    cat out/conftest.err >&5
18922    echo "$as_me:18922: \$? = $ac_status" >&5
18923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18924    then
18925      # The compiler can only warn and ignore the option if not recognized
18926      # So say no if there are warnings
18927      if test ! -s out/conftest.err; then
18928        lt_cv_prog_compiler_c_o_F77=yes
18929      fi
18930    fi
18931    chmod u+w .
18932    $rm conftest*
18933    # SGI C++ compiler will create directory out/ii_files/ for
18934    # template instantiation
18935    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18936    $rm out/* && rmdir out
18937    cd ..
18938    rmdir conftest
18939    $rm conftest*
18940
18941 fi
18942 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18944
18945
18946 hard_links="nottested"
18947 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18948   # do not overwrite the value of need_locks provided by the user
18949   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18951   hard_links=yes
18952   $rm conftest*
18953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18954   touch conftest.a
18955   ln conftest.a conftest.b 2>&5 || hard_links=no
18956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957   echo "$as_me:$LINENO: result: $hard_links" >&5
18958 echo "${ECHO_T}$hard_links" >&6
18959   if test "$hard_links" = no; then
18960     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18962     need_locks=warn
18963   fi
18964 else
18965   need_locks=no
18966 fi
18967
18968 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18970
18971   runpath_var=
18972   allow_undefined_flag_F77=
18973   enable_shared_with_static_runtimes_F77=no
18974   archive_cmds_F77=
18975   archive_expsym_cmds_F77=
18976   old_archive_From_new_cmds_F77=
18977   old_archive_from_expsyms_cmds_F77=
18978   export_dynamic_flag_spec_F77=
18979   whole_archive_flag_spec_F77=
18980   thread_safe_flag_spec_F77=
18981   hardcode_libdir_flag_spec_F77=
18982   hardcode_libdir_flag_spec_ld_F77=
18983   hardcode_libdir_separator_F77=
18984   hardcode_direct_F77=no
18985   hardcode_minus_L_F77=no
18986   hardcode_shlibpath_var_F77=unsupported
18987   link_all_deplibs_F77=unknown
18988   hardcode_automatic_F77=no
18989   module_cmds_F77=
18990   module_expsym_cmds_F77=
18991   always_export_symbols_F77=no
18992   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18993   # include_expsyms should be a list of space-separated symbols to be *always*
18994   # included in the symbol list
18995   include_expsyms_F77=
18996   # exclude_expsyms can be an extended regexp of symbols to exclude
18997   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18998   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18999   # as well as any symbol that contains `d'.
19000   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19001   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19002   # platforms (ab)use it in PIC code, but their linkers get confused if
19003   # the symbol is explicitly referenced.  Since portable code cannot
19004   # rely on this symbol name, it's probably fine to never include it in
19005   # preloaded symbol tables.
19006   extract_expsyms_cmds=
19007
19008   case $host_os in
19009   cygwin* | mingw* | pw32*)
19010     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19011     # When not using gcc, we currently assume that we are using
19012     # Microsoft Visual C++.
19013     if test "$GCC" != yes; then
19014       with_gnu_ld=no
19015     fi
19016     ;;
19017   openbsd*)
19018     with_gnu_ld=no
19019     ;;
19020   esac
19021
19022   ld_shlibs_F77=yes
19023   if test "$with_gnu_ld" = yes; then
19024     # If archive_cmds runs LD, not CC, wlarc should be empty
19025     wlarc='${wl}'
19026
19027     # See if GNU ld supports shared libraries.
19028     case $host_os in
19029     aix3* | aix4* | aix5*)
19030       # On AIX/PPC, the GNU linker is very broken
19031       if test "$host_cpu" != ia64; then
19032         ld_shlibs_F77=no
19033         cat <<EOF 1>&2
19034
19035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19036 *** to be unable to reliably create shared libraries on AIX.
19037 *** Therefore, libtool is disabling shared libraries support.  If you
19038 *** really care for shared libraries, you may want to modify your PATH
19039 *** so that a non-GNU linker is found, and then restart.
19040
19041 EOF
19042       fi
19043       ;;
19044
19045     amigaos*)
19046       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)'
19047       hardcode_libdir_flag_spec_F77='-L$libdir'
19048       hardcode_minus_L_F77=yes
19049
19050       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19051       # that the semantics of dynamic libraries on AmigaOS, at least up
19052       # to version 4, is to share data among multiple programs linked
19053       # with the same dynamic library.  Since this doesn't match the
19054       # behavior of shared libraries on other platforms, we can't use
19055       # them.
19056       ld_shlibs_F77=no
19057       ;;
19058
19059     beos*)
19060       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19061         allow_undefined_flag_F77=unsupported
19062         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19063         # support --undefined.  This deserves some investigation.  FIXME
19064         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065       else
19066         ld_shlibs_F77=no
19067       fi
19068       ;;
19069
19070     cygwin* | mingw* | pw32*)
19071       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19072       # as there is no search path for DLLs.
19073       hardcode_libdir_flag_spec_F77='-L$libdir'
19074       allow_undefined_flag_F77=unsupported
19075       always_export_symbols_F77=no
19076       enable_shared_with_static_runtimes_F77=yes
19077       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19078
19079       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19080         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19081         # If the export-symbols file already is a .def file (1st line
19082         # is EXPORTS), use it as is; otherwise, prepend...
19083         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19084           cp $export_symbols $output_objdir/$soname.def;
19085         else
19086           echo EXPORTS > $output_objdir/$soname.def;
19087           cat $export_symbols >> $output_objdir/$soname.def;
19088         fi~
19089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19090       else
19091         ld_shlibs=no
19092       fi
19093       ;;
19094
19095     netbsd*)
19096       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19097         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19098         wlarc=
19099       else
19100         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19101         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19102       fi
19103       ;;
19104
19105     solaris* | sysv5*)
19106       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19107         ld_shlibs_F77=no
19108         cat <<EOF 1>&2
19109
19110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19111 *** create shared libraries on Solaris systems.  Therefore, libtool
19112 *** is disabling shared libraries support.  We urge you to upgrade GNU
19113 *** binutils to release 2.9.1 or newer.  Another option is to modify
19114 *** your PATH or compiler configuration so that the native linker is
19115 *** used, and then restart.
19116
19117 EOF
19118       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19119         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19120         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19121       else
19122         ld_shlibs_F77=no
19123       fi
19124       ;;
19125
19126     sunos4*)
19127       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19128       wlarc=
19129       hardcode_direct_F77=yes
19130       hardcode_shlibpath_var_F77=no
19131       ;;
19132
19133   linux*)
19134     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19135         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19136         archive_cmds_F77="$tmp_archive_cmds"
19137       supports_anon_versioning=no
19138       case `$LD -v 2>/dev/null` in
19139         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19140         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19141         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19142         *\ 2.11.*) ;; # other 2.11 versions
19143         *) supports_anon_versioning=yes ;;
19144       esac
19145       if test $supports_anon_versioning = yes; then
19146         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19148 $echo "local: *; };" >> $output_objdir/$libname.ver~
19149         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19150       else
19151         archive_expsym_cmds_F77="$tmp_archive_cmds"
19152       fi
19153     else
19154       ld_shlibs_F77=no
19155     fi
19156     ;;
19157
19158     *)
19159       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19160         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19162       else
19163         ld_shlibs_F77=no
19164       fi
19165       ;;
19166     esac
19167
19168     if test "$ld_shlibs_F77" = yes; then
19169       runpath_var=LD_RUN_PATH
19170       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19171       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19172       # ancient GNU ld didn't support --whole-archive et. al.
19173       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19174         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19175       else
19176         whole_archive_flag_spec_F77=
19177       fi
19178     fi
19179   else
19180     # PORTME fill in a description of your system's linker (not GNU ld)
19181     case $host_os in
19182     aix3*)
19183       allow_undefined_flag_F77=unsupported
19184       always_export_symbols_F77=yes
19185       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'
19186       # Note: this linker hardcodes the directories in LIBPATH if there
19187       # are no directories specified by -L.
19188       hardcode_minus_L_F77=yes
19189       if test "$GCC" = yes && test -z "$link_static_flag"; then
19190         # Neither direct hardcoding nor static linking is supported with a
19191         # broken collect2.
19192         hardcode_direct_F77=unsupported
19193       fi
19194       ;;
19195
19196     aix4* | aix5*)
19197       if test "$host_cpu" = ia64; then
19198         # On IA64, the linker does run time linking by default, so we don't
19199         # have to do anything special.
19200         aix_use_runtimelinking=no
19201         exp_sym_flag='-Bexport'
19202         no_entry_flag=""
19203       else
19204         # If we're using GNU nm, then we don't want the "-C" option.
19205         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19206         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19207           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'
19208         else
19209           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'
19210         fi
19211         aix_use_runtimelinking=no
19212
19213         # Test if we are trying to use run time linking or normal
19214         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19215         # need to do runtime linking.
19216         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19217           for ld_flag in $LDFLAGS; do
19218           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19219             aix_use_runtimelinking=yes
19220             break
19221           fi
19222           done
19223         esac
19224
19225         exp_sym_flag='-bexport'
19226         no_entry_flag='-bnoentry'
19227       fi
19228
19229       # When large executables or shared objects are built, AIX ld can
19230       # have problems creating the table of contents.  If linking a library
19231       # or program results in "error TOC overflow" add -mminimal-toc to
19232       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19233       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19234
19235       archive_cmds_F77=''
19236       hardcode_direct_F77=yes
19237       hardcode_libdir_separator_F77=':'
19238       link_all_deplibs_F77=yes
19239
19240       if test "$GCC" = yes; then
19241         case $host_os in aix4.012|aix4.012.*)
19242         # We only want to do this on AIX 4.2 and lower, the check
19243         # below for broken collect2 doesn't work under 4.3+
19244           collect2name=`${CC} -print-prog-name=collect2`
19245           if test -f "$collect2name" && \
19246            strings "$collect2name" | grep resolve_lib_name >/dev/null
19247           then
19248           # We have reworked collect2
19249           hardcode_direct_F77=yes
19250           else
19251           # We have old collect2
19252           hardcode_direct_F77=unsupported
19253           # It fails to find uninstalled libraries when the uninstalled
19254           # path is not listed in the libpath.  Setting hardcode_minus_L
19255           # to unsupported forces relinking
19256           hardcode_minus_L_F77=yes
19257           hardcode_libdir_flag_spec_F77='-L$libdir'
19258           hardcode_libdir_separator_F77=
19259           fi
19260         esac
19261         shared_flag='-shared'
19262       else
19263         # not using gcc
19264         if test "$host_cpu" = ia64; then
19265         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19266         # chokes on -Wl,-G. The following line is correct:
19267           shared_flag='-G'
19268         else
19269         if test "$aix_use_runtimelinking" = yes; then
19270             shared_flag='${wl}-G'
19271           else
19272             shared_flag='${wl}-bM:SRE'
19273         fi
19274         fi
19275       fi
19276
19277       # It seems that -bexpall does not export symbols beginning with
19278       # underscore (_), so it is better to generate a list of symbols to export.
19279       always_export_symbols_F77=yes
19280       if test "$aix_use_runtimelinking" = yes; then
19281         # Warning - without using the other runtime loading flags (-brtl),
19282         # -berok will link without error, but may produce a broken library.
19283         allow_undefined_flag_F77='-berok'
19284        # Determine the default libpath from the value encoded in an empty executable.
19285        cat >conftest.$ac_ext <<_ACEOF
19286       program main
19287
19288       end
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_f77_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest$ac_exeext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312
19313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19314 }'`
19315 # Check for a 64-bit object if we didn't find anything.
19316 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; }
19317 }'`; fi
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 fi
19323 rm -f conftest.err conftest.$ac_objext \
19324       conftest$ac_exeext conftest.$ac_ext
19325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19326
19327        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19328         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"
19329        else
19330         if test "$host_cpu" = ia64; then
19331           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19332           allow_undefined_flag_F77="-z nodefs"
19333           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"
19334         else
19335          # Determine the default libpath from the value encoded in an empty executable.
19336          cat >conftest.$ac_ext <<_ACEOF
19337       program main
19338
19339       end
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343   (eval $ac_link) 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } &&
19350          { ac_try='test -z "$ac_f77_werror_flag"
19351                          || test ! -s conftest.err'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } &&
19357          { ac_try='test -s conftest$ac_exeext'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; }; then
19363
19364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19365 }'`
19366 # Check for a 64-bit object if we didn't find anything.
19367 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; }
19368 }'`; fi
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 fi
19374 rm -f conftest.err conftest.$ac_objext \
19375       conftest$ac_exeext conftest.$ac_ext
19376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19377
19378          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19379           # Warning - without using the other run time loading flags,
19380           # -berok will link without error, but may produce a broken library.
19381           no_undefined_flag_F77=' ${wl}-bernotok'
19382           allow_undefined_flag_F77=' ${wl}-berok'
19383           # -bexpall does not export symbols beginning with underscore (_)
19384           always_export_symbols_F77=yes
19385           # Exported symbols can be pulled into shared objects from archives
19386           whole_archive_flag_spec_F77=' '
19387           archive_cmds_need_lc_F77=yes
19388           # This is similar to how AIX traditionally builds it's shared libraries.
19389           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'
19390         fi
19391       fi
19392       ;;
19393
19394     amigaos*)
19395       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)'
19396       hardcode_libdir_flag_spec_F77='-L$libdir'
19397       hardcode_minus_L_F77=yes
19398       # see comment about different semantics on the GNU ld section
19399       ld_shlibs_F77=no
19400       ;;
19401
19402     bsdi[45]*)
19403       export_dynamic_flag_spec_F77=-rdynamic
19404       ;;
19405
19406     cygwin* | mingw* | pw32*)
19407       # When not using gcc, we currently assume that we are using
19408       # Microsoft Visual C++.
19409       # hardcode_libdir_flag_spec is actually meaningless, as there is
19410       # no search path for DLLs.
19411       hardcode_libdir_flag_spec_F77=' '
19412       allow_undefined_flag_F77=unsupported
19413       # Tell ltmain to make .lib files, not .a files.
19414       libext=lib
19415       # Tell ltmain to make .dll files, not .so files.
19416       shrext_cmds=".dll"
19417       # FIXME: Setting linknames here is a bad hack.
19418       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19419       # The linker will automatically build a .lib file if we build a DLL.
19420       old_archive_From_new_cmds_F77='true'
19421       # FIXME: Should let the user specify the lib program.
19422       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19423       fix_srcfile_path='`cygpath -w "$srcfile"`'
19424       enable_shared_with_static_runtimes_F77=yes
19425       ;;
19426
19427     darwin* | rhapsody*)
19428       case "$host_os" in
19429         rhapsody* | darwin1.[012])
19430          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19431          ;;
19432        *) # Darwin 1.3 on
19433          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19434            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19435          else
19436            case ${MACOSX_DEPLOYMENT_TARGET} in
19437              10.[012])
19438                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19439                ;;
19440              10.*)
19441                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19442                ;;
19443            esac
19444          fi
19445          ;;
19446       esac
19447       archive_cmds_need_lc_F77=no
19448       hardcode_direct_F77=no
19449       hardcode_automatic_F77=yes
19450       hardcode_shlibpath_var_F77=unsupported
19451       whole_archive_flag_spec_F77=''
19452       link_all_deplibs_F77=yes
19453     if test "$GCC" = yes ; then
19454         output_verbose_link_cmd='echo'
19455         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19456       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19457       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19458       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}'
19459       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}'
19460     else
19461       case "$cc_basename" in
19462         xlc*)
19463          output_verbose_link_cmd='echo'
19464          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19465          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19466           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19467          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}'
19468           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}'
19469           ;;
19470        *)
19471          ld_shlibs_F77=no
19472           ;;
19473       esac
19474     fi
19475       ;;
19476
19477     dgux*)
19478       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19479       hardcode_libdir_flag_spec_F77='-L$libdir'
19480       hardcode_shlibpath_var_F77=no
19481       ;;
19482
19483     freebsd1*)
19484       ld_shlibs_F77=no
19485       ;;
19486
19487     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19488     # support.  Future versions do this automatically, but an explicit c++rt0.o
19489     # does not break anything, and helps significantly (at the cost of a little
19490     # extra space).
19491     freebsd2.2*)
19492       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19493       hardcode_libdir_flag_spec_F77='-R$libdir'
19494       hardcode_direct_F77=yes
19495       hardcode_shlibpath_var_F77=no
19496       ;;
19497
19498     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19499     freebsd2*)
19500       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19501       hardcode_direct_F77=yes
19502       hardcode_minus_L_F77=yes
19503       hardcode_shlibpath_var_F77=no
19504       ;;
19505
19506     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19507     freebsd* | kfreebsd*-gnu)
19508       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19509       hardcode_libdir_flag_spec_F77='-R$libdir'
19510       hardcode_direct_F77=yes
19511       hardcode_shlibpath_var_F77=no
19512       ;;
19513
19514     hpux9*)
19515       if test "$GCC" = yes; then
19516         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'
19517       else
19518         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'
19519       fi
19520       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19521       hardcode_libdir_separator_F77=:
19522       hardcode_direct_F77=yes
19523
19524       # hardcode_minus_L: Not really in the search PATH,
19525       # but as the default location of the library.
19526       hardcode_minus_L_F77=yes
19527       export_dynamic_flag_spec_F77='${wl}-E'
19528       ;;
19529
19530     hpux10* | hpux11*)
19531       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19532         case "$host_cpu" in
19533         hppa*64*|ia64*)
19534           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19535           ;;
19536         *)
19537           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19538           ;;
19539         esac
19540       else
19541         case "$host_cpu" in
19542         hppa*64*|ia64*)
19543           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19544           ;;
19545         *)
19546           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19547           ;;
19548         esac
19549       fi
19550       if test "$with_gnu_ld" = no; then
19551         case "$host_cpu" in
19552         hppa*64*)
19553           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19555           hardcode_libdir_separator_F77=:
19556           hardcode_direct_F77=no
19557           hardcode_shlibpath_var_F77=no
19558           ;;
19559         ia64*)
19560           hardcode_libdir_flag_spec_F77='-L$libdir'
19561           hardcode_direct_F77=no
19562           hardcode_shlibpath_var_F77=no
19563
19564           # hardcode_minus_L: Not really in the search PATH,
19565           # but as the default location of the library.
19566           hardcode_minus_L_F77=yes
19567           ;;
19568         *)
19569           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19570           hardcode_libdir_separator_F77=:
19571           hardcode_direct_F77=yes
19572           export_dynamic_flag_spec_F77='${wl}-E'
19573
19574           # hardcode_minus_L: Not really in the search PATH,
19575           # but as the default location of the library.
19576           hardcode_minus_L_F77=yes
19577           ;;
19578         esac
19579       fi
19580       ;;
19581
19582     irix5* | irix6* | nonstopux*)
19583       if test "$GCC" = yes; then
19584         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'
19585       else
19586         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'
19587         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19588       fi
19589       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19590       hardcode_libdir_separator_F77=:
19591       link_all_deplibs_F77=yes
19592       ;;
19593
19594     netbsd*)
19595       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19596         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19597       else
19598         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19599       fi
19600       hardcode_libdir_flag_spec_F77='-R$libdir'
19601       hardcode_direct_F77=yes
19602       hardcode_shlibpath_var_F77=no
19603       ;;
19604
19605     newsos6)
19606       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19607       hardcode_direct_F77=yes
19608       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19609       hardcode_libdir_separator_F77=:
19610       hardcode_shlibpath_var_F77=no
19611       ;;
19612
19613     openbsd*)
19614       hardcode_direct_F77=yes
19615       hardcode_shlibpath_var_F77=no
19616       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19617         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19618         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19619         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19620         export_dynamic_flag_spec_F77='${wl}-E'
19621       else
19622        case $host_os in
19623          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19624            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19625            hardcode_libdir_flag_spec_F77='-R$libdir'
19626            ;;
19627          *)
19628            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19629            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19630            ;;
19631        esac
19632       fi
19633       ;;
19634
19635     os2*)
19636       hardcode_libdir_flag_spec_F77='-L$libdir'
19637       hardcode_minus_L_F77=yes
19638       allow_undefined_flag_F77=unsupported
19639       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'
19640       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19641       ;;
19642
19643     osf3*)
19644       if test "$GCC" = yes; then
19645         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19646         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'
19647       else
19648         allow_undefined_flag_F77=' -expect_unresolved \*'
19649         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'
19650       fi
19651       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19652       hardcode_libdir_separator_F77=:
19653       ;;
19654
19655     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19656       if test "$GCC" = yes; then
19657         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19658         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'
19659         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19660       else
19661         allow_undefined_flag_F77=' -expect_unresolved \*'
19662         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'
19663         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~
19664         $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'
19665
19666         # Both c and cxx compiler support -rpath directly
19667         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19668       fi
19669       hardcode_libdir_separator_F77=:
19670       ;;
19671
19672     sco3.2v5*)
19673       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19674       hardcode_shlibpath_var_F77=no
19675       export_dynamic_flag_spec_F77='${wl}-Bexport'
19676       runpath_var=LD_RUN_PATH
19677       hardcode_runpath_var=yes
19678       ;;
19679
19680     solaris*)
19681       no_undefined_flag_F77=' -z text'
19682       if test "$GCC" = yes; then
19683         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19684         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19685           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19686       else
19687         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19688         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19689         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19690       fi
19691       hardcode_libdir_flag_spec_F77='-R$libdir'
19692       hardcode_shlibpath_var_F77=no
19693       case $host_os in
19694       solaris2.[0-5] | solaris2.[0-5].*) ;;
19695       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19696         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19697       esac
19698       link_all_deplibs_F77=yes
19699       ;;
19700
19701     sunos4*)
19702       if test "x$host_vendor" = xsequent; then
19703         # Use $CC to link under sequent, because it throws in some extra .o
19704         # files that make .init and .fini sections work.
19705         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19706       else
19707         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19708       fi
19709       hardcode_libdir_flag_spec_F77='-L$libdir'
19710       hardcode_direct_F77=yes
19711       hardcode_minus_L_F77=yes
19712       hardcode_shlibpath_var_F77=no
19713       ;;
19714
19715     sysv4)
19716       case $host_vendor in
19717         sni)
19718           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719           hardcode_direct_F77=yes # is this really true???
19720         ;;
19721         siemens)
19722           ## LD is ld it makes a PLAMLIB
19723           ## CC just makes a GrossModule.
19724           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19725           reload_cmds_F77='$CC -r -o $output$reload_objs'
19726           hardcode_direct_F77=no
19727         ;;
19728         motorola)
19729           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19731         ;;
19732       esac
19733       runpath_var='LD_RUN_PATH'
19734       hardcode_shlibpath_var_F77=no
19735       ;;
19736
19737     sysv4.3*)
19738       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19739       hardcode_shlibpath_var_F77=no
19740       export_dynamic_flag_spec_F77='-Bexport'
19741       ;;
19742
19743     sysv4*MP*)
19744       if test -d /usr/nec; then
19745         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19746         hardcode_shlibpath_var_F77=no
19747         runpath_var=LD_RUN_PATH
19748         hardcode_runpath_var=yes
19749         ld_shlibs_F77=yes
19750       fi
19751       ;;
19752
19753     sysv4.2uw2*)
19754       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755       hardcode_direct_F77=yes
19756       hardcode_minus_L_F77=no
19757       hardcode_shlibpath_var_F77=no
19758       hardcode_runpath_var=yes
19759       runpath_var=LD_RUN_PATH
19760       ;;
19761
19762    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19763       no_undefined_flag_F77='${wl}-z ${wl}text'
19764       if test "$GCC" = yes; then
19765         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19766       else
19767         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768       fi
19769       runpath_var='LD_RUN_PATH'
19770       hardcode_shlibpath_var_F77=no
19771       ;;
19772
19773     sysv5*)
19774       no_undefined_flag_F77=' -z text'
19775       # $CC -shared without GNU ld will not create a library from C++
19776       # object files and a static libstdc++, better avoid it by now
19777       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19780       hardcode_libdir_flag_spec_F77=
19781       hardcode_shlibpath_var_F77=no
19782       runpath_var='LD_RUN_PATH'
19783       ;;
19784
19785     uts4*)
19786       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787       hardcode_libdir_flag_spec_F77='-L$libdir'
19788       hardcode_shlibpath_var_F77=no
19789       ;;
19790
19791     *)
19792       ld_shlibs_F77=no
19793       ;;
19794     esac
19795   fi
19796
19797 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19798 echo "${ECHO_T}$ld_shlibs_F77" >&6
19799 test "$ld_shlibs_F77" = no && can_build_shared=no
19800
19801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19802 if test "$GCC" = yes; then
19803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19804 fi
19805
19806 #
19807 # Do we need to explicitly link libc?
19808 #
19809 case "x$archive_cmds_need_lc_F77" in
19810 x|xyes)
19811   # Assume -lc should be added
19812   archive_cmds_need_lc_F77=yes
19813
19814   if test "$enable_shared" = yes && test "$GCC" = yes; then
19815     case $archive_cmds_F77 in
19816     *'~'*)
19817       # FIXME: we may have to deal with multi-command sequences.
19818       ;;
19819     '$CC '*)
19820       # Test whether the compiler implicitly links with -lc since on some
19821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19822       # to ld, don't add -lc before -lgcc.
19823       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19825       $rm conftest*
19826       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19827
19828       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829   (eval $ac_compile) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } 2>conftest.err; then
19833         soname=conftest
19834         lib=conftest
19835         libobjs=conftest.$ac_objext
19836         deplibs=
19837         wl=$lt_prog_compiler_wl_F77
19838         compiler_flags=-v
19839         linker_flags=-v
19840         verstring=
19841         output_objdir=.
19842         libname=conftest
19843         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19844         allow_undefined_flag_F77=
19845         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19846   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19847   ac_status=$?
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); }
19850         then
19851           archive_cmds_need_lc_F77=no
19852         else
19853           archive_cmds_need_lc_F77=yes
19854         fi
19855         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19856       else
19857         cat conftest.err 1>&5
19858       fi
19859       $rm conftest*
19860       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19861 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19862       ;;
19863     esac
19864   fi
19865   ;;
19866 esac
19867
19868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19870 library_names_spec=
19871 libname_spec='lib$name'
19872 soname_spec=
19873 shrext_cmds=".so"
19874 postinstall_cmds=
19875 postuninstall_cmds=
19876 finish_cmds=
19877 finish_eval=
19878 shlibpath_var=
19879 shlibpath_overrides_runpath=unknown
19880 version_type=none
19881 dynamic_linker="$host_os ld.so"
19882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19883 if test "$GCC" = yes; then
19884   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19885   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19886     # if the path contains ";" then we assume it to be the separator
19887     # otherwise default to the standard path separator (i.e. ":") - it is
19888     # assumed that no part of a normal pathname contains ";" but that should
19889     # okay in the real world where ";" in dirpaths is itself problematic.
19890     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19891   else
19892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19893   fi
19894 else
19895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19896 fi
19897 need_lib_prefix=unknown
19898 hardcode_into_libs=no
19899
19900 # when you set need_version to no, make sure it does not cause -set_version
19901 # flags to be left without arguments
19902 need_version=unknown
19903
19904 case $host_os in
19905 aix3*)
19906   version_type=linux
19907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19908   shlibpath_var=LIBPATH
19909
19910   # AIX 3 has no versioning support, so we append a major version to the name.
19911   soname_spec='${libname}${release}${shared_ext}$major'
19912   ;;
19913
19914 aix4* | aix5*)
19915   version_type=linux
19916   need_lib_prefix=no
19917   need_version=no
19918   hardcode_into_libs=yes
19919   if test "$host_cpu" = ia64; then
19920     # AIX 5 supports IA64
19921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19922     shlibpath_var=LD_LIBRARY_PATH
19923   else
19924     # With GCC up to 2.95.x, collect2 would create an import file
19925     # for dependence libraries.  The import file would start with
19926     # the line `#! .'.  This would cause the generated library to
19927     # depend on `.', always an invalid library.  This was fixed in
19928     # development snapshots of GCC prior to 3.0.
19929     case $host_os in
19930       aix4 | aix4.[01] | aix4.[01].*)
19931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19932            echo ' yes '
19933            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19934         :
19935       else
19936         can_build_shared=no
19937       fi
19938       ;;
19939     esac
19940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19941     # soname into executable. Probably we can add versioning support to
19942     # collect2, so additional links can be useful in future.
19943     if test "$aix_use_runtimelinking" = yes; then
19944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19945       # instead of lib<name>.a to let people know that these are not
19946       # typical AIX shared libraries.
19947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19948     else
19949       # We preserve .a as extension for shared libraries through AIX4.2
19950       # and later when we are not doing run time linking.
19951       library_names_spec='${libname}${release}.a $libname.a'
19952       soname_spec='${libname}${release}${shared_ext}$major'
19953     fi
19954     shlibpath_var=LIBPATH
19955   fi
19956   ;;
19957
19958 amigaos*)
19959   library_names_spec='$libname.ixlibrary $libname.a'
19960   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19961   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'
19962   ;;
19963
19964 beos*)
19965   library_names_spec='${libname}${shared_ext}'
19966   dynamic_linker="$host_os ld.so"
19967   shlibpath_var=LIBRARY_PATH
19968   ;;
19969
19970 bsdi[45]*)
19971   version_type=linux
19972   need_version=no
19973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19974   soname_spec='${libname}${release}${shared_ext}$major'
19975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19976   shlibpath_var=LD_LIBRARY_PATH
19977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19979   # the default ld.so.conf also contains /usr/contrib/lib and
19980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19981   # libtool to hard-code these into programs
19982   ;;
19983
19984 cygwin* | mingw* | pw32*)
19985   version_type=windows
19986   shrext_cmds=".dll"
19987   need_version=no
19988   need_lib_prefix=no
19989
19990   case $GCC,$host_os in
19991   yes,cygwin* | yes,mingw* | yes,pw32*)
19992     library_names_spec='$libname.dll.a'
19993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19994     postinstall_cmds='base_file=`basename \${file}`~
19995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19996       dldir=$destdir/`dirname \$dlpath`~
19997       test -d \$dldir || mkdir -p \$dldir~
19998       $install_prog $dir/$dlname \$dldir/$dlname'
19999     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20000       dlpath=$dir/\$dldll~
20001        $rm \$dlpath'
20002     shlibpath_overrides_runpath=yes
20003
20004     case $host_os in
20005     cygwin*)
20006       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20007       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20008       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20009       ;;
20010     mingw*)
20011       # MinGW DLLs use traditional 'lib' prefix
20012       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20013       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20014       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20015         # It is most probably a Windows format PATH printed by
20016         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20017         # path with ; separators, and with drive letters. We can handle the
20018         # drive letters (cygwin fileutils understands them), so leave them,
20019         # especially as we might pass files found there to a mingw objdump,
20020         # which wouldn't understand a cygwinified path. Ahh.
20021         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022       else
20023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20024       fi
20025       ;;
20026     pw32*)
20027       # pw32 DLLs use 'pw' prefix rather than 'lib'
20028       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20029       ;;
20030     esac
20031     ;;
20032
20033   *)
20034     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20035     ;;
20036   esac
20037   dynamic_linker='Win32 ld.exe'
20038   # FIXME: first we should search . and the directory the executable is in
20039   shlibpath_var=PATH
20040   ;;
20041
20042 darwin* | rhapsody*)
20043   dynamic_linker="$host_os dyld"
20044   version_type=darwin
20045   need_lib_prefix=no
20046   need_version=no
20047   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20048   soname_spec='${libname}${release}${major}$shared_ext'
20049   shlibpath_overrides_runpath=yes
20050   shlibpath_var=DYLD_LIBRARY_PATH
20051   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20052   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20053   if test "$GCC" = yes; then
20054     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"`
20055   else
20056     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20057   fi
20058   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20059   ;;
20060
20061 dgux*)
20062   version_type=linux
20063   need_lib_prefix=no
20064   need_version=no
20065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20066   soname_spec='${libname}${release}${shared_ext}$major'
20067   shlibpath_var=LD_LIBRARY_PATH
20068   ;;
20069
20070 freebsd1*)
20071   dynamic_linker=no
20072   ;;
20073
20074 kfreebsd*-gnu)
20075   version_type=linux
20076   need_lib_prefix=no
20077   need_version=no
20078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20079   soname_spec='${libname}${release}${shared_ext}$major'
20080   shlibpath_var=LD_LIBRARY_PATH
20081   shlibpath_overrides_runpath=no
20082   hardcode_into_libs=yes
20083   dynamic_linker='GNU ld.so'
20084   ;;
20085
20086 freebsd*)
20087   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20088   version_type=freebsd-$objformat
20089   case $version_type in
20090     freebsd-elf*)
20091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20092       need_version=no
20093       need_lib_prefix=no
20094       ;;
20095     freebsd-*)
20096       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20097       need_version=yes
20098       ;;
20099   esac
20100   shlibpath_var=LD_LIBRARY_PATH
20101   case $host_os in
20102   freebsd2*)
20103     shlibpath_overrides_runpath=yes
20104     ;;
20105   freebsd3.01* | freebsdelf3.01*)
20106     shlibpath_overrides_runpath=yes
20107     hardcode_into_libs=yes
20108     ;;
20109   *) # from 3.2 on
20110     shlibpath_overrides_runpath=no
20111     hardcode_into_libs=yes
20112     ;;
20113   esac
20114   ;;
20115
20116 gnu*)
20117   version_type=linux
20118   need_lib_prefix=no
20119   need_version=no
20120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20121   soname_spec='${libname}${release}${shared_ext}$major'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   hardcode_into_libs=yes
20124   ;;
20125
20126 hpux9* | hpux10* | hpux11*)
20127   # Give a soname corresponding to the major version so that dld.sl refuses to
20128   # link against other versions.
20129   version_type=sunos
20130   need_lib_prefix=no
20131   need_version=no
20132   case "$host_cpu" in
20133   ia64*)
20134     shrext_cmds='.so'
20135     hardcode_into_libs=yes
20136     dynamic_linker="$host_os dld.so"
20137     shlibpath_var=LD_LIBRARY_PATH
20138     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140     soname_spec='${libname}${release}${shared_ext}$major'
20141     if test "X$HPUX_IA64_MODE" = X32; then
20142       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20143     else
20144       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20145     fi
20146     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20147     ;;
20148    hppa*64*)
20149      shrext_cmds='.sl'
20150      hardcode_into_libs=yes
20151      dynamic_linker="$host_os dld.sl"
20152      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20153      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155      soname_spec='${libname}${release}${shared_ext}$major'
20156      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20157      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20158      ;;
20159    *)
20160     shrext_cmds='.sl'
20161     dynamic_linker="$host_os dld.sl"
20162     shlibpath_var=SHLIB_PATH
20163     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165     soname_spec='${libname}${release}${shared_ext}$major'
20166     ;;
20167   esac
20168   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20169   postinstall_cmds='chmod 555 $lib'
20170   ;;
20171
20172 irix5* | irix6* | nonstopux*)
20173   case $host_os in
20174     nonstopux*) version_type=nonstopux ;;
20175     *)
20176         if test "$lt_cv_prog_gnu_ld" = yes; then
20177                 version_type=linux
20178         else
20179                 version_type=irix
20180         fi ;;
20181   esac
20182   need_lib_prefix=no
20183   need_version=no
20184   soname_spec='${libname}${release}${shared_ext}$major'
20185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20186   case $host_os in
20187   irix5* | nonstopux*)
20188     libsuff= shlibsuff=
20189     ;;
20190   *)
20191     case $LD in # libtool.m4 will add one of these switches to LD
20192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20193       libsuff= shlibsuff= libmagic=32-bit;;
20194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20195       libsuff=32 shlibsuff=N32 libmagic=N32;;
20196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20198     *) libsuff= shlibsuff= libmagic=never-match;;
20199     esac
20200     ;;
20201   esac
20202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20203   shlibpath_overrides_runpath=no
20204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20206   hardcode_into_libs=yes
20207   ;;
20208
20209 # No shared lib support for Linux oldld, aout, or coff.
20210 linux*oldld* | linux*aout* | linux*coff*)
20211   dynamic_linker=no
20212   ;;
20213
20214 # This must be Linux ELF.
20215 linux*)
20216   version_type=linux
20217   need_lib_prefix=no
20218   need_version=no
20219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220   soname_spec='${libname}${release}${shared_ext}$major'
20221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20222   shlibpath_var=LD_LIBRARY_PATH
20223   shlibpath_overrides_runpath=no
20224   # This implies no fast_install, which is unacceptable.
20225   # Some rework will be needed to allow for fast_install
20226   # before this can be enabled.
20227   hardcode_into_libs=yes
20228
20229   # Append ld.so.conf contents to the search path
20230   if test -f /etc/ld.so.conf; then
20231     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20232     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20233   fi
20234
20235   # We used to test for /lib/ld.so.1 and disable shared libraries on
20236   # powerpc, because MkLinux only supported shared libraries with the
20237   # GNU dynamic linker.  Since this was broken with cross compilers,
20238   # most powerpc-linux boxes support dynamic linking these days and
20239   # people can always --disable-shared, the test was removed, and we
20240   # assume the GNU/Linux dynamic linker is in use.
20241   dynamic_linker='GNU/Linux ld.so'
20242   ;;
20243
20244 knetbsd*-gnu)
20245   version_type=linux
20246   need_lib_prefix=no
20247   need_version=no
20248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20249   soname_spec='${libname}${release}${shared_ext}$major'
20250   shlibpath_var=LD_LIBRARY_PATH
20251   shlibpath_overrides_runpath=no
20252   hardcode_into_libs=yes
20253   dynamic_linker='GNU ld.so'
20254   ;;
20255
20256 netbsd*)
20257   version_type=sunos
20258   need_lib_prefix=no
20259   need_version=no
20260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20263     dynamic_linker='NetBSD (a.out) ld.so'
20264   else
20265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20266     soname_spec='${libname}${release}${shared_ext}$major'
20267     dynamic_linker='NetBSD ld.elf_so'
20268   fi
20269   shlibpath_var=LD_LIBRARY_PATH
20270   shlibpath_overrides_runpath=yes
20271   hardcode_into_libs=yes
20272   ;;
20273
20274 newsos6)
20275   version_type=linux
20276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277   shlibpath_var=LD_LIBRARY_PATH
20278   shlibpath_overrides_runpath=yes
20279   ;;
20280
20281 nto-qnx*)
20282   version_type=linux
20283   need_lib_prefix=no
20284   need_version=no
20285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286   soname_spec='${libname}${release}${shared_ext}$major'
20287   shlibpath_var=LD_LIBRARY_PATH
20288   shlibpath_overrides_runpath=yes
20289   ;;
20290
20291 openbsd*)
20292   version_type=sunos
20293   need_lib_prefix=no
20294   need_version=no
20295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20297   shlibpath_var=LD_LIBRARY_PATH
20298   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20299     case $host_os in
20300       openbsd2.[89] | openbsd2.[89].*)
20301         shlibpath_overrides_runpath=no
20302         ;;
20303       *)
20304         shlibpath_overrides_runpath=yes
20305         ;;
20306       esac
20307   else
20308     shlibpath_overrides_runpath=yes
20309   fi
20310   ;;
20311
20312 os2*)
20313   libname_spec='$name'
20314   shrext_cmds=".dll"
20315   need_lib_prefix=no
20316   library_names_spec='$libname${shared_ext} $libname.a'
20317   dynamic_linker='OS/2 ld.exe'
20318   shlibpath_var=LIBPATH
20319   ;;
20320
20321 osf3* | osf4* | osf5*)
20322   version_type=osf
20323   need_lib_prefix=no
20324   need_version=no
20325   soname_spec='${libname}${release}${shared_ext}$major'
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327   shlibpath_var=LD_LIBRARY_PATH
20328   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20329   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20330   ;;
20331
20332 sco3.2v5*)
20333   version_type=osf
20334   soname_spec='${libname}${release}${shared_ext}$major'
20335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336   shlibpath_var=LD_LIBRARY_PATH
20337   ;;
20338
20339 solaris*)
20340   version_type=linux
20341   need_lib_prefix=no
20342   need_version=no
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344   soname_spec='${libname}${release}${shared_ext}$major'
20345   shlibpath_var=LD_LIBRARY_PATH
20346   shlibpath_overrides_runpath=yes
20347   hardcode_into_libs=yes
20348   # ldd complains unless libraries are executable
20349   postinstall_cmds='chmod +x $lib'
20350   ;;
20351
20352 sunos4*)
20353   version_type=sunos
20354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20355   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20356   shlibpath_var=LD_LIBRARY_PATH
20357   shlibpath_overrides_runpath=yes
20358   if test "$with_gnu_ld" = yes; then
20359     need_lib_prefix=no
20360   fi
20361   need_version=yes
20362   ;;
20363
20364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20365   version_type=linux
20366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367   soname_spec='${libname}${release}${shared_ext}$major'
20368   shlibpath_var=LD_LIBRARY_PATH
20369   case $host_vendor in
20370     sni)
20371       shlibpath_overrides_runpath=no
20372       need_lib_prefix=no
20373       export_dynamic_flag_spec='${wl}-Blargedynsym'
20374       runpath_var=LD_RUN_PATH
20375       ;;
20376     siemens)
20377       need_lib_prefix=no
20378       ;;
20379     motorola)
20380       need_lib_prefix=no
20381       need_version=no
20382       shlibpath_overrides_runpath=no
20383       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20384       ;;
20385   esac
20386   ;;
20387
20388 sysv4*MP*)
20389   if test -d /usr/nec ;then
20390     version_type=linux
20391     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20392     soname_spec='$libname${shared_ext}.$major'
20393     shlibpath_var=LD_LIBRARY_PATH
20394   fi
20395   ;;
20396
20397 uts4*)
20398   version_type=linux
20399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400   soname_spec='${libname}${release}${shared_ext}$major'
20401   shlibpath_var=LD_LIBRARY_PATH
20402   ;;
20403
20404 *)
20405   dynamic_linker=no
20406   ;;
20407 esac
20408 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20409 echo "${ECHO_T}$dynamic_linker" >&6
20410 test "$dynamic_linker" = no && can_build_shared=no
20411
20412 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20414 hardcode_action_F77=
20415 if test -n "$hardcode_libdir_flag_spec_F77" || \
20416    test -n "$runpath_var_F77" || \
20417    test "X$hardcode_automatic_F77" = "Xyes" ; then
20418
20419   # We can hardcode non-existant directories.
20420   if test "$hardcode_direct_F77" != no &&
20421      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422      # have to relink, otherwise we might link with an installed library
20423      # when we should be linking with a yet-to-be-installed one
20424      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20425      test "$hardcode_minus_L_F77" != no; then
20426     # Linking always hardcodes the temporary library directory.
20427     hardcode_action_F77=relink
20428   else
20429     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430     hardcode_action_F77=immediate
20431   fi
20432 else
20433   # We cannot hardcode anything, or else we can only hardcode existing
20434   # directories.
20435   hardcode_action_F77=unsupported
20436 fi
20437 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20438 echo "${ECHO_T}$hardcode_action_F77" >&6
20439
20440 if test "$hardcode_action_F77" = relink; then
20441   # Fast installation is not supported
20442   enable_fast_install=no
20443 elif test "$shlibpath_overrides_runpath" = yes ||
20444      test "$enable_shared" = no; then
20445   # Fast installation is not necessary
20446   enable_fast_install=needless
20447 fi
20448
20449 striplib=
20450 old_striplib=
20451 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20452 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20453 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20454   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20455   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20456   echo "$as_me:$LINENO: result: yes" >&5
20457 echo "${ECHO_T}yes" >&6
20458 else
20459 # FIXME - insert some real tests, host_os isn't really good enough
20460   case $host_os in
20461    darwin*)
20462        if test -n "$STRIP" ; then
20463          striplib="$STRIP -x"
20464          echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6
20466        else
20467   echo "$as_me:$LINENO: result: no" >&5
20468 echo "${ECHO_T}no" >&6
20469 fi
20470        ;;
20471    *)
20472   echo "$as_me:$LINENO: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20474     ;;
20475   esac
20476 fi
20477
20478
20479
20480 # The else clause should only fire when bootstrapping the
20481 # libtool distribution, otherwise you forgot to ship ltmain.sh
20482 # with your package, and you will get complaints that there are
20483 # no rules to generate ltmain.sh.
20484 if test -f "$ltmain"; then
20485   # See if we are running on zsh, and set the options which allow our commands through
20486   # without removal of \ escapes.
20487   if test -n "${ZSH_VERSION+set}" ; then
20488     setopt NO_GLOB_SUBST
20489   fi
20490   # Now quote all the things that may contain metacharacters while being
20491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20492   # variables and quote the copies for generation of the libtool script.
20493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20494     SED SHELL STRIP \
20495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20497     deplibs_check_method reload_flag reload_cmds need_locks \
20498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20499     lt_cv_sys_global_symbol_to_c_name_address \
20500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20501     old_postinstall_cmds old_postuninstall_cmds \
20502     compiler_F77 \
20503     CC_F77 \
20504     LD_F77 \
20505     lt_prog_compiler_wl_F77 \
20506     lt_prog_compiler_pic_F77 \
20507     lt_prog_compiler_static_F77 \
20508     lt_prog_compiler_no_builtin_flag_F77 \
20509     export_dynamic_flag_spec_F77 \
20510     thread_safe_flag_spec_F77 \
20511     whole_archive_flag_spec_F77 \
20512     enable_shared_with_static_runtimes_F77 \
20513     old_archive_cmds_F77 \
20514     old_archive_from_new_cmds_F77 \
20515     predep_objects_F77 \
20516     postdep_objects_F77 \
20517     predeps_F77 \
20518     postdeps_F77 \
20519     compiler_lib_search_path_F77 \
20520     archive_cmds_F77 \
20521     archive_expsym_cmds_F77 \
20522     postinstall_cmds_F77 \
20523     postuninstall_cmds_F77 \
20524     old_archive_from_expsyms_cmds_F77 \
20525     allow_undefined_flag_F77 \
20526     no_undefined_flag_F77 \
20527     export_symbols_cmds_F77 \
20528     hardcode_libdir_flag_spec_F77 \
20529     hardcode_libdir_flag_spec_ld_F77 \
20530     hardcode_libdir_separator_F77 \
20531     hardcode_automatic_F77 \
20532     module_cmds_F77 \
20533     module_expsym_cmds_F77 \
20534     lt_cv_prog_compiler_c_o_F77 \
20535     exclude_expsyms_F77 \
20536     include_expsyms_F77; do
20537
20538     case $var in
20539     old_archive_cmds_F77 | \
20540     old_archive_from_new_cmds_F77 | \
20541     archive_cmds_F77 | \
20542     archive_expsym_cmds_F77 | \
20543     module_cmds_F77 | \
20544     module_expsym_cmds_F77 | \
20545     old_archive_from_expsyms_cmds_F77 | \
20546     export_symbols_cmds_F77 | \
20547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20548     postinstall_cmds | postuninstall_cmds | \
20549     old_postinstall_cmds | old_postuninstall_cmds | \
20550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20551       # Double-quote double-evaled strings.
20552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20553       ;;
20554     *)
20555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20556       ;;
20557     esac
20558   done
20559
20560   case $lt_echo in
20561   *'\$0 --fallback-echo"')
20562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20563     ;;
20564   esac
20565
20566 cfgfile="$ofile"
20567
20568   cat <<__EOF__ >> "$cfgfile"
20569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20570
20571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20572
20573 # Shell to use when invoking shell scripts.
20574 SHELL=$lt_SHELL
20575
20576 # Whether or not to build shared libraries.
20577 build_libtool_libs=$enable_shared
20578
20579 # Whether or not to build static libraries.
20580 build_old_libs=$enable_static
20581
20582 # Whether or not to add -lc for building shared libraries.
20583 build_libtool_need_lc=$archive_cmds_need_lc_F77
20584
20585 # Whether or not to disallow shared libs when runtime libs are static
20586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20587
20588 # Whether or not to optimize for fast installation.
20589 fast_install=$enable_fast_install
20590
20591 # The host system.
20592 host_alias=$host_alias
20593 host=$host
20594
20595 # An echo program that does not interpret backslashes.
20596 echo=$lt_echo
20597
20598 # The archiver.
20599 AR=$lt_AR
20600 AR_FLAGS=$lt_AR_FLAGS
20601
20602 # A C compiler.
20603 LTCC=$lt_LTCC
20604
20605 # A language-specific compiler.
20606 CC=$lt_compiler_F77
20607
20608 # Is the compiler the GNU C compiler?
20609 with_gcc=$GCC_F77
20610
20611 # An ERE matcher.
20612 EGREP=$lt_EGREP
20613
20614 # The linker used to build libraries.
20615 LD=$lt_LD_F77
20616
20617 # Whether we need hard or soft links.
20618 LN_S=$lt_LN_S
20619
20620 # A BSD-compatible nm program.
20621 NM=$lt_NM
20622
20623 # A symbol stripping program
20624 STRIP=$lt_STRIP
20625
20626 # Used to examine libraries when file_magic_cmd begins "file"
20627 MAGIC_CMD=$MAGIC_CMD
20628
20629 # Used on cygwin: DLL creation program.
20630 DLLTOOL="$DLLTOOL"
20631
20632 # Used on cygwin: object dumper.
20633 OBJDUMP="$OBJDUMP"
20634
20635 # Used on cygwin: assembler.
20636 AS="$AS"
20637
20638 # The name of the directory that contains temporary libtool files.
20639 objdir=$objdir
20640
20641 # How to create reloadable object files.
20642 reload_flag=$lt_reload_flag
20643 reload_cmds=$lt_reload_cmds
20644
20645 # How to pass a linker flag through the compiler.
20646 wl=$lt_lt_prog_compiler_wl_F77
20647
20648 # Object file suffix (normally "o").
20649 objext="$ac_objext"
20650
20651 # Old archive suffix (normally "a").
20652 libext="$libext"
20653
20654 # Shared library suffix (normally ".so").
20655 shrext_cmds='$shrext_cmds'
20656
20657 # Executable file suffix (normally "").
20658 exeext="$exeext"
20659
20660 # Additional compiler flags for building library objects.
20661 pic_flag=$lt_lt_prog_compiler_pic_F77
20662 pic_mode=$pic_mode
20663
20664 # What is the maximum length of a command?
20665 max_cmd_len=$lt_cv_sys_max_cmd_len
20666
20667 # Does compiler simultaneously support -c and -o options?
20668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20669
20670 # Must we lock files when doing compilation ?
20671 need_locks=$lt_need_locks
20672
20673 # Do we need the lib prefix for modules?
20674 need_lib_prefix=$need_lib_prefix
20675
20676 # Do we need a version for libraries?
20677 need_version=$need_version
20678
20679 # Whether dlopen is supported.
20680 dlopen_support=$enable_dlopen
20681
20682 # Whether dlopen of programs is supported.
20683 dlopen_self=$enable_dlopen_self
20684
20685 # Whether dlopen of statically linked programs is supported.
20686 dlopen_self_static=$enable_dlopen_self_static
20687
20688 # Compiler flag to prevent dynamic linking.
20689 link_static_flag=$lt_lt_prog_compiler_static_F77
20690
20691 # Compiler flag to turn off builtin functions.
20692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20693
20694 # Compiler flag to allow reflexive dlopens.
20695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20696
20697 # Compiler flag to generate shared objects directly from archives.
20698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20699
20700 # Compiler flag to generate thread-safe objects.
20701 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20702
20703 # Library versioning type.
20704 version_type=$version_type
20705
20706 # Format of library name prefix.
20707 libname_spec=$lt_libname_spec
20708
20709 # List of archive names.  First name is the real one, the rest are links.
20710 # The last name is the one that the linker finds with -lNAME.
20711 library_names_spec=$lt_library_names_spec
20712
20713 # The coded name of the library, if different from the real name.
20714 soname_spec=$lt_soname_spec
20715
20716 # Commands used to build and install an old-style archive.
20717 RANLIB=$lt_RANLIB
20718 old_archive_cmds=$lt_old_archive_cmds_F77
20719 old_postinstall_cmds=$lt_old_postinstall_cmds
20720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20721
20722 # Create an old-style archive from a shared archive.
20723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20724
20725 # Create a temporary old-style archive to link instead of a shared archive.
20726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20727
20728 # Commands used to build and install a shared archive.
20729 archive_cmds=$lt_archive_cmds_F77
20730 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20731 postinstall_cmds=$lt_postinstall_cmds
20732 postuninstall_cmds=$lt_postuninstall_cmds
20733
20734 # Commands used to build a loadable module (assumed same as above if empty)
20735 module_cmds=$lt_module_cmds_F77
20736 module_expsym_cmds=$lt_module_expsym_cmds_F77
20737
20738 # Commands to strip libraries.
20739 old_striplib=$lt_old_striplib
20740 striplib=$lt_striplib
20741
20742 # Dependencies to place before the objects being linked to create a
20743 # shared library.
20744 predep_objects=$lt_predep_objects_F77
20745
20746 # Dependencies to place after the objects being linked to create a
20747 # shared library.
20748 postdep_objects=$lt_postdep_objects_F77
20749
20750 # Dependencies to place before the objects being linked to create a
20751 # shared library.
20752 predeps=$lt_predeps_F77
20753
20754 # Dependencies to place after the objects being linked to create a
20755 # shared library.
20756 postdeps=$lt_postdeps_F77
20757
20758 # The library search path used internally by the compiler when linking
20759 # a shared library.
20760 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20761
20762 # Method to check whether dependent libraries are shared objects.
20763 deplibs_check_method=$lt_deplibs_check_method
20764
20765 # Command to use when deplibs_check_method == file_magic.
20766 file_magic_cmd=$lt_file_magic_cmd
20767
20768 # Flag that allows shared libraries with undefined symbols to be built.
20769 allow_undefined_flag=$lt_allow_undefined_flag_F77
20770
20771 # Flag that forces no undefined symbols.
20772 no_undefined_flag=$lt_no_undefined_flag_F77
20773
20774 # Commands used to finish a libtool library installation in a directory.
20775 finish_cmds=$lt_finish_cmds
20776
20777 # Same as above, but a single script fragment to be evaled but not shown.
20778 finish_eval=$lt_finish_eval
20779
20780 # Take the output of nm and produce a listing of raw symbols and C names.
20781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20782
20783 # Transform the output of nm in a proper C declaration
20784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20785
20786 # Transform the output of nm in a C name address pair
20787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20788
20789 # This is the shared library runtime path variable.
20790 runpath_var=$runpath_var
20791
20792 # This is the shared library path variable.
20793 shlibpath_var=$shlibpath_var
20794
20795 # Is shlibpath searched before the hard-coded library search path?
20796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20797
20798 # How to hardcode a shared library path into an executable.
20799 hardcode_action=$hardcode_action_F77
20800
20801 # Whether we should hardcode library paths into libraries.
20802 hardcode_into_libs=$hardcode_into_libs
20803
20804 # Flag to hardcode \$libdir into a binary during linking.
20805 # This must work even if \$libdir does not exist.
20806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20807
20808 # If ld is used when linking, flag to hardcode \$libdir into
20809 # a binary during linking. This must work even if \$libdir does
20810 # not exist.
20811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20812
20813 # Whether we need a single -rpath flag with a separated argument.
20814 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20815
20816 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20817 # resulting binary.
20818 hardcode_direct=$hardcode_direct_F77
20819
20820 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20821 # resulting binary.
20822 hardcode_minus_L=$hardcode_minus_L_F77
20823
20824 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20825 # the resulting binary.
20826 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20827
20828 # Set to yes if building a shared library automatically hardcodes DIR into the library
20829 # and all subsequent libraries and executables linked against it.
20830 hardcode_automatic=$hardcode_automatic_F77
20831
20832 # Variables whose values should be saved in libtool wrapper scripts and
20833 # restored at relink time.
20834 variables_saved_for_relink="$variables_saved_for_relink"
20835
20836 # Whether libtool must link a program against all its dependency libraries.
20837 link_all_deplibs=$link_all_deplibs_F77
20838
20839 # Compile-time system search path for libraries
20840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20841
20842 # Run-time system search path for libraries
20843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20844
20845 # Fix the shell variable \$srcfile for the compiler.
20846 fix_srcfile_path="$fix_srcfile_path_F77"
20847
20848 # Set to yes if exported symbols are required.
20849 always_export_symbols=$always_export_symbols_F77
20850
20851 # The commands to list exported symbols.
20852 export_symbols_cmds=$lt_export_symbols_cmds_F77
20853
20854 # The commands to extract the exported symbol list from a shared archive.
20855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20856
20857 # Symbols that should not be listed in the preloaded symbols.
20858 exclude_expsyms=$lt_exclude_expsyms_F77
20859
20860 # Symbols that must always be exported.
20861 include_expsyms=$lt_include_expsyms_F77
20862
20863 # ### END LIBTOOL TAG CONFIG: $tagname
20864
20865 __EOF__
20866
20867
20868 else
20869   # If there is no Makefile yet, we rely on a make rule to execute
20870   # `config.status --recheck' to rerun these tests and create the
20871   # libtool script then.
20872   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20873   if test -f "$ltmain_in"; then
20874     test -f Makefile && make "$ltmain"
20875   fi
20876 fi
20877
20878
20879 ac_ext=c
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885 CC="$lt_save_CC"
20886
20887         else
20888           tagname=""
20889         fi
20890         ;;
20891
20892       GCJ)
20893         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20894           ac_ext=c
20895 ac_cpp='$CPP $CPPFLAGS'
20896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20899
20900
20901 # Source file extension for Java test sources.
20902 ac_ext=java
20903
20904 # Object file extension for compiled Java test sources.
20905 objext=o
20906 objext_GCJ=$objext
20907
20908 # Code to be used in simple compile tests
20909 lt_simple_compile_test_code="class foo {}\n"
20910
20911 # Code to be used in simple link tests
20912 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20913
20914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20915
20916 # If no C compiler was specified, use CC.
20917 LTCC=${LTCC-"$CC"}
20918
20919 # Allow CC to be a program name with arguments.
20920 compiler=$CC
20921
20922
20923 # Allow CC to be a program name with arguments.
20924 lt_save_CC="$CC"
20925 CC=${GCJ-"gcj"}
20926 compiler=$CC
20927 compiler_GCJ=$CC
20928
20929 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20930 archive_cmds_need_lc_GCJ=no
20931
20932
20933 lt_prog_compiler_no_builtin_flag_GCJ=
20934
20935 if test "$GCC" = yes; then
20936   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20937
20938
20939 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20940 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20941 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   lt_cv_prog_compiler_rtti_exceptions=no
20945   ac_outfile=conftest.$ac_objext
20946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20947    lt_compiler_flag="-fno-rtti -fno-exceptions"
20948    # Insert the option either (1) after the last *FLAGS variable, or
20949    # (2) before a word containing "conftest.", or (3) at the end.
20950    # Note that $ac_compile itself does not contain backslashes and begins
20951    # with a dollar sign (not a hyphen), so the echo should work correctly.
20952    # The option is referenced via a variable to avoid confusing sed.
20953    lt_compile=`echo "$ac_compile" | $SED \
20954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20956    -e 's:$: $lt_compiler_flag:'`
20957    (eval echo "\"\$as_me:20957: $lt_compile\"" >&5)
20958    (eval "$lt_compile" 2>conftest.err)
20959    ac_status=$?
20960    cat conftest.err >&5
20961    echo "$as_me:20961: \$? = $ac_status" >&5
20962    if (exit $ac_status) && test -s "$ac_outfile"; then
20963      # The compiler can only warn and ignore the option if not recognized
20964      # So say no if there are warnings
20965      if test ! -s conftest.err; then
20966        lt_cv_prog_compiler_rtti_exceptions=yes
20967      fi
20968    fi
20969    $rm conftest*
20970
20971 fi
20972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20973 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20974
20975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20976     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20977 else
20978     :
20979 fi
20980
20981 fi
20982
20983 lt_prog_compiler_wl_GCJ=
20984 lt_prog_compiler_pic_GCJ=
20985 lt_prog_compiler_static_GCJ=
20986
20987 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20988 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20989
20990   if test "$GCC" = yes; then
20991     lt_prog_compiler_wl_GCJ='-Wl,'
20992     lt_prog_compiler_static_GCJ='-static'
20993
20994     case $host_os in
20995       aix*)
20996       # All AIX code is PIC.
20997       if test "$host_cpu" = ia64; then
20998         # AIX 5 now supports IA64 processor
20999         lt_prog_compiler_static_GCJ='-Bstatic'
21000       fi
21001       ;;
21002
21003     amigaos*)
21004       # FIXME: we need at least 68020 code to build shared libraries, but
21005       # adding the `-m68020' flag to GCC prevents building anything better,
21006       # like `-m68040'.
21007       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21008       ;;
21009
21010     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21011       # PIC is the default for these OSes.
21012       ;;
21013
21014     mingw* | pw32* | os2*)
21015       # This hack is so that the source file can tell whether it is being
21016       # built for inclusion in a dll (and should export symbols for example).
21017       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21018       ;;
21019
21020     darwin* | rhapsody*)
21021       # PIC is the default on this platform
21022       # Common symbols not allowed in MH_DYLIB files
21023       lt_prog_compiler_pic_GCJ='-fno-common'
21024       ;;
21025
21026     msdosdjgpp*)
21027       # Just because we use GCC doesn't mean we suddenly get shared libraries
21028       # on systems that don't support them.
21029       lt_prog_compiler_can_build_shared_GCJ=no
21030       enable_shared=no
21031       ;;
21032
21033     sysv4*MP*)
21034       if test -d /usr/nec; then
21035         lt_prog_compiler_pic_GCJ=-Kconform_pic
21036       fi
21037       ;;
21038
21039     hpux*)
21040       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041       # not for PA HP-UX.
21042       case "$host_cpu" in
21043       hppa*64*|ia64*)
21044         # +Z the default
21045         ;;
21046       *)
21047         lt_prog_compiler_pic_GCJ='-fPIC'
21048         ;;
21049       esac
21050       ;;
21051
21052     *)
21053       lt_prog_compiler_pic_GCJ='-fPIC'
21054       ;;
21055     esac
21056   else
21057     # PORTME Check for flag to pass linker flags through the system compiler.
21058     case $host_os in
21059     aix*)
21060       lt_prog_compiler_wl_GCJ='-Wl,'
21061       if test "$host_cpu" = ia64; then
21062         # AIX 5 now supports IA64 processor
21063         lt_prog_compiler_static_GCJ='-Bstatic'
21064       else
21065         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21066       fi
21067       ;;
21068       darwin*)
21069         # PIC is the default on this platform
21070         # Common symbols not allowed in MH_DYLIB files
21071        case "$cc_basename" in
21072          xlc*)
21073          lt_prog_compiler_pic_GCJ='-qnocommon'
21074          lt_prog_compiler_wl_GCJ='-Wl,'
21075          ;;
21076        esac
21077        ;;
21078
21079     mingw* | pw32* | os2*)
21080       # This hack is so that the source file can tell whether it is being
21081       # built for inclusion in a dll (and should export symbols for example).
21082       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21083       ;;
21084
21085     hpux9* | hpux10* | hpux11*)
21086       lt_prog_compiler_wl_GCJ='-Wl,'
21087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21088       # not for PA HP-UX.
21089       case "$host_cpu" in
21090       hppa*64*|ia64*)
21091         # +Z the default
21092         ;;
21093       *)
21094         lt_prog_compiler_pic_GCJ='+Z'
21095         ;;
21096       esac
21097       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21098       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21099       ;;
21100
21101     irix5* | irix6* | nonstopux*)
21102       lt_prog_compiler_wl_GCJ='-Wl,'
21103       # PIC (with -KPIC) is the default.
21104       lt_prog_compiler_static_GCJ='-non_shared'
21105       ;;
21106
21107     newsos6)
21108       lt_prog_compiler_pic_GCJ='-KPIC'
21109       lt_prog_compiler_static_GCJ='-Bstatic'
21110       ;;
21111
21112     linux*)
21113       case $CC in
21114       icc* | ecc*)
21115         lt_prog_compiler_wl_GCJ='-Wl,'
21116         lt_prog_compiler_pic_GCJ='-KPIC'
21117         lt_prog_compiler_static_GCJ='-static'
21118         ;;
21119       ccc*)
21120         lt_prog_compiler_wl_GCJ='-Wl,'
21121         # All Alpha code is PIC.
21122         lt_prog_compiler_static_GCJ='-non_shared'
21123         ;;
21124       esac
21125       ;;
21126
21127     osf3* | osf4* | osf5*)
21128       lt_prog_compiler_wl_GCJ='-Wl,'
21129       # All OSF/1 code is PIC.
21130       lt_prog_compiler_static_GCJ='-non_shared'
21131       ;;
21132
21133     sco3.2v5*)
21134       lt_prog_compiler_pic_GCJ='-Kpic'
21135       lt_prog_compiler_static_GCJ='-dn'
21136       ;;
21137
21138     solaris*)
21139       lt_prog_compiler_wl_GCJ='-Wl,'
21140       lt_prog_compiler_pic_GCJ='-KPIC'
21141       lt_prog_compiler_static_GCJ='-Bstatic'
21142       ;;
21143
21144     sunos4*)
21145       lt_prog_compiler_wl_GCJ='-Qoption ld '
21146       lt_prog_compiler_pic_GCJ='-PIC'
21147       lt_prog_compiler_static_GCJ='-Bstatic'
21148       ;;
21149
21150     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21151       lt_prog_compiler_wl_GCJ='-Wl,'
21152       lt_prog_compiler_pic_GCJ='-KPIC'
21153       lt_prog_compiler_static_GCJ='-Bstatic'
21154       ;;
21155
21156     sysv4*MP*)
21157       if test -d /usr/nec ;then
21158         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21159         lt_prog_compiler_static_GCJ='-Bstatic'
21160       fi
21161       ;;
21162
21163     uts4*)
21164       lt_prog_compiler_pic_GCJ='-pic'
21165       lt_prog_compiler_static_GCJ='-Bstatic'
21166       ;;
21167
21168     *)
21169       lt_prog_compiler_can_build_shared_GCJ=no
21170       ;;
21171     esac
21172   fi
21173
21174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21175 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21176
21177 #
21178 # Check to make sure the PIC flag actually works.
21179 #
21180 if test -n "$lt_prog_compiler_pic_GCJ"; then
21181
21182 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21183 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21184 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187   lt_prog_compiler_pic_works_GCJ=no
21188   ac_outfile=conftest.$ac_objext
21189    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21190    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21191    # Insert the option either (1) after the last *FLAGS variable, or
21192    # (2) before a word containing "conftest.", or (3) at the end.
21193    # Note that $ac_compile itself does not contain backslashes and begins
21194    # with a dollar sign (not a hyphen), so the echo should work correctly.
21195    # The option is referenced via a variable to avoid confusing sed.
21196    lt_compile=`echo "$ac_compile" | $SED \
21197    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21199    -e 's:$: $lt_compiler_flag:'`
21200    (eval echo "\"\$as_me:21200: $lt_compile\"" >&5)
21201    (eval "$lt_compile" 2>conftest.err)
21202    ac_status=$?
21203    cat conftest.err >&5
21204    echo "$as_me:21204: \$? = $ac_status" >&5
21205    if (exit $ac_status) && test -s "$ac_outfile"; then
21206      # The compiler can only warn and ignore the option if not recognized
21207      # So say no if there are warnings
21208      if test ! -s conftest.err; then
21209        lt_prog_compiler_pic_works_GCJ=yes
21210      fi
21211    fi
21212    $rm conftest*
21213
21214 fi
21215 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21216 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21217
21218 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21219     case $lt_prog_compiler_pic_GCJ in
21220      "" | " "*) ;;
21221      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21222      esac
21223 else
21224     lt_prog_compiler_pic_GCJ=
21225      lt_prog_compiler_can_build_shared_GCJ=no
21226 fi
21227
21228 fi
21229 case "$host_os" in
21230   # For platforms which do not support PIC, -DPIC is meaningless:
21231   *djgpp*)
21232     lt_prog_compiler_pic_GCJ=
21233     ;;
21234   *)
21235     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21236     ;;
21237 esac
21238
21239 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21240 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21241 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244   lt_cv_prog_compiler_c_o_GCJ=no
21245    $rm -r conftest 2>/dev/null
21246    mkdir conftest
21247    cd conftest
21248    mkdir out
21249    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21250
21251    lt_compiler_flag="-o out/conftest2.$ac_objext"
21252    # Insert the option either (1) after the last *FLAGS variable, or
21253    # (2) before a word containing "conftest.", or (3) at the end.
21254    # Note that $ac_compile itself does not contain backslashes and begins
21255    # with a dollar sign (not a hyphen), so the echo should work correctly.
21256    lt_compile=`echo "$ac_compile" | $SED \
21257    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21259    -e 's:$: $lt_compiler_flag:'`
21260    (eval echo "\"\$as_me:21260: $lt_compile\"" >&5)
21261    (eval "$lt_compile" 2>out/conftest.err)
21262    ac_status=$?
21263    cat out/conftest.err >&5
21264    echo "$as_me:21264: \$? = $ac_status" >&5
21265    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21266    then
21267      # The compiler can only warn and ignore the option if not recognized
21268      # So say no if there are warnings
21269      if test ! -s out/conftest.err; then
21270        lt_cv_prog_compiler_c_o_GCJ=yes
21271      fi
21272    fi
21273    chmod u+w .
21274    $rm conftest*
21275    # SGI C++ compiler will create directory out/ii_files/ for
21276    # template instantiation
21277    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21278    $rm out/* && rmdir out
21279    cd ..
21280    rmdir conftest
21281    $rm conftest*
21282
21283 fi
21284 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21285 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21286
21287
21288 hard_links="nottested"
21289 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21290   # do not overwrite the value of need_locks provided by the user
21291   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21292 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21293   hard_links=yes
21294   $rm conftest*
21295   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21296   touch conftest.a
21297   ln conftest.a conftest.b 2>&5 || hard_links=no
21298   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299   echo "$as_me:$LINENO: result: $hard_links" >&5
21300 echo "${ECHO_T}$hard_links" >&6
21301   if test "$hard_links" = no; then
21302     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21303 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21304     need_locks=warn
21305   fi
21306 else
21307   need_locks=no
21308 fi
21309
21310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21312
21313   runpath_var=
21314   allow_undefined_flag_GCJ=
21315   enable_shared_with_static_runtimes_GCJ=no
21316   archive_cmds_GCJ=
21317   archive_expsym_cmds_GCJ=
21318   old_archive_From_new_cmds_GCJ=
21319   old_archive_from_expsyms_cmds_GCJ=
21320   export_dynamic_flag_spec_GCJ=
21321   whole_archive_flag_spec_GCJ=
21322   thread_safe_flag_spec_GCJ=
21323   hardcode_libdir_flag_spec_GCJ=
21324   hardcode_libdir_flag_spec_ld_GCJ=
21325   hardcode_libdir_separator_GCJ=
21326   hardcode_direct_GCJ=no
21327   hardcode_minus_L_GCJ=no
21328   hardcode_shlibpath_var_GCJ=unsupported
21329   link_all_deplibs_GCJ=unknown
21330   hardcode_automatic_GCJ=no
21331   module_cmds_GCJ=
21332   module_expsym_cmds_GCJ=
21333   always_export_symbols_GCJ=no
21334   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21335   # include_expsyms should be a list of space-separated symbols to be *always*
21336   # included in the symbol list
21337   include_expsyms_GCJ=
21338   # exclude_expsyms can be an extended regexp of symbols to exclude
21339   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21340   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21341   # as well as any symbol that contains `d'.
21342   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21343   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21344   # platforms (ab)use it in PIC code, but their linkers get confused if
21345   # the symbol is explicitly referenced.  Since portable code cannot
21346   # rely on this symbol name, it's probably fine to never include it in
21347   # preloaded symbol tables.
21348   extract_expsyms_cmds=
21349
21350   case $host_os in
21351   cygwin* | mingw* | pw32*)
21352     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21353     # When not using gcc, we currently assume that we are using
21354     # Microsoft Visual C++.
21355     if test "$GCC" != yes; then
21356       with_gnu_ld=no
21357     fi
21358     ;;
21359   openbsd*)
21360     with_gnu_ld=no
21361     ;;
21362   esac
21363
21364   ld_shlibs_GCJ=yes
21365   if test "$with_gnu_ld" = yes; then
21366     # If archive_cmds runs LD, not CC, wlarc should be empty
21367     wlarc='${wl}'
21368
21369     # See if GNU ld supports shared libraries.
21370     case $host_os in
21371     aix3* | aix4* | aix5*)
21372       # On AIX/PPC, the GNU linker is very broken
21373       if test "$host_cpu" != ia64; then
21374         ld_shlibs_GCJ=no
21375         cat <<EOF 1>&2
21376
21377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21378 *** to be unable to reliably create shared libraries on AIX.
21379 *** Therefore, libtool is disabling shared libraries support.  If you
21380 *** really care for shared libraries, you may want to modify your PATH
21381 *** so that a non-GNU linker is found, and then restart.
21382
21383 EOF
21384       fi
21385       ;;
21386
21387     amigaos*)
21388       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)'
21389       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21390       hardcode_minus_L_GCJ=yes
21391
21392       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21393       # that the semantics of dynamic libraries on AmigaOS, at least up
21394       # to version 4, is to share data among multiple programs linked
21395       # with the same dynamic library.  Since this doesn't match the
21396       # behavior of shared libraries on other platforms, we can't use
21397       # them.
21398       ld_shlibs_GCJ=no
21399       ;;
21400
21401     beos*)
21402       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21403         allow_undefined_flag_GCJ=unsupported
21404         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21405         # support --undefined.  This deserves some investigation.  FIXME
21406         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21407       else
21408         ld_shlibs_GCJ=no
21409       fi
21410       ;;
21411
21412     cygwin* | mingw* | pw32*)
21413       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21414       # as there is no search path for DLLs.
21415       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21416       allow_undefined_flag_GCJ=unsupported
21417       always_export_symbols_GCJ=no
21418       enable_shared_with_static_runtimes_GCJ=yes
21419       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21420
21421       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21422         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21423         # If the export-symbols file already is a .def file (1st line
21424         # is EXPORTS), use it as is; otherwise, prepend...
21425         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21426           cp $export_symbols $output_objdir/$soname.def;
21427         else
21428           echo EXPORTS > $output_objdir/$soname.def;
21429           cat $export_symbols >> $output_objdir/$soname.def;
21430         fi~
21431         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21432       else
21433         ld_shlibs=no
21434       fi
21435       ;;
21436
21437     netbsd*)
21438       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21439         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21440         wlarc=
21441       else
21442         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21443         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21444       fi
21445       ;;
21446
21447     solaris* | sysv5*)
21448       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21449         ld_shlibs_GCJ=no
21450         cat <<EOF 1>&2
21451
21452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21453 *** create shared libraries on Solaris systems.  Therefore, libtool
21454 *** is disabling shared libraries support.  We urge you to upgrade GNU
21455 *** binutils to release 2.9.1 or newer.  Another option is to modify
21456 *** your PATH or compiler configuration so that the native linker is
21457 *** used, and then restart.
21458
21459 EOF
21460       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21463       else
21464         ld_shlibs_GCJ=no
21465       fi
21466       ;;
21467
21468     sunos4*)
21469       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21470       wlarc=
21471       hardcode_direct_GCJ=yes
21472       hardcode_shlibpath_var_GCJ=no
21473       ;;
21474
21475   linux*)
21476     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21477         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21478         archive_cmds_GCJ="$tmp_archive_cmds"
21479       supports_anon_versioning=no
21480       case `$LD -v 2>/dev/null` in
21481         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21482         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21483         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21484         *\ 2.11.*) ;; # other 2.11 versions
21485         *) supports_anon_versioning=yes ;;
21486       esac
21487       if test $supports_anon_versioning = yes; then
21488         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21490 $echo "local: *; };" >> $output_objdir/$libname.ver~
21491         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21492       else
21493         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21494       fi
21495     else
21496       ld_shlibs_GCJ=no
21497     fi
21498     ;;
21499
21500     *)
21501       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21502         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21503         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21504       else
21505         ld_shlibs_GCJ=no
21506       fi
21507       ;;
21508     esac
21509
21510     if test "$ld_shlibs_GCJ" = yes; then
21511       runpath_var=LD_RUN_PATH
21512       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21513       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21514       # ancient GNU ld didn't support --whole-archive et. al.
21515       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21516         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21517       else
21518         whole_archive_flag_spec_GCJ=
21519       fi
21520     fi
21521   else
21522     # PORTME fill in a description of your system's linker (not GNU ld)
21523     case $host_os in
21524     aix3*)
21525       allow_undefined_flag_GCJ=unsupported
21526       always_export_symbols_GCJ=yes
21527       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'
21528       # Note: this linker hardcodes the directories in LIBPATH if there
21529       # are no directories specified by -L.
21530       hardcode_minus_L_GCJ=yes
21531       if test "$GCC" = yes && test -z "$link_static_flag"; then
21532         # Neither direct hardcoding nor static linking is supported with a
21533         # broken collect2.
21534         hardcode_direct_GCJ=unsupported
21535       fi
21536       ;;
21537
21538     aix4* | aix5*)
21539       if test "$host_cpu" = ia64; then
21540         # On IA64, the linker does run time linking by default, so we don't
21541         # have to do anything special.
21542         aix_use_runtimelinking=no
21543         exp_sym_flag='-Bexport'
21544         no_entry_flag=""
21545       else
21546         # If we're using GNU nm, then we don't want the "-C" option.
21547         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21548         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21549           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'
21550         else
21551           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'
21552         fi
21553         aix_use_runtimelinking=no
21554
21555         # Test if we are trying to use run time linking or normal
21556         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21557         # need to do runtime linking.
21558         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21559           for ld_flag in $LDFLAGS; do
21560           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21561             aix_use_runtimelinking=yes
21562             break
21563           fi
21564           done
21565         esac
21566
21567         exp_sym_flag='-bexport'
21568         no_entry_flag='-bnoentry'
21569       fi
21570
21571       # When large executables or shared objects are built, AIX ld can
21572       # have problems creating the table of contents.  If linking a library
21573       # or program results in "error TOC overflow" add -mminimal-toc to
21574       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21575       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21576
21577       archive_cmds_GCJ=''
21578       hardcode_direct_GCJ=yes
21579       hardcode_libdir_separator_GCJ=':'
21580       link_all_deplibs_GCJ=yes
21581
21582       if test "$GCC" = yes; then
21583         case $host_os in aix4.012|aix4.012.*)
21584         # We only want to do this on AIX 4.2 and lower, the check
21585         # below for broken collect2 doesn't work under 4.3+
21586           collect2name=`${CC} -print-prog-name=collect2`
21587           if test -f "$collect2name" && \
21588            strings "$collect2name" | grep resolve_lib_name >/dev/null
21589           then
21590           # We have reworked collect2
21591           hardcode_direct_GCJ=yes
21592           else
21593           # We have old collect2
21594           hardcode_direct_GCJ=unsupported
21595           # It fails to find uninstalled libraries when the uninstalled
21596           # path is not listed in the libpath.  Setting hardcode_minus_L
21597           # to unsupported forces relinking
21598           hardcode_minus_L_GCJ=yes
21599           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21600           hardcode_libdir_separator_GCJ=
21601           fi
21602         esac
21603         shared_flag='-shared'
21604       else
21605         # not using gcc
21606         if test "$host_cpu" = ia64; then
21607         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21608         # chokes on -Wl,-G. The following line is correct:
21609           shared_flag='-G'
21610         else
21611         if test "$aix_use_runtimelinking" = yes; then
21612             shared_flag='${wl}-G'
21613           else
21614             shared_flag='${wl}-bM:SRE'
21615         fi
21616         fi
21617       fi
21618
21619       # It seems that -bexpall does not export symbols beginning with
21620       # underscore (_), so it is better to generate a list of symbols to export.
21621       always_export_symbols_GCJ=yes
21622       if test "$aix_use_runtimelinking" = yes; then
21623         # Warning - without using the other runtime loading flags (-brtl),
21624         # -berok will link without error, but may produce a broken library.
21625         allow_undefined_flag_GCJ='-berok'
21626        # Determine the default libpath from the value encoded in an empty executable.
21627        cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633
21634 int
21635 main ()
21636 {
21637
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644   (eval $ac_link) 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } &&
21651          { ac_try='test -z "$ac_c_werror_flag"
21652                          || test ! -s conftest.err'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; } &&
21658          { ac_try='test -s conftest$ac_exeext'
21659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660   (eval $ac_try) 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); }; }; then
21664
21665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21666 }'`
21667 # Check for a 64-bit object if we didn't find anything.
21668 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; }
21669 }'`; fi
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 fi
21675 rm -f conftest.err conftest.$ac_objext \
21676       conftest$ac_exeext conftest.$ac_ext
21677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21678
21679        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21680         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"
21681        else
21682         if test "$host_cpu" = ia64; then
21683           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21684           allow_undefined_flag_GCJ="-z nodefs"
21685           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"
21686         else
21687          # Determine the default libpath from the value encoded in an empty executable.
21688          cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694
21695 int
21696 main ()
21697 {
21698
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705   (eval $ac_link) 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } &&
21712          { ac_try='test -z "$ac_c_werror_flag"
21713                          || test ! -s conftest.err'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; } &&
21719          { ac_try='test -s conftest$ac_exeext'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725
21726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21727 }'`
21728 # Check for a 64-bit object if we didn't find anything.
21729 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; }
21730 }'`; fi
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735 fi
21736 rm -f conftest.err conftest.$ac_objext \
21737       conftest$ac_exeext conftest.$ac_ext
21738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21739
21740          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21741           # Warning - without using the other run time loading flags,
21742           # -berok will link without error, but may produce a broken library.
21743           no_undefined_flag_GCJ=' ${wl}-bernotok'
21744           allow_undefined_flag_GCJ=' ${wl}-berok'
21745           # -bexpall does not export symbols beginning with underscore (_)
21746           always_export_symbols_GCJ=yes
21747           # Exported symbols can be pulled into shared objects from archives
21748           whole_archive_flag_spec_GCJ=' '
21749           archive_cmds_need_lc_GCJ=yes
21750           # This is similar to how AIX traditionally builds it's shared libraries.
21751           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'
21752         fi
21753       fi
21754       ;;
21755
21756     amigaos*)
21757       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)'
21758       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21759       hardcode_minus_L_GCJ=yes
21760       # see comment about different semantics on the GNU ld section
21761       ld_shlibs_GCJ=no
21762       ;;
21763
21764     bsdi[45]*)
21765       export_dynamic_flag_spec_GCJ=-rdynamic
21766       ;;
21767
21768     cygwin* | mingw* | pw32*)
21769       # When not using gcc, we currently assume that we are using
21770       # Microsoft Visual C++.
21771       # hardcode_libdir_flag_spec is actually meaningless, as there is
21772       # no search path for DLLs.
21773       hardcode_libdir_flag_spec_GCJ=' '
21774       allow_undefined_flag_GCJ=unsupported
21775       # Tell ltmain to make .lib files, not .a files.
21776       libext=lib
21777       # Tell ltmain to make .dll files, not .so files.
21778       shrext_cmds=".dll"
21779       # FIXME: Setting linknames here is a bad hack.
21780       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21781       # The linker will automatically build a .lib file if we build a DLL.
21782       old_archive_From_new_cmds_GCJ='true'
21783       # FIXME: Should let the user specify the lib program.
21784       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21785       fix_srcfile_path='`cygpath -w "$srcfile"`'
21786       enable_shared_with_static_runtimes_GCJ=yes
21787       ;;
21788
21789     darwin* | rhapsody*)
21790       case "$host_os" in
21791         rhapsody* | darwin1.[012])
21792          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21793          ;;
21794        *) # Darwin 1.3 on
21795          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21796            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21797          else
21798            case ${MACOSX_DEPLOYMENT_TARGET} in
21799              10.[012])
21800                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21801                ;;
21802              10.*)
21803                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21804                ;;
21805            esac
21806          fi
21807          ;;
21808       esac
21809       archive_cmds_need_lc_GCJ=no
21810       hardcode_direct_GCJ=no
21811       hardcode_automatic_GCJ=yes
21812       hardcode_shlibpath_var_GCJ=unsupported
21813       whole_archive_flag_spec_GCJ=''
21814       link_all_deplibs_GCJ=yes
21815     if test "$GCC" = yes ; then
21816         output_verbose_link_cmd='echo'
21817         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21818       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21819       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21820       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}'
21821       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}'
21822     else
21823       case "$cc_basename" in
21824         xlc*)
21825          output_verbose_link_cmd='echo'
21826          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21827          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21828           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21829          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}'
21830           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}'
21831           ;;
21832        *)
21833          ld_shlibs_GCJ=no
21834           ;;
21835       esac
21836     fi
21837       ;;
21838
21839     dgux*)
21840       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21841       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21842       hardcode_shlibpath_var_GCJ=no
21843       ;;
21844
21845     freebsd1*)
21846       ld_shlibs_GCJ=no
21847       ;;
21848
21849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21850     # support.  Future versions do this automatically, but an explicit c++rt0.o
21851     # does not break anything, and helps significantly (at the cost of a little
21852     # extra space).
21853     freebsd2.2*)
21854       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21855       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21856       hardcode_direct_GCJ=yes
21857       hardcode_shlibpath_var_GCJ=no
21858       ;;
21859
21860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21861     freebsd2*)
21862       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21863       hardcode_direct_GCJ=yes
21864       hardcode_minus_L_GCJ=yes
21865       hardcode_shlibpath_var_GCJ=no
21866       ;;
21867
21868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21869     freebsd* | kfreebsd*-gnu)
21870       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21871       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21872       hardcode_direct_GCJ=yes
21873       hardcode_shlibpath_var_GCJ=no
21874       ;;
21875
21876     hpux9*)
21877       if test "$GCC" = yes; then
21878         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'
21879       else
21880         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'
21881       fi
21882       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21883       hardcode_libdir_separator_GCJ=:
21884       hardcode_direct_GCJ=yes
21885
21886       # hardcode_minus_L: Not really in the search PATH,
21887       # but as the default location of the library.
21888       hardcode_minus_L_GCJ=yes
21889       export_dynamic_flag_spec_GCJ='${wl}-E'
21890       ;;
21891
21892     hpux10* | hpux11*)
21893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21894         case "$host_cpu" in
21895         hppa*64*|ia64*)
21896           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21897           ;;
21898         *)
21899           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21900           ;;
21901         esac
21902       else
21903         case "$host_cpu" in
21904         hppa*64*|ia64*)
21905           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21906           ;;
21907         *)
21908           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21909           ;;
21910         esac
21911       fi
21912       if test "$with_gnu_ld" = no; then
21913         case "$host_cpu" in
21914         hppa*64*)
21915           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21917           hardcode_libdir_separator_GCJ=:
21918           hardcode_direct_GCJ=no
21919           hardcode_shlibpath_var_GCJ=no
21920           ;;
21921         ia64*)
21922           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21923           hardcode_direct_GCJ=no
21924           hardcode_shlibpath_var_GCJ=no
21925
21926           # hardcode_minus_L: Not really in the search PATH,
21927           # but as the default location of the library.
21928           hardcode_minus_L_GCJ=yes
21929           ;;
21930         *)
21931           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21932           hardcode_libdir_separator_GCJ=:
21933           hardcode_direct_GCJ=yes
21934           export_dynamic_flag_spec_GCJ='${wl}-E'
21935
21936           # hardcode_minus_L: Not really in the search PATH,
21937           # but as the default location of the library.
21938           hardcode_minus_L_GCJ=yes
21939           ;;
21940         esac
21941       fi
21942       ;;
21943
21944     irix5* | irix6* | nonstopux*)
21945       if test "$GCC" = yes; then
21946         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'
21947       else
21948         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'
21949         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21950       fi
21951       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21952       hardcode_libdir_separator_GCJ=:
21953       link_all_deplibs_GCJ=yes
21954       ;;
21955
21956     netbsd*)
21957       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21958         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21959       else
21960         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21961       fi
21962       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21963       hardcode_direct_GCJ=yes
21964       hardcode_shlibpath_var_GCJ=no
21965       ;;
21966
21967     newsos6)
21968       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21969       hardcode_direct_GCJ=yes
21970       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21971       hardcode_libdir_separator_GCJ=:
21972       hardcode_shlibpath_var_GCJ=no
21973       ;;
21974
21975     openbsd*)
21976       hardcode_direct_GCJ=yes
21977       hardcode_shlibpath_var_GCJ=no
21978       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21979         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21980         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21981         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21982         export_dynamic_flag_spec_GCJ='${wl}-E'
21983       else
21984        case $host_os in
21985          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21986            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21987            hardcode_libdir_flag_spec_GCJ='-R$libdir'
21988            ;;
21989          *)
21990            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21991            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21992            ;;
21993        esac
21994       fi
21995       ;;
21996
21997     os2*)
21998       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21999       hardcode_minus_L_GCJ=yes
22000       allow_undefined_flag_GCJ=unsupported
22001       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'
22002       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22003       ;;
22004
22005     osf3*)
22006       if test "$GCC" = yes; then
22007         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22008         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'
22009       else
22010         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22011         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'
22012       fi
22013       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22014       hardcode_libdir_separator_GCJ=:
22015       ;;
22016
22017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22018       if test "$GCC" = yes; then
22019         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22020         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'
22021         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22022       else
22023         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22024         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'
22025         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~
22026         $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'
22027
22028         # Both c and cxx compiler support -rpath directly
22029         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22030       fi
22031       hardcode_libdir_separator_GCJ=:
22032       ;;
22033
22034     sco3.2v5*)
22035       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036       hardcode_shlibpath_var_GCJ=no
22037       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22038       runpath_var=LD_RUN_PATH
22039       hardcode_runpath_var=yes
22040       ;;
22041
22042     solaris*)
22043       no_undefined_flag_GCJ=' -z text'
22044       if test "$GCC" = yes; then
22045         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22046         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22047           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22048       else
22049         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22050         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22051         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22052       fi
22053       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22054       hardcode_shlibpath_var_GCJ=no
22055       case $host_os in
22056       solaris2.[0-5] | solaris2.[0-5].*) ;;
22057       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22058         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22059       esac
22060       link_all_deplibs_GCJ=yes
22061       ;;
22062
22063     sunos4*)
22064       if test "x$host_vendor" = xsequent; then
22065         # Use $CC to link under sequent, because it throws in some extra .o
22066         # files that make .init and .fini sections work.
22067         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22068       else
22069         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22070       fi
22071       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072       hardcode_direct_GCJ=yes
22073       hardcode_minus_L_GCJ=yes
22074       hardcode_shlibpath_var_GCJ=no
22075       ;;
22076
22077     sysv4)
22078       case $host_vendor in
22079         sni)
22080           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081           hardcode_direct_GCJ=yes # is this really true???
22082         ;;
22083         siemens)
22084           ## LD is ld it makes a PLAMLIB
22085           ## CC just makes a GrossModule.
22086           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22087           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22088           hardcode_direct_GCJ=no
22089         ;;
22090         motorola)
22091           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22093         ;;
22094       esac
22095       runpath_var='LD_RUN_PATH'
22096       hardcode_shlibpath_var_GCJ=no
22097       ;;
22098
22099     sysv4.3*)
22100       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22101       hardcode_shlibpath_var_GCJ=no
22102       export_dynamic_flag_spec_GCJ='-Bexport'
22103       ;;
22104
22105     sysv4*MP*)
22106       if test -d /usr/nec; then
22107         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22108         hardcode_shlibpath_var_GCJ=no
22109         runpath_var=LD_RUN_PATH
22110         hardcode_runpath_var=yes
22111         ld_shlibs_GCJ=yes
22112       fi
22113       ;;
22114
22115     sysv4.2uw2*)
22116       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117       hardcode_direct_GCJ=yes
22118       hardcode_minus_L_GCJ=no
22119       hardcode_shlibpath_var_GCJ=no
22120       hardcode_runpath_var=yes
22121       runpath_var=LD_RUN_PATH
22122       ;;
22123
22124    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22125       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22126       if test "$GCC" = yes; then
22127         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22128       else
22129         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22130       fi
22131       runpath_var='LD_RUN_PATH'
22132       hardcode_shlibpath_var_GCJ=no
22133       ;;
22134
22135     sysv5*)
22136       no_undefined_flag_GCJ=' -z text'
22137       # $CC -shared without GNU ld will not create a library from C++
22138       # object files and a static libstdc++, better avoid it by now
22139       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22142       hardcode_libdir_flag_spec_GCJ=
22143       hardcode_shlibpath_var_GCJ=no
22144       runpath_var='LD_RUN_PATH'
22145       ;;
22146
22147     uts4*)
22148       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22150       hardcode_shlibpath_var_GCJ=no
22151       ;;
22152
22153     *)
22154       ld_shlibs_GCJ=no
22155       ;;
22156     esac
22157   fi
22158
22159 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22160 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22161 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22162
22163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22164 if test "$GCC" = yes; then
22165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22166 fi
22167
22168 #
22169 # Do we need to explicitly link libc?
22170 #
22171 case "x$archive_cmds_need_lc_GCJ" in
22172 x|xyes)
22173   # Assume -lc should be added
22174   archive_cmds_need_lc_GCJ=yes
22175
22176   if test "$enable_shared" = yes && test "$GCC" = yes; then
22177     case $archive_cmds_GCJ in
22178     *'~'*)
22179       # FIXME: we may have to deal with multi-command sequences.
22180       ;;
22181     '$CC '*)
22182       # Test whether the compiler implicitly links with -lc since on some
22183       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22184       # to ld, don't add -lc before -lgcc.
22185       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22187       $rm conftest*
22188       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22189
22190       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191   (eval $ac_compile) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } 2>conftest.err; then
22195         soname=conftest
22196         lib=conftest
22197         libobjs=conftest.$ac_objext
22198         deplibs=
22199         wl=$lt_prog_compiler_wl_GCJ
22200         compiler_flags=-v
22201         linker_flags=-v
22202         verstring=
22203         output_objdir=.
22204         libname=conftest
22205         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22206         allow_undefined_flag_GCJ=
22207         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22208   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }
22212         then
22213           archive_cmds_need_lc_GCJ=no
22214         else
22215           archive_cmds_need_lc_GCJ=yes
22216         fi
22217         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22218       else
22219         cat conftest.err 1>&5
22220       fi
22221       $rm conftest*
22222       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22223 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22224       ;;
22225     esac
22226   fi
22227   ;;
22228 esac
22229
22230 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22231 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22232 library_names_spec=
22233 libname_spec='lib$name'
22234 soname_spec=
22235 shrext_cmds=".so"
22236 postinstall_cmds=
22237 postuninstall_cmds=
22238 finish_cmds=
22239 finish_eval=
22240 shlibpath_var=
22241 shlibpath_overrides_runpath=unknown
22242 version_type=none
22243 dynamic_linker="$host_os ld.so"
22244 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22245 if test "$GCC" = yes; then
22246   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22247   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22248     # if the path contains ";" then we assume it to be the separator
22249     # otherwise default to the standard path separator (i.e. ":") - it is
22250     # assumed that no part of a normal pathname contains ";" but that should
22251     # okay in the real world where ";" in dirpaths is itself problematic.
22252     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22253   else
22254     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22255   fi
22256 else
22257   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22258 fi
22259 need_lib_prefix=unknown
22260 hardcode_into_libs=no
22261
22262 # when you set need_version to no, make sure it does not cause -set_version
22263 # flags to be left without arguments
22264 need_version=unknown
22265
22266 case $host_os in
22267 aix3*)
22268   version_type=linux
22269   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22270   shlibpath_var=LIBPATH
22271
22272   # AIX 3 has no versioning support, so we append a major version to the name.
22273   soname_spec='${libname}${release}${shared_ext}$major'
22274   ;;
22275
22276 aix4* | aix5*)
22277   version_type=linux
22278   need_lib_prefix=no
22279   need_version=no
22280   hardcode_into_libs=yes
22281   if test "$host_cpu" = ia64; then
22282     # AIX 5 supports IA64
22283     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22284     shlibpath_var=LD_LIBRARY_PATH
22285   else
22286     # With GCC up to 2.95.x, collect2 would create an import file
22287     # for dependence libraries.  The import file would start with
22288     # the line `#! .'.  This would cause the generated library to
22289     # depend on `.', always an invalid library.  This was fixed in
22290     # development snapshots of GCC prior to 3.0.
22291     case $host_os in
22292       aix4 | aix4.[01] | aix4.[01].*)
22293       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22294            echo ' yes '
22295            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22296         :
22297       else
22298         can_build_shared=no
22299       fi
22300       ;;
22301     esac
22302     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22303     # soname into executable. Probably we can add versioning support to
22304     # collect2, so additional links can be useful in future.
22305     if test "$aix_use_runtimelinking" = yes; then
22306       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22307       # instead of lib<name>.a to let people know that these are not
22308       # typical AIX shared libraries.
22309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22310     else
22311       # We preserve .a as extension for shared libraries through AIX4.2
22312       # and later when we are not doing run time linking.
22313       library_names_spec='${libname}${release}.a $libname.a'
22314       soname_spec='${libname}${release}${shared_ext}$major'
22315     fi
22316     shlibpath_var=LIBPATH
22317   fi
22318   ;;
22319
22320 amigaos*)
22321   library_names_spec='$libname.ixlibrary $libname.a'
22322   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22323   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'
22324   ;;
22325
22326 beos*)
22327   library_names_spec='${libname}${shared_ext}'
22328   dynamic_linker="$host_os ld.so"
22329   shlibpath_var=LIBRARY_PATH
22330   ;;
22331
22332 bsdi[45]*)
22333   version_type=linux
22334   need_version=no
22335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22336   soname_spec='${libname}${release}${shared_ext}$major'
22337   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22338   shlibpath_var=LD_LIBRARY_PATH
22339   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22340   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22341   # the default ld.so.conf also contains /usr/contrib/lib and
22342   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22343   # libtool to hard-code these into programs
22344   ;;
22345
22346 cygwin* | mingw* | pw32*)
22347   version_type=windows
22348   shrext_cmds=".dll"
22349   need_version=no
22350   need_lib_prefix=no
22351
22352   case $GCC,$host_os in
22353   yes,cygwin* | yes,mingw* | yes,pw32*)
22354     library_names_spec='$libname.dll.a'
22355     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22356     postinstall_cmds='base_file=`basename \${file}`~
22357       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22358       dldir=$destdir/`dirname \$dlpath`~
22359       test -d \$dldir || mkdir -p \$dldir~
22360       $install_prog $dir/$dlname \$dldir/$dlname'
22361     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22362       dlpath=$dir/\$dldll~
22363        $rm \$dlpath'
22364     shlibpath_overrides_runpath=yes
22365
22366     case $host_os in
22367     cygwin*)
22368       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22369       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22370       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22371       ;;
22372     mingw*)
22373       # MinGW DLLs use traditional 'lib' prefix
22374       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22375       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22376       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22377         # It is most probably a Windows format PATH printed by
22378         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22379         # path with ; separators, and with drive letters. We can handle the
22380         # drive letters (cygwin fileutils understands them), so leave them,
22381         # especially as we might pass files found there to a mingw objdump,
22382         # which wouldn't understand a cygwinified path. Ahh.
22383         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22384       else
22385         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22386       fi
22387       ;;
22388     pw32*)
22389       # pw32 DLLs use 'pw' prefix rather than 'lib'
22390       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22391       ;;
22392     esac
22393     ;;
22394
22395   *)
22396     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22397     ;;
22398   esac
22399   dynamic_linker='Win32 ld.exe'
22400   # FIXME: first we should search . and the directory the executable is in
22401   shlibpath_var=PATH
22402   ;;
22403
22404 darwin* | rhapsody*)
22405   dynamic_linker="$host_os dyld"
22406   version_type=darwin
22407   need_lib_prefix=no
22408   need_version=no
22409   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22410   soname_spec='${libname}${release}${major}$shared_ext'
22411   shlibpath_overrides_runpath=yes
22412   shlibpath_var=DYLD_LIBRARY_PATH
22413   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22414   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22415   if test "$GCC" = yes; then
22416     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"`
22417   else
22418     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22419   fi
22420   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22421   ;;
22422
22423 dgux*)
22424   version_type=linux
22425   need_lib_prefix=no
22426   need_version=no
22427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22428   soname_spec='${libname}${release}${shared_ext}$major'
22429   shlibpath_var=LD_LIBRARY_PATH
22430   ;;
22431
22432 freebsd1*)
22433   dynamic_linker=no
22434   ;;
22435
22436 kfreebsd*-gnu)
22437   version_type=linux
22438   need_lib_prefix=no
22439   need_version=no
22440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22441   soname_spec='${libname}${release}${shared_ext}$major'
22442   shlibpath_var=LD_LIBRARY_PATH
22443   shlibpath_overrides_runpath=no
22444   hardcode_into_libs=yes
22445   dynamic_linker='GNU ld.so'
22446   ;;
22447
22448 freebsd*)
22449   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22450   version_type=freebsd-$objformat
22451   case $version_type in
22452     freebsd-elf*)
22453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22454       need_version=no
22455       need_lib_prefix=no
22456       ;;
22457     freebsd-*)
22458       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22459       need_version=yes
22460       ;;
22461   esac
22462   shlibpath_var=LD_LIBRARY_PATH
22463   case $host_os in
22464   freebsd2*)
22465     shlibpath_overrides_runpath=yes
22466     ;;
22467   freebsd3.01* | freebsdelf3.01*)
22468     shlibpath_overrides_runpath=yes
22469     hardcode_into_libs=yes
22470     ;;
22471   *) # from 3.2 on
22472     shlibpath_overrides_runpath=no
22473     hardcode_into_libs=yes
22474     ;;
22475   esac
22476   ;;
22477
22478 gnu*)
22479   version_type=linux
22480   need_lib_prefix=no
22481   need_version=no
22482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22483   soname_spec='${libname}${release}${shared_ext}$major'
22484   shlibpath_var=LD_LIBRARY_PATH
22485   hardcode_into_libs=yes
22486   ;;
22487
22488 hpux9* | hpux10* | hpux11*)
22489   # Give a soname corresponding to the major version so that dld.sl refuses to
22490   # link against other versions.
22491   version_type=sunos
22492   need_lib_prefix=no
22493   need_version=no
22494   case "$host_cpu" in
22495   ia64*)
22496     shrext_cmds='.so'
22497     hardcode_into_libs=yes
22498     dynamic_linker="$host_os dld.so"
22499     shlibpath_var=LD_LIBRARY_PATH
22500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22502     soname_spec='${libname}${release}${shared_ext}$major'
22503     if test "X$HPUX_IA64_MODE" = X32; then
22504       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22505     else
22506       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22507     fi
22508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22509     ;;
22510    hppa*64*)
22511      shrext_cmds='.sl'
22512      hardcode_into_libs=yes
22513      dynamic_linker="$host_os dld.sl"
22514      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22515      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22517      soname_spec='${libname}${release}${shared_ext}$major'
22518      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22519      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22520      ;;
22521    *)
22522     shrext_cmds='.sl'
22523     dynamic_linker="$host_os dld.sl"
22524     shlibpath_var=SHLIB_PATH
22525     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22527     soname_spec='${libname}${release}${shared_ext}$major'
22528     ;;
22529   esac
22530   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22531   postinstall_cmds='chmod 555 $lib'
22532   ;;
22533
22534 irix5* | irix6* | nonstopux*)
22535   case $host_os in
22536     nonstopux*) version_type=nonstopux ;;
22537     *)
22538         if test "$lt_cv_prog_gnu_ld" = yes; then
22539                 version_type=linux
22540         else
22541                 version_type=irix
22542         fi ;;
22543   esac
22544   need_lib_prefix=no
22545   need_version=no
22546   soname_spec='${libname}${release}${shared_ext}$major'
22547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22548   case $host_os in
22549   irix5* | nonstopux*)
22550     libsuff= shlibsuff=
22551     ;;
22552   *)
22553     case $LD in # libtool.m4 will add one of these switches to LD
22554     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22555       libsuff= shlibsuff= libmagic=32-bit;;
22556     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22557       libsuff=32 shlibsuff=N32 libmagic=N32;;
22558     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22559       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22560     *) libsuff= shlibsuff= libmagic=never-match;;
22561     esac
22562     ;;
22563   esac
22564   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22565   shlibpath_overrides_runpath=no
22566   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22567   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22568   hardcode_into_libs=yes
22569   ;;
22570
22571 # No shared lib support for Linux oldld, aout, or coff.
22572 linux*oldld* | linux*aout* | linux*coff*)
22573   dynamic_linker=no
22574   ;;
22575
22576 # This must be Linux ELF.
22577 linux*)
22578   version_type=linux
22579   need_lib_prefix=no
22580   need_version=no
22581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582   soname_spec='${libname}${release}${shared_ext}$major'
22583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22584   shlibpath_var=LD_LIBRARY_PATH
22585   shlibpath_overrides_runpath=no
22586   # This implies no fast_install, which is unacceptable.
22587   # Some rework will be needed to allow for fast_install
22588   # before this can be enabled.
22589   hardcode_into_libs=yes
22590
22591   # Append ld.so.conf contents to the search path
22592   if test -f /etc/ld.so.conf; then
22593     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22594     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22595   fi
22596
22597   # We used to test for /lib/ld.so.1 and disable shared libraries on
22598   # powerpc, because MkLinux only supported shared libraries with the
22599   # GNU dynamic linker.  Since this was broken with cross compilers,
22600   # most powerpc-linux boxes support dynamic linking these days and
22601   # people can always --disable-shared, the test was removed, and we
22602   # assume the GNU/Linux dynamic linker is in use.
22603   dynamic_linker='GNU/Linux ld.so'
22604   ;;
22605
22606 knetbsd*-gnu)
22607   version_type=linux
22608   need_lib_prefix=no
22609   need_version=no
22610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22611   soname_spec='${libname}${release}${shared_ext}$major'
22612   shlibpath_var=LD_LIBRARY_PATH
22613   shlibpath_overrides_runpath=no
22614   hardcode_into_libs=yes
22615   dynamic_linker='GNU ld.so'
22616   ;;
22617
22618 netbsd*)
22619   version_type=sunos
22620   need_lib_prefix=no
22621   need_version=no
22622   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22624     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22625     dynamic_linker='NetBSD (a.out) ld.so'
22626   else
22627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22628     soname_spec='${libname}${release}${shared_ext}$major'
22629     dynamic_linker='NetBSD ld.elf_so'
22630   fi
22631   shlibpath_var=LD_LIBRARY_PATH
22632   shlibpath_overrides_runpath=yes
22633   hardcode_into_libs=yes
22634   ;;
22635
22636 newsos6)
22637   version_type=linux
22638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22639   shlibpath_var=LD_LIBRARY_PATH
22640   shlibpath_overrides_runpath=yes
22641   ;;
22642
22643 nto-qnx*)
22644   version_type=linux
22645   need_lib_prefix=no
22646   need_version=no
22647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648   soname_spec='${libname}${release}${shared_ext}$major'
22649   shlibpath_var=LD_LIBRARY_PATH
22650   shlibpath_overrides_runpath=yes
22651   ;;
22652
22653 openbsd*)
22654   version_type=sunos
22655   need_lib_prefix=no
22656   need_version=no
22657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22659   shlibpath_var=LD_LIBRARY_PATH
22660   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22661     case $host_os in
22662       openbsd2.[89] | openbsd2.[89].*)
22663         shlibpath_overrides_runpath=no
22664         ;;
22665       *)
22666         shlibpath_overrides_runpath=yes
22667         ;;
22668       esac
22669   else
22670     shlibpath_overrides_runpath=yes
22671   fi
22672   ;;
22673
22674 os2*)
22675   libname_spec='$name'
22676   shrext_cmds=".dll"
22677   need_lib_prefix=no
22678   library_names_spec='$libname${shared_ext} $libname.a'
22679   dynamic_linker='OS/2 ld.exe'
22680   shlibpath_var=LIBPATH
22681   ;;
22682
22683 osf3* | osf4* | osf5*)
22684   version_type=osf
22685   need_lib_prefix=no
22686   need_version=no
22687   soname_spec='${libname}${release}${shared_ext}$major'
22688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22689   shlibpath_var=LD_LIBRARY_PATH
22690   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22691   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22692   ;;
22693
22694 sco3.2v5*)
22695   version_type=osf
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698   shlibpath_var=LD_LIBRARY_PATH
22699   ;;
22700
22701 solaris*)
22702   version_type=linux
22703   need_lib_prefix=no
22704   need_version=no
22705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706   soname_spec='${libname}${release}${shared_ext}$major'
22707   shlibpath_var=LD_LIBRARY_PATH
22708   shlibpath_overrides_runpath=yes
22709   hardcode_into_libs=yes
22710   # ldd complains unless libraries are executable
22711   postinstall_cmds='chmod +x $lib'
22712   ;;
22713
22714 sunos4*)
22715   version_type=sunos
22716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22717   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22718   shlibpath_var=LD_LIBRARY_PATH
22719   shlibpath_overrides_runpath=yes
22720   if test "$with_gnu_ld" = yes; then
22721     need_lib_prefix=no
22722   fi
22723   need_version=yes
22724   ;;
22725
22726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22727   version_type=linux
22728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22729   soname_spec='${libname}${release}${shared_ext}$major'
22730   shlibpath_var=LD_LIBRARY_PATH
22731   case $host_vendor in
22732     sni)
22733       shlibpath_overrides_runpath=no
22734       need_lib_prefix=no
22735       export_dynamic_flag_spec='${wl}-Blargedynsym'
22736       runpath_var=LD_RUN_PATH
22737       ;;
22738     siemens)
22739       need_lib_prefix=no
22740       ;;
22741     motorola)
22742       need_lib_prefix=no
22743       need_version=no
22744       shlibpath_overrides_runpath=no
22745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22746       ;;
22747   esac
22748   ;;
22749
22750 sysv4*MP*)
22751   if test -d /usr/nec ;then
22752     version_type=linux
22753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22754     soname_spec='$libname${shared_ext}.$major'
22755     shlibpath_var=LD_LIBRARY_PATH
22756   fi
22757   ;;
22758
22759 uts4*)
22760   version_type=linux
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   ;;
22765
22766 *)
22767   dynamic_linker=no
22768   ;;
22769 esac
22770 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22771 echo "${ECHO_T}$dynamic_linker" >&6
22772 test "$dynamic_linker" = no && can_build_shared=no
22773
22774 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22775 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22776 hardcode_action_GCJ=
22777 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22778    test -n "$runpath_var_GCJ" || \
22779    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22780
22781   # We can hardcode non-existant directories.
22782   if test "$hardcode_direct_GCJ" != no &&
22783      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22784      # have to relink, otherwise we might link with an installed library
22785      # when we should be linking with a yet-to-be-installed one
22786      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22787      test "$hardcode_minus_L_GCJ" != no; then
22788     # Linking always hardcodes the temporary library directory.
22789     hardcode_action_GCJ=relink
22790   else
22791     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22792     hardcode_action_GCJ=immediate
22793   fi
22794 else
22795   # We cannot hardcode anything, or else we can only hardcode existing
22796   # directories.
22797   hardcode_action_GCJ=unsupported
22798 fi
22799 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22800 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22801
22802 if test "$hardcode_action_GCJ" = relink; then
22803   # Fast installation is not supported
22804   enable_fast_install=no
22805 elif test "$shlibpath_overrides_runpath" = yes ||
22806      test "$enable_shared" = no; then
22807   # Fast installation is not necessary
22808   enable_fast_install=needless
22809 fi
22810
22811 striplib=
22812 old_striplib=
22813 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22814 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22815 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22816   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22817   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22818   echo "$as_me:$LINENO: result: yes" >&5
22819 echo "${ECHO_T}yes" >&6
22820 else
22821 # FIXME - insert some real tests, host_os isn't really good enough
22822   case $host_os in
22823    darwin*)
22824        if test -n "$STRIP" ; then
22825          striplib="$STRIP -x"
22826          echo "$as_me:$LINENO: result: yes" >&5
22827 echo "${ECHO_T}yes" >&6
22828        else
22829   echo "$as_me:$LINENO: result: no" >&5
22830 echo "${ECHO_T}no" >&6
22831 fi
22832        ;;
22833    *)
22834   echo "$as_me:$LINENO: result: no" >&5
22835 echo "${ECHO_T}no" >&6
22836     ;;
22837   esac
22838 fi
22839
22840 if test "x$enable_dlopen" != xyes; then
22841   enable_dlopen=unknown
22842   enable_dlopen_self=unknown
22843   enable_dlopen_self_static=unknown
22844 else
22845   lt_cv_dlopen=no
22846   lt_cv_dlopen_libs=
22847
22848   case $host_os in
22849   beos*)
22850     lt_cv_dlopen="load_add_on"
22851     lt_cv_dlopen_libs=
22852     lt_cv_dlopen_self=yes
22853     ;;
22854
22855   mingw* | pw32*)
22856     lt_cv_dlopen="LoadLibrary"
22857     lt_cv_dlopen_libs=
22858    ;;
22859
22860   cygwin*)
22861     lt_cv_dlopen="dlopen"
22862     lt_cv_dlopen_libs=
22863    ;;
22864
22865   darwin*)
22866   # if libdl is installed we need to link against it
22867     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22870   echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872   ac_check_lib_save_LIBS=$LIBS
22873 LIBS="-ldl  $LIBS"
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* Override any gcc2 internal prototype to avoid an error.  */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 /* We use char because int might match the return type of a gcc2
22886    builtin and then its argument prototype would still apply.  */
22887 char dlopen ();
22888 int
22889 main ()
22890 {
22891 dlopen ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898   (eval $ac_link) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_c_werror_flag"
22906                          || test ! -s conftest.err'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest$ac_exeext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   ac_cv_lib_dl_dlopen=yes
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 ac_cv_lib_dl_dlopen=no
22924 fi
22925 rm -f conftest.err conftest.$ac_objext \
22926       conftest$ac_exeext conftest.$ac_ext
22927 LIBS=$ac_check_lib_save_LIBS
22928 fi
22929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22931 if test $ac_cv_lib_dl_dlopen = yes; then
22932   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22933 else
22934
22935     lt_cv_dlopen="dyld"
22936     lt_cv_dlopen_libs=
22937     lt_cv_dlopen_self=yes
22938
22939 fi
22940
22941    ;;
22942
22943   *)
22944     echo "$as_me:$LINENO: checking for shl_load" >&5
22945 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22946 if test "${ac_cv_func_shl_load+set}" = set; then
22947   echo $ECHO_N "(cached) $ECHO_C" >&6
22948 else
22949   cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h.  */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h.  */
22955 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22957 #define shl_load innocuous_shl_load
22958
22959 /* System header to define __stub macros and hopefully few prototypes,
22960     which can conflict with char shl_load (); below.
22961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962     <limits.h> exists even on freestanding compilers.  */
22963
22964 #ifdef __STDC__
22965 # include <limits.h>
22966 #else
22967 # include <assert.h>
22968 #endif
22969
22970 #undef shl_load
22971
22972 /* Override any gcc2 internal prototype to avoid an error.  */
22973 #ifdef __cplusplus
22974 extern "C"
22975 {
22976 #endif
22977 /* We use char because int might match the return type of a gcc2
22978    builtin and then its argument prototype would still apply.  */
22979 char shl_load ();
22980 /* The GNU C library defines this for functions which it implements
22981     to always fail with ENOSYS.  Some functions are actually named
22982     something starting with __ and the normal name is an alias.  */
22983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22984 choke me
22985 #else
22986 char (*f) () = shl_load;
22987 #endif
22988 #ifdef __cplusplus
22989 }
22990 #endif
22991
22992 int
22993 main ()
22994 {
22995 return f != shl_load;
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002   (eval $ac_link) 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -z "$ac_c_werror_flag"
23010                          || test ! -s conftest.err'
23011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012   (eval $ac_try) 2>&5
23013   ac_status=$?
23014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); }; } &&
23016          { ac_try='test -s conftest$ac_exeext'
23017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018   (eval $ac_try) 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); }; }; then
23022   ac_cv_func_shl_load=yes
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027 ac_cv_func_shl_load=no
23028 fi
23029 rm -f conftest.err conftest.$ac_objext \
23030       conftest$ac_exeext conftest.$ac_ext
23031 fi
23032 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23033 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23034 if test $ac_cv_func_shl_load = yes; then
23035   lt_cv_dlopen="shl_load"
23036 else
23037   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23038 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23039 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23040   echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042   ac_check_lib_save_LIBS=$LIBS
23043 LIBS="-ldld  $LIBS"
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050
23051 /* Override any gcc2 internal prototype to avoid an error.  */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 /* We use char because int might match the return type of a gcc2
23056    builtin and then its argument prototype would still apply.  */
23057 char shl_load ();
23058 int
23059 main ()
23060 {
23061 shl_load ();
23062   ;
23063   return 0;
23064 }
23065 _ACEOF
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068   (eval $ac_link) 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -z "$ac_c_werror_flag"
23076                          || test ! -s conftest.err'
23077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078   (eval $ac_try) 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; } &&
23082          { ac_try='test -s conftest$ac_exeext'
23083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084   (eval $ac_try) 2>&5
23085   ac_status=$?
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); }; }; then
23088   ac_cv_lib_dld_shl_load=yes
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 ac_cv_lib_dld_shl_load=no
23094 fi
23095 rm -f conftest.err conftest.$ac_objext \
23096       conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23098 fi
23099 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23100 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23101 if test $ac_cv_lib_dld_shl_load = yes; then
23102   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23103 else
23104   echo "$as_me:$LINENO: checking for dlopen" >&5
23105 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23106 if test "${ac_cv_func_dlopen+set}" = set; then
23107   echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109   cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23117 #define dlopen innocuous_dlopen
23118
23119 /* System header to define __stub macros and hopefully few prototypes,
23120     which can conflict with char dlopen (); below.
23121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23122     <limits.h> exists even on freestanding compilers.  */
23123
23124 #ifdef __STDC__
23125 # include <limits.h>
23126 #else
23127 # include <assert.h>
23128 #endif
23129
23130 #undef dlopen
23131
23132 /* Override any gcc2 internal prototype to avoid an error.  */
23133 #ifdef __cplusplus
23134 extern "C"
23135 {
23136 #endif
23137 /* We use char because int might match the return type of a gcc2
23138    builtin and then its argument prototype would still apply.  */
23139 char dlopen ();
23140 /* The GNU C library defines this for functions which it implements
23141     to always fail with ENOSYS.  Some functions are actually named
23142     something starting with __ and the normal name is an alias.  */
23143 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23144 choke me
23145 #else
23146 char (*f) () = dlopen;
23147 #endif
23148 #ifdef __cplusplus
23149 }
23150 #endif
23151
23152 int
23153 main ()
23154 {
23155 return f != dlopen;
23156   ;
23157   return 0;
23158 }
23159 _ACEOF
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23162   (eval $ac_link) 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } &&
23169          { ac_try='test -z "$ac_c_werror_flag"
23170                          || test ! -s conftest.err'
23171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172   (eval $ac_try) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; } &&
23176          { ac_try='test -s conftest$ac_exeext'
23177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178   (eval $ac_try) 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182   ac_cv_func_dlopen=yes
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187 ac_cv_func_dlopen=no
23188 fi
23189 rm -f conftest.err conftest.$ac_objext \
23190       conftest$ac_exeext conftest.$ac_ext
23191 fi
23192 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23193 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23194 if test $ac_cv_func_dlopen = yes; then
23195   lt_cv_dlopen="dlopen"
23196 else
23197   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23200   echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202   ac_check_lib_save_LIBS=$LIBS
23203 LIBS="-ldl  $LIBS"
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210
23211 /* Override any gcc2 internal prototype to avoid an error.  */
23212 #ifdef __cplusplus
23213 extern "C"
23214 #endif
23215 /* We use char because int might match the return type of a gcc2
23216    builtin and then its argument prototype would still apply.  */
23217 char dlopen ();
23218 int
23219 main ()
23220 {
23221 dlopen ();
23222   ;
23223   return 0;
23224 }
23225 _ACEOF
23226 rm -f conftest.$ac_objext conftest$ac_exeext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23228   (eval $ac_link) 2>conftest.er1
23229   ac_status=$?
23230   grep -v '^ *+' conftest.er1 >conftest.err
23231   rm -f conftest.er1
23232   cat conftest.err >&5
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); } &&
23235          { ac_try='test -z "$ac_c_werror_flag"
23236                          || test ! -s conftest.err'
23237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238   (eval $ac_try) 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); }; } &&
23242          { ac_try='test -s conftest$ac_exeext'
23243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244   (eval $ac_try) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); }; }; then
23248   ac_cv_lib_dl_dlopen=yes
23249 else
23250   echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 ac_cv_lib_dl_dlopen=no
23254 fi
23255 rm -f conftest.err conftest.$ac_objext \
23256       conftest$ac_exeext conftest.$ac_ext
23257 LIBS=$ac_check_lib_save_LIBS
23258 fi
23259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23261 if test $ac_cv_lib_dl_dlopen = yes; then
23262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23263 else
23264   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23265 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23266 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23267   echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23269   ac_check_lib_save_LIBS=$LIBS
23270 LIBS="-lsvld  $LIBS"
23271 cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277
23278 /* Override any gcc2 internal prototype to avoid an error.  */
23279 #ifdef __cplusplus
23280 extern "C"
23281 #endif
23282 /* We use char because int might match the return type of a gcc2
23283    builtin and then its argument prototype would still apply.  */
23284 char dlopen ();
23285 int
23286 main ()
23287 {
23288 dlopen ();
23289   ;
23290   return 0;
23291 }
23292 _ACEOF
23293 rm -f conftest.$ac_objext conftest$ac_exeext
23294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23295   (eval $ac_link) 2>conftest.er1
23296   ac_status=$?
23297   grep -v '^ *+' conftest.er1 >conftest.err
23298   rm -f conftest.er1
23299   cat conftest.err >&5
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); } &&
23302          { ac_try='test -z "$ac_c_werror_flag"
23303                          || test ! -s conftest.err'
23304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; } &&
23309          { ac_try='test -s conftest$ac_exeext'
23310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311   (eval $ac_try) 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; }; then
23315   ac_cv_lib_svld_dlopen=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 ac_cv_lib_svld_dlopen=no
23321 fi
23322 rm -f conftest.err conftest.$ac_objext \
23323       conftest$ac_exeext conftest.$ac_ext
23324 LIBS=$ac_check_lib_save_LIBS
23325 fi
23326 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23327 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23328 if test $ac_cv_lib_svld_dlopen = yes; then
23329   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23330 else
23331   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23332 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23333 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23334   echo $ECHO_N "(cached) $ECHO_C" >&6
23335 else
23336   ac_check_lib_save_LIBS=$LIBS
23337 LIBS="-ldld  $LIBS"
23338 cat >conftest.$ac_ext <<_ACEOF
23339 /* confdefs.h.  */
23340 _ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h.  */
23344
23345 /* Override any gcc2 internal prototype to avoid an error.  */
23346 #ifdef __cplusplus
23347 extern "C"
23348 #endif
23349 /* We use char because int might match the return type of a gcc2
23350    builtin and then its argument prototype would still apply.  */
23351 char dld_link ();
23352 int
23353 main ()
23354 {
23355 dld_link ();
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 rm -f conftest.$ac_objext conftest$ac_exeext
23361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23362   (eval $ac_link) 2>conftest.er1
23363   ac_status=$?
23364   grep -v '^ *+' conftest.er1 >conftest.err
23365   rm -f conftest.er1
23366   cat conftest.err >&5
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); } &&
23369          { ac_try='test -z "$ac_c_werror_flag"
23370                          || test ! -s conftest.err'
23371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372   (eval $ac_try) 2>&5
23373   ac_status=$?
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); }; } &&
23376          { ac_try='test -s conftest$ac_exeext'
23377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378   (eval $ac_try) 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; }; then
23382   ac_cv_lib_dld_dld_link=yes
23383 else
23384   echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387 ac_cv_lib_dld_dld_link=no
23388 fi
23389 rm -f conftest.err conftest.$ac_objext \
23390       conftest$ac_exeext conftest.$ac_ext
23391 LIBS=$ac_check_lib_save_LIBS
23392 fi
23393 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23394 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23395 if test $ac_cv_lib_dld_dld_link = yes; then
23396   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23397 fi
23398
23399
23400 fi
23401
23402
23403 fi
23404
23405
23406 fi
23407
23408
23409 fi
23410
23411
23412 fi
23413
23414     ;;
23415   esac
23416
23417   if test "x$lt_cv_dlopen" != xno; then
23418     enable_dlopen=yes
23419   else
23420     enable_dlopen=no
23421   fi
23422
23423   case $lt_cv_dlopen in
23424   dlopen)
23425     save_CPPFLAGS="$CPPFLAGS"
23426     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23427
23428     save_LDFLAGS="$LDFLAGS"
23429     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23430
23431     save_LIBS="$LIBS"
23432     LIBS="$lt_cv_dlopen_libs $LIBS"
23433
23434     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23435 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23436 if test "${lt_cv_dlopen_self+set}" = set; then
23437   echo $ECHO_N "(cached) $ECHO_C" >&6
23438 else
23439           if test "$cross_compiling" = yes; then :
23440   lt_cv_dlopen_self=cross
23441 else
23442   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23443   lt_status=$lt_dlunknown
23444   cat > conftest.$ac_ext <<EOF
23445 #line 23445 "configure"
23446 #include "confdefs.h"
23447
23448 #if HAVE_DLFCN_H
23449 #include <dlfcn.h>
23450 #endif
23451
23452 #include <stdio.h>
23453
23454 #ifdef RTLD_GLOBAL
23455 #  define LT_DLGLOBAL           RTLD_GLOBAL
23456 #else
23457 #  ifdef DL_GLOBAL
23458 #    define LT_DLGLOBAL         DL_GLOBAL
23459 #  else
23460 #    define LT_DLGLOBAL         0
23461 #  endif
23462 #endif
23463
23464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23465    find out it does not work in some platform. */
23466 #ifndef LT_DLLAZY_OR_NOW
23467 #  ifdef RTLD_LAZY
23468 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23469 #  else
23470 #    ifdef DL_LAZY
23471 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23472 #    else
23473 #      ifdef RTLD_NOW
23474 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23475 #      else
23476 #        ifdef DL_NOW
23477 #          define LT_DLLAZY_OR_NOW      DL_NOW
23478 #        else
23479 #          define LT_DLLAZY_OR_NOW      0
23480 #        endif
23481 #      endif
23482 #    endif
23483 #  endif
23484 #endif
23485
23486 #ifdef __cplusplus
23487 extern "C" void exit (int);
23488 #endif
23489
23490 void fnord() { int i=42;}
23491 int main ()
23492 {
23493   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23494   int status = $lt_dlunknown;
23495
23496   if (self)
23497     {
23498       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23499       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23500       /* dlclose (self); */
23501     }
23502
23503     exit (status);
23504 }
23505 EOF
23506   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507   (eval $ac_link) 2>&5
23508   ac_status=$?
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23511     (./conftest; exit; ) 2>/dev/null
23512     lt_status=$?
23513     case x$lt_status in
23514       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23515       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23516       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23517     esac
23518   else :
23519     # compilation failed
23520     lt_cv_dlopen_self=no
23521   fi
23522 fi
23523 rm -fr conftest*
23524
23525
23526 fi
23527 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23529
23530     if test "x$lt_cv_dlopen_self" = xyes; then
23531       LDFLAGS="$LDFLAGS $link_static_flag"
23532       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23534 if test "${lt_cv_dlopen_self_static+set}" = set; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537           if test "$cross_compiling" = yes; then :
23538   lt_cv_dlopen_self_static=cross
23539 else
23540   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23541   lt_status=$lt_dlunknown
23542   cat > conftest.$ac_ext <<EOF
23543 #line 23543 "configure"
23544 #include "confdefs.h"
23545
23546 #if HAVE_DLFCN_H
23547 #include <dlfcn.h>
23548 #endif
23549
23550 #include <stdio.h>
23551
23552 #ifdef RTLD_GLOBAL
23553 #  define LT_DLGLOBAL           RTLD_GLOBAL
23554 #else
23555 #  ifdef DL_GLOBAL
23556 #    define LT_DLGLOBAL         DL_GLOBAL
23557 #  else
23558 #    define LT_DLGLOBAL         0
23559 #  endif
23560 #endif
23561
23562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23563    find out it does not work in some platform. */
23564 #ifndef LT_DLLAZY_OR_NOW
23565 #  ifdef RTLD_LAZY
23566 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23567 #  else
23568 #    ifdef DL_LAZY
23569 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23570 #    else
23571 #      ifdef RTLD_NOW
23572 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23573 #      else
23574 #        ifdef DL_NOW
23575 #          define LT_DLLAZY_OR_NOW      DL_NOW
23576 #        else
23577 #          define LT_DLLAZY_OR_NOW      0
23578 #        endif
23579 #      endif
23580 #    endif
23581 #  endif
23582 #endif
23583
23584 #ifdef __cplusplus
23585 extern "C" void exit (int);
23586 #endif
23587
23588 void fnord() { int i=42;}
23589 int main ()
23590 {
23591   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23592   int status = $lt_dlunknown;
23593
23594   if (self)
23595     {
23596       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23597       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23598       /* dlclose (self); */
23599     }
23600
23601     exit (status);
23602 }
23603 EOF
23604   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23605   (eval $ac_link) 2>&5
23606   ac_status=$?
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23609     (./conftest; exit; ) 2>/dev/null
23610     lt_status=$?
23611     case x$lt_status in
23612       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23613       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23614       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23615     esac
23616   else :
23617     # compilation failed
23618     lt_cv_dlopen_self_static=no
23619   fi
23620 fi
23621 rm -fr conftest*
23622
23623
23624 fi
23625 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23626 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23627     fi
23628
23629     CPPFLAGS="$save_CPPFLAGS"
23630     LDFLAGS="$save_LDFLAGS"
23631     LIBS="$save_LIBS"
23632     ;;
23633   esac
23634
23635   case $lt_cv_dlopen_self in
23636   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23637   *) enable_dlopen_self=unknown ;;
23638   esac
23639
23640   case $lt_cv_dlopen_self_static in
23641   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23642   *) enable_dlopen_self_static=unknown ;;
23643   esac
23644 fi
23645
23646
23647 # The else clause should only fire when bootstrapping the
23648 # libtool distribution, otherwise you forgot to ship ltmain.sh
23649 # with your package, and you will get complaints that there are
23650 # no rules to generate ltmain.sh.
23651 if test -f "$ltmain"; then
23652   # See if we are running on zsh, and set the options which allow our commands through
23653   # without removal of \ escapes.
23654   if test -n "${ZSH_VERSION+set}" ; then
23655     setopt NO_GLOB_SUBST
23656   fi
23657   # Now quote all the things that may contain metacharacters while being
23658   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23659   # variables and quote the copies for generation of the libtool script.
23660   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23661     SED SHELL STRIP \
23662     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23663     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23664     deplibs_check_method reload_flag reload_cmds need_locks \
23665     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23666     lt_cv_sys_global_symbol_to_c_name_address \
23667     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23668     old_postinstall_cmds old_postuninstall_cmds \
23669     compiler_GCJ \
23670     CC_GCJ \
23671     LD_GCJ \
23672     lt_prog_compiler_wl_GCJ \
23673     lt_prog_compiler_pic_GCJ \
23674     lt_prog_compiler_static_GCJ \
23675     lt_prog_compiler_no_builtin_flag_GCJ \
23676     export_dynamic_flag_spec_GCJ \
23677     thread_safe_flag_spec_GCJ \
23678     whole_archive_flag_spec_GCJ \
23679     enable_shared_with_static_runtimes_GCJ \
23680     old_archive_cmds_GCJ \
23681     old_archive_from_new_cmds_GCJ \
23682     predep_objects_GCJ \
23683     postdep_objects_GCJ \
23684     predeps_GCJ \
23685     postdeps_GCJ \
23686     compiler_lib_search_path_GCJ \
23687     archive_cmds_GCJ \
23688     archive_expsym_cmds_GCJ \
23689     postinstall_cmds_GCJ \
23690     postuninstall_cmds_GCJ \
23691     old_archive_from_expsyms_cmds_GCJ \
23692     allow_undefined_flag_GCJ \
23693     no_undefined_flag_GCJ \
23694     export_symbols_cmds_GCJ \
23695     hardcode_libdir_flag_spec_GCJ \
23696     hardcode_libdir_flag_spec_ld_GCJ \
23697     hardcode_libdir_separator_GCJ \
23698     hardcode_automatic_GCJ \
23699     module_cmds_GCJ \
23700     module_expsym_cmds_GCJ \
23701     lt_cv_prog_compiler_c_o_GCJ \
23702     exclude_expsyms_GCJ \
23703     include_expsyms_GCJ; do
23704
23705     case $var in
23706     old_archive_cmds_GCJ | \
23707     old_archive_from_new_cmds_GCJ | \
23708     archive_cmds_GCJ | \
23709     archive_expsym_cmds_GCJ | \
23710     module_cmds_GCJ | \
23711     module_expsym_cmds_GCJ | \
23712     old_archive_from_expsyms_cmds_GCJ | \
23713     export_symbols_cmds_GCJ | \
23714     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23715     postinstall_cmds | postuninstall_cmds | \
23716     old_postinstall_cmds | old_postuninstall_cmds | \
23717     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23718       # Double-quote double-evaled strings.
23719       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23720       ;;
23721     *)
23722       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23723       ;;
23724     esac
23725   done
23726
23727   case $lt_echo in
23728   *'\$0 --fallback-echo"')
23729     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23730     ;;
23731   esac
23732
23733 cfgfile="$ofile"
23734
23735   cat <<__EOF__ >> "$cfgfile"
23736 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23737
23738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23739
23740 # Shell to use when invoking shell scripts.
23741 SHELL=$lt_SHELL
23742
23743 # Whether or not to build shared libraries.
23744 build_libtool_libs=$enable_shared
23745
23746 # Whether or not to build static libraries.
23747 build_old_libs=$enable_static
23748
23749 # Whether or not to add -lc for building shared libraries.
23750 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23751
23752 # Whether or not to disallow shared libs when runtime libs are static
23753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23754
23755 # Whether or not to optimize for fast installation.
23756 fast_install=$enable_fast_install
23757
23758 # The host system.
23759 host_alias=$host_alias
23760 host=$host
23761
23762 # An echo program that does not interpret backslashes.
23763 echo=$lt_echo
23764
23765 # The archiver.
23766 AR=$lt_AR
23767 AR_FLAGS=$lt_AR_FLAGS
23768
23769 # A C compiler.
23770 LTCC=$lt_LTCC
23771
23772 # A language-specific compiler.
23773 CC=$lt_compiler_GCJ
23774
23775 # Is the compiler the GNU C compiler?
23776 with_gcc=$GCC_GCJ
23777
23778 # An ERE matcher.
23779 EGREP=$lt_EGREP
23780
23781 # The linker used to build libraries.
23782 LD=$lt_LD_GCJ
23783
23784 # Whether we need hard or soft links.
23785 LN_S=$lt_LN_S
23786
23787 # A BSD-compatible nm program.
23788 NM=$lt_NM
23789
23790 # A symbol stripping program
23791 STRIP=$lt_STRIP
23792
23793 # Used to examine libraries when file_magic_cmd begins "file"
23794 MAGIC_CMD=$MAGIC_CMD
23795
23796 # Used on cygwin: DLL creation program.
23797 DLLTOOL="$DLLTOOL"
23798
23799 # Used on cygwin: object dumper.
23800 OBJDUMP="$OBJDUMP"
23801
23802 # Used on cygwin: assembler.
23803 AS="$AS"
23804
23805 # The name of the directory that contains temporary libtool files.
23806 objdir=$objdir
23807
23808 # How to create reloadable object files.
23809 reload_flag=$lt_reload_flag
23810 reload_cmds=$lt_reload_cmds
23811
23812 # How to pass a linker flag through the compiler.
23813 wl=$lt_lt_prog_compiler_wl_GCJ
23814
23815 # Object file suffix (normally "o").
23816 objext="$ac_objext"
23817
23818 # Old archive suffix (normally "a").
23819 libext="$libext"
23820
23821 # Shared library suffix (normally ".so").
23822 shrext_cmds='$shrext_cmds'
23823
23824 # Executable file suffix (normally "").
23825 exeext="$exeext"
23826
23827 # Additional compiler flags for building library objects.
23828 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23829 pic_mode=$pic_mode
23830
23831 # What is the maximum length of a command?
23832 max_cmd_len=$lt_cv_sys_max_cmd_len
23833
23834 # Does compiler simultaneously support -c and -o options?
23835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23836
23837 # Must we lock files when doing compilation ?
23838 need_locks=$lt_need_locks
23839
23840 # Do we need the lib prefix for modules?
23841 need_lib_prefix=$need_lib_prefix
23842
23843 # Do we need a version for libraries?
23844 need_version=$need_version
23845
23846 # Whether dlopen is supported.
23847 dlopen_support=$enable_dlopen
23848
23849 # Whether dlopen of programs is supported.
23850 dlopen_self=$enable_dlopen_self
23851
23852 # Whether dlopen of statically linked programs is supported.
23853 dlopen_self_static=$enable_dlopen_self_static
23854
23855 # Compiler flag to prevent dynamic linking.
23856 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23857
23858 # Compiler flag to turn off builtin functions.
23859 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23860
23861 # Compiler flag to allow reflexive dlopens.
23862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23863
23864 # Compiler flag to generate shared objects directly from archives.
23865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23866
23867 # Compiler flag to generate thread-safe objects.
23868 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23869
23870 # Library versioning type.
23871 version_type=$version_type
23872
23873 # Format of library name prefix.
23874 libname_spec=$lt_libname_spec
23875
23876 # List of archive names.  First name is the real one, the rest are links.
23877 # The last name is the one that the linker finds with -lNAME.
23878 library_names_spec=$lt_library_names_spec
23879
23880 # The coded name of the library, if different from the real name.
23881 soname_spec=$lt_soname_spec
23882
23883 # Commands used to build and install an old-style archive.
23884 RANLIB=$lt_RANLIB
23885 old_archive_cmds=$lt_old_archive_cmds_GCJ
23886 old_postinstall_cmds=$lt_old_postinstall_cmds
23887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23888
23889 # Create an old-style archive from a shared archive.
23890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23891
23892 # Create a temporary old-style archive to link instead of a shared archive.
23893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23894
23895 # Commands used to build and install a shared archive.
23896 archive_cmds=$lt_archive_cmds_GCJ
23897 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23898 postinstall_cmds=$lt_postinstall_cmds
23899 postuninstall_cmds=$lt_postuninstall_cmds
23900
23901 # Commands used to build a loadable module (assumed same as above if empty)
23902 module_cmds=$lt_module_cmds_GCJ
23903 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23904
23905 # Commands to strip libraries.
23906 old_striplib=$lt_old_striplib
23907 striplib=$lt_striplib
23908
23909 # Dependencies to place before the objects being linked to create a
23910 # shared library.
23911 predep_objects=$lt_predep_objects_GCJ
23912
23913 # Dependencies to place after the objects being linked to create a
23914 # shared library.
23915 postdep_objects=$lt_postdep_objects_GCJ
23916
23917 # Dependencies to place before the objects being linked to create a
23918 # shared library.
23919 predeps=$lt_predeps_GCJ
23920
23921 # Dependencies to place after the objects being linked to create a
23922 # shared library.
23923 postdeps=$lt_postdeps_GCJ
23924
23925 # The library search path used internally by the compiler when linking
23926 # a shared library.
23927 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23928
23929 # Method to check whether dependent libraries are shared objects.
23930 deplibs_check_method=$lt_deplibs_check_method
23931
23932 # Command to use when deplibs_check_method == file_magic.
23933 file_magic_cmd=$lt_file_magic_cmd
23934
23935 # Flag that allows shared libraries with undefined symbols to be built.
23936 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23937
23938 # Flag that forces no undefined symbols.
23939 no_undefined_flag=$lt_no_undefined_flag_GCJ
23940
23941 # Commands used to finish a libtool library installation in a directory.
23942 finish_cmds=$lt_finish_cmds
23943
23944 # Same as above, but a single script fragment to be evaled but not shown.
23945 finish_eval=$lt_finish_eval
23946
23947 # Take the output of nm and produce a listing of raw symbols and C names.
23948 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23949
23950 # Transform the output of nm in a proper C declaration
23951 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23952
23953 # Transform the output of nm in a C name address pair
23954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23955
23956 # This is the shared library runtime path variable.
23957 runpath_var=$runpath_var
23958
23959 # This is the shared library path variable.
23960 shlibpath_var=$shlibpath_var
23961
23962 # Is shlibpath searched before the hard-coded library search path?
23963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23964
23965 # How to hardcode a shared library path into an executable.
23966 hardcode_action=$hardcode_action_GCJ
23967
23968 # Whether we should hardcode library paths into libraries.
23969 hardcode_into_libs=$hardcode_into_libs
23970
23971 # Flag to hardcode \$libdir into a binary during linking.
23972 # This must work even if \$libdir does not exist.
23973 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23974
23975 # If ld is used when linking, flag to hardcode \$libdir into
23976 # a binary during linking. This must work even if \$libdir does
23977 # not exist.
23978 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23979
23980 # Whether we need a single -rpath flag with a separated argument.
23981 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23982
23983 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23984 # resulting binary.
23985 hardcode_direct=$hardcode_direct_GCJ
23986
23987 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23988 # resulting binary.
23989 hardcode_minus_L=$hardcode_minus_L_GCJ
23990
23991 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23992 # the resulting binary.
23993 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23994
23995 # Set to yes if building a shared library automatically hardcodes DIR into the library
23996 # and all subsequent libraries and executables linked against it.
23997 hardcode_automatic=$hardcode_automatic_GCJ
23998
23999 # Variables whose values should be saved in libtool wrapper scripts and
24000 # restored at relink time.
24001 variables_saved_for_relink="$variables_saved_for_relink"
24002
24003 # Whether libtool must link a program against all its dependency libraries.
24004 link_all_deplibs=$link_all_deplibs_GCJ
24005
24006 # Compile-time system search path for libraries
24007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24008
24009 # Run-time system search path for libraries
24010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24011
24012 # Fix the shell variable \$srcfile for the compiler.
24013 fix_srcfile_path="$fix_srcfile_path_GCJ"
24014
24015 # Set to yes if exported symbols are required.
24016 always_export_symbols=$always_export_symbols_GCJ
24017
24018 # The commands to list exported symbols.
24019 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24020
24021 # The commands to extract the exported symbol list from a shared archive.
24022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24023
24024 # Symbols that should not be listed in the preloaded symbols.
24025 exclude_expsyms=$lt_exclude_expsyms_GCJ
24026
24027 # Symbols that must always be exported.
24028 include_expsyms=$lt_include_expsyms_GCJ
24029
24030 # ### END LIBTOOL TAG CONFIG: $tagname
24031
24032 __EOF__
24033
24034
24035 else
24036   # If there is no Makefile yet, we rely on a make rule to execute
24037   # `config.status --recheck' to rerun these tests and create the
24038   # libtool script then.
24039   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24040   if test -f "$ltmain_in"; then
24041     test -f Makefile && make "$ltmain"
24042   fi
24043 fi
24044
24045
24046 ac_ext=c
24047 ac_cpp='$CPP $CPPFLAGS'
24048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24051
24052 CC="$lt_save_CC"
24053
24054         else
24055           tagname=""
24056         fi
24057         ;;
24058
24059       RC)
24060         ac_ext=c
24061 ac_cpp='$CPP $CPPFLAGS'
24062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24065
24066
24067 # Source file extension for RC test sources.
24068 ac_ext=rc
24069
24070 # Object file extension for compiled RC test sources.
24071 objext=o
24072 objext_RC=$objext
24073
24074 # Code to be used in simple compile tests
24075 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24076
24077 # Code to be used in simple link tests
24078 lt_simple_link_test_code="$lt_simple_compile_test_code"
24079
24080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24081
24082 # If no C compiler was specified, use CC.
24083 LTCC=${LTCC-"$CC"}
24084
24085 # Allow CC to be a program name with arguments.
24086 compiler=$CC
24087
24088
24089 # Allow CC to be a program name with arguments.
24090 lt_save_CC="$CC"
24091 CC=${RC-"windres"}
24092 compiler=$CC
24093 compiler_RC=$CC
24094 lt_cv_prog_compiler_c_o_RC=yes
24095
24096 # The else clause should only fire when bootstrapping the
24097 # libtool distribution, otherwise you forgot to ship ltmain.sh
24098 # with your package, and you will get complaints that there are
24099 # no rules to generate ltmain.sh.
24100 if test -f "$ltmain"; then
24101   # See if we are running on zsh, and set the options which allow our commands through
24102   # without removal of \ escapes.
24103   if test -n "${ZSH_VERSION+set}" ; then
24104     setopt NO_GLOB_SUBST
24105   fi
24106   # Now quote all the things that may contain metacharacters while being
24107   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24108   # variables and quote the copies for generation of the libtool script.
24109   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24110     SED SHELL STRIP \
24111     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24112     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24113     deplibs_check_method reload_flag reload_cmds need_locks \
24114     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24115     lt_cv_sys_global_symbol_to_c_name_address \
24116     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24117     old_postinstall_cmds old_postuninstall_cmds \
24118     compiler_RC \
24119     CC_RC \
24120     LD_RC \
24121     lt_prog_compiler_wl_RC \
24122     lt_prog_compiler_pic_RC \
24123     lt_prog_compiler_static_RC \
24124     lt_prog_compiler_no_builtin_flag_RC \
24125     export_dynamic_flag_spec_RC \
24126     thread_safe_flag_spec_RC \
24127     whole_archive_flag_spec_RC \
24128     enable_shared_with_static_runtimes_RC \
24129     old_archive_cmds_RC \
24130     old_archive_from_new_cmds_RC \
24131     predep_objects_RC \
24132     postdep_objects_RC \
24133     predeps_RC \
24134     postdeps_RC \
24135     compiler_lib_search_path_RC \
24136     archive_cmds_RC \
24137     archive_expsym_cmds_RC \
24138     postinstall_cmds_RC \
24139     postuninstall_cmds_RC \
24140     old_archive_from_expsyms_cmds_RC \
24141     allow_undefined_flag_RC \
24142     no_undefined_flag_RC \
24143     export_symbols_cmds_RC \
24144     hardcode_libdir_flag_spec_RC \
24145     hardcode_libdir_flag_spec_ld_RC \
24146     hardcode_libdir_separator_RC \
24147     hardcode_automatic_RC \
24148     module_cmds_RC \
24149     module_expsym_cmds_RC \
24150     lt_cv_prog_compiler_c_o_RC \
24151     exclude_expsyms_RC \
24152     include_expsyms_RC; do
24153
24154     case $var in
24155     old_archive_cmds_RC | \
24156     old_archive_from_new_cmds_RC | \
24157     archive_cmds_RC | \
24158     archive_expsym_cmds_RC | \
24159     module_cmds_RC | \
24160     module_expsym_cmds_RC | \
24161     old_archive_from_expsyms_cmds_RC | \
24162     export_symbols_cmds_RC | \
24163     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24164     postinstall_cmds | postuninstall_cmds | \
24165     old_postinstall_cmds | old_postuninstall_cmds | \
24166     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24167       # Double-quote double-evaled strings.
24168       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24169       ;;
24170     *)
24171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24172       ;;
24173     esac
24174   done
24175
24176   case $lt_echo in
24177   *'\$0 --fallback-echo"')
24178     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24179     ;;
24180   esac
24181
24182 cfgfile="$ofile"
24183
24184   cat <<__EOF__ >> "$cfgfile"
24185 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24186
24187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24188
24189 # Shell to use when invoking shell scripts.
24190 SHELL=$lt_SHELL
24191
24192 # Whether or not to build shared libraries.
24193 build_libtool_libs=$enable_shared
24194
24195 # Whether or not to build static libraries.
24196 build_old_libs=$enable_static
24197
24198 # Whether or not to add -lc for building shared libraries.
24199 build_libtool_need_lc=$archive_cmds_need_lc_RC
24200
24201 # Whether or not to disallow shared libs when runtime libs are static
24202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24203
24204 # Whether or not to optimize for fast installation.
24205 fast_install=$enable_fast_install
24206
24207 # The host system.
24208 host_alias=$host_alias
24209 host=$host
24210
24211 # An echo program that does not interpret backslashes.
24212 echo=$lt_echo
24213
24214 # The archiver.
24215 AR=$lt_AR
24216 AR_FLAGS=$lt_AR_FLAGS
24217
24218 # A C compiler.
24219 LTCC=$lt_LTCC
24220
24221 # A language-specific compiler.
24222 CC=$lt_compiler_RC
24223
24224 # Is the compiler the GNU C compiler?
24225 with_gcc=$GCC_RC
24226
24227 # An ERE matcher.
24228 EGREP=$lt_EGREP
24229
24230 # The linker used to build libraries.
24231 LD=$lt_LD_RC
24232
24233 # Whether we need hard or soft links.
24234 LN_S=$lt_LN_S
24235
24236 # A BSD-compatible nm program.
24237 NM=$lt_NM
24238
24239 # A symbol stripping program
24240 STRIP=$lt_STRIP
24241
24242 # Used to examine libraries when file_magic_cmd begins "file"
24243 MAGIC_CMD=$MAGIC_CMD
24244
24245 # Used on cygwin: DLL creation program.
24246 DLLTOOL="$DLLTOOL"
24247
24248 # Used on cygwin: object dumper.
24249 OBJDUMP="$OBJDUMP"
24250
24251 # Used on cygwin: assembler.
24252 AS="$AS"
24253
24254 # The name of the directory that contains temporary libtool files.
24255 objdir=$objdir
24256
24257 # How to create reloadable object files.
24258 reload_flag=$lt_reload_flag
24259 reload_cmds=$lt_reload_cmds
24260
24261 # How to pass a linker flag through the compiler.
24262 wl=$lt_lt_prog_compiler_wl_RC
24263
24264 # Object file suffix (normally "o").
24265 objext="$ac_objext"
24266
24267 # Old archive suffix (normally "a").
24268 libext="$libext"
24269
24270 # Shared library suffix (normally ".so").
24271 shrext_cmds='$shrext_cmds'
24272
24273 # Executable file suffix (normally "").
24274 exeext="$exeext"
24275
24276 # Additional compiler flags for building library objects.
24277 pic_flag=$lt_lt_prog_compiler_pic_RC
24278 pic_mode=$pic_mode
24279
24280 # What is the maximum length of a command?
24281 max_cmd_len=$lt_cv_sys_max_cmd_len
24282
24283 # Does compiler simultaneously support -c and -o options?
24284 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24285
24286 # Must we lock files when doing compilation ?
24287 need_locks=$lt_need_locks
24288
24289 # Do we need the lib prefix for modules?
24290 need_lib_prefix=$need_lib_prefix
24291
24292 # Do we need a version for libraries?
24293 need_version=$need_version
24294
24295 # Whether dlopen is supported.
24296 dlopen_support=$enable_dlopen
24297
24298 # Whether dlopen of programs is supported.
24299 dlopen_self=$enable_dlopen_self
24300
24301 # Whether dlopen of statically linked programs is supported.
24302 dlopen_self_static=$enable_dlopen_self_static
24303
24304 # Compiler flag to prevent dynamic linking.
24305 link_static_flag=$lt_lt_prog_compiler_static_RC
24306
24307 # Compiler flag to turn off builtin functions.
24308 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24309
24310 # Compiler flag to allow reflexive dlopens.
24311 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24312
24313 # Compiler flag to generate shared objects directly from archives.
24314 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24315
24316 # Compiler flag to generate thread-safe objects.
24317 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24318
24319 # Library versioning type.
24320 version_type=$version_type
24321
24322 # Format of library name prefix.
24323 libname_spec=$lt_libname_spec
24324
24325 # List of archive names.  First name is the real one, the rest are links.
24326 # The last name is the one that the linker finds with -lNAME.
24327 library_names_spec=$lt_library_names_spec
24328
24329 # The coded name of the library, if different from the real name.
24330 soname_spec=$lt_soname_spec
24331
24332 # Commands used to build and install an old-style archive.
24333 RANLIB=$lt_RANLIB
24334 old_archive_cmds=$lt_old_archive_cmds_RC
24335 old_postinstall_cmds=$lt_old_postinstall_cmds
24336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24337
24338 # Create an old-style archive from a shared archive.
24339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24340
24341 # Create a temporary old-style archive to link instead of a shared archive.
24342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24343
24344 # Commands used to build and install a shared archive.
24345 archive_cmds=$lt_archive_cmds_RC
24346 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24347 postinstall_cmds=$lt_postinstall_cmds
24348 postuninstall_cmds=$lt_postuninstall_cmds
24349
24350 # Commands used to build a loadable module (assumed same as above if empty)
24351 module_cmds=$lt_module_cmds_RC
24352 module_expsym_cmds=$lt_module_expsym_cmds_RC
24353
24354 # Commands to strip libraries.
24355 old_striplib=$lt_old_striplib
24356 striplib=$lt_striplib
24357
24358 # Dependencies to place before the objects being linked to create a
24359 # shared library.
24360 predep_objects=$lt_predep_objects_RC
24361
24362 # Dependencies to place after the objects being linked to create a
24363 # shared library.
24364 postdep_objects=$lt_postdep_objects_RC
24365
24366 # Dependencies to place before the objects being linked to create a
24367 # shared library.
24368 predeps=$lt_predeps_RC
24369
24370 # Dependencies to place after the objects being linked to create a
24371 # shared library.
24372 postdeps=$lt_postdeps_RC
24373
24374 # The library search path used internally by the compiler when linking
24375 # a shared library.
24376 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24377
24378 # Method to check whether dependent libraries are shared objects.
24379 deplibs_check_method=$lt_deplibs_check_method
24380
24381 # Command to use when deplibs_check_method == file_magic.
24382 file_magic_cmd=$lt_file_magic_cmd
24383
24384 # Flag that allows shared libraries with undefined symbols to be built.
24385 allow_undefined_flag=$lt_allow_undefined_flag_RC
24386
24387 # Flag that forces no undefined symbols.
24388 no_undefined_flag=$lt_no_undefined_flag_RC
24389
24390 # Commands used to finish a libtool library installation in a directory.
24391 finish_cmds=$lt_finish_cmds
24392
24393 # Same as above, but a single script fragment to be evaled but not shown.
24394 finish_eval=$lt_finish_eval
24395
24396 # Take the output of nm and produce a listing of raw symbols and C names.
24397 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24398
24399 # Transform the output of nm in a proper C declaration
24400 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24401
24402 # Transform the output of nm in a C name address pair
24403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24404
24405 # This is the shared library runtime path variable.
24406 runpath_var=$runpath_var
24407
24408 # This is the shared library path variable.
24409 shlibpath_var=$shlibpath_var
24410
24411 # Is shlibpath searched before the hard-coded library search path?
24412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24413
24414 # How to hardcode a shared library path into an executable.
24415 hardcode_action=$hardcode_action_RC
24416
24417 # Whether we should hardcode library paths into libraries.
24418 hardcode_into_libs=$hardcode_into_libs
24419
24420 # Flag to hardcode \$libdir into a binary during linking.
24421 # This must work even if \$libdir does not exist.
24422 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24423
24424 # If ld is used when linking, flag to hardcode \$libdir into
24425 # a binary during linking. This must work even if \$libdir does
24426 # not exist.
24427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24428
24429 # Whether we need a single -rpath flag with a separated argument.
24430 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24431
24432 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24433 # resulting binary.
24434 hardcode_direct=$hardcode_direct_RC
24435
24436 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24437 # resulting binary.
24438 hardcode_minus_L=$hardcode_minus_L_RC
24439
24440 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24441 # the resulting binary.
24442 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24443
24444 # Set to yes if building a shared library automatically hardcodes DIR into the library
24445 # and all subsequent libraries and executables linked against it.
24446 hardcode_automatic=$hardcode_automatic_RC
24447
24448 # Variables whose values should be saved in libtool wrapper scripts and
24449 # restored at relink time.
24450 variables_saved_for_relink="$variables_saved_for_relink"
24451
24452 # Whether libtool must link a program against all its dependency libraries.
24453 link_all_deplibs=$link_all_deplibs_RC
24454
24455 # Compile-time system search path for libraries
24456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24457
24458 # Run-time system search path for libraries
24459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24460
24461 # Fix the shell variable \$srcfile for the compiler.
24462 fix_srcfile_path="$fix_srcfile_path_RC"
24463
24464 # Set to yes if exported symbols are required.
24465 always_export_symbols=$always_export_symbols_RC
24466
24467 # The commands to list exported symbols.
24468 export_symbols_cmds=$lt_export_symbols_cmds_RC
24469
24470 # The commands to extract the exported symbol list from a shared archive.
24471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24472
24473 # Symbols that should not be listed in the preloaded symbols.
24474 exclude_expsyms=$lt_exclude_expsyms_RC
24475
24476 # Symbols that must always be exported.
24477 include_expsyms=$lt_include_expsyms_RC
24478
24479 # ### END LIBTOOL TAG CONFIG: $tagname
24480
24481 __EOF__
24482
24483
24484 else
24485   # If there is no Makefile yet, we rely on a make rule to execute
24486   # `config.status --recheck' to rerun these tests and create the
24487   # libtool script then.
24488   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24489   if test -f "$ltmain_in"; then
24490     test -f Makefile && make "$ltmain"
24491   fi
24492 fi
24493
24494
24495 ac_ext=c
24496 ac_cpp='$CPP $CPPFLAGS'
24497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24500
24501 CC="$lt_save_CC"
24502
24503         ;;
24504
24505       *)
24506         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24507 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24508    { (exit 1); exit 1; }; }
24509         ;;
24510       esac
24511
24512       # Append the new tag name to the list of available tags.
24513       if test -n "$tagname" ; then
24514       available_tags="$available_tags $tagname"
24515     fi
24516     fi
24517   done
24518   IFS="$lt_save_ifs"
24519
24520   # Now substitute the updated list of available tags.
24521   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24522     mv "${ofile}T" "$ofile"
24523     chmod +x "$ofile"
24524   else
24525     rm -f "${ofile}T"
24526     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24527 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24528    { (exit 1); exit 1; }; }
24529   fi
24530 fi
24531
24532
24533
24534 # This can be used to rebuild libtool when needed
24535 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24536
24537 # Always use our own libtool.
24538 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24539
24540 # Prevent multiple expansion
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562 if test "$lt_cv_dlopen_self" = "yes" ; then
24563
24564 cat >>confdefs.h <<\_ACEOF
24565 #define CAN_DLOPEN_SELF 1
24566 _ACEOF
24567
24568 fi
24569
24570 etags_version=`$ETAGS --version 2>&1`
24571 case "$etags_version" in
24572         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24573         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24574         *) ETAGSFLAGS="" ;;
24575 esac
24576 ETAGSFLAGS=$ETAGSFLAGS
24577
24578
24579 if test "$WITH_LLVMGCCDIR" = "default" ; then
24580   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24581 set dummy llvm-gcc; ac_word=$2
24582 echo "$as_me:$LINENO: checking for $ac_word" >&5
24583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24584 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24585   echo $ECHO_N "(cached) $ECHO_C" >&6
24586 else
24587   case $LLVMGCC in
24588   [\\/]* | ?:[\\/]*)
24589   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24590   ;;
24591   *)
24592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24593 for as_dir in $PATH
24594 do
24595   IFS=$as_save_IFS
24596   test -z "$as_dir" && as_dir=.
24597   for ac_exec_ext in '' $ac_executable_extensions; do
24598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24599     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24601     break 2
24602   fi
24603 done
24604 done
24605
24606   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24607   ;;
24608 esac
24609 fi
24610 LLVMGCC=$ac_cv_path_LLVMGCC
24611
24612 if test -n "$LLVMGCC"; then
24613   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24614 echo "${ECHO_T}$LLVMGCC" >&6
24615 else
24616   echo "$as_me:$LINENO: result: no" >&5
24617 echo "${ECHO_T}no" >&6
24618 fi
24619
24620   # Extract the first word of "llvm-g++", so it can be a program name with args.
24621 set dummy llvm-g++; ac_word=$2
24622 echo "$as_me:$LINENO: checking for $ac_word" >&5
24623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24624 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24625   echo $ECHO_N "(cached) $ECHO_C" >&6
24626 else
24627   case $LLVMGXX in
24628   [\\/]* | ?:[\\/]*)
24629   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24630   ;;
24631   *)
24632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24633 for as_dir in $PATH
24634 do
24635   IFS=$as_save_IFS
24636   test -z "$as_dir" && as_dir=.
24637   for ac_exec_ext in '' $ac_executable_extensions; do
24638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24639     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24641     break 2
24642   fi
24643 done
24644 done
24645
24646   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24647   ;;
24648 esac
24649 fi
24650 LLVMGXX=$ac_cv_path_LLVMGXX
24651
24652 if test -n "$LLVMGXX"; then
24653   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24654 echo "${ECHO_T}$LLVMGXX" >&6
24655 else
24656   echo "$as_me:$LINENO: result: no" >&5
24657 echo "${ECHO_T}no" >&6
24658 fi
24659
24660 else
24661   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24662   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24663   LLVMGCC=$LLVMGCC
24664
24665   LLVMGXX=$LLVMGXX
24666
24667 fi
24668
24669 echo "$as_me:$LINENO: checking tool compatibility" >&5
24670 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24671
24672 ICC=no
24673 IXX=no
24674 case $CC in
24675   icc*|icpc*)
24676     ICC=yes
24677     IXX=yes
24678     ;;
24679    *)
24680     ;;
24681 esac
24682
24683 if test "$GCC" != "yes" && test "$ICC" != "yes"
24684 then
24685   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24686 echo "$as_me: error: gcc|icc required but not found" >&2;}
24687    { (exit 1); exit 1; }; }
24688 fi
24689
24690 if test "$GXX" != "yes" && test "$IXX" != "yes"
24691 then
24692   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24693 echo "$as_me: error: g++|icc required but not found" >&2;}
24694    { (exit 1); exit 1; }; }
24695 fi
24696
24697 if test "$GCC" = "yes"
24698 then
24699   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24700   if test "$gccmajor" -lt "3"
24701   then
24702     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24703 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24704    { (exit 1); exit 1; }; }
24705   fi
24706 fi
24707
24708 if test -z "$llvm_cv_gnu_make_command"
24709 then
24710   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24711 echo "$as_me: error: GNU Make required but not found" >&2;}
24712    { (exit 1); exit 1; }; }
24713 fi
24714
24715 echo "$as_me:$LINENO: result: ok" >&5
24716 echo "${ECHO_T}ok" >&6
24717
24718
24719
24720 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24721 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24722 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24723   echo $ECHO_N "(cached) $ECHO_C" >&6
24724 else
24725   ac_check_lib_save_LIBS=$LIBS
24726 LIBS="-lelf  $LIBS"
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h.  */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h.  */
24733
24734 /* Override any gcc2 internal prototype to avoid an error.  */
24735 #ifdef __cplusplus
24736 extern "C"
24737 #endif
24738 /* We use char because int might match the return type of a gcc2
24739    builtin and then its argument prototype would still apply.  */
24740 char elf_begin ();
24741 int
24742 main ()
24743 {
24744 elf_begin ();
24745   ;
24746   return 0;
24747 }
24748 _ACEOF
24749 rm -f conftest.$ac_objext conftest$ac_exeext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24751   (eval $ac_link) 2>conftest.er1
24752   ac_status=$?
24753   grep -v '^ *+' conftest.er1 >conftest.err
24754   rm -f conftest.er1
24755   cat conftest.err >&5
24756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); } &&
24758          { ac_try='test -z "$ac_c_werror_flag"
24759                          || test ! -s conftest.err'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; } &&
24765          { ac_try='test -s conftest$ac_exeext'
24766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767   (eval $ac_try) 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; }; then
24771   ac_cv_lib_elf_elf_begin=yes
24772 else
24773   echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776 ac_cv_lib_elf_elf_begin=no
24777 fi
24778 rm -f conftest.err conftest.$ac_objext \
24779       conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24781 fi
24782 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24783 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24784 if test $ac_cv_lib_elf_elf_begin = yes; then
24785   cat >>confdefs.h <<_ACEOF
24786 #define HAVE_LIBELF 1
24787 _ACEOF
24788
24789   LIBS="-lelf $LIBS"
24790
24791 fi
24792
24793
24794 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24795 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24796 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24797   echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799   ac_func_search_save_LIBS=$LIBS
24800 ac_cv_search_lt_dlopen=no
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807
24808 /* Override any gcc2 internal prototype to avoid an error.  */
24809 #ifdef __cplusplus
24810 extern "C"
24811 #endif
24812 /* We use char because int might match the return type of a gcc2
24813    builtin and then its argument prototype would still apply.  */
24814 char lt_dlopen ();
24815 int
24816 main ()
24817 {
24818 lt_dlopen ();
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825   (eval $ac_link) 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } &&
24832          { ac_try='test -z "$ac_c_werror_flag"
24833                          || test ! -s conftest.err'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; } &&
24839          { ac_try='test -s conftest$ac_exeext'
24840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841   (eval $ac_try) 2>&5
24842   ac_status=$?
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); }; }; then
24845   ac_cv_search_lt_dlopen="none required"
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850 fi
24851 rm -f conftest.err conftest.$ac_objext \
24852       conftest$ac_exeext conftest.$ac_ext
24853 if test "$ac_cv_search_lt_dlopen" = no; then
24854   for ac_lib in ltdl; do
24855     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24856     cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862
24863 /* Override any gcc2 internal prototype to avoid an error.  */
24864 #ifdef __cplusplus
24865 extern "C"
24866 #endif
24867 /* We use char because int might match the return type of a gcc2
24868    builtin and then its argument prototype would still apply.  */
24869 char lt_dlopen ();
24870 int
24871 main ()
24872 {
24873 lt_dlopen ();
24874   ;
24875   return 0;
24876 }
24877 _ACEOF
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880   (eval $ac_link) 2>conftest.er1
24881   ac_status=$?
24882   grep -v '^ *+' conftest.er1 >conftest.err
24883   rm -f conftest.er1
24884   cat conftest.err >&5
24885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886   (exit $ac_status); } &&
24887          { ac_try='test -z "$ac_c_werror_flag"
24888                          || test ! -s conftest.err'
24889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890   (eval $ac_try) 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; } &&
24894          { ac_try='test -s conftest$ac_exeext'
24895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896   (eval $ac_try) 2>&5
24897   ac_status=$?
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); }; }; then
24900   ac_cv_search_lt_dlopen="-l$ac_lib"
24901 break
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906 fi
24907 rm -f conftest.err conftest.$ac_objext \
24908       conftest$ac_exeext conftest.$ac_ext
24909   done
24910 fi
24911 LIBS=$ac_func_search_save_LIBS
24912 fi
24913 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24914 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24915 if test "$ac_cv_search_lt_dlopen" != no; then
24916   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24917
24918 cat >>confdefs.h <<\_ACEOF
24919 #define HAVE_LT_DLOPEN 1
24920 _ACEOF
24921
24922 else
24923   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24924                            not be available" >&5
24925 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24926                            not be available" >&2;}
24927 fi
24928
24929
24930 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24931 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24932 if test "${ac_cv_search_dlopen+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   ac_func_search_save_LIBS=$LIBS
24936 ac_cv_search_dlopen=no
24937 cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943
24944 /* Override any gcc2 internal prototype to avoid an error.  */
24945 #ifdef __cplusplus
24946 extern "C"
24947 #endif
24948 /* We use char because int might match the return type of a gcc2
24949    builtin and then its argument prototype would still apply.  */
24950 char dlopen ();
24951 int
24952 main ()
24953 {
24954 dlopen ();
24955   ;
24956   return 0;
24957 }
24958 _ACEOF
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961   (eval $ac_link) 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } &&
24968          { ac_try='test -z "$ac_c_werror_flag"
24969                          || test ! -s conftest.err'
24970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971   (eval $ac_try) 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); }; } &&
24975          { ac_try='test -s conftest$ac_exeext'
24976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977   (eval $ac_try) 2>&5
24978   ac_status=$?
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); }; }; then
24981   ac_cv_search_dlopen="none required"
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986 fi
24987 rm -f conftest.err conftest.$ac_objext \
24988       conftest$ac_exeext conftest.$ac_ext
24989 if test "$ac_cv_search_dlopen" = no; then
24990   for ac_lib in dl; do
24991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24992     cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998
24999 /* Override any gcc2 internal prototype to avoid an error.  */
25000 #ifdef __cplusplus
25001 extern "C"
25002 #endif
25003 /* We use char because int might match the return type of a gcc2
25004    builtin and then its argument prototype would still apply.  */
25005 char dlopen ();
25006 int
25007 main ()
25008 {
25009 dlopen ();
25010   ;
25011   return 0;
25012 }
25013 _ACEOF
25014 rm -f conftest.$ac_objext conftest$ac_exeext
25015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25016   (eval $ac_link) 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } &&
25023          { ac_try='test -z "$ac_c_werror_flag"
25024                          || test ! -s conftest.err'
25025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); }; } &&
25030          { ac_try='test -s conftest$ac_exeext'
25031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032   (eval $ac_try) 2>&5
25033   ac_status=$?
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); }; }; then
25036   ac_cv_search_dlopen="-l$ac_lib"
25037 break
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 fi
25043 rm -f conftest.err conftest.$ac_objext \
25044       conftest$ac_exeext conftest.$ac_ext
25045   done
25046 fi
25047 LIBS=$ac_func_search_save_LIBS
25048 fi
25049 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25050 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25051 if test "$ac_cv_search_dlopen" != no; then
25052   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25053
25054 cat >>confdefs.h <<\_ACEOF
25055 #define HAVE_DLOPEN 1
25056 _ACEOF
25057
25058 else
25059   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25060 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25061 fi
25062
25063
25064 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25065 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25066 if test "${ac_cv_search_mallinfo+set}" = set; then
25067   echo $ECHO_N "(cached) $ECHO_C" >&6
25068 else
25069   ac_func_search_save_LIBS=$LIBS
25070 ac_cv_search_mallinfo=no
25071 cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h.  */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h.  */
25077
25078 /* Override any gcc2 internal prototype to avoid an error.  */
25079 #ifdef __cplusplus
25080 extern "C"
25081 #endif
25082 /* We use char because int might match the return type of a gcc2
25083    builtin and then its argument prototype would still apply.  */
25084 char mallinfo ();
25085 int
25086 main ()
25087 {
25088 mallinfo ();
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095   (eval $ac_link) 2>conftest.er1
25096   ac_status=$?
25097   grep -v '^ *+' conftest.er1 >conftest.err
25098   rm -f conftest.er1
25099   cat conftest.err >&5
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); } &&
25102          { ac_try='test -z "$ac_c_werror_flag"
25103                          || test ! -s conftest.err'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; } &&
25109          { ac_try='test -s conftest$ac_exeext'
25110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111   (eval $ac_try) 2>&5
25112   ac_status=$?
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); }; }; then
25115   ac_cv_search_mallinfo="none required"
25116 else
25117   echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25119
25120 fi
25121 rm -f conftest.err conftest.$ac_objext \
25122       conftest$ac_exeext conftest.$ac_ext
25123 if test "$ac_cv_search_mallinfo" = no; then
25124   for ac_lib in malloc; do
25125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25126     cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132
25133 /* Override any gcc2 internal prototype to avoid an error.  */
25134 #ifdef __cplusplus
25135 extern "C"
25136 #endif
25137 /* We use char because int might match the return type of a gcc2
25138    builtin and then its argument prototype would still apply.  */
25139 char mallinfo ();
25140 int
25141 main ()
25142 {
25143 mallinfo ();
25144   ;
25145   return 0;
25146 }
25147 _ACEOF
25148 rm -f conftest.$ac_objext conftest$ac_exeext
25149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25150   (eval $ac_link) 2>conftest.er1
25151   ac_status=$?
25152   grep -v '^ *+' conftest.er1 >conftest.err
25153   rm -f conftest.er1
25154   cat conftest.err >&5
25155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156   (exit $ac_status); } &&
25157          { ac_try='test -z "$ac_c_werror_flag"
25158                          || test ! -s conftest.err'
25159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160   (eval $ac_try) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); }; } &&
25164          { ac_try='test -s conftest$ac_exeext'
25165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166   (eval $ac_try) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; }; then
25170   ac_cv_search_mallinfo="-l$ac_lib"
25171 break
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176 fi
25177 rm -f conftest.err conftest.$ac_objext \
25178       conftest$ac_exeext conftest.$ac_ext
25179   done
25180 fi
25181 LIBS=$ac_func_search_save_LIBS
25182 fi
25183 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25184 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25185 if test "$ac_cv_search_mallinfo" != no; then
25186   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25187
25188 cat >>confdefs.h <<\_ACEOF
25189 #define HAVE_MALLINFO 1
25190 _ACEOF
25191
25192 fi
25193
25194
25195 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25196 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25197 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25198   echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200   ac_func_search_save_LIBS=$LIBS
25201 ac_cv_search_pthread_mutex_lock=no
25202 cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h.  */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h.  */
25208
25209 /* Override any gcc2 internal prototype to avoid an error.  */
25210 #ifdef __cplusplus
25211 extern "C"
25212 #endif
25213 /* We use char because int might match the return type of a gcc2
25214    builtin and then its argument prototype would still apply.  */
25215 char pthread_mutex_lock ();
25216 int
25217 main ()
25218 {
25219 pthread_mutex_lock ();
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 rm -f conftest.$ac_objext conftest$ac_exeext
25225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25226   (eval $ac_link) 2>conftest.er1
25227   ac_status=$?
25228   grep -v '^ *+' conftest.er1 >conftest.err
25229   rm -f conftest.er1
25230   cat conftest.err >&5
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); } &&
25233          { ac_try='test -z "$ac_c_werror_flag"
25234                          || test ! -s conftest.err'
25235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236   (eval $ac_try) 2>&5
25237   ac_status=$?
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); }; } &&
25240          { ac_try='test -s conftest$ac_exeext'
25241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; }; then
25246   ac_cv_search_pthread_mutex_lock="none required"
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251 fi
25252 rm -f conftest.err conftest.$ac_objext \
25253       conftest$ac_exeext conftest.$ac_ext
25254 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25255   for ac_lib in pthread; do
25256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25257     cat >conftest.$ac_ext <<_ACEOF
25258 /* confdefs.h.  */
25259 _ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h.  */
25263
25264 /* Override any gcc2 internal prototype to avoid an error.  */
25265 #ifdef __cplusplus
25266 extern "C"
25267 #endif
25268 /* We use char because int might match the return type of a gcc2
25269    builtin and then its argument prototype would still apply.  */
25270 char pthread_mutex_lock ();
25271 int
25272 main ()
25273 {
25274 pthread_mutex_lock ();
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281   (eval $ac_link) 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_exeext'
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_search_pthread_mutex_lock="-l$ac_lib"
25302 break
25303 else
25304   echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307 fi
25308 rm -f conftest.err conftest.$ac_objext \
25309       conftest$ac_exeext conftest.$ac_ext
25310   done
25311 fi
25312 LIBS=$ac_func_search_save_LIBS
25313 fi
25314 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25315 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25316 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25317   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25318
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_PTHREAD_MUTEX_LOCK 1
25321 _ACEOF
25322
25323 fi
25324
25325
25326
25327
25328
25329
25330
25331
25332 ac_header_dirent=no
25333 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25334   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25335 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25336 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25338   echo $ECHO_N "(cached) $ECHO_C" >&6
25339 else
25340   cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 #include <sys/types.h>
25347 #include <$ac_hdr>
25348
25349 int
25350 main ()
25351 {
25352 if ((DIR *) 0)
25353 return 0;
25354   ;
25355   return 0;
25356 }
25357 _ACEOF
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360   (eval $ac_compile) 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } &&
25367          { ac_try='test -z "$ac_c_werror_flag"
25368                          || test ! -s conftest.err'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; } &&
25374          { ac_try='test -s conftest.$ac_objext'
25375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376   (eval $ac_try) 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); }; }; then
25380   eval "$as_ac_Header=yes"
25381 else
25382   echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25384
25385 eval "$as_ac_Header=no"
25386 fi
25387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25388 fi
25389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25392   cat >>confdefs.h <<_ACEOF
25393 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25394 _ACEOF
25395
25396 ac_header_dirent=$ac_hdr; break
25397 fi
25398
25399 done
25400 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25401 if test $ac_header_dirent = dirent.h; then
25402   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25403 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25404 if test "${ac_cv_search_opendir+set}" = set; then
25405   echo $ECHO_N "(cached) $ECHO_C" >&6
25406 else
25407   ac_func_search_save_LIBS=$LIBS
25408 ac_cv_search_opendir=no
25409 cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h.  */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h.  */
25415
25416 /* Override any gcc2 internal prototype to avoid an error.  */
25417 #ifdef __cplusplus
25418 extern "C"
25419 #endif
25420 /* We use char because int might match the return type of a gcc2
25421    builtin and then its argument prototype would still apply.  */
25422 char opendir ();
25423 int
25424 main ()
25425 {
25426 opendir ();
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25433   (eval $ac_link) 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } &&
25440          { ac_try='test -z "$ac_c_werror_flag"
25441                          || test ! -s conftest.err'
25442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443   (eval $ac_try) 2>&5
25444   ac_status=$?
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); }; } &&
25447          { ac_try='test -s conftest$ac_exeext'
25448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449   (eval $ac_try) 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; }; then
25453   ac_cv_search_opendir="none required"
25454 else
25455   echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458 fi
25459 rm -f conftest.err conftest.$ac_objext \
25460       conftest$ac_exeext conftest.$ac_ext
25461 if test "$ac_cv_search_opendir" = no; then
25462   for ac_lib in dir; do
25463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25464     cat >conftest.$ac_ext <<_ACEOF
25465 /* confdefs.h.  */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h.  */
25470
25471 /* Override any gcc2 internal prototype to avoid an error.  */
25472 #ifdef __cplusplus
25473 extern "C"
25474 #endif
25475 /* We use char because int might match the return type of a gcc2
25476    builtin and then its argument prototype would still apply.  */
25477 char opendir ();
25478 int
25479 main ()
25480 {
25481 opendir ();
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest.$ac_objext conftest$ac_exeext
25487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488   (eval $ac_link) 2>conftest.er1
25489   ac_status=$?
25490   grep -v '^ *+' conftest.er1 >conftest.err
25491   rm -f conftest.er1
25492   cat conftest.err >&5
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } &&
25495          { ac_try='test -z "$ac_c_werror_flag"
25496                          || test ! -s conftest.err'
25497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498   (eval $ac_try) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); }; } &&
25502          { ac_try='test -s conftest$ac_exeext'
25503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25504   (eval $ac_try) 2>&5
25505   ac_status=$?
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); }; }; then
25508   ac_cv_search_opendir="-l$ac_lib"
25509 break
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514 fi
25515 rm -f conftest.err conftest.$ac_objext \
25516       conftest$ac_exeext conftest.$ac_ext
25517   done
25518 fi
25519 LIBS=$ac_func_search_save_LIBS
25520 fi
25521 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25522 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25523 if test "$ac_cv_search_opendir" != no; then
25524   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25525
25526 fi
25527
25528 else
25529   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25531 if test "${ac_cv_search_opendir+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   ac_func_search_save_LIBS=$LIBS
25535 ac_cv_search_opendir=no
25536 cat >conftest.$ac_ext <<_ACEOF
25537 /* confdefs.h.  */
25538 _ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h.  */
25542
25543 /* Override any gcc2 internal prototype to avoid an error.  */
25544 #ifdef __cplusplus
25545 extern "C"
25546 #endif
25547 /* We use char because int might match the return type of a gcc2
25548    builtin and then its argument prototype would still apply.  */
25549 char opendir ();
25550 int
25551 main ()
25552 {
25553 opendir ();
25554   ;
25555   return 0;
25556 }
25557 _ACEOF
25558 rm -f conftest.$ac_objext conftest$ac_exeext
25559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25560   (eval $ac_link) 2>conftest.er1
25561   ac_status=$?
25562   grep -v '^ *+' conftest.er1 >conftest.err
25563   rm -f conftest.er1
25564   cat conftest.err >&5
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); } &&
25567          { ac_try='test -z "$ac_c_werror_flag"
25568                          || test ! -s conftest.err'
25569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570   (eval $ac_try) 2>&5
25571   ac_status=$?
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); }; } &&
25574          { ac_try='test -s conftest$ac_exeext'
25575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576   (eval $ac_try) 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; }; then
25580   ac_cv_search_opendir="none required"
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585 fi
25586 rm -f conftest.err conftest.$ac_objext \
25587       conftest$ac_exeext conftest.$ac_ext
25588 if test "$ac_cv_search_opendir" = no; then
25589   for ac_lib in x; do
25590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25591     cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h.  */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h.  */
25597
25598 /* Override any gcc2 internal prototype to avoid an error.  */
25599 #ifdef __cplusplus
25600 extern "C"
25601 #endif
25602 /* We use char because int might match the return type of a gcc2
25603    builtin and then its argument prototype would still apply.  */
25604 char opendir ();
25605 int
25606 main ()
25607 {
25608 opendir ();
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25615   (eval $ac_link) 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } &&
25622          { ac_try='test -z "$ac_c_werror_flag"
25623                          || test ! -s conftest.err'
25624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625   (eval $ac_try) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; } &&
25629          { ac_try='test -s conftest$ac_exeext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_cv_search_opendir="-l$ac_lib"
25636 break
25637 else
25638   echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25640
25641 fi
25642 rm -f conftest.err conftest.$ac_objext \
25643       conftest$ac_exeext conftest.$ac_ext
25644   done
25645 fi
25646 LIBS=$ac_func_search_save_LIBS
25647 fi
25648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25650 if test "$ac_cv_search_opendir" != no; then
25651   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25652
25653 fi
25654
25655 fi
25656
25657 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25658 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25659 if test "${ac_cv_header_mmap_anon+set}" = set; then
25660   echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662    ac_ext=c
25663 ac_cpp='$CPP $CPPFLAGS'
25664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25667
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 #include <sys/mman.h>
25675 #include <unistd.h>
25676 #include <fcntl.h>
25677 int
25678 main ()
25679 {
25680 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687   (eval $ac_compile) 2>conftest.er1
25688   ac_status=$?
25689   grep -v '^ *+' conftest.er1 >conftest.err
25690   rm -f conftest.er1
25691   cat conftest.err >&5
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); } &&
25694          { ac_try='test -z "$ac_c_werror_flag"
25695                          || test ! -s conftest.err'
25696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697   (eval $ac_try) 2>&5
25698   ac_status=$?
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); }; } &&
25701          { ac_try='test -s conftest.$ac_objext'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   ac_cv_header_mmap_anon=yes
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 ac_cv_header_mmap_anon=no
25713 fi
25714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715   ac_ext=c
25716 ac_cpp='$CPP $CPPFLAGS'
25717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25720
25721
25722 fi
25723 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25724 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25725 if test "$ac_cv_header_mmap_anon" = yes; then
25726
25727 cat >>confdefs.h <<\_ACEOF
25728 #define HAVE_MMAP_ANONYMOUS 1
25729 _ACEOF
25730
25731 fi
25732
25733 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25734 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25735 if test "${ac_cv_header_stat_broken+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   cat >conftest.$ac_ext <<_ACEOF
25739 /* confdefs.h.  */
25740 _ACEOF
25741 cat confdefs.h >>conftest.$ac_ext
25742 cat >>conftest.$ac_ext <<_ACEOF
25743 /* end confdefs.h.  */
25744 #include <sys/types.h>
25745 #include <sys/stat.h>
25746
25747 #if defined(S_ISBLK) && defined(S_IFDIR)
25748 # if S_ISBLK (S_IFDIR)
25749 You lose.
25750 # endif
25751 #endif
25752
25753 #if defined(S_ISBLK) && defined(S_IFCHR)
25754 # if S_ISBLK (S_IFCHR)
25755 You lose.
25756 # endif
25757 #endif
25758
25759 #if defined(S_ISLNK) && defined(S_IFREG)
25760 # if S_ISLNK (S_IFREG)
25761 You lose.
25762 # endif
25763 #endif
25764
25765 #if defined(S_ISSOCK) && defined(S_IFREG)
25766 # if S_ISSOCK (S_IFREG)
25767 You lose.
25768 # endif
25769 #endif
25770
25771 _ACEOF
25772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25773   $EGREP "You lose" >/dev/null 2>&1; then
25774   ac_cv_header_stat_broken=yes
25775 else
25776   ac_cv_header_stat_broken=no
25777 fi
25778 rm -f conftest*
25779
25780 fi
25781 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25782 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25783 if test $ac_cv_header_stat_broken = yes; then
25784
25785 cat >>confdefs.h <<\_ACEOF
25786 #define STAT_MACROS_BROKEN 1
25787 _ACEOF
25788
25789 fi
25790
25791 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25792 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25793 if test "${ac_cv_header_stdc+set}" = set; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796   cat >conftest.$ac_ext <<_ACEOF
25797 /* confdefs.h.  */
25798 _ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h.  */
25802 #include <stdlib.h>
25803 #include <stdarg.h>
25804 #include <string.h>
25805 #include <float.h>
25806
25807 int
25808 main ()
25809 {
25810
25811   ;
25812   return 0;
25813 }
25814 _ACEOF
25815 rm -f conftest.$ac_objext
25816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25817   (eval $ac_compile) 2>conftest.er1
25818   ac_status=$?
25819   grep -v '^ *+' conftest.er1 >conftest.err
25820   rm -f conftest.er1
25821   cat conftest.err >&5
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } &&
25824          { ac_try='test -z "$ac_c_werror_flag"
25825                          || test ! -s conftest.err'
25826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827   (eval $ac_try) 2>&5
25828   ac_status=$?
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); }; } &&
25831          { ac_try='test -s conftest.$ac_objext'
25832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833   (eval $ac_try) 2>&5
25834   ac_status=$?
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); }; }; then
25837   ac_cv_header_stdc=yes
25838 else
25839   echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25841
25842 ac_cv_header_stdc=no
25843 fi
25844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25845
25846 if test $ac_cv_header_stdc = yes; then
25847   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25848   cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 #include <string.h>
25855
25856 _ACEOF
25857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25858   $EGREP "memchr" >/dev/null 2>&1; then
25859   :
25860 else
25861   ac_cv_header_stdc=no
25862 fi
25863 rm -f conftest*
25864
25865 fi
25866
25867 if test $ac_cv_header_stdc = yes; then
25868   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25869   cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875 #include <stdlib.h>
25876
25877 _ACEOF
25878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25879   $EGREP "free" >/dev/null 2>&1; then
25880   :
25881 else
25882   ac_cv_header_stdc=no
25883 fi
25884 rm -f conftest*
25885
25886 fi
25887
25888 if test $ac_cv_header_stdc = yes; then
25889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25890   if test "$cross_compiling" = yes; then
25891   :
25892 else
25893   cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h.  */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h.  */
25899 #include <ctype.h>
25900 #if ((' ' & 0x0FF) == 0x020)
25901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25903 #else
25904 # define ISLOWER(c) \
25905                    (('a' <= (c) && (c) <= 'i') \
25906                      || ('j' <= (c) && (c) <= 'r') \
25907                      || ('s' <= (c) && (c) <= 'z'))
25908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25909 #endif
25910
25911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25912 int
25913 main ()
25914 {
25915   int i;
25916   for (i = 0; i < 256; i++)
25917     if (XOR (islower (i), ISLOWER (i))
25918         || toupper (i) != TOUPPER (i))
25919       exit(2);
25920   exit (0);
25921 }
25922 _ACEOF
25923 rm -f conftest$ac_exeext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925   (eval $ac_link) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930   (eval $ac_try) 2>&5
25931   ac_status=$?
25932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); }; }; then
25934   :
25935 else
25936   echo "$as_me: program exited with status $ac_status" >&5
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940 ( exit $ac_status )
25941 ac_cv_header_stdc=no
25942 fi
25943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25944 fi
25945 fi
25946 fi
25947 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25949 if test $ac_cv_header_stdc = yes; then
25950
25951 cat >>confdefs.h <<\_ACEOF
25952 #define STDC_HEADERS 1
25953 _ACEOF
25954
25955 fi
25956
25957 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25958 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25959 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 #include <sys/types.h>
25969 #include <sys/wait.h>
25970 #ifndef WEXITSTATUS
25971 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25972 #endif
25973 #ifndef WIFEXITED
25974 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25975 #endif
25976
25977 int
25978 main ()
25979 {
25980   int s;
25981   wait (&s);
25982   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25983   ;
25984   return 0;
25985 }
25986 _ACEOF
25987 rm -f conftest.$ac_objext
25988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25989   (eval $ac_compile) 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } &&
25996          { ac_try='test -z "$ac_c_werror_flag"
25997                          || test ! -s conftest.err'
25998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999   (eval $ac_try) 2>&5
26000   ac_status=$?
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); }; } &&
26003          { ac_try='test -s conftest.$ac_objext'
26004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005   (eval $ac_try) 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; }; then
26009   ac_cv_header_sys_wait_h=yes
26010 else
26011   echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014 ac_cv_header_sys_wait_h=no
26015 fi
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017 fi
26018 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26019 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26020 if test $ac_cv_header_sys_wait_h = yes; then
26021
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_SYS_WAIT_H 1
26024 _ACEOF
26025
26026 fi
26027
26028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26030 if test "${ac_cv_header_time+set}" = set; then
26031   echo $ECHO_N "(cached) $ECHO_C" >&6
26032 else
26033   cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <sys/types.h>
26040 #include <sys/time.h>
26041 #include <time.h>
26042
26043 int
26044 main ()
26045 {
26046 if ((struct tm *) 0)
26047 return 0;
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 rm -f conftest.$ac_objext
26053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26054   (eval $ac_compile) 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } &&
26061          { ac_try='test -z "$ac_c_werror_flag"
26062                          || test ! -s conftest.err'
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); }; } &&
26068          { ac_try='test -s conftest.$ac_objext'
26069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070   (eval $ac_try) 2>&5
26071   ac_status=$?
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); }; }; then
26074   ac_cv_header_time=yes
26075 else
26076   echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26078
26079 ac_cv_header_time=no
26080 fi
26081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26082 fi
26083 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26084 echo "${ECHO_T}$ac_cv_header_time" >&6
26085 if test $ac_cv_header_time = yes; then
26086
26087 cat >>confdefs.h <<\_ACEOF
26088 #define TIME_WITH_SYS_TIME 1
26089 _ACEOF
26090
26091 fi
26092
26093
26094
26095
26096
26097
26098
26099
26100 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26101 do
26102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104   echo "$as_me:$LINENO: checking for $ac_header" >&5
26105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26107   echo $ECHO_N "(cached) $ECHO_C" >&6
26108 fi
26109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26111 else
26112   # Is the header compilable?
26113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 #include <$ac_header>
26123 _ACEOF
26124 rm -f conftest.$ac_objext
26125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26126   (eval $ac_compile) 2>conftest.er1
26127   ac_status=$?
26128   grep -v '^ *+' conftest.er1 >conftest.err
26129   rm -f conftest.er1
26130   cat conftest.err >&5
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } &&
26133          { ac_try='test -z "$ac_c_werror_flag"
26134                          || test ! -s conftest.err'
26135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136   (eval $ac_try) 2>&5
26137   ac_status=$?
26138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139   (exit $ac_status); }; } &&
26140          { ac_try='test -s conftest.$ac_objext'
26141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142   (eval $ac_try) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); }; }; then
26146   ac_header_compiler=yes
26147 else
26148   echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26150
26151 ac_header_compiler=no
26152 fi
26153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26155 echo "${ECHO_T}$ac_header_compiler" >&6
26156
26157 # Is the header present?
26158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26160 cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166 #include <$ac_header>
26167 _ACEOF
26168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } >/dev/null; then
26176   if test -s conftest.err; then
26177     ac_cpp_err=$ac_c_preproc_warn_flag
26178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26179   else
26180     ac_cpp_err=
26181   fi
26182 else
26183   ac_cpp_err=yes
26184 fi
26185 if test -z "$ac_cpp_err"; then
26186   ac_header_preproc=yes
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191   ac_header_preproc=no
26192 fi
26193 rm -f conftest.err conftest.$ac_ext
26194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26195 echo "${ECHO_T}$ac_header_preproc" >&6
26196
26197 # So?  What about this header?
26198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26199   yes:no: )
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26204     ac_header_preproc=yes
26205     ;;
26206   no:yes:* )
26207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26219     (
26220       cat <<\_ASBOX
26221 ## ----------------------------------- ##
26222 ## Report this to llvmbugs@cs.uiuc.edu ##
26223 ## ----------------------------------- ##
26224 _ASBOX
26225     ) |
26226       sed "s/^/$as_me: WARNING:     /" >&2
26227     ;;
26228 esac
26229 echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   eval "$as_ac_Header=\$ac_header_preproc"
26235 fi
26236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26238
26239 fi
26240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26241   cat >>confdefs.h <<_ACEOF
26242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26243 _ACEOF
26244
26245 fi
26246
26247 done
26248
26249
26250
26251
26252
26253
26254
26255 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26256 do
26257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26259   echo "$as_me:$LINENO: checking for $ac_header" >&5
26260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 fi
26264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26266 else
26267   # Is the header compilable?
26268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276 $ac_includes_default
26277 #include <$ac_header>
26278 _ACEOF
26279 rm -f conftest.$ac_objext
26280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26281   (eval $ac_compile) 2>conftest.er1
26282   ac_status=$?
26283   grep -v '^ *+' conftest.er1 >conftest.err
26284   rm -f conftest.er1
26285   cat conftest.err >&5
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); } &&
26288          { ac_try='test -z "$ac_c_werror_flag"
26289                          || test ! -s conftest.err'
26290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291   (eval $ac_try) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; } &&
26295          { ac_try='test -s conftest.$ac_objext'
26296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297   (eval $ac_try) 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; }; then
26301   ac_header_compiler=yes
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26305
26306 ac_header_compiler=no
26307 fi
26308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26310 echo "${ECHO_T}$ac_header_compiler" >&6
26311
26312 # Is the header present?
26313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321 #include <$ac_header>
26322 _ACEOF
26323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26325   ac_status=$?
26326   grep -v '^ *+' conftest.er1 >conftest.err
26327   rm -f conftest.er1
26328   cat conftest.err >&5
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); } >/dev/null; then
26331   if test -s conftest.err; then
26332     ac_cpp_err=$ac_c_preproc_warn_flag
26333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26334   else
26335     ac_cpp_err=
26336   fi
26337 else
26338   ac_cpp_err=yes
26339 fi
26340 if test -z "$ac_cpp_err"; then
26341   ac_header_preproc=yes
26342 else
26343   echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26345
26346   ac_header_preproc=no
26347 fi
26348 rm -f conftest.err conftest.$ac_ext
26349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26350 echo "${ECHO_T}$ac_header_preproc" >&6
26351
26352 # So?  What about this header?
26353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26354   yes:no: )
26355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26359     ac_header_preproc=yes
26360     ;;
26361   no:yes:* )
26362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26374     (
26375       cat <<\_ASBOX
26376 ## ----------------------------------- ##
26377 ## Report this to llvmbugs@cs.uiuc.edu ##
26378 ## ----------------------------------- ##
26379 _ASBOX
26380     ) |
26381       sed "s/^/$as_me: WARNING:     /" >&2
26382     ;;
26383 esac
26384 echo "$as_me:$LINENO: checking for $ac_header" >&5
26385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26387   echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389   eval "$as_ac_Header=\$ac_header_preproc"
26390 fi
26391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26393
26394 fi
26395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26396   cat >>confdefs.h <<_ACEOF
26397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26398 _ACEOF
26399
26400 fi
26401
26402 done
26403
26404
26405
26406
26407
26408
26409 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26410 do
26411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413   echo "$as_me:$LINENO: checking for $ac_header" >&5
26414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 fi
26418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 else
26421   # Is the header compilable?
26422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26424 cat >conftest.$ac_ext <<_ACEOF
26425 /* confdefs.h.  */
26426 _ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h.  */
26430 $ac_includes_default
26431 #include <$ac_header>
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435   (eval $ac_compile) 2>conftest.er1
26436   ac_status=$?
26437   grep -v '^ *+' conftest.er1 >conftest.err
26438   rm -f conftest.er1
26439   cat conftest.err >&5
26440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); } &&
26442          { ac_try='test -z "$ac_c_werror_flag"
26443                          || test ! -s conftest.err'
26444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445   (eval $ac_try) 2>&5
26446   ac_status=$?
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); }; } &&
26449          { ac_try='test -s conftest.$ac_objext'
26450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451   (eval $ac_try) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; }; then
26455   ac_header_compiler=yes
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460 ac_header_compiler=no
26461 fi
26462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26464 echo "${ECHO_T}$ac_header_compiler" >&6
26465
26466 # Is the header present?
26467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26469 cat >conftest.$ac_ext <<_ACEOF
26470 /* confdefs.h.  */
26471 _ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h.  */
26475 #include <$ac_header>
26476 _ACEOF
26477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } >/dev/null; then
26485   if test -s conftest.err; then
26486     ac_cpp_err=$ac_c_preproc_warn_flag
26487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26488   else
26489     ac_cpp_err=
26490   fi
26491 else
26492   ac_cpp_err=yes
26493 fi
26494 if test -z "$ac_cpp_err"; then
26495   ac_header_preproc=yes
26496 else
26497   echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26499
26500   ac_header_preproc=no
26501 fi
26502 rm -f conftest.err conftest.$ac_ext
26503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26504 echo "${ECHO_T}$ac_header_preproc" >&6
26505
26506 # So?  What about this header?
26507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26508   yes:no: )
26509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26513     ac_header_preproc=yes
26514     ;;
26515   no:yes:* )
26516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26528     (
26529       cat <<\_ASBOX
26530 ## ----------------------------------- ##
26531 ## Report this to llvmbugs@cs.uiuc.edu ##
26532 ## ----------------------------------- ##
26533 _ASBOX
26534     ) |
26535       sed "s/^/$as_me: WARNING:     /" >&2
26536     ;;
26537 esac
26538 echo "$as_me:$LINENO: checking for $ac_header" >&5
26539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26541   echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543   eval "$as_ac_Header=\$ac_header_preproc"
26544 fi
26545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26547
26548 fi
26549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26550   cat >>confdefs.h <<_ACEOF
26551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26552 _ACEOF
26553
26554 fi
26555
26556 done
26557
26558
26559
26560 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26561 do
26562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26564   echo "$as_me:$LINENO: checking for $ac_header" >&5
26565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26567   echo $ECHO_N "(cached) $ECHO_C" >&6
26568 fi
26569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26571 else
26572   # Is the header compilable?
26573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26575 cat >conftest.$ac_ext <<_ACEOF
26576 /* confdefs.h.  */
26577 _ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h.  */
26581 $ac_includes_default
26582 #include <$ac_header>
26583 _ACEOF
26584 rm -f conftest.$ac_objext
26585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586   (eval $ac_compile) 2>conftest.er1
26587   ac_status=$?
26588   grep -v '^ *+' conftest.er1 >conftest.err
26589   rm -f conftest.er1
26590   cat conftest.err >&5
26591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592   (exit $ac_status); } &&
26593          { ac_try='test -z "$ac_c_werror_flag"
26594                          || test ! -s conftest.err'
26595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596   (eval $ac_try) 2>&5
26597   ac_status=$?
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); }; } &&
26600          { ac_try='test -s conftest.$ac_objext'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; }; then
26606   ac_header_compiler=yes
26607 else
26608   echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26610
26611 ac_header_compiler=no
26612 fi
26613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26615 echo "${ECHO_T}$ac_header_compiler" >&6
26616
26617 # Is the header present?
26618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26620 cat >conftest.$ac_ext <<_ACEOF
26621 /* confdefs.h.  */
26622 _ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h.  */
26626 #include <$ac_header>
26627 _ACEOF
26628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } >/dev/null; then
26636   if test -s conftest.err; then
26637     ac_cpp_err=$ac_c_preproc_warn_flag
26638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26639   else
26640     ac_cpp_err=
26641   fi
26642 else
26643   ac_cpp_err=yes
26644 fi
26645 if test -z "$ac_cpp_err"; then
26646   ac_header_preproc=yes
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651   ac_header_preproc=no
26652 fi
26653 rm -f conftest.err conftest.$ac_ext
26654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26655 echo "${ECHO_T}$ac_header_preproc" >&6
26656
26657 # So?  What about this header?
26658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26659   yes:no: )
26660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26664     ac_header_preproc=yes
26665     ;;
26666   no:yes:* )
26667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26679     (
26680       cat <<\_ASBOX
26681 ## ----------------------------------- ##
26682 ## Report this to llvmbugs@cs.uiuc.edu ##
26683 ## ----------------------------------- ##
26684 _ASBOX
26685     ) |
26686       sed "s/^/$as_me: WARNING:     /" >&2
26687     ;;
26688 esac
26689 echo "$as_me:$LINENO: checking for $ac_header" >&5
26690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26692   echo $ECHO_N "(cached) $ECHO_C" >&6
26693 else
26694   eval "$as_ac_Header=\$ac_header_preproc"
26695 fi
26696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26698
26699 fi
26700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26701   cat >>confdefs.h <<_ACEOF
26702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26703 _ACEOF
26704
26705 fi
26706
26707 done
26708
26709
26710
26711 echo "$as_me:$LINENO: checking for pid_t" >&5
26712 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26713 if test "${ac_cv_type_pid_t+set}" = set; then
26714   echo $ECHO_N "(cached) $ECHO_C" >&6
26715 else
26716   cat >conftest.$ac_ext <<_ACEOF
26717 /* confdefs.h.  */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h.  */
26722 $ac_includes_default
26723 int
26724 main ()
26725 {
26726 if ((pid_t *) 0)
26727   return 0;
26728 if (sizeof (pid_t))
26729   return 0;
26730   ;
26731   return 0;
26732 }
26733 _ACEOF
26734 rm -f conftest.$ac_objext
26735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26736   (eval $ac_compile) 2>conftest.er1
26737   ac_status=$?
26738   grep -v '^ *+' conftest.er1 >conftest.err
26739   rm -f conftest.er1
26740   cat conftest.err >&5
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); } &&
26743          { ac_try='test -z "$ac_c_werror_flag"
26744                          || test ! -s conftest.err'
26745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746   (eval $ac_try) 2>&5
26747   ac_status=$?
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); }; } &&
26750          { ac_try='test -s conftest.$ac_objext'
26751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752   (eval $ac_try) 2>&5
26753   ac_status=$?
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); }; }; then
26756   ac_cv_type_pid_t=yes
26757 else
26758   echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761 ac_cv_type_pid_t=no
26762 fi
26763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26764 fi
26765 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26766 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26767 if test $ac_cv_type_pid_t = yes; then
26768   :
26769 else
26770
26771 cat >>confdefs.h <<_ACEOF
26772 #define pid_t int
26773 _ACEOF
26774
26775 fi
26776
26777 echo "$as_me:$LINENO: checking for size_t" >&5
26778 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26779 if test "${ac_cv_type_size_t+set}" = set; then
26780   echo $ECHO_N "(cached) $ECHO_C" >&6
26781 else
26782   cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h.  */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h.  */
26788 $ac_includes_default
26789 int
26790 main ()
26791 {
26792 if ((size_t *) 0)
26793   return 0;
26794 if (sizeof (size_t))
26795   return 0;
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest.$ac_objext
26801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26802   (eval $ac_compile) 2>conftest.er1
26803   ac_status=$?
26804   grep -v '^ *+' conftest.er1 >conftest.err
26805   rm -f conftest.er1
26806   cat conftest.err >&5
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); } &&
26809          { ac_try='test -z "$ac_c_werror_flag"
26810                          || test ! -s conftest.err'
26811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812   (eval $ac_try) 2>&5
26813   ac_status=$?
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); }; } &&
26816          { ac_try='test -s conftest.$ac_objext'
26817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818   (eval $ac_try) 2>&5
26819   ac_status=$?
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); }; }; then
26822   ac_cv_type_size_t=yes
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827 ac_cv_type_size_t=no
26828 fi
26829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26830 fi
26831 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26832 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26833 if test $ac_cv_type_size_t = yes; then
26834   :
26835 else
26836
26837 cat >>confdefs.h <<_ACEOF
26838 #define size_t unsigned
26839 _ACEOF
26840
26841 fi
26842
26843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26845 if test "${ac_cv_type_signal+set}" = set; then
26846   echo $ECHO_N "(cached) $ECHO_C" >&6
26847 else
26848   cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854 #include <sys/types.h>
26855 #include <signal.h>
26856 #ifdef signal
26857 # undef signal
26858 #endif
26859 #ifdef __cplusplus
26860 extern "C" void (*signal (int, void (*)(int)))(int);
26861 #else
26862 void (*signal ()) ();
26863 #endif
26864
26865 int
26866 main ()
26867 {
26868 int i;
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 rm -f conftest.$ac_objext
26874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26875   (eval $ac_compile) 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } &&
26882          { ac_try='test -z "$ac_c_werror_flag"
26883                          || test ! -s conftest.err'
26884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885   (eval $ac_try) 2>&5
26886   ac_status=$?
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); }; } &&
26889          { ac_try='test -s conftest.$ac_objext'
26890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891   (eval $ac_try) 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895   ac_cv_type_signal=void
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900 ac_cv_type_signal=int
26901 fi
26902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 fi
26904 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26905 echo "${ECHO_T}$ac_cv_type_signal" >&6
26906
26907 cat >>confdefs.h <<_ACEOF
26908 #define RETSIGTYPE $ac_cv_type_signal
26909 _ACEOF
26910
26911
26912 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26913 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26914 if test "${ac_cv_struct_tm+set}" = set; then
26915   echo $ECHO_N "(cached) $ECHO_C" >&6
26916 else
26917   cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923 #include <sys/types.h>
26924 #include <time.h>
26925
26926 int
26927 main ()
26928 {
26929 struct tm *tp; tp->tm_sec;
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest.$ac_objext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26936   (eval $ac_compile) 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } &&
26943          { ac_try='test -z "$ac_c_werror_flag"
26944                          || test ! -s conftest.err'
26945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946   (eval $ac_try) 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; } &&
26950          { ac_try='test -s conftest.$ac_objext'
26951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952   (eval $ac_try) 2>&5
26953   ac_status=$?
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); }; }; then
26956   ac_cv_struct_tm=time.h
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961 ac_cv_struct_tm=sys/time.h
26962 fi
26963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26964 fi
26965 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26966 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26967 if test $ac_cv_struct_tm = sys/time.h; then
26968
26969 cat >>confdefs.h <<\_ACEOF
26970 #define TM_IN_SYS_TIME 1
26971 _ACEOF
26972
26973 fi
26974
26975 echo "$as_me:$LINENO: checking for int64_t" >&5
26976 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26977 if test "${ac_cv_type_int64_t+set}" = set; then
26978   echo $ECHO_N "(cached) $ECHO_C" >&6
26979 else
26980   cat >conftest.$ac_ext <<_ACEOF
26981 /* confdefs.h.  */
26982 _ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h.  */
26986 $ac_includes_default
26987 int
26988 main ()
26989 {
26990 if ((int64_t *) 0)
26991   return 0;
26992 if (sizeof (int64_t))
26993   return 0;
26994   ;
26995   return 0;
26996 }
26997 _ACEOF
26998 rm -f conftest.$ac_objext
26999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27000   (eval $ac_compile) 2>conftest.er1
27001   ac_status=$?
27002   grep -v '^ *+' conftest.er1 >conftest.err
27003   rm -f conftest.er1
27004   cat conftest.err >&5
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); } &&
27007          { ac_try='test -z "$ac_c_werror_flag"
27008                          || test ! -s conftest.err'
27009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010   (eval $ac_try) 2>&5
27011   ac_status=$?
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); }; } &&
27014          { ac_try='test -s conftest.$ac_objext'
27015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016   (eval $ac_try) 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); }; }; then
27020   ac_cv_type_int64_t=yes
27021 else
27022   echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27024
27025 ac_cv_type_int64_t=no
27026 fi
27027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27028 fi
27029 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27030 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27031 if test $ac_cv_type_int64_t = yes; then
27032
27033 cat >>confdefs.h <<_ACEOF
27034 #define HAVE_INT64_T 1
27035 _ACEOF
27036
27037
27038 else
27039   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27040 echo "$as_me: error: Type int64_t required but not found" >&2;}
27041    { (exit 1); exit 1; }; }
27042 fi
27043
27044 echo "$as_me:$LINENO: checking for uint64_t" >&5
27045 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27046 if test "${ac_cv_type_uint64_t+set}" = set; then
27047   echo $ECHO_N "(cached) $ECHO_C" >&6
27048 else
27049   cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055 $ac_includes_default
27056 int
27057 main ()
27058 {
27059 if ((uint64_t *) 0)
27060   return 0;
27061 if (sizeof (uint64_t))
27062   return 0;
27063   ;
27064   return 0;
27065 }
27066 _ACEOF
27067 rm -f conftest.$ac_objext
27068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27069   (eval $ac_compile) 2>conftest.er1
27070   ac_status=$?
27071   grep -v '^ *+' conftest.er1 >conftest.err
27072   rm -f conftest.er1
27073   cat conftest.err >&5
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); } &&
27076          { ac_try='test -z "$ac_c_werror_flag"
27077                          || test ! -s conftest.err'
27078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079   (eval $ac_try) 2>&5
27080   ac_status=$?
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); }; } &&
27083          { ac_try='test -s conftest.$ac_objext'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   ac_cv_type_uint64_t=yes
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094 ac_cv_type_uint64_t=no
27095 fi
27096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27097 fi
27098 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27099 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27100 if test $ac_cv_type_uint64_t = yes; then
27101
27102 cat >>confdefs.h <<_ACEOF
27103 #define HAVE_UINT64_T 1
27104 _ACEOF
27105
27106
27107 else
27108   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27109 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27110 if test "${ac_cv_type_u_int64_t+set}" = set; then
27111   echo $ECHO_N "(cached) $ECHO_C" >&6
27112 else
27113   cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119 $ac_includes_default
27120 int
27121 main ()
27122 {
27123 if ((u_int64_t *) 0)
27124   return 0;
27125 if (sizeof (u_int64_t))
27126   return 0;
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133   (eval $ac_compile) 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } &&
27140          { ac_try='test -z "$ac_c_werror_flag"
27141                          || test ! -s conftest.err'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; } &&
27147          { ac_try='test -s conftest.$ac_objext'
27148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149   (eval $ac_try) 2>&5
27150   ac_status=$?
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); }; }; then
27153   ac_cv_type_u_int64_t=yes
27154 else
27155   echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27157
27158 ac_cv_type_u_int64_t=no
27159 fi
27160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161 fi
27162 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27163 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27164 if test $ac_cv_type_u_int64_t = yes; then
27165
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_U_INT64_T 1
27168 _ACEOF
27169
27170
27171 else
27172   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27173 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27174    { (exit 1); exit 1; }; }
27175 fi
27176
27177 fi
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27188 do
27189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27190 echo "$as_me:$LINENO: checking for $ac_func" >&5
27191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27192 if eval "test \"\${$as_ac_var+set}\" = set"; then
27193   echo $ECHO_N "(cached) $ECHO_C" >&6
27194 else
27195   cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27203 #define $ac_func innocuous_$ac_func
27204
27205 /* System header to define __stub macros and hopefully few prototypes,
27206     which can conflict with char $ac_func (); below.
27207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208     <limits.h> exists even on freestanding compilers.  */
27209
27210 #ifdef __STDC__
27211 # include <limits.h>
27212 #else
27213 # include <assert.h>
27214 #endif
27215
27216 #undef $ac_func
27217
27218 /* Override any gcc2 internal prototype to avoid an error.  */
27219 #ifdef __cplusplus
27220 extern "C"
27221 {
27222 #endif
27223 /* We use char because int might match the return type of a gcc2
27224    builtin and then its argument prototype would still apply.  */
27225 char $ac_func ();
27226 /* The GNU C library defines this for functions which it implements
27227     to always fail with ENOSYS.  Some functions are actually named
27228     something starting with __ and the normal name is an alias.  */
27229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27230 choke me
27231 #else
27232 char (*f) () = $ac_func;
27233 #endif
27234 #ifdef __cplusplus
27235 }
27236 #endif
27237
27238 int
27239 main ()
27240 {
27241 return f != $ac_func;
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248   (eval $ac_link) 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } &&
27255          { ac_try='test -z "$ac_c_werror_flag"
27256                          || test ! -s conftest.err'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; } &&
27262          { ac_try='test -s conftest$ac_exeext'
27263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264   (eval $ac_try) 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; }; then
27268   eval "$as_ac_var=yes"
27269 else
27270   echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 eval "$as_ac_var=no"
27274 fi
27275 rm -f conftest.err conftest.$ac_objext \
27276       conftest$ac_exeext conftest.$ac_ext
27277 fi
27278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27280 if test `eval echo '${'$as_ac_var'}'` = yes; then
27281   cat >>confdefs.h <<_ACEOF
27282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27283 _ACEOF
27284
27285 fi
27286 done
27287
27288
27289
27290
27291 for ac_func in mkdtemp mkstemp mktemp
27292 do
27293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27294 echo "$as_me:$LINENO: checking for $ac_func" >&5
27295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27296 if eval "test \"\${$as_ac_var+set}\" = set"; then
27297   echo $ECHO_N "(cached) $ECHO_C" >&6
27298 else
27299   cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h.  */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h.  */
27305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27307 #define $ac_func innocuous_$ac_func
27308
27309 /* System header to define __stub macros and hopefully few prototypes,
27310     which can conflict with char $ac_func (); below.
27311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27312     <limits.h> exists even on freestanding compilers.  */
27313
27314 #ifdef __STDC__
27315 # include <limits.h>
27316 #else
27317 # include <assert.h>
27318 #endif
27319
27320 #undef $ac_func
27321
27322 /* Override any gcc2 internal prototype to avoid an error.  */
27323 #ifdef __cplusplus
27324 extern "C"
27325 {
27326 #endif
27327 /* We use char because int might match the return type of a gcc2
27328    builtin and then its argument prototype would still apply.  */
27329 char $ac_func ();
27330 /* The GNU C library defines this for functions which it implements
27331     to always fail with ENOSYS.  Some functions are actually named
27332     something starting with __ and the normal name is an alias.  */
27333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27334 choke me
27335 #else
27336 char (*f) () = $ac_func;
27337 #endif
27338 #ifdef __cplusplus
27339 }
27340 #endif
27341
27342 int
27343 main ()
27344 {
27345 return f != $ac_func;
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext conftest$ac_exeext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27352   (eval $ac_link) 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } &&
27359          { ac_try='test -z "$ac_c_werror_flag"
27360                          || test ! -s conftest.err'
27361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362   (eval $ac_try) 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; } &&
27366          { ac_try='test -s conftest$ac_exeext'
27367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368   (eval $ac_try) 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; }; then
27372   eval "$as_ac_var=yes"
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377 eval "$as_ac_var=no"
27378 fi
27379 rm -f conftest.err conftest.$ac_objext \
27380       conftest$ac_exeext conftest.$ac_ext
27381 fi
27382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27384 if test `eval echo '${'$as_ac_var'}'` = yes; then
27385   cat >>confdefs.h <<_ACEOF
27386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27387 _ACEOF
27388
27389 fi
27390 done
27391
27392
27393
27394
27395
27396
27397
27398 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27399 do
27400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27401 echo "$as_me:$LINENO: checking for $ac_func" >&5
27402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27403 if eval "test \"\${$as_ac_var+set}\" = set"; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406   cat >conftest.$ac_ext <<_ACEOF
27407 /* confdefs.h.  */
27408 _ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h.  */
27412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27414 #define $ac_func innocuous_$ac_func
27415
27416 /* System header to define __stub macros and hopefully few prototypes,
27417     which can conflict with char $ac_func (); below.
27418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419     <limits.h> exists even on freestanding compilers.  */
27420
27421 #ifdef __STDC__
27422 # include <limits.h>
27423 #else
27424 # include <assert.h>
27425 #endif
27426
27427 #undef $ac_func
27428
27429 /* Override any gcc2 internal prototype to avoid an error.  */
27430 #ifdef __cplusplus
27431 extern "C"
27432 {
27433 #endif
27434 /* We use char because int might match the return type of a gcc2
27435    builtin and then its argument prototype would still apply.  */
27436 char $ac_func ();
27437 /* The GNU C library defines this for functions which it implements
27438     to always fail with ENOSYS.  Some functions are actually named
27439     something starting with __ and the normal name is an alias.  */
27440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27441 choke me
27442 #else
27443 char (*f) () = $ac_func;
27444 #endif
27445 #ifdef __cplusplus
27446 }
27447 #endif
27448
27449 int
27450 main ()
27451 {
27452 return f != $ac_func;
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459   (eval $ac_link) 2>conftest.er1
27460   ac_status=$?
27461   grep -v '^ *+' conftest.er1 >conftest.err
27462   rm -f conftest.er1
27463   cat conftest.err >&5
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); } &&
27466          { ac_try='test -z "$ac_c_werror_flag"
27467                          || test ! -s conftest.err'
27468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469   (eval $ac_try) 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; } &&
27473          { ac_try='test -s conftest$ac_exeext'
27474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475   (eval $ac_try) 2>&5
27476   ac_status=$?
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); }; }; then
27479   eval "$as_ac_var=yes"
27480 else
27481   echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27483
27484 eval "$as_ac_var=no"
27485 fi
27486 rm -f conftest.err conftest.$ac_objext \
27487       conftest$ac_exeext conftest.$ac_ext
27488 fi
27489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27491 if test `eval echo '${'$as_ac_var'}'` = yes; then
27492   cat >>confdefs.h <<_ACEOF
27493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27494 _ACEOF
27495
27496 fi
27497 done
27498
27499
27500
27501
27502 for ac_func in strtoll strtoq sysconf
27503 do
27504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27505 echo "$as_me:$LINENO: checking for $ac_func" >&5
27506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27507 if eval "test \"\${$as_ac_var+set}\" = set"; then
27508   echo $ECHO_N "(cached) $ECHO_C" >&6
27509 else
27510   cat >conftest.$ac_ext <<_ACEOF
27511 /* confdefs.h.  */
27512 _ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h.  */
27516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27518 #define $ac_func innocuous_$ac_func
27519
27520 /* System header to define __stub macros and hopefully few prototypes,
27521     which can conflict with char $ac_func (); below.
27522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27523     <limits.h> exists even on freestanding compilers.  */
27524
27525 #ifdef __STDC__
27526 # include <limits.h>
27527 #else
27528 # include <assert.h>
27529 #endif
27530
27531 #undef $ac_func
27532
27533 /* Override any gcc2 internal prototype to avoid an error.  */
27534 #ifdef __cplusplus
27535 extern "C"
27536 {
27537 #endif
27538 /* We use char because int might match the return type of a gcc2
27539    builtin and then its argument prototype would still apply.  */
27540 char $ac_func ();
27541 /* The GNU C library defines this for functions which it implements
27542     to always fail with ENOSYS.  Some functions are actually named
27543     something starting with __ and the normal name is an alias.  */
27544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27545 choke me
27546 #else
27547 char (*f) () = $ac_func;
27548 #endif
27549 #ifdef __cplusplus
27550 }
27551 #endif
27552
27553 int
27554 main ()
27555 {
27556 return f != $ac_func;
27557   ;
27558   return 0;
27559 }
27560 _ACEOF
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27563   (eval $ac_link) 2>conftest.er1
27564   ac_status=$?
27565   grep -v '^ *+' conftest.er1 >conftest.err
27566   rm -f conftest.er1
27567   cat conftest.err >&5
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } &&
27570          { ac_try='test -z "$ac_c_werror_flag"
27571                          || test ! -s conftest.err'
27572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573   (eval $ac_try) 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; } &&
27577          { ac_try='test -s conftest$ac_exeext'
27578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579   (eval $ac_try) 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; }; then
27583   eval "$as_ac_var=yes"
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588 eval "$as_ac_var=no"
27589 fi
27590 rm -f conftest.err conftest.$ac_objext \
27591       conftest$ac_exeext conftest.$ac_ext
27592 fi
27593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27595 if test `eval echo '${'$as_ac_var'}'` = yes; then
27596   cat >>confdefs.h <<_ACEOF
27597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27598 _ACEOF
27599
27600 fi
27601 done
27602
27603 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27604 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27605 if test "${llvm_cv_c_printf_a+set}" = set; then
27606   echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608   ac_ext=c
27609 ac_cpp='$CPP $CPPFLAGS'
27610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27613
27614  if test "$cross_compiling" = yes; then
27615   llvmac_cv_c_printf_a=no
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618
27619   /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624
27625 #include <stdio.h>
27626 #include <stdlib.h>
27627
27628 int
27629 main ()
27630 {
27631
27632 volatile double A, B;
27633 char Buffer[100];
27634 A = 1;
27635 A /= 10.0;
27636 sprintf(Buffer, "%a", A);
27637 B = atof(Buffer);
27638 if (A != B)
27639   return (1);
27640 if (A != 0x1.999999999999ap-4)
27641   return (1);
27642 return (0);
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 rm -f conftest$ac_exeext
27648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27649   (eval $ac_link) 2>&5
27650   ac_status=$?
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; }; then
27658   llvm_cv_c_printf_a=yes
27659 else
27660   echo "$as_me: program exited with status $ac_status" >&5
27661 echo "$as_me: failed program was:" >&5
27662 sed 's/^/| /' conftest.$ac_ext >&5
27663
27664 ( exit $ac_status )
27665 llvmac_cv_c_printf_a=no
27666 fi
27667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27668 fi
27669  ac_ext=c
27670 ac_cpp='$CPP $CPPFLAGS'
27671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27674
27675 fi
27676 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27678  if test "$llvm_cv_c_printf_a" = "yes"; then
27679
27680 cat >>confdefs.h <<\_ACEOF
27681 #define HAVE_PRINTF_A 1
27682 _ACEOF
27683
27684  fi
27685
27686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27687 # for constant arguments.  Useless!
27688 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27690 if test "${ac_cv_working_alloca_h+set}" = set; then
27691   echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693   cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699 #include <alloca.h>
27700 int
27701 main ()
27702 {
27703 char *p = (char *) alloca (2 * sizeof (int));
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext conftest$ac_exeext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27710   (eval $ac_link) 2>conftest.er1
27711   ac_status=$?
27712   grep -v '^ *+' conftest.er1 >conftest.err
27713   rm -f conftest.er1
27714   cat conftest.err >&5
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); } &&
27717          { ac_try='test -z "$ac_c_werror_flag"
27718                          || test ! -s conftest.err'
27719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720   (eval $ac_try) 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; } &&
27724          { ac_try='test -s conftest$ac_exeext'
27725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726   (eval $ac_try) 2>&5
27727   ac_status=$?
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; }; then
27730   ac_cv_working_alloca_h=yes
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735 ac_cv_working_alloca_h=no
27736 fi
27737 rm -f conftest.err conftest.$ac_objext \
27738       conftest$ac_exeext conftest.$ac_ext
27739 fi
27740 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27741 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27742 if test $ac_cv_working_alloca_h = yes; then
27743
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_ALLOCA_H 1
27746 _ACEOF
27747
27748 fi
27749
27750 echo "$as_me:$LINENO: checking for alloca" >&5
27751 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27752 if test "${ac_cv_func_alloca_works+set}" = set; then
27753   echo $ECHO_N "(cached) $ECHO_C" >&6
27754 else
27755   cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761 #ifdef __GNUC__
27762 # define alloca __builtin_alloca
27763 #else
27764 # ifdef _MSC_VER
27765 #  include <malloc.h>
27766 #  define alloca _alloca
27767 # else
27768 #  if HAVE_ALLOCA_H
27769 #   include <alloca.h>
27770 #  else
27771 #   ifdef _AIX
27772  #pragma alloca
27773 #   else
27774 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27775 char *alloca ();
27776 #    endif
27777 #   endif
27778 #  endif
27779 # endif
27780 #endif
27781
27782 int
27783 main ()
27784 {
27785 char *p = (char *) alloca (1);
27786   ;
27787   return 0;
27788 }
27789 _ACEOF
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27792   (eval $ac_link) 2>conftest.er1
27793   ac_status=$?
27794   grep -v '^ *+' conftest.er1 >conftest.err
27795   rm -f conftest.er1
27796   cat conftest.err >&5
27797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798   (exit $ac_status); } &&
27799          { ac_try='test -z "$ac_c_werror_flag"
27800                          || test ! -s conftest.err'
27801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802   (eval $ac_try) 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); }; } &&
27806          { ac_try='test -s conftest$ac_exeext'
27807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808   (eval $ac_try) 2>&5
27809   ac_status=$?
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); }; }; then
27812   ac_cv_func_alloca_works=yes
27813 else
27814   echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 ac_cv_func_alloca_works=no
27818 fi
27819 rm -f conftest.err conftest.$ac_objext \
27820       conftest$ac_exeext conftest.$ac_ext
27821 fi
27822 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27823 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27824
27825 if test $ac_cv_func_alloca_works = yes; then
27826
27827 cat >>confdefs.h <<\_ACEOF
27828 #define HAVE_ALLOCA 1
27829 _ACEOF
27830
27831 else
27832   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27833 # that cause trouble.  Some versions do not even contain alloca or
27834 # contain a buggy version.  If you still want to use their alloca,
27835 # use ar to extract alloca.o from them instead of compiling alloca.c.
27836
27837 ALLOCA=alloca.$ac_objext
27838
27839 cat >>confdefs.h <<\_ACEOF
27840 #define C_ALLOCA 1
27841 _ACEOF
27842
27843
27844 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27845 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27846 if test "${ac_cv_os_cray+set}" = set; then
27847   echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849   cat >conftest.$ac_ext <<_ACEOF
27850 /* confdefs.h.  */
27851 _ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h.  */
27855 #if defined(CRAY) && ! defined(CRAY2)
27856 webecray
27857 #else
27858 wenotbecray
27859 #endif
27860
27861 _ACEOF
27862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27863   $EGREP "webecray" >/dev/null 2>&1; then
27864   ac_cv_os_cray=yes
27865 else
27866   ac_cv_os_cray=no
27867 fi
27868 rm -f conftest*
27869
27870 fi
27871 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27872 echo "${ECHO_T}$ac_cv_os_cray" >&6
27873 if test $ac_cv_os_cray = yes; then
27874   for ac_func in _getb67 GETB67 getb67; do
27875     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876 echo "$as_me:$LINENO: checking for $ac_func" >&5
27877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878 if eval "test \"\${$as_ac_var+set}\" = set"; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27889 #define $ac_func innocuous_$ac_func
27890
27891 /* System header to define __stub macros and hopefully few prototypes,
27892     which can conflict with char $ac_func (); below.
27893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894     <limits.h> exists even on freestanding compilers.  */
27895
27896 #ifdef __STDC__
27897 # include <limits.h>
27898 #else
27899 # include <assert.h>
27900 #endif
27901
27902 #undef $ac_func
27903
27904 /* Override any gcc2 internal prototype to avoid an error.  */
27905 #ifdef __cplusplus
27906 extern "C"
27907 {
27908 #endif
27909 /* We use char because int might match the return type of a gcc2
27910    builtin and then its argument prototype would still apply.  */
27911 char $ac_func ();
27912 /* The GNU C library defines this for functions which it implements
27913     to always fail with ENOSYS.  Some functions are actually named
27914     something starting with __ and the normal name is an alias.  */
27915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27916 choke me
27917 #else
27918 char (*f) () = $ac_func;
27919 #endif
27920 #ifdef __cplusplus
27921 }
27922 #endif
27923
27924 int
27925 main ()
27926 {
27927 return f != $ac_func;
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934   (eval $ac_link) 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } &&
27941          { ac_try='test -z "$ac_c_werror_flag"
27942                          || test ! -s conftest.err'
27943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944   (eval $ac_try) 2>&5
27945   ac_status=$?
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); }; } &&
27948          { ac_try='test -s conftest$ac_exeext'
27949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950   (eval $ac_try) 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   eval "$as_ac_var=yes"
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959 eval "$as_ac_var=no"
27960 fi
27961 rm -f conftest.err conftest.$ac_objext \
27962       conftest$ac_exeext conftest.$ac_ext
27963 fi
27964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966 if test `eval echo '${'$as_ac_var'}'` = yes; then
27967
27968 cat >>confdefs.h <<_ACEOF
27969 #define CRAY_STACKSEG_END $ac_func
27970 _ACEOF
27971
27972     break
27973 fi
27974
27975   done
27976 fi
27977
27978 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27980 if test "${ac_cv_c_stack_direction+set}" = set; then
27981   echo $ECHO_N "(cached) $ECHO_C" >&6
27982 else
27983   if test "$cross_compiling" = yes; then
27984   ac_cv_c_stack_direction=0
27985 else
27986   cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992 int
27993 find_stack_direction ()
27994 {
27995   static char *addr = 0;
27996   auto char dummy;
27997   if (addr == 0)
27998     {
27999       addr = &dummy;
28000       return find_stack_direction ();
28001     }
28002   else
28003     return (&dummy > addr) ? 1 : -1;
28004 }
28005
28006 int
28007 main ()
28008 {
28009   exit (find_stack_direction () < 0);
28010 }
28011 _ACEOF
28012 rm -f conftest$ac_exeext
28013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28014   (eval $ac_link) 2>&5
28015   ac_status=$?
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019   (eval $ac_try) 2>&5
28020   ac_status=$?
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); }; }; then
28023   ac_cv_c_stack_direction=1
28024 else
28025   echo "$as_me: program exited with status $ac_status" >&5
28026 echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029 ( exit $ac_status )
28030 ac_cv_c_stack_direction=-1
28031 fi
28032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28033 fi
28034 fi
28035 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28036 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28037
28038 cat >>confdefs.h <<_ACEOF
28039 #define STACK_DIRECTION $ac_cv_c_stack_direction
28040 _ACEOF
28041
28042
28043 fi
28044
28045
28046 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28047 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28048 if test "${ac_cv_func_rand48+set}" = set; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   ac_ext=cc
28052 ac_cpp='$CXXCPP $CPPFLAGS'
28053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28056
28057    cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h.  */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h.  */
28063 #include <stdlib.h>
28064 int
28065 main ()
28066 {
28067 srand48(0);lrand48();drand48();
28068   ;
28069   return 0;
28070 }
28071 _ACEOF
28072 rm -f conftest.$ac_objext
28073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074   (eval $ac_compile) 2>conftest.er1
28075   ac_status=$?
28076   grep -v '^ *+' conftest.er1 >conftest.err
28077   rm -f conftest.er1
28078   cat conftest.err >&5
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); } &&
28081          { ac_try='test -z "$ac_cxx_werror_flag"
28082                          || test ! -s conftest.err'
28083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084   (eval $ac_try) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; } &&
28088          { ac_try='test -s conftest.$ac_objext'
28089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090   (eval $ac_try) 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_func_rand48=yes
28095 else
28096   echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099 ac_cv_func_rand48=no
28100 fi
28101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102   ac_ext=c
28103 ac_cpp='$CPP $CPPFLAGS'
28104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28107
28108 fi
28109 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28110 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28111
28112 if test "$ac_cv_func_rand48" = "yes" ; then
28113
28114 cat >>confdefs.h <<\_ACEOF
28115 #define HAVE_RAND48 1
28116 _ACEOF
28117
28118 fi
28119
28120
28121 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28122 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28123 if test "${ac_cv_cxx_namespaces+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   ac_ext=cc
28127 ac_cpp='$CXXCPP $CPPFLAGS'
28128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28131
28132  cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h.  */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h.  */
28138 namespace Outer { namespace Inner { int i = 0; }}
28139 int
28140 main ()
28141 {
28142 using namespace Outer::Inner; return i;
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 rm -f conftest.$ac_objext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28149   (eval $ac_compile) 2>conftest.er1
28150   ac_status=$?
28151   grep -v '^ *+' conftest.er1 >conftest.err
28152   rm -f conftest.er1
28153   cat conftest.err >&5
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); } &&
28156          { ac_try='test -z "$ac_cxx_werror_flag"
28157                          || test ! -s conftest.err'
28158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159   (eval $ac_try) 2>&5
28160   ac_status=$?
28161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162   (exit $ac_status); }; } &&
28163          { ac_try='test -s conftest.$ac_objext'
28164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165   (eval $ac_try) 2>&5
28166   ac_status=$?
28167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168   (exit $ac_status); }; }; then
28169   ac_cv_cxx_namespaces=yes
28170 else
28171   echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28173
28174 ac_cv_cxx_namespaces=no
28175 fi
28176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28177  ac_ext=c
28178 ac_cpp='$CPP $CPPFLAGS'
28179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28182
28183
28184 fi
28185 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28186 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28187 if test "$ac_cv_cxx_namespaces" = yes; then
28188
28189 cat >>confdefs.h <<\_ACEOF
28190 #define HAVE_NAMESPACES
28191 _ACEOF
28192
28193 fi
28194
28195 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28196 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28197 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200
28201   ac_ext=cc
28202 ac_cpp='$CXXCPP $CPPFLAGS'
28203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28206
28207   cat >conftest.$ac_ext <<_ACEOF
28208 /* confdefs.h.  */
28209 _ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h.  */
28213 #include <ext/hash_map>
28214 #ifdef HAVE_NAMESPACES
28215 using namespace std;
28216 #endif
28217 int
28218 main ()
28219 {
28220 hash_map<int, int> t;
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28227   (eval $ac_compile) 2>conftest.er1
28228   ac_status=$?
28229   grep -v '^ *+' conftest.er1 >conftest.err
28230   rm -f conftest.er1
28231   cat conftest.err >&5
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); } &&
28234          { ac_try='test -z "$ac_cxx_werror_flag"
28235                          || test ! -s conftest.err'
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); }; } &&
28241          { ac_try='test -s conftest.$ac_objext'
28242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243   (eval $ac_try) 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; }; then
28247   ac_cv_cxx_have_std_ext_hash_map=yes
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252 ac_cv_cxx_have_std_ext_hash_map=no
28253 fi
28254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28255   ac_ext=c
28256 ac_cpp='$CPP $CPPFLAGS'
28257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28260
28261 fi
28262 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28263 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28264  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28265  then
28266
28267 cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_STD_EXT_HASH_MAP 1
28269 _ACEOF
28270
28271  else
28272
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_STD_EXT_HASH_MAP 0
28275 _ACEOF
28276
28277  fi
28278
28279  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28280 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28281 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28282   echo $ECHO_N "(cached) $ECHO_C" >&6
28283 else
28284
28285   ac_ext=cc
28286 ac_cpp='$CXXCPP $CPPFLAGS'
28287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28290
28291   cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297 #include <ext/hash_map>
28298 #ifdef HAVE_NAMESPACES
28299 using namespace __gnu_cxx;
28300 #endif
28301 int
28302 main ()
28303 {
28304 hash_map<int,int> t;
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 rm -f conftest.$ac_objext
28310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28311   (eval $ac_compile) 2>conftest.er1
28312   ac_status=$?
28313   grep -v '^ *+' conftest.er1 >conftest.err
28314   rm -f conftest.er1
28315   cat conftest.err >&5
28316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317   (exit $ac_status); } &&
28318          { ac_try='test -z "$ac_cxx_werror_flag"
28319                          || test ! -s conftest.err'
28320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321   (eval $ac_try) 2>&5
28322   ac_status=$?
28323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); }; } &&
28325          { ac_try='test -s conftest.$ac_objext'
28326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327   (eval $ac_try) 2>&5
28328   ac_status=$?
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); }; }; then
28331   ac_cv_cxx_have_gnu_ext_hash_map=yes
28332 else
28333   echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28335
28336 ac_cv_cxx_have_gnu_ext_hash_map=no
28337 fi
28338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28339   ac_ext=c
28340 ac_cpp='$CPP $CPPFLAGS'
28341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28344
28345 fi
28346 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28347 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28348  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28349  then
28350
28351 cat >>confdefs.h <<\_ACEOF
28352 #define HAVE_GNU_EXT_HASH_MAP 1
28353 _ACEOF
28354
28355  else
28356
28357 cat >>confdefs.h <<\_ACEOF
28358 #define HAVE_GNU_EXT_HASH_MAP 0
28359 _ACEOF
28360
28361  fi
28362
28363  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28364 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28365 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28366   echo $ECHO_N "(cached) $ECHO_C" >&6
28367 else
28368
28369   ac_ext=cc
28370 ac_cpp='$CXXCPP $CPPFLAGS'
28371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28374
28375   cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381 #include <hash_map>
28382 int
28383 main ()
28384 {
28385 hash_map<int,int> t;
28386   ;
28387   return 0;
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28392   (eval $ac_compile) 2>conftest.er1
28393   ac_status=$?
28394   grep -v '^ *+' conftest.er1 >conftest.err
28395   rm -f conftest.er1
28396   cat conftest.err >&5
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } &&
28399          { ac_try='test -z "$ac_cxx_werror_flag"
28400                          || test ! -s conftest.err'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; } &&
28406          { ac_try='test -s conftest.$ac_objext'
28407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408   (eval $ac_try) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; }; then
28412   ac_cv_cxx_have_global_hash_map=yes
28413 else
28414   echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417 ac_cv_cxx_have_global_hash_map=no
28418 fi
28419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420   ac_ext=c
28421 ac_cpp='$CPP $CPPFLAGS'
28422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28425
28426 fi
28427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28428 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28429  if test "$ac_cv_cxx_have_global_hash_map" = yes
28430  then
28431
28432 cat >>confdefs.h <<\_ACEOF
28433 #define HAVE_GLOBAL_HASH_MAP 1
28434 _ACEOF
28435
28436  else
28437
28438 cat >>confdefs.h <<\_ACEOF
28439 #define HAVE_GLOBAL_HASH_MAP 0
28440 _ACEOF
28441
28442  fi
28443
28444 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28445 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28446 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28447   echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449
28450   ac_ext=cc
28451 ac_cpp='$CXXCPP $CPPFLAGS'
28452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455
28456   cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462 #include <ext/hash_set>
28463 #ifdef HAVE_NAMESPACES
28464 using namespace std;
28465 #endif
28466 int
28467 main ()
28468 {
28469 hash_set<int> t;
28470   ;
28471   return 0;
28472 }
28473 _ACEOF
28474 rm -f conftest.$ac_objext
28475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28476   (eval $ac_compile) 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } &&
28483          { ac_try='test -z "$ac_cxx_werror_flag"
28484                          || test ! -s conftest.err'
28485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486   (eval $ac_try) 2>&5
28487   ac_status=$?
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); }; } &&
28490          { ac_try='test -s conftest.$ac_objext'
28491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492   (eval $ac_try) 2>&5
28493   ac_status=$?
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); }; }; then
28496   ac_cv_cxx_have_std_ext_hash_set=yes
28497 else
28498   echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28500
28501 ac_cv_cxx_have_std_ext_hash_set=no
28502 fi
28503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28504   ac_ext=c
28505 ac_cpp='$CPP $CPPFLAGS'
28506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28509
28510 fi
28511 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28512 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28513  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28514  then
28515
28516 cat >>confdefs.h <<\_ACEOF
28517 #define HAVE_STD_EXT_HASH_SET 1
28518 _ACEOF
28519
28520  else
28521
28522 cat >>confdefs.h <<\_ACEOF
28523 #define HAVE_STD_EXT_HASH_SET 0
28524 _ACEOF
28525
28526  fi
28527
28528  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28529 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28530 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28531   echo $ECHO_N "(cached) $ECHO_C" >&6
28532 else
28533
28534   ac_ext=cc
28535 ac_cpp='$CXXCPP $CPPFLAGS'
28536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28539
28540   cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h.  */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h.  */
28546 #include <ext/hash_set>
28547 #ifdef HAVE_NAMESPACES
28548 using namespace __gnu_cxx;
28549 #endif
28550 int
28551 main ()
28552 {
28553 hash_set<int> t;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28560   (eval $ac_compile) 2>conftest.er1
28561   ac_status=$?
28562   grep -v '^ *+' conftest.er1 >conftest.err
28563   rm -f conftest.er1
28564   cat conftest.err >&5
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); } &&
28567          { ac_try='test -z "$ac_cxx_werror_flag"
28568                          || test ! -s conftest.err'
28569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570   (eval $ac_try) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; } &&
28574          { ac_try='test -s conftest.$ac_objext'
28575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576   (eval $ac_try) 2>&5
28577   ac_status=$?
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); }; }; then
28580   ac_cv_cxx_have_gnu_ext_hash_set=yes
28581 else
28582   echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28584
28585 ac_cv_cxx_have_gnu_ext_hash_set=no
28586 fi
28587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28588   ac_ext=c
28589 ac_cpp='$CPP $CPPFLAGS'
28590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28593
28594 fi
28595 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28596 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28597  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28598  then
28599
28600 cat >>confdefs.h <<\_ACEOF
28601 #define HAVE_GNU_EXT_HASH_SET 1
28602 _ACEOF
28603
28604  else
28605
28606 cat >>confdefs.h <<\_ACEOF
28607 #define HAVE_GNU_EXT_HASH_SET 0
28608 _ACEOF
28609
28610  fi
28611
28612  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28613 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28614 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28615   echo $ECHO_N "(cached) $ECHO_C" >&6
28616 else
28617
28618   ac_ext=cc
28619 ac_cpp='$CXXCPP $CPPFLAGS'
28620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28623
28624   cat >conftest.$ac_ext <<_ACEOF
28625 /* confdefs.h.  */
28626 _ACEOF
28627 cat confdefs.h >>conftest.$ac_ext
28628 cat >>conftest.$ac_ext <<_ACEOF
28629 /* end confdefs.h.  */
28630 #include <hash_set>
28631 int
28632 main ()
28633 {
28634 hash_set<int> t; return 0;
28635   ;
28636   return 0;
28637 }
28638 _ACEOF
28639 rm -f conftest.$ac_objext
28640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28641   (eval $ac_compile) 2>conftest.er1
28642   ac_status=$?
28643   grep -v '^ *+' conftest.er1 >conftest.err
28644   rm -f conftest.er1
28645   cat conftest.err >&5
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); } &&
28648          { ac_try='test -z "$ac_cxx_werror_flag"
28649                          || test ! -s conftest.err'
28650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651   (eval $ac_try) 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); }; } &&
28655          { ac_try='test -s conftest.$ac_objext'
28656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657   (eval $ac_try) 2>&5
28658   ac_status=$?
28659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660   (exit $ac_status); }; }; then
28661   ac_cv_cxx_have_global_hash_set=yes
28662 else
28663   echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28665
28666 ac_cv_cxx_have_global_hash_set=no
28667 fi
28668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28669   ac_ext=c
28670 ac_cpp='$CPP $CPPFLAGS'
28671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28674
28675 fi
28676 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28677 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28678  if test "$ac_cv_cxx_have_global_hash_set" = yes
28679  then
28680
28681 cat >>confdefs.h <<\_ACEOF
28682 #define HAVE_GLOBAL_HASH_SET 1
28683 _ACEOF
28684
28685  else
28686
28687 cat >>confdefs.h <<\_ACEOF
28688 #define HAVE_GLOBAL_HASH_SET 0
28689 _ACEOF
28690
28691  fi
28692
28693 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28694 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28695 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28696   echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698
28699   ac_ext=cc
28700 ac_cpp='$CXXCPP $CPPFLAGS'
28701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28704
28705   cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711 #include <iterator>
28712 #ifdef HAVE_NAMESPACES
28713 using namespace std;
28714 #endif
28715 int
28716 main ()
28717 {
28718 iterator<int,int,int> t; return 0;
28719   ;
28720   return 0;
28721 }
28722 _ACEOF
28723 rm -f conftest.$ac_objext
28724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28725   (eval $ac_compile) 2>conftest.er1
28726   ac_status=$?
28727   grep -v '^ *+' conftest.er1 >conftest.err
28728   rm -f conftest.er1
28729   cat conftest.err >&5
28730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731   (exit $ac_status); } &&
28732          { ac_try='test -z "$ac_cxx_werror_flag"
28733                          || test ! -s conftest.err'
28734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28735   (eval $ac_try) 2>&5
28736   ac_status=$?
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); }; } &&
28739          { ac_try='test -s conftest.$ac_objext'
28740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741   (eval $ac_try) 2>&5
28742   ac_status=$?
28743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744   (exit $ac_status); }; }; then
28745   ac_cv_cxx_have_std_iterator=yes
28746 else
28747   echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28749
28750 ac_cv_cxx_have_std_iterator=no
28751 fi
28752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753   ac_ext=c
28754 ac_cpp='$CPP $CPPFLAGS'
28755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28758
28759
28760 fi
28761 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28762 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28763 if test "$ac_cv_cxx_have_std_iterator" = yes
28764 then
28765
28766 cat >>confdefs.h <<\_ACEOF
28767 #define HAVE_STD_ITERATOR 1
28768 _ACEOF
28769
28770 else
28771
28772 cat >>confdefs.h <<\_ACEOF
28773 #define HAVE_STD_ITERATOR 0
28774 _ACEOF
28775
28776 fi
28777
28778 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28779 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28780 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28781   echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783
28784   ac_ext=cc
28785 ac_cpp='$CXXCPP $CPPFLAGS'
28786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28789
28790   cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h.  */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h.  */
28796 #include <iterator>
28797 #ifdef HAVE_NAMESPACES
28798 using namespace std;
28799 #endif
28800 int
28801 main ()
28802 {
28803 bidirectional_iterator<int,int> t; return 0;
28804   ;
28805   return 0;
28806 }
28807 _ACEOF
28808 rm -f conftest.$ac_objext
28809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28810   (eval $ac_compile) 2>conftest.er1
28811   ac_status=$?
28812   grep -v '^ *+' conftest.er1 >conftest.err
28813   rm -f conftest.er1
28814   cat conftest.err >&5
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); } &&
28817          { ac_try='test -z "$ac_cxx_werror_flag"
28818                          || test ! -s conftest.err'
28819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820   (eval $ac_try) 2>&5
28821   ac_status=$?
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); }; } &&
28824          { ac_try='test -s conftest.$ac_objext'
28825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826   (eval $ac_try) 2>&5
28827   ac_status=$?
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); }; }; then
28830   ac_cv_cxx_have_bi_iterator=yes
28831 else
28832   echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ac_cv_cxx_have_bi_iterator=no
28836 fi
28837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28838   ac_ext=c
28839 ac_cpp='$CPP $CPPFLAGS'
28840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843
28844
28845 fi
28846 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28847 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28848 if test "$ac_cv_cxx_have_bi_iterator" = yes
28849 then
28850
28851 cat >>confdefs.h <<\_ACEOF
28852 #define HAVE_BI_ITERATOR 1
28853 _ACEOF
28854
28855 else
28856
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_BI_ITERATOR 0
28859 _ACEOF
28860
28861 fi
28862
28863 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28864 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28865 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28866   echo $ECHO_N "(cached) $ECHO_C" >&6
28867 else
28868
28869   ac_ext=cc
28870 ac_cpp='$CXXCPP $CPPFLAGS'
28871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28874
28875   cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881 #include <iterator>
28882 #ifdef HAVE_NAMESPACES
28883 using namespace std;
28884 #endif
28885 int
28886 main ()
28887 {
28888 forward_iterator<int,int> t; return 0;
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28895   (eval $ac_compile) 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } &&
28902          { ac_try='test -z "$ac_cxx_werror_flag"
28903                          || test ! -s conftest.err'
28904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905   (eval $ac_try) 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; } &&
28909          { ac_try='test -s conftest.$ac_objext'
28910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911   (eval $ac_try) 2>&5
28912   ac_status=$?
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); }; }; then
28915   ac_cv_cxx_have_fwd_iterator=yes
28916 else
28917   echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 ac_cv_cxx_have_fwd_iterator=no
28921 fi
28922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28923   ac_ext=c
28924 ac_cpp='$CPP $CPPFLAGS'
28925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28928
28929
28930 fi
28931 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28932 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28933 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28934 then
28935
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_FWD_ITERATOR 1
28938 _ACEOF
28939
28940 else
28941
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_FWD_ITERATOR 0
28944 _ACEOF
28945
28946 fi
28947
28948
28949 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28950 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28951 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28952   echo $ECHO_N "(cached) $ECHO_C" >&6
28953 else
28954   ac_ext=cc
28955 ac_cpp='$CXXCPP $CPPFLAGS'
28956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28959
28960    cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966 #include <math.h>
28967 int
28968 main ()
28969 {
28970 float f; isnan(f);
28971   ;
28972   return 0;
28973 }
28974 _ACEOF
28975 rm -f conftest.$ac_objext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28977   (eval $ac_compile) 2>conftest.er1
28978   ac_status=$?
28979   grep -v '^ *+' conftest.er1 >conftest.err
28980   rm -f conftest.er1
28981   cat conftest.err >&5
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); } &&
28984          { ac_try='test -z "$ac_cxx_werror_flag"
28985                          || test ! -s conftest.err'
28986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987   (eval $ac_try) 2>&5
28988   ac_status=$?
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); }; } &&
28991          { ac_try='test -s conftest.$ac_objext'
28992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993   (eval $ac_try) 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; }; then
28997   ac_cv_func_isnan_in_math_h=yes
28998 else
28999   echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29001
29002 ac_cv_func_isnan_in_math_h=no
29003 fi
29004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29005   ac_ext=c
29006 ac_cpp='$CPP $CPPFLAGS'
29007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29010
29011 fi
29012 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29013 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29014
29015
29016 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29017
29018 cat >>confdefs.h <<\_ACEOF
29019 #define HAVE_ISNAN_IN_MATH_H 1
29020 _ACEOF
29021
29022 fi
29023
29024 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29025 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29026 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29027   echo $ECHO_N "(cached) $ECHO_C" >&6
29028 else
29029   ac_ext=cc
29030 ac_cpp='$CXXCPP $CPPFLAGS'
29031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29034
29035    cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041 #include <cmath>
29042 int
29043 main ()
29044 {
29045 float f; isnan(f);
29046   ;
29047   return 0;
29048 }
29049 _ACEOF
29050 rm -f conftest.$ac_objext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29052   (eval $ac_compile) 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } &&
29059          { ac_try='test -z "$ac_cxx_werror_flag"
29060                          || test ! -s conftest.err'
29061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062   (eval $ac_try) 2>&5
29063   ac_status=$?
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); }; } &&
29066          { ac_try='test -s conftest.$ac_objext'
29067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068   (eval $ac_try) 2>&5
29069   ac_status=$?
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); }; }; then
29072   ac_cv_func_isnan_in_cmath=yes
29073 else
29074   echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29076
29077 ac_cv_func_isnan_in_cmath=no
29078 fi
29079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29080   ac_ext=c
29081 ac_cpp='$CPP $CPPFLAGS'
29082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29085
29086 fi
29087 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29088 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29089
29090 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29091
29092 cat >>confdefs.h <<\_ACEOF
29093 #define HAVE_ISNAN_IN_CMATH 1
29094 _ACEOF
29095
29096 fi
29097
29098 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29099 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29100 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29101   echo $ECHO_N "(cached) $ECHO_C" >&6
29102 else
29103   ac_ext=cc
29104 ac_cpp='$CXXCPP $CPPFLAGS'
29105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108
29109    cat >conftest.$ac_ext <<_ACEOF
29110 /* confdefs.h.  */
29111 _ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h.  */
29115 #include <cmath>
29116 int
29117 main ()
29118 {
29119 float f; std::isnan(f);
29120   ;
29121   return 0;
29122 }
29123 _ACEOF
29124 rm -f conftest.$ac_objext
29125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29126   (eval $ac_compile) 2>conftest.er1
29127   ac_status=$?
29128   grep -v '^ *+' conftest.er1 >conftest.err
29129   rm -f conftest.er1
29130   cat conftest.err >&5
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); } &&
29133          { ac_try='test -z "$ac_cxx_werror_flag"
29134                          || test ! -s conftest.err'
29135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136   (eval $ac_try) 2>&5
29137   ac_status=$?
29138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139   (exit $ac_status); }; } &&
29140          { ac_try='test -s conftest.$ac_objext'
29141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142   (eval $ac_try) 2>&5
29143   ac_status=$?
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); }; }; then
29146   ac_cv_func_std_isnan_in_cmath=yes
29147 else
29148   echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29150
29151 ac_cv_func_std_isnan_in_cmath=no
29152 fi
29153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29154   ac_ext=c
29155 ac_cpp='$CPP $CPPFLAGS'
29156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29159
29160 fi
29161 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29162 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29163
29164 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29165
29166 cat >>confdefs.h <<\_ACEOF
29167 #define HAVE_STD_ISNAN_IN_CMATH 1
29168 _ACEOF
29169
29170 fi
29171
29172
29173 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29174 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29175 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178   ac_ext=cc
29179 ac_cpp='$CXXCPP $CPPFLAGS'
29180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183
29184    cat >conftest.$ac_ext <<_ACEOF
29185 /* confdefs.h.  */
29186 _ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h.  */
29190 #include <math.h>
29191 int
29192 main ()
29193 {
29194 float f; isinf(f);
29195   ;
29196   return 0;
29197 }
29198 _ACEOF
29199 rm -f conftest.$ac_objext
29200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29201   (eval $ac_compile) 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } &&
29208          { ac_try='test -z "$ac_cxx_werror_flag"
29209                          || test ! -s conftest.err'
29210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211   (eval $ac_try) 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; } &&
29215          { ac_try='test -s conftest.$ac_objext'
29216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217   (eval $ac_try) 2>&5
29218   ac_status=$?
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); }; }; then
29221   ac_cv_func_isinf_in_math_h=yes
29222 else
29223   echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226 ac_cv_func_isinf_in_math_h=no
29227 fi
29228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29229   ac_ext=c
29230 ac_cpp='$CPP $CPPFLAGS'
29231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29234
29235 fi
29236 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29237 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29238
29239 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29240
29241 cat >>confdefs.h <<\_ACEOF
29242 #define HAVE_ISINF_IN_MATH_H 1
29243 _ACEOF
29244
29245 fi
29246
29247 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29248 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29249 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29250   echo $ECHO_N "(cached) $ECHO_C" >&6
29251 else
29252   ac_ext=cc
29253 ac_cpp='$CXXCPP $CPPFLAGS'
29254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29257
29258    cat >conftest.$ac_ext <<_ACEOF
29259 /* confdefs.h.  */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h.  */
29264 #include <cmath>
29265 int
29266 main ()
29267 {
29268 float f; isinf(f);
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29275   (eval $ac_compile) 2>conftest.er1
29276   ac_status=$?
29277   grep -v '^ *+' conftest.er1 >conftest.err
29278   rm -f conftest.er1
29279   cat conftest.err >&5
29280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281   (exit $ac_status); } &&
29282          { ac_try='test -z "$ac_cxx_werror_flag"
29283                          || test ! -s conftest.err'
29284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285   (eval $ac_try) 2>&5
29286   ac_status=$?
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); }; } &&
29289          { ac_try='test -s conftest.$ac_objext'
29290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291   (eval $ac_try) 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; }; then
29295   ac_cv_func_isinf_in_cmath=yes
29296 else
29297   echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29299
29300 ac_cv_func_isinf_in_cmath=no
29301 fi
29302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29303   ac_ext=c
29304 ac_cpp='$CPP $CPPFLAGS'
29305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29308
29309 fi
29310 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29311 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29312
29313 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29314
29315 cat >>confdefs.h <<\_ACEOF
29316 #define HAVE_ISINF_IN_CMATH 1
29317 _ACEOF
29318
29319 fi
29320
29321 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29322 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29323 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29324   echo $ECHO_N "(cached) $ECHO_C" >&6
29325 else
29326   ac_ext=cc
29327 ac_cpp='$CXXCPP $CPPFLAGS'
29328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29331
29332    cat >conftest.$ac_ext <<_ACEOF
29333 /* confdefs.h.  */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h.  */
29338 #include <cmath>
29339 int
29340 main ()
29341 {
29342 float f; std::isinf(f)}
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 rm -f conftest.$ac_objext
29348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29349   (eval $ac_compile) 2>conftest.er1
29350   ac_status=$?
29351   grep -v '^ *+' conftest.er1 >conftest.err
29352   rm -f conftest.er1
29353   cat conftest.err >&5
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); } &&
29356          { ac_try='test -z "$ac_cxx_werror_flag"
29357                          || test ! -s conftest.err'
29358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359   (eval $ac_try) 2>&5
29360   ac_status=$?
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); }; } &&
29363          { ac_try='test -s conftest.$ac_objext'
29364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365   (eval $ac_try) 2>&5
29366   ac_status=$?
29367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368   (exit $ac_status); }; }; then
29369   ac_cv_func_std_isinf_in_cmath=yes
29370 else
29371   echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29373
29374 ac_cv_func_std_isinf_in_cmath=no
29375 fi
29376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29377   ac_ext=c
29378 ac_cpp='$CPP $CPPFLAGS'
29379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29382
29383 fi
29384 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29385 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29386
29387 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29388
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_STD_ISINF_IN_CMATH 1
29391 _ACEOF
29392
29393 fi
29394
29395 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29396 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29397 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400   ac_ext=cc
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
29406    cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <ieeefp.h>
29413 int
29414 main ()
29415 {
29416 float f; finite(f);
29417   ;
29418   return 0;
29419 }
29420 _ACEOF
29421 rm -f conftest.$ac_objext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29423   (eval $ac_compile) 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_cxx_werror_flag"
29431                          || test ! -s conftest.err'
29432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433   (eval $ac_try) 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); }; } &&
29437          { ac_try='test -s conftest.$ac_objext'
29438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439   (eval $ac_try) 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; }; then
29443   ac_cv_func_finite_in_ieeefp_h=yes
29444 else
29445   echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448 ac_cv_func_finite_in_ieeefp_h=no
29449 fi
29450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29451   ac_ext=c
29452 ac_cpp='$CPP $CPPFLAGS'
29453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29456
29457 fi
29458 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29459 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29460
29461 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29462
29463 cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_FINITE_IN_IEEEFP_H 1
29465 _ACEOF
29466
29467 fi
29468
29469
29470
29471
29472
29473 for ac_header in stdlib.h unistd.h
29474 do
29475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29477   echo "$as_me:$LINENO: checking for $ac_header" >&5
29478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 fi
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29484 else
29485   # Is the header compilable?
29486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29488 cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 $ac_includes_default
29495 #include <$ac_header>
29496 _ACEOF
29497 rm -f conftest.$ac_objext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499   (eval $ac_compile) 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag"
29507                          || test ! -s conftest.err'
29508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509   (eval $ac_try) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; } &&
29513          { ac_try='test -s conftest.$ac_objext'
29514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515   (eval $ac_try) 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ac_header_compiler=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ac_header_compiler=no
29525 fi
29526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528 echo "${ECHO_T}$ac_header_compiler" >&6
29529
29530 # Is the header present?
29531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h.  */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h.  */
29539 #include <$ac_header>
29540 _ACEOF
29541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29543   ac_status=$?
29544   grep -v '^ *+' conftest.er1 >conftest.err
29545   rm -f conftest.er1
29546   cat conftest.err >&5
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } >/dev/null; then
29549   if test -s conftest.err; then
29550     ac_cpp_err=$ac_c_preproc_warn_flag
29551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29552   else
29553     ac_cpp_err=
29554   fi
29555 else
29556   ac_cpp_err=yes
29557 fi
29558 if test -z "$ac_cpp_err"; then
29559   ac_header_preproc=yes
29560 else
29561   echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564   ac_header_preproc=no
29565 fi
29566 rm -f conftest.err conftest.$ac_ext
29567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568 echo "${ECHO_T}$ac_header_preproc" >&6
29569
29570 # So?  What about this header?
29571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29572   yes:no: )
29573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577     ac_header_preproc=yes
29578     ;;
29579   no:yes:* )
29580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29592     (
29593       cat <<\_ASBOX
29594 ## ----------------------------------- ##
29595 ## Report this to llvmbugs@cs.uiuc.edu ##
29596 ## ----------------------------------- ##
29597 _ASBOX
29598     ) |
29599       sed "s/^/$as_me: WARNING:     /" >&2
29600     ;;
29601 esac
29602 echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29605   echo $ECHO_N "(cached) $ECHO_C" >&6
29606 else
29607   eval "$as_ac_Header=\$ac_header_preproc"
29608 fi
29609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29611
29612 fi
29613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29614   cat >>confdefs.h <<_ACEOF
29615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29616 _ACEOF
29617
29618 fi
29619
29620 done
29621
29622
29623 for ac_func in getpagesize
29624 do
29625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29626 echo "$as_me:$LINENO: checking for $ac_func" >&5
29627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29628 if eval "test \"\${$as_ac_var+set}\" = set"; then
29629   echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631   cat >conftest.$ac_ext <<_ACEOF
29632 /* confdefs.h.  */
29633 _ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h.  */
29637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29639 #define $ac_func innocuous_$ac_func
29640
29641 /* System header to define __stub macros and hopefully few prototypes,
29642     which can conflict with char $ac_func (); below.
29643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29644     <limits.h> exists even on freestanding compilers.  */
29645
29646 #ifdef __STDC__
29647 # include <limits.h>
29648 #else
29649 # include <assert.h>
29650 #endif
29651
29652 #undef $ac_func
29653
29654 /* Override any gcc2 internal prototype to avoid an error.  */
29655 #ifdef __cplusplus
29656 extern "C"
29657 {
29658 #endif
29659 /* We use char because int might match the return type of a gcc2
29660    builtin and then its argument prototype would still apply.  */
29661 char $ac_func ();
29662 /* The GNU C library defines this for functions which it implements
29663     to always fail with ENOSYS.  Some functions are actually named
29664     something starting with __ and the normal name is an alias.  */
29665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29666 choke me
29667 #else
29668 char (*f) () = $ac_func;
29669 #endif
29670 #ifdef __cplusplus
29671 }
29672 #endif
29673
29674 int
29675 main ()
29676 {
29677 return f != $ac_func;
29678   ;
29679   return 0;
29680 }
29681 _ACEOF
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29684   (eval $ac_link) 2>conftest.er1
29685   ac_status=$?
29686   grep -v '^ *+' conftest.er1 >conftest.err
29687   rm -f conftest.er1
29688   cat conftest.err >&5
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); } &&
29691          { ac_try='test -z "$ac_c_werror_flag"
29692                          || test ! -s conftest.err'
29693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694   (eval $ac_try) 2>&5
29695   ac_status=$?
29696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697   (exit $ac_status); }; } &&
29698          { ac_try='test -s conftest$ac_exeext'
29699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700   (eval $ac_try) 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   eval "$as_ac_var=yes"
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29708
29709 eval "$as_ac_var=no"
29710 fi
29711 rm -f conftest.err conftest.$ac_objext \
29712       conftest$ac_exeext conftest.$ac_ext
29713 fi
29714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29716 if test `eval echo '${'$as_ac_var'}'` = yes; then
29717   cat >>confdefs.h <<_ACEOF
29718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29719 _ACEOF
29720
29721 fi
29722 done
29723
29724 echo "$as_me:$LINENO: checking for working mmap" >&5
29725 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29726 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29727   echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729   if test "$cross_compiling" = yes; then
29730   ac_cv_func_mmap_fixed_mapped=no
29731 else
29732   cat >conftest.$ac_ext <<_ACEOF
29733 /* confdefs.h.  */
29734 _ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h.  */
29738 $ac_includes_default
29739 /* malloc might have been renamed as rpl_malloc. */
29740 #undef malloc
29741
29742 /* Thanks to Mike Haertel and Jim Avera for this test.
29743    Here is a matrix of mmap possibilities:
29744         mmap private not fixed
29745         mmap private fixed at somewhere currently unmapped
29746         mmap private fixed at somewhere already mapped
29747         mmap shared not fixed
29748         mmap shared fixed at somewhere currently unmapped
29749         mmap shared fixed at somewhere already mapped
29750    For private mappings, we should verify that changes cannot be read()
29751    back from the file, nor mmap's back from the file at a different
29752    address.  (There have been systems where private was not correctly
29753    implemented like the infamous i386 svr4.0, and systems where the
29754    VM page cache was not coherent with the file system buffer cache
29755    like early versions of FreeBSD and possibly contemporary NetBSD.)
29756    For shared mappings, we should conversely verify that changes get
29757    propagated back to all the places they're supposed to be.
29758
29759    Grep wants private fixed already mapped.
29760    The main things grep needs to know about mmap are:
29761    * does it exist and is it safe to write into the mmap'd area
29762    * how to use it (BSD variants)  */
29763
29764 #include <fcntl.h>
29765 #include <sys/mman.h>
29766
29767 #if !STDC_HEADERS && !HAVE_STDLIB_H
29768 char *malloc ();
29769 #endif
29770
29771 /* This mess was copied from the GNU getpagesize.h.  */
29772 #if !HAVE_GETPAGESIZE
29773 /* Assume that all systems that can run configure have sys/param.h.  */
29774 # if !HAVE_SYS_PARAM_H
29775 #  define HAVE_SYS_PARAM_H 1
29776 # endif
29777
29778 # ifdef _SC_PAGESIZE
29779 #  define getpagesize() sysconf(_SC_PAGESIZE)
29780 # else /* no _SC_PAGESIZE */
29781 #  if HAVE_SYS_PARAM_H
29782 #   include <sys/param.h>
29783 #   ifdef EXEC_PAGESIZE
29784 #    define getpagesize() EXEC_PAGESIZE
29785 #   else /* no EXEC_PAGESIZE */
29786 #    ifdef NBPG
29787 #     define getpagesize() NBPG * CLSIZE
29788 #     ifndef CLSIZE
29789 #      define CLSIZE 1
29790 #     endif /* no CLSIZE */
29791 #    else /* no NBPG */
29792 #     ifdef NBPC
29793 #      define getpagesize() NBPC
29794 #     else /* no NBPC */
29795 #      ifdef PAGESIZE
29796 #       define getpagesize() PAGESIZE
29797 #      endif /* PAGESIZE */
29798 #     endif /* no NBPC */
29799 #    endif /* no NBPG */
29800 #   endif /* no EXEC_PAGESIZE */
29801 #  else /* no HAVE_SYS_PARAM_H */
29802 #   define getpagesize() 8192   /* punt totally */
29803 #  endif /* no HAVE_SYS_PARAM_H */
29804 # endif /* no _SC_PAGESIZE */
29805
29806 #endif /* no HAVE_GETPAGESIZE */
29807
29808 int
29809 main ()
29810 {
29811   char *data, *data2, *data3;
29812   int i, pagesize;
29813   int fd;
29814
29815   pagesize = getpagesize ();
29816
29817   /* First, make a file with some known garbage in it. */
29818   data = (char *) malloc (pagesize);
29819   if (!data)
29820     exit (1);
29821   for (i = 0; i < pagesize; ++i)
29822     *(data + i) = rand ();
29823   umask (0);
29824   fd = creat ("conftest.mmap", 0600);
29825   if (fd < 0)
29826     exit (1);
29827   if (write (fd, data, pagesize) != pagesize)
29828     exit (1);
29829   close (fd);
29830
29831   /* Next, try to mmap the file at a fixed address which already has
29832      something else allocated at it.  If we can, also make sure that
29833      we see the same garbage.  */
29834   fd = open ("conftest.mmap", O_RDWR);
29835   if (fd < 0)
29836     exit (1);
29837   data2 = (char *) malloc (2 * pagesize);
29838   if (!data2)
29839     exit (1);
29840   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29841   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29842                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29843     exit (1);
29844   for (i = 0; i < pagesize; ++i)
29845     if (*(data + i) != *(data2 + i))
29846       exit (1);
29847
29848   /* Finally, make sure that changes to the mapped area do not
29849      percolate back to the file as seen by read().  (This is a bug on
29850      some variants of i386 svr4.0.)  */
29851   for (i = 0; i < pagesize; ++i)
29852     *(data2 + i) = *(data2 + i) + 1;
29853   data3 = (char *) malloc (pagesize);
29854   if (!data3)
29855     exit (1);
29856   if (read (fd, data3, pagesize) != pagesize)
29857     exit (1);
29858   for (i = 0; i < pagesize; ++i)
29859     if (*(data + i) != *(data3 + i))
29860       exit (1);
29861   close (fd);
29862   exit (0);
29863 }
29864 _ACEOF
29865 rm -f conftest$ac_exeext
29866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29867   (eval $ac_link) 2>&5
29868   ac_status=$?
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872   (eval $ac_try) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; }; then
29876   ac_cv_func_mmap_fixed_mapped=yes
29877 else
29878   echo "$as_me: program exited with status $ac_status" >&5
29879 echo "$as_me: failed program was:" >&5
29880 sed 's/^/| /' conftest.$ac_ext >&5
29881
29882 ( exit $ac_status )
29883 ac_cv_func_mmap_fixed_mapped=no
29884 fi
29885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29886 fi
29887 fi
29888 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29889 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29891
29892 cat >>confdefs.h <<\_ACEOF
29893 #define HAVE_MMAP 1
29894 _ACEOF
29895
29896 fi
29897 rm -f conftest.mmap
29898
29899 echo "$as_me:$LINENO: checking for mmap of files" >&5
29900 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29901 if test "${ac_cv_func_mmap_file+set}" = set; then
29902   echo $ECHO_N "(cached) $ECHO_C" >&6
29903 else
29904    ac_ext=c
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910   if test "$cross_compiling" = yes; then
29911   ac_cv_func_mmap_file=no
29912 else
29913   cat >conftest.$ac_ext <<_ACEOF
29914
29915     /* confdefs.h.  */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h.  */
29920
29921 #include <sys/types.h>
29922 #include <sys/mman.h>
29923 #include <fcntl.h>
29924
29925 int
29926 main ()
29927 {
29928
29929   int fd;
29930   fd = creat ("foo",0777);
29931   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29932   unlink ("foo");
29933   return (fd != (int) MAP_FAILED);
29934   ;
29935   return 0;
29936 }
29937 _ACEOF
29938 rm -f conftest$ac_exeext
29939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940   (eval $ac_link) 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945   (eval $ac_try) 2>&5
29946   ac_status=$?
29947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948   (exit $ac_status); }; }; then
29949   ac_cv_func_mmap_file=yes
29950 else
29951   echo "$as_me: program exited with status $ac_status" >&5
29952 echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29954
29955 ( exit $ac_status )
29956 ac_cv_func_mmap_file=no
29957 fi
29958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29959 fi
29960   ac_ext=c
29961 ac_cpp='$CPP $CPPFLAGS'
29962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29965
29966
29967 fi
29968 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29969 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29970 if test "$ac_cv_func_mmap_file" = yes; then
29971
29972 cat >>confdefs.h <<\_ACEOF
29973 #define HAVE_MMAP_FILE
29974 _ACEOF
29975
29976    MMAP_FILE=yes
29977
29978 fi
29979
29980 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29981 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29982 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29983   echo $ECHO_N "(cached) $ECHO_C" >&6
29984 else
29985   if test "$llvm_cv_os_type" = "Interix" ; then
29986    ac_cv_need_dev_zero_for_mmap=yes
29987  else
29988    ac_cv_need_dev_zero_for_mmap=no
29989  fi
29990
29991 fi
29992 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29993 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29994 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29995
29996 cat >>confdefs.h <<\_ACEOF
29997 #define NEED_DEV_ZERO_FOR_MMAP 1
29998 _ACEOF
29999
30000 fi
30001 echo "$as_me:$LINENO: checking for mprotect" >&5
30002 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30003 if test "${ac_cv_func_mprotect+set}" = set; then
30004   echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006   cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30014 #define mprotect innocuous_mprotect
30015
30016 /* System header to define __stub macros and hopefully few prototypes,
30017     which can conflict with char mprotect (); below.
30018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30019     <limits.h> exists even on freestanding compilers.  */
30020
30021 #ifdef __STDC__
30022 # include <limits.h>
30023 #else
30024 # include <assert.h>
30025 #endif
30026
30027 #undef mprotect
30028
30029 /* Override any gcc2 internal prototype to avoid an error.  */
30030 #ifdef __cplusplus
30031 extern "C"
30032 {
30033 #endif
30034 /* We use char because int might match the return type of a gcc2
30035    builtin and then its argument prototype would still apply.  */
30036 char mprotect ();
30037 /* The GNU C library defines this for functions which it implements
30038     to always fail with ENOSYS.  Some functions are actually named
30039     something starting with __ and the normal name is an alias.  */
30040 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30041 choke me
30042 #else
30043 char (*f) () = mprotect;
30044 #endif
30045 #ifdef __cplusplus
30046 }
30047 #endif
30048
30049 int
30050 main ()
30051 {
30052 return f != mprotect;
30053   ;
30054   return 0;
30055 }
30056 _ACEOF
30057 rm -f conftest.$ac_objext conftest$ac_exeext
30058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30059   (eval $ac_link) 2>conftest.er1
30060   ac_status=$?
30061   grep -v '^ *+' conftest.er1 >conftest.err
30062   rm -f conftest.er1
30063   cat conftest.err >&5
30064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); } &&
30066          { ac_try='test -z "$ac_c_werror_flag"
30067                          || test ! -s conftest.err'
30068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069   (eval $ac_try) 2>&5
30070   ac_status=$?
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); }; } &&
30073          { ac_try='test -s conftest$ac_exeext'
30074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075   (eval $ac_try) 2>&5
30076   ac_status=$?
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); }; }; then
30079   ac_cv_func_mprotect=yes
30080 else
30081   echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30083
30084 ac_cv_func_mprotect=no
30085 fi
30086 rm -f conftest.err conftest.$ac_objext \
30087       conftest$ac_exeext conftest.$ac_ext
30088 fi
30089 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30090 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30091 if test $ac_cv_func_mprotect = yes; then
30092   :
30093 else
30094   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30095 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30096    { (exit 1); exit 1; }; }
30097 fi
30098
30099
30100 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30101 then
30102   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30103 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30104 fi
30105 if test "$ac_cv_func_mmap_file" = "no"
30106 then
30107   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30108 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30109 fi
30110
30111
30112 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30113 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30114 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30115   echo $ECHO_N "(cached) $ECHO_C" >&6
30116 else
30117   llvm_cv_llvmgcc_sanity="no"
30118 if test -x "$LLVMGCC" ; then
30119   cp /dev/null conftest.c
30120   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30121   if test $? -eq 0 ; then
30122     llvm_cv_llvmgcc_sanity="yes"
30123   fi
30124   rm conftest.c
30125 fi
30126 fi
30127 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30128 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30129
30130 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30131   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30132   LLVMCC1=$llvmcc1path
30133
30134   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30135   LLVMCC1PLUS=$llvmcc1pluspath
30136
30137   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30138   LLVMGCCDIR=$llvmgccdir
30139
30140 fi
30141
30142 SHLIBEXT=$libltdl_cv_shlibext
30143
30144
30145 # Translate the various configuration directories and other basic
30146 # information into substitutions that will end up in Makefile.config.in
30147 # that these configured values can be used by the makefiles
30148 eval LLVM_PREFIX="${prefix}";
30149 eval LLVM_BINDIR="${prefix}/bin";
30150 eval LLVM_LIBDIR="${prefix}/lib";
30151 eval LLVM_DATADIR="${prefix}/share/llvm";
30152 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30153 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30154 eval LLVM_INCLUDEDIR="${prefix}/include";
30155 eval LLVM_INFODIR="${prefix}/info";
30156 eval LLVM_MANDIR="${prefix}/man";
30157 LLVM_CONFIGTIME=`date`
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169 # Place the various directores into the config.h file as #defines so that we
30170 # can know about the installation paths within LLVM.
30171
30172 cat >>confdefs.h <<_ACEOF
30173 #define LLVM_PREFIX "$LLVM_PREFIX"
30174 _ACEOF
30175
30176
30177 cat >>confdefs.h <<_ACEOF
30178 #define LLVM_BINDIR "$LLVM_BINDIR"
30179 _ACEOF
30180
30181
30182 cat >>confdefs.h <<_ACEOF
30183 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30184 _ACEOF
30185
30186
30187 cat >>confdefs.h <<_ACEOF
30188 #define LLVM_DATADIR "$LLVM_DATADIR"
30189 _ACEOF
30190
30191
30192 cat >>confdefs.h <<_ACEOF
30193 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30194 _ACEOF
30195
30196
30197 cat >>confdefs.h <<_ACEOF
30198 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30199 _ACEOF
30200
30201
30202 cat >>confdefs.h <<_ACEOF
30203 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30204 _ACEOF
30205
30206
30207 cat >>confdefs.h <<_ACEOF
30208 #define LLVM_INFODIR "$LLVM_INFODIR"
30209 _ACEOF
30210
30211
30212 cat >>confdefs.h <<_ACEOF
30213 #define LLVM_MANDIR "$LLVM_MANDIR"
30214 _ACEOF
30215
30216
30217 cat >>confdefs.h <<_ACEOF
30218 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30219 _ACEOF
30220
30221
30222
30223           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30224
30225
30226           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30227
30228           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30229
30230           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30231
30232           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30233
30234           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30235
30236
30237           ac_config_files="$ac_config_files Makefile.config"
30238
30239
30240                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30241
30242
30243           ac_config_files="$ac_config_files docs/doxygen.cfg"
30244
30245
30246           ac_config_commands="$ac_config_commands setup"
30247
30248           ac_config_commands="$ac_config_commands Makefile"
30249
30250
30251           ac_config_commands="$ac_config_commands Makefile.common"
30252
30253
30254           ac_config_commands="$ac_config_commands examples/Makefile"
30255
30256
30257           ac_config_commands="$ac_config_commands lib/Makefile"
30258
30259
30260           ac_config_commands="$ac_config_commands runtime/Makefile"
30261
30262
30263           ac_config_commands="$ac_config_commands test/Makefile"
30264
30265
30266           ac_config_commands="$ac_config_commands test/Makefile.tests"
30267
30268
30269           ac_config_commands="$ac_config_commands tools/Makefile"
30270
30271
30272           ac_config_commands="$ac_config_commands utils/Makefile"
30273
30274
30275           ac_config_commands="$ac_config_commands projects/Makefile"
30276
30277
30278
30279 cat >confcache <<\_ACEOF
30280 # This file is a shell script that caches the results of configure
30281 # tests run on this system so they can be shared between configure
30282 # scripts and configure runs, see configure's option --config-cache.
30283 # It is not useful on other systems.  If it contains results you don't
30284 # want to keep, you may remove or edit it.
30285 #
30286 # config.status only pays attention to the cache file if you give it
30287 # the --recheck option to rerun configure.
30288 #
30289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30291 # following values.
30292
30293 _ACEOF
30294
30295 # The following way of writing the cache mishandles newlines in values,
30296 # but we know of no workaround that is simple, portable, and efficient.
30297 # So, don't put newlines in cache variables' values.
30298 # Ultrix sh set writes to stderr and can't be redirected directly,
30299 # and sets the high bit in the cache file unless we assign to the vars.
30300 {
30301   (set) 2>&1 |
30302     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30303     *ac_space=\ *)
30304       # `set' does not quote correctly, so add quotes (double-quote
30305       # substitution turns \\\\ into \\, and sed turns \\ into \).
30306       sed -n \
30307         "s/'/'\\\\''/g;
30308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30309       ;;
30310     *)
30311       # `set' quotes correctly as required by POSIX, so do not add quotes.
30312       sed -n \
30313         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30314       ;;
30315     esac;
30316 } |
30317   sed '
30318      t clear
30319      : clear
30320      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30321      t end
30322      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30323      : end' >>confcache
30324 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30325   if test -w $cache_file; then
30326     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30327     cat confcache >$cache_file
30328   else
30329     echo "not updating unwritable cache $cache_file"
30330   fi
30331 fi
30332 rm -f confcache
30333
30334 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30335 # Let make expand exec_prefix.
30336 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30337
30338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30340 # trailing colons and then remove the whole line if VPATH becomes empty
30341 # (actually we leave an empty line to preserve line numbers).
30342 if test "x$srcdir" = x.; then
30343   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30344 s/:*\$(srcdir):*/:/;
30345 s/:*\${srcdir}:*/:/;
30346 s/:*@srcdir@:*/:/;
30347 s/^\([^=]*=[     ]*\):*/\1/;
30348 s/:*$//;
30349 s/^[^=]*=[       ]*$//;
30350 }'
30351 fi
30352
30353 DEFS=-DHAVE_CONFIG_H
30354
30355 ac_libobjs=
30356 ac_ltlibobjs=
30357 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30358   # 1. Remove the extension, and $U if already installed.
30359   ac_i=`echo "$ac_i" |
30360          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30361   # 2. Add them.
30362   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30363   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30364 done
30365 LIBOBJS=$ac_libobjs
30366
30367 LTLIBOBJS=$ac_ltlibobjs
30368
30369
30370 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30371   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30372 Usually this means the macro was only invoked conditionally." >&5
30373 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30374 Usually this means the macro was only invoked conditionally." >&2;}
30375    { (exit 1); exit 1; }; }
30376 fi
30377 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30378   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30379 Usually this means the macro was only invoked conditionally." >&5
30380 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30381 Usually this means the macro was only invoked conditionally." >&2;}
30382    { (exit 1); exit 1; }; }
30383 fi
30384
30385 : ${CONFIG_STATUS=./config.status}
30386 ac_clean_files_save=$ac_clean_files
30387 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30388 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30389 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30390 cat >$CONFIG_STATUS <<_ACEOF
30391 #! $SHELL
30392 # Generated by $as_me.
30393 # Run this file to recreate the current configuration.
30394 # Compiler output produced by configure, useful for debugging
30395 # configure, is in config.log if it exists.
30396
30397 debug=false
30398 ac_cs_recheck=false
30399 ac_cs_silent=false
30400 SHELL=\${CONFIG_SHELL-$SHELL}
30401 _ACEOF
30402
30403 cat >>$CONFIG_STATUS <<\_ACEOF
30404 ## --------------------- ##
30405 ## M4sh Initialization.  ##
30406 ## --------------------- ##
30407
30408 # Be Bourne compatible
30409 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30410   emulate sh
30411   NULLCMD=:
30412   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30413   # is contrary to our usage.  Disable this feature.
30414   alias -g '${1+"$@"}'='"$@"'
30415 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30416   set -o posix
30417 fi
30418 DUALCASE=1; export DUALCASE # for MKS sh
30419
30420 # Support unset when possible.
30421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30422   as_unset=unset
30423 else
30424   as_unset=false
30425 fi
30426
30427
30428 # Work around bugs in pre-3.0 UWIN ksh.
30429 $as_unset ENV MAIL MAILPATH
30430 PS1='$ '
30431 PS2='> '
30432 PS4='+ '
30433
30434 # NLS nuisances.
30435 for as_var in \
30436   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30437   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30438   LC_TELEPHONE LC_TIME
30439 do
30440   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30441     eval $as_var=C; export $as_var
30442   else
30443     $as_unset $as_var
30444   fi
30445 done
30446
30447 # Required to use basename.
30448 if expr a : '\(a\)' >/dev/null 2>&1; then
30449   as_expr=expr
30450 else
30451   as_expr=false
30452 fi
30453
30454 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30455   as_basename=basename
30456 else
30457   as_basename=false
30458 fi
30459
30460
30461 # Name of the executable.
30462 as_me=`$as_basename "$0" ||
30463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30464          X"$0" : 'X\(//\)$' \| \
30465          X"$0" : 'X\(/\)$' \| \
30466          .     : '\(.\)' 2>/dev/null ||
30467 echo X/"$0" |
30468     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30469           /^X\/\(\/\/\)$/{ s//\1/; q; }
30470           /^X\/\(\/\).*/{ s//\1/; q; }
30471           s/.*/./; q'`
30472
30473
30474 # PATH needs CR, and LINENO needs CR and PATH.
30475 # Avoid depending upon Character Ranges.
30476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30479 as_cr_digits='0123456789'
30480 as_cr_alnum=$as_cr_Letters$as_cr_digits
30481
30482 # The user is always right.
30483 if test "${PATH_SEPARATOR+set}" != set; then
30484   echo "#! /bin/sh" >conf$$.sh
30485   echo  "exit 0"   >>conf$$.sh
30486   chmod +x conf$$.sh
30487   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30488     PATH_SEPARATOR=';'
30489   else
30490     PATH_SEPARATOR=:
30491   fi
30492   rm -f conf$$.sh
30493 fi
30494
30495
30496   as_lineno_1=$LINENO
30497   as_lineno_2=$LINENO
30498   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30499   test "x$as_lineno_1" != "x$as_lineno_2" &&
30500   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30501   # Find who we are.  Look in the path if we contain no path at all
30502   # relative or not.
30503   case $0 in
30504     *[\\/]* ) as_myself=$0 ;;
30505     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30506 for as_dir in $PATH
30507 do
30508   IFS=$as_save_IFS
30509   test -z "$as_dir" && as_dir=.
30510   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30511 done
30512
30513        ;;
30514   esac
30515   # We did not find ourselves, most probably we were run as `sh COMMAND'
30516   # in which case we are not to be found in the path.
30517   if test "x$as_myself" = x; then
30518     as_myself=$0
30519   fi
30520   if test ! -f "$as_myself"; then
30521     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30522 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30523    { (exit 1); exit 1; }; }
30524   fi
30525   case $CONFIG_SHELL in
30526   '')
30527     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30528 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30529 do
30530   IFS=$as_save_IFS
30531   test -z "$as_dir" && as_dir=.
30532   for as_base in sh bash ksh sh5; do
30533          case $as_dir in
30534          /*)
30535            if ("$as_dir/$as_base" -c '
30536   as_lineno_1=$LINENO
30537   as_lineno_2=$LINENO
30538   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30539   test "x$as_lineno_1" != "x$as_lineno_2" &&
30540   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30541              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30542              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30543              CONFIG_SHELL=$as_dir/$as_base
30544              export CONFIG_SHELL
30545              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30546            fi;;
30547          esac
30548        done
30549 done
30550 ;;
30551   esac
30552
30553   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30554   # uniformly replaced by the line number.  The first 'sed' inserts a
30555   # line-number line before each line; the second 'sed' does the real
30556   # work.  The second script uses 'N' to pair each line-number line
30557   # with the numbered line, and appends trailing '-' during
30558   # substitution so that $LINENO is not a special case at line end.
30559   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30560   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30561   sed '=' <$as_myself |
30562     sed '
30563       N
30564       s,$,-,
30565       : loop
30566       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30567       t loop
30568       s,-$,,
30569       s,^['$as_cr_digits']*\n,,
30570     ' >$as_me.lineno &&
30571   chmod +x $as_me.lineno ||
30572     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30573 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30574    { (exit 1); exit 1; }; }
30575
30576   # Don't try to exec as it changes $[0], causing all sort of problems
30577   # (the dirname of $[0] is not the place where we might find the
30578   # original and so on.  Autoconf is especially sensible to this).
30579   . ./$as_me.lineno
30580   # Exit status is that of the last command.
30581   exit
30582 }
30583
30584
30585 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30586   *c*,-n*) ECHO_N= ECHO_C='
30587 ' ECHO_T='      ' ;;
30588   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30589   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30590 esac
30591
30592 if expr a : '\(a\)' >/dev/null 2>&1; then
30593   as_expr=expr
30594 else
30595   as_expr=false
30596 fi
30597
30598 rm -f conf$$ conf$$.exe conf$$.file
30599 echo >conf$$.file
30600 if ln -s conf$$.file conf$$ 2>/dev/null; then
30601   # We could just check for DJGPP; but this test a) works b) is more generic
30602   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30603   if test -f conf$$.exe; then
30604     # Don't use ln at all; we don't have any links
30605     as_ln_s='cp -p'
30606   else
30607     as_ln_s='ln -s'
30608   fi
30609 elif ln conf$$.file conf$$ 2>/dev/null; then
30610   as_ln_s=ln
30611 else
30612   as_ln_s='cp -p'
30613 fi
30614 rm -f conf$$ conf$$.exe conf$$.file
30615
30616 if mkdir -p . 2>/dev/null; then
30617   as_mkdir_p=:
30618 else
30619   test -d ./-p && rmdir ./-p
30620   as_mkdir_p=false
30621 fi
30622
30623 as_executable_p="test -f"
30624
30625 # Sed expression to map a string onto a valid CPP name.
30626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30627
30628 # Sed expression to map a string onto a valid variable name.
30629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30630
30631
30632 # IFS
30633 # We need space, tab and new line, in precisely that order.
30634 as_nl='
30635 '
30636 IFS="   $as_nl"
30637
30638 # CDPATH.
30639 $as_unset CDPATH
30640
30641 exec 6>&1
30642
30643 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30644 # report actual input values of CONFIG_FILES etc. instead of their
30645 # values after options handling.  Logging --version etc. is OK.
30646 exec 5>>config.log
30647 {
30648   echo
30649   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30650 ## Running $as_me. ##
30651 _ASBOX
30652 } >&5
30653 cat >&5 <<_CSEOF
30654
30655 This file was extended by llvm $as_me 1.5cvs, which was
30656 generated by GNU Autoconf 2.59.  Invocation command line was
30657
30658   CONFIG_FILES    = $CONFIG_FILES
30659   CONFIG_HEADERS  = $CONFIG_HEADERS
30660   CONFIG_LINKS    = $CONFIG_LINKS
30661   CONFIG_COMMANDS = $CONFIG_COMMANDS
30662   $ $0 $@
30663
30664 _CSEOF
30665 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30666 echo >&5
30667 _ACEOF
30668
30669 # Files that config.status was made for.
30670 if test -n "$ac_config_files"; then
30671   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30672 fi
30673
30674 if test -n "$ac_config_headers"; then
30675   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30676 fi
30677
30678 if test -n "$ac_config_links"; then
30679   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30680 fi
30681
30682 if test -n "$ac_config_commands"; then
30683   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30684 fi
30685
30686 cat >>$CONFIG_STATUS <<\_ACEOF
30687
30688 ac_cs_usage="\
30689 \`$as_me' instantiates files from templates according to the
30690 current configuration.
30691
30692 Usage: $0 [OPTIONS] [FILE]...
30693
30694   -h, --help       print this help, then exit
30695   -V, --version    print version number, then exit
30696   -q, --quiet      do not print progress messages
30697   -d, --debug      don't remove temporary files
30698       --recheck    update $as_me by reconfiguring in the same conditions
30699   --file=FILE[:TEMPLATE]
30700                    instantiate the configuration file FILE
30701   --header=FILE[:TEMPLATE]
30702                    instantiate the configuration header FILE
30703
30704 Configuration files:
30705 $config_files
30706
30707 Configuration headers:
30708 $config_headers
30709
30710 Configuration commands:
30711 $config_commands
30712
30713 Report bugs to <bug-autoconf@gnu.org>."
30714 _ACEOF
30715
30716 cat >>$CONFIG_STATUS <<_ACEOF
30717 ac_cs_version="\\
30718 llvm config.status 1.5cvs
30719 configured by $0, generated by GNU Autoconf 2.59,
30720   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30721
30722 Copyright (C) 2003 Free Software Foundation, Inc.
30723 This config.status script is free software; the Free Software Foundation
30724 gives unlimited permission to copy, distribute and modify it."
30725 srcdir=$srcdir
30726 INSTALL="$INSTALL"
30727 _ACEOF
30728
30729 cat >>$CONFIG_STATUS <<\_ACEOF
30730 # If no file are specified by the user, then we need to provide default
30731 # value.  By we need to know if files were specified by the user.
30732 ac_need_defaults=:
30733 while test $# != 0
30734 do
30735   case $1 in
30736   --*=*)
30737     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30738     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30739     ac_shift=:
30740     ;;
30741   -*)
30742     ac_option=$1
30743     ac_optarg=$2
30744     ac_shift=shift
30745     ;;
30746   *) # This is not an option, so the user has probably given explicit
30747      # arguments.
30748      ac_option=$1
30749      ac_need_defaults=false;;
30750   esac
30751
30752   case $ac_option in
30753   # Handling of the options.
30754 _ACEOF
30755 cat >>$CONFIG_STATUS <<\_ACEOF
30756   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30757     ac_cs_recheck=: ;;
30758   --version | --vers* | -V )
30759     echo "$ac_cs_version"; exit 0 ;;
30760   --he | --h)
30761     # Conflict between --help and --header
30762     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30763 Try \`$0 --help' for more information." >&5
30764 echo "$as_me: error: ambiguous option: $1
30765 Try \`$0 --help' for more information." >&2;}
30766    { (exit 1); exit 1; }; };;
30767   --help | --hel | -h )
30768     echo "$ac_cs_usage"; exit 0 ;;
30769   --debug | --d* | -d )
30770     debug=: ;;
30771   --file | --fil | --fi | --f )
30772     $ac_shift
30773     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30774     ac_need_defaults=false;;
30775   --header | --heade | --head | --hea )
30776     $ac_shift
30777     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30778     ac_need_defaults=false;;
30779   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30780   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30781     ac_cs_silent=: ;;
30782
30783   # This is an error.
30784   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30785 Try \`$0 --help' for more information." >&5
30786 echo "$as_me: error: unrecognized option: $1
30787 Try \`$0 --help' for more information." >&2;}
30788    { (exit 1); exit 1; }; } ;;
30789
30790   *) ac_config_targets="$ac_config_targets $1" ;;
30791
30792   esac
30793   shift
30794 done
30795
30796 ac_configure_extra_args=
30797
30798 if $ac_cs_silent; then
30799   exec 6>/dev/null
30800   ac_configure_extra_args="$ac_configure_extra_args --silent"
30801 fi
30802
30803 _ACEOF
30804 cat >>$CONFIG_STATUS <<_ACEOF
30805 if \$ac_cs_recheck; then
30806   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30807   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30808 fi
30809
30810 _ACEOF
30811
30812 cat >>$CONFIG_STATUS <<_ACEOF
30813 #
30814 # INIT-COMMANDS section.
30815 #
30816
30817 llvm_src="${srcdir}"
30818
30819 _ACEOF
30820
30821
30822
30823 cat >>$CONFIG_STATUS <<\_ACEOF
30824 for ac_config_target in $ac_config_targets
30825 do
30826   case "$ac_config_target" in
30827   # Handling of arguments.
30828   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30829   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30830   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30831   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30832   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30833   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30834   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30835   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30836   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30837   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30838   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30839   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30840   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30841   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30842   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30843   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30844   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30845   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30846   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30847   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30848   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30849   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30850   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30851   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30853    { (exit 1); exit 1; }; };;
30854   esac
30855 done
30856
30857 # If the user did not use the arguments to specify the items to instantiate,
30858 # then the envvar interface is used.  Set only those that are not.
30859 # We use the long form for the default assignment because of an extremely
30860 # bizarre bug on SunOS 4.1.3.
30861 if $ac_need_defaults; then
30862   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30863   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30865 fi
30866
30867 # Have a temporary directory for convenience.  Make it in the build tree
30868 # simply because there is no reason to put it here, and in addition,
30869 # creating and moving files from /tmp can sometimes cause problems.
30870 # Create a temporary directory, and hook for its removal unless debugging.
30871 $debug ||
30872 {
30873   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30874   trap '{ (exit 1); exit 1; }' 1 2 13 15
30875 }
30876
30877 # Create a (secure) tmp directory for tmp files.
30878
30879 {
30880   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30881   test -n "$tmp" && test -d "$tmp"
30882 }  ||
30883 {
30884   tmp=./confstat$$-$RANDOM
30885   (umask 077 && mkdir $tmp)
30886 } ||
30887 {
30888    echo "$me: cannot create a temporary directory in ." >&2
30889    { (exit 1); exit 1; }
30890 }
30891
30892 _ACEOF
30893
30894 cat >>$CONFIG_STATUS <<_ACEOF
30895
30896 #
30897 # CONFIG_FILES section.
30898 #
30899
30900 # No need to generate the scripts if there are no CONFIG_FILES.
30901 # This happens for instance when ./config.status config.h
30902 if test -n "\$CONFIG_FILES"; then
30903   # Protect against being on the right side of a sed subst in config.status.
30904   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30905    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30906 s,@SHELL@,$SHELL,;t t
30907 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30908 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30909 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30910 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30911 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30912 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30913 s,@exec_prefix@,$exec_prefix,;t t
30914 s,@prefix@,$prefix,;t t
30915 s,@program_transform_name@,$program_transform_name,;t t
30916 s,@bindir@,$bindir,;t t
30917 s,@sbindir@,$sbindir,;t t
30918 s,@libexecdir@,$libexecdir,;t t
30919 s,@datadir@,$datadir,;t t
30920 s,@sysconfdir@,$sysconfdir,;t t
30921 s,@sharedstatedir@,$sharedstatedir,;t t
30922 s,@localstatedir@,$localstatedir,;t t
30923 s,@libdir@,$libdir,;t t
30924 s,@includedir@,$includedir,;t t
30925 s,@oldincludedir@,$oldincludedir,;t t
30926 s,@infodir@,$infodir,;t t
30927 s,@mandir@,$mandir,;t t
30928 s,@build_alias@,$build_alias,;t t
30929 s,@host_alias@,$host_alias,;t t
30930 s,@target_alias@,$target_alias,;t t
30931 s,@DEFS@,$DEFS,;t t
30932 s,@ECHO_C@,$ECHO_C,;t t
30933 s,@ECHO_N@,$ECHO_N,;t t
30934 s,@ECHO_T@,$ECHO_T,;t t
30935 s,@LIBS@,$LIBS,;t t
30936 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30937 s,@subdirs@,$subdirs,;t t
30938 s,@build@,$build,;t t
30939 s,@build_cpu@,$build_cpu,;t t
30940 s,@build_vendor@,$build_vendor,;t t
30941 s,@build_os@,$build_os,;t t
30942 s,@host@,$host,;t t
30943 s,@host_cpu@,$host_cpu,;t t
30944 s,@host_vendor@,$host_vendor,;t t
30945 s,@host_os@,$host_os,;t t
30946 s,@target@,$target,;t t
30947 s,@target_cpu@,$target_cpu,;t t
30948 s,@target_vendor@,$target_vendor,;t t
30949 s,@target_os@,$target_os,;t t
30950 s,@OS@,$OS,;t t
30951 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30952 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30953 s,@ARCH@,$ARCH,;t t
30954 s,@ENDIAN@,$ENDIAN,;t t
30955 s,@CC@,$CC,;t t
30956 s,@CFLAGS@,$CFLAGS,;t t
30957 s,@LDFLAGS@,$LDFLAGS,;t t
30958 s,@CPPFLAGS@,$CPPFLAGS,;t t
30959 s,@ac_ct_CC@,$ac_ct_CC,;t t
30960 s,@EXEEXT@,$EXEEXT,;t t
30961 s,@OBJEXT@,$OBJEXT,;t t
30962 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30963 s,@JIT@,$JIT,;t t
30964 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30965 s,@CPP@,$CPP,;t t
30966 s,@CXX@,$CXX,;t t
30967 s,@CXXFLAGS@,$CXXFLAGS,;t t
30968 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30969 s,@LEX@,$LEX,;t t
30970 s,@LEXLIB@,$LEXLIB,;t t
30971 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30972 s,@FLEX@,$FLEX,;t t
30973 s,@YACC@,$YACC,;t t
30974 s,@BISON@,$BISON,;t t
30975 s,@ifGNUmake@,$ifGNUmake,;t t
30976 s,@LN_S@,$LN_S,;t t
30977 s,@CMP@,$CMP,;t t
30978 s,@CP@,$CP,;t t
30979 s,@DATE@,$DATE,;t t
30980 s,@FIND@,$FIND,;t t
30981 s,@GREP@,$GREP,;t t
30982 s,@MKDIR@,$MKDIR,;t t
30983 s,@MV@,$MV,;t t
30984 s,@RANLIB@,$RANLIB,;t t
30985 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30986 s,@RM@,$RM,;t t
30987 s,@SED@,$SED,;t t
30988 s,@TAR@,$TAR,;t t
30989 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30990 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30991 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30992 s,@BZIP2@,$BZIP2,;t t
30993 s,@DOT@,$DOT,;t t
30994 s,@DOXYGEN@,$DOXYGEN,;t t
30995 s,@ETAGS@,$ETAGS,;t t
30996 s,@GROFF@,$GROFF,;t t
30997 s,@GZIP@,$GZIP,;t t
30998 s,@POD2HTML@,$POD2HTML,;t t
30999 s,@POD2MAN@,$POD2MAN,;t t
31000 s,@RUNTEST@,$RUNTEST,;t t
31001 s,@TCLSH@,$TCLSH,;t t
31002 s,@ZIP@,$ZIP,;t t
31003 s,@EGREP@,$EGREP,;t t
31004 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31005 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31006 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31007 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31008 s,@LIBADD_DL@,$LIBADD_DL,;t t
31009 s,@ECHO@,$ECHO,;t t
31010 s,@AR@,$AR,;t t
31011 s,@ac_ct_AR@,$ac_ct_AR,;t t
31012 s,@STRIP@,$STRIP,;t t
31013 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31014 s,@CXXCPP@,$CXXCPP,;t t
31015 s,@F77@,$F77,;t t
31016 s,@FFLAGS@,$FFLAGS,;t t
31017 s,@ac_ct_F77@,$ac_ct_F77,;t t
31018 s,@LIBTOOL@,$LIBTOOL,;t t
31019 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31020 s,@LLVMGCC@,$LLVMGCC,;t t
31021 s,@LLVMGXX@,$LLVMGXX,;t t
31022 s,@ALLOCA@,$ALLOCA,;t t
31023 s,@MMAP_FILE@,$MMAP_FILE,;t t
31024 s,@LLVMCC1@,$LLVMCC1,;t t
31025 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31026 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31027 s,@SHLIBEXT@,$SHLIBEXT,;t t
31028 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31029 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31030 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31031 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31032 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31033 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31034 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31035 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31036 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31037 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31038 s,@LIBOBJS@,$LIBOBJS,;t t
31039 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31040 CEOF
31041
31042 _ACEOF
31043
31044   cat >>$CONFIG_STATUS <<\_ACEOF
31045   # Split the substitutions into bite-sized pieces for seds with
31046   # small command number limits, like on Digital OSF/1 and HP-UX.
31047   ac_max_sed_lines=48
31048   ac_sed_frag=1 # Number of current file.
31049   ac_beg=1 # First line for current file.
31050   ac_end=$ac_max_sed_lines # Line after last line for current file.
31051   ac_more_lines=:
31052   ac_sed_cmds=
31053   while $ac_more_lines; do
31054     if test $ac_beg -gt 1; then
31055       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31056     else
31057       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31058     fi
31059     if test ! -s $tmp/subs.frag; then
31060       ac_more_lines=false
31061     else
31062       # The purpose of the label and of the branching condition is to
31063       # speed up the sed processing (if there are no `@' at all, there
31064       # is no need to browse any of the substitutions).
31065       # These are the two extra sed commands mentioned above.
31066       (echo ':t
31067   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31068       if test -z "$ac_sed_cmds"; then
31069         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31070       else
31071         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31072       fi
31073       ac_sed_frag=`expr $ac_sed_frag + 1`
31074       ac_beg=$ac_end
31075       ac_end=`expr $ac_end + $ac_max_sed_lines`
31076     fi
31077   done
31078   if test -z "$ac_sed_cmds"; then
31079     ac_sed_cmds=cat
31080   fi
31081 fi # test -n "$CONFIG_FILES"
31082
31083 _ACEOF
31084 cat >>$CONFIG_STATUS <<\_ACEOF
31085 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31086   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31087   case $ac_file in
31088   - | *:- | *:-:* ) # input from stdin
31089         cat >$tmp/stdin
31090         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31091         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31092   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31093         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31094   * )   ac_file_in=$ac_file.in ;;
31095   esac
31096
31097   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31098   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31100          X"$ac_file" : 'X\(//\)[^/]' \| \
31101          X"$ac_file" : 'X\(//\)$' \| \
31102          X"$ac_file" : 'X\(/\)' \| \
31103          .     : '\(.\)' 2>/dev/null ||
31104 echo X"$ac_file" |
31105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31106           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31107           /^X\(\/\/\)$/{ s//\1/; q; }
31108           /^X\(\/\).*/{ s//\1/; q; }
31109           s/.*/./; q'`
31110   { if $as_mkdir_p; then
31111     mkdir -p "$ac_dir"
31112   else
31113     as_dir="$ac_dir"
31114     as_dirs=
31115     while test ! -d "$as_dir"; do
31116       as_dirs="$as_dir $as_dirs"
31117       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31119          X"$as_dir" : 'X\(//\)[^/]' \| \
31120          X"$as_dir" : 'X\(//\)$' \| \
31121          X"$as_dir" : 'X\(/\)' \| \
31122          .     : '\(.\)' 2>/dev/null ||
31123 echo X"$as_dir" |
31124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31125           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31126           /^X\(\/\/\)$/{ s//\1/; q; }
31127           /^X\(\/\).*/{ s//\1/; q; }
31128           s/.*/./; q'`
31129     done
31130     test ! -n "$as_dirs" || mkdir $as_dirs
31131   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31132 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31133    { (exit 1); exit 1; }; }; }
31134
31135   ac_builddir=.
31136
31137 if test "$ac_dir" != .; then
31138   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31139   # A "../" for each directory in $ac_dir_suffix.
31140   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31141 else
31142   ac_dir_suffix= ac_top_builddir=
31143 fi
31144
31145 case $srcdir in
31146   .)  # No --srcdir option.  We are building in place.
31147     ac_srcdir=.
31148     if test -z "$ac_top_builddir"; then
31149        ac_top_srcdir=.
31150     else
31151        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31152     fi ;;
31153   [\\/]* | ?:[\\/]* )  # Absolute path.
31154     ac_srcdir=$srcdir$ac_dir_suffix;
31155     ac_top_srcdir=$srcdir ;;
31156   *) # Relative path.
31157     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31158     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31159 esac
31160
31161 # Do not use `cd foo && pwd` to compute absolute paths, because
31162 # the directories may not exist.
31163 case `pwd` in
31164 .) ac_abs_builddir="$ac_dir";;
31165 *)
31166   case "$ac_dir" in
31167   .) ac_abs_builddir=`pwd`;;
31168   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31169   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31170   esac;;
31171 esac
31172 case $ac_abs_builddir in
31173 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31174 *)
31175   case ${ac_top_builddir}. in
31176   .) ac_abs_top_builddir=$ac_abs_builddir;;
31177   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31178   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31179   esac;;
31180 esac
31181 case $ac_abs_builddir in
31182 .) ac_abs_srcdir=$ac_srcdir;;
31183 *)
31184   case $ac_srcdir in
31185   .) ac_abs_srcdir=$ac_abs_builddir;;
31186   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31187   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31188   esac;;
31189 esac
31190 case $ac_abs_builddir in
31191 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31192 *)
31193   case $ac_top_srcdir in
31194   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31195   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31196   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31197   esac;;
31198 esac
31199
31200
31201   case $INSTALL in
31202   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31203   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31204   esac
31205
31206   if test x"$ac_file" != x-; then
31207     { echo "$as_me:$LINENO: creating $ac_file" >&5
31208 echo "$as_me: creating $ac_file" >&6;}
31209     rm -f "$ac_file"
31210   fi
31211   # Let's still pretend it is `configure' which instantiates (i.e., don't
31212   # use $as_me), people would be surprised to read:
31213   #    /* config.h.  Generated by config.status.  */
31214   if test x"$ac_file" = x-; then
31215     configure_input=
31216   else
31217     configure_input="$ac_file.  "
31218   fi
31219   configure_input=$configure_input"Generated from `echo $ac_file_in |
31220                                      sed 's,.*/,,'` by configure."
31221
31222   # First look for the input files in the build tree, otherwise in the
31223   # src tree.
31224   ac_file_inputs=`IFS=:
31225     for f in $ac_file_in; do
31226       case $f in
31227       -) echo $tmp/stdin ;;
31228       [\\/$]*)
31229          # Absolute (can't be DOS-style, as IFS=:)
31230          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31231 echo "$as_me: error: cannot find input file: $f" >&2;}
31232    { (exit 1); exit 1; }; }
31233          echo "$f";;
31234       *) # Relative
31235          if test -f "$f"; then
31236            # Build tree
31237            echo "$f"
31238          elif test -f "$srcdir/$f"; then
31239            # Source tree
31240            echo "$srcdir/$f"
31241          else
31242            # /dev/null tree
31243            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31244 echo "$as_me: error: cannot find input file: $f" >&2;}
31245    { (exit 1); exit 1; }; }
31246          fi;;
31247       esac
31248     done` || { (exit 1); exit 1; }
31249 _ACEOF
31250 cat >>$CONFIG_STATUS <<_ACEOF
31251   sed "$ac_vpsub
31252 $extrasub
31253 _ACEOF
31254 cat >>$CONFIG_STATUS <<\_ACEOF
31255 :t
31256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31257 s,@configure_input@,$configure_input,;t t
31258 s,@srcdir@,$ac_srcdir,;t t
31259 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31260 s,@top_srcdir@,$ac_top_srcdir,;t t
31261 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31262 s,@builddir@,$ac_builddir,;t t
31263 s,@abs_builddir@,$ac_abs_builddir,;t t
31264 s,@top_builddir@,$ac_top_builddir,;t t
31265 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31266 s,@INSTALL@,$ac_INSTALL,;t t
31267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31268   rm -f $tmp/stdin
31269   if test x"$ac_file" != x-; then
31270     mv $tmp/out $ac_file
31271   else
31272     cat $tmp/out
31273     rm -f $tmp/out
31274   fi
31275
31276 done
31277 _ACEOF
31278 cat >>$CONFIG_STATUS <<\_ACEOF
31279
31280 #
31281 # CONFIG_HEADER section.
31282 #
31283
31284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31286 #
31287 # ac_d sets the value in "#define NAME VALUE" lines.
31288 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31289 ac_dB='[         ].*$,\1#\2'
31290 ac_dC=' '
31291 ac_dD=',;t'
31292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31293 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31294 ac_uB='$,\1#\2define\3'
31295 ac_uC=' '
31296 ac_uD=',;t'
31297
31298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31299   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31300   case $ac_file in
31301   - | *:- | *:-:* ) # input from stdin
31302         cat >$tmp/stdin
31303         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31304         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31305   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31306         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31307   * )   ac_file_in=$ac_file.in ;;
31308   esac
31309
31310   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31311 echo "$as_me: creating $ac_file" >&6;}
31312
31313   # First look for the input files in the build tree, otherwise in the
31314   # src tree.
31315   ac_file_inputs=`IFS=:
31316     for f in $ac_file_in; do
31317       case $f in
31318       -) echo $tmp/stdin ;;
31319       [\\/$]*)
31320          # Absolute (can't be DOS-style, as IFS=:)
31321          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31322 echo "$as_me: error: cannot find input file: $f" >&2;}
31323    { (exit 1); exit 1; }; }
31324          # Do quote $f, to prevent DOS paths from being IFS'd.
31325          echo "$f";;
31326       *) # Relative
31327          if test -f "$f"; then
31328            # Build tree
31329            echo "$f"
31330          elif test -f "$srcdir/$f"; then
31331            # Source tree
31332            echo "$srcdir/$f"
31333          else
31334            # /dev/null tree
31335            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31336 echo "$as_me: error: cannot find input file: $f" >&2;}
31337    { (exit 1); exit 1; }; }
31338          fi;;
31339       esac
31340     done` || { (exit 1); exit 1; }
31341   # Remove the trailing spaces.
31342   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31343
31344 _ACEOF
31345
31346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31347 # `conftest.undefs', that substitutes the proper values into
31348 # config.h.in to produce config.h.  The first handles `#define'
31349 # templates, and the second `#undef' templates.
31350 # And first: Protect against being on the right side of a sed subst in
31351 # config.status.  Protect against being in an unquoted here document
31352 # in config.status.
31353 rm -f conftest.defines conftest.undefs
31354 # Using a here document instead of a string reduces the quoting nightmare.
31355 # Putting comments in sed scripts is not portable.
31356 #
31357 # `end' is used to avoid that the second main sed command (meant for
31358 # 0-ary CPP macros) applies to n-ary macro definitions.
31359 # See the Autoconf documentation for `clear'.
31360 cat >confdef2sed.sed <<\_ACEOF
31361 s/[\\&,]/\\&/g
31362 s,[\\$`],\\&,g
31363 t clear
31364 : clear
31365 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31366 t end
31367 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31368 : end
31369 _ACEOF
31370 # If some macros were called several times there might be several times
31371 # the same #defines, which is useless.  Nevertheless, we may not want to
31372 # sort them, since we want the *last* AC-DEFINE to be honored.
31373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31375 rm -f confdef2sed.sed
31376
31377 # This sed command replaces #undef with comments.  This is necessary, for
31378 # example, in the case of _POSIX_SOURCE, which is predefined and required
31379 # on some systems where configure will not decide to define it.
31380 cat >>conftest.undefs <<\_ACEOF
31381 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31382 _ACEOF
31383
31384 # Break up conftest.defines because some shells have a limit on the size
31385 # of here documents, and old seds have small limits too (100 cmds).
31386 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31387 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31388 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31389 echo '  :' >>$CONFIG_STATUS
31390 rm -f conftest.tail
31391 while grep . conftest.defines >/dev/null
31392 do
31393   # Write a limited-size here document to $tmp/defines.sed.
31394   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31395   # Speed up: don't consider the non `#define' lines.
31396   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31397   # Work around the forget-to-reset-the-flag bug.
31398   echo 't clr' >>$CONFIG_STATUS
31399   echo ': clr' >>$CONFIG_STATUS
31400   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31401   echo 'CEOF
31402   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31403   rm -f $tmp/in
31404   mv $tmp/out $tmp/in
31405 ' >>$CONFIG_STATUS
31406   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31407   rm -f conftest.defines
31408   mv conftest.tail conftest.defines
31409 done
31410 rm -f conftest.defines
31411 echo '  fi # grep' >>$CONFIG_STATUS
31412 echo >>$CONFIG_STATUS
31413
31414 # Break up conftest.undefs because some shells have a limit on the size
31415 # of here documents, and old seds have small limits too (100 cmds).
31416 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31417 rm -f conftest.tail
31418 while grep . conftest.undefs >/dev/null
31419 do
31420   # Write a limited-size here document to $tmp/undefs.sed.
31421   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31422   # Speed up: don't consider the non `#undef'
31423   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31424   # Work around the forget-to-reset-the-flag bug.
31425   echo 't clr' >>$CONFIG_STATUS
31426   echo ': clr' >>$CONFIG_STATUS
31427   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31428   echo 'CEOF
31429   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31430   rm -f $tmp/in
31431   mv $tmp/out $tmp/in
31432 ' >>$CONFIG_STATUS
31433   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31434   rm -f conftest.undefs
31435   mv conftest.tail conftest.undefs
31436 done
31437 rm -f conftest.undefs
31438
31439 cat >>$CONFIG_STATUS <<\_ACEOF
31440   # Let's still pretend it is `configure' which instantiates (i.e., don't
31441   # use $as_me), people would be surprised to read:
31442   #    /* config.h.  Generated by config.status.  */
31443   if test x"$ac_file" = x-; then
31444     echo "/* Generated by configure.  */" >$tmp/config.h
31445   else
31446     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31447   fi
31448   cat $tmp/in >>$tmp/config.h
31449   rm -f $tmp/in
31450   if test x"$ac_file" != x-; then
31451     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31452       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31453 echo "$as_me: $ac_file is unchanged" >&6;}
31454     else
31455       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31457          X"$ac_file" : 'X\(//\)[^/]' \| \
31458          X"$ac_file" : 'X\(//\)$' \| \
31459          X"$ac_file" : 'X\(/\)' \| \
31460          .     : '\(.\)' 2>/dev/null ||
31461 echo X"$ac_file" |
31462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31463           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31464           /^X\(\/\/\)$/{ s//\1/; q; }
31465           /^X\(\/\).*/{ s//\1/; q; }
31466           s/.*/./; q'`
31467       { if $as_mkdir_p; then
31468     mkdir -p "$ac_dir"
31469   else
31470     as_dir="$ac_dir"
31471     as_dirs=
31472     while test ! -d "$as_dir"; do
31473       as_dirs="$as_dir $as_dirs"
31474       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31476          X"$as_dir" : 'X\(//\)[^/]' \| \
31477          X"$as_dir" : 'X\(//\)$' \| \
31478          X"$as_dir" : 'X\(/\)' \| \
31479          .     : '\(.\)' 2>/dev/null ||
31480 echo X"$as_dir" |
31481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31483           /^X\(\/\/\)$/{ s//\1/; q; }
31484           /^X\(\/\).*/{ s//\1/; q; }
31485           s/.*/./; q'`
31486     done
31487     test ! -n "$as_dirs" || mkdir $as_dirs
31488   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31490    { (exit 1); exit 1; }; }; }
31491
31492       rm -f $ac_file
31493       mv $tmp/config.h $ac_file
31494     fi
31495   else
31496     cat $tmp/config.h
31497     rm -f $tmp/config.h
31498   fi
31499 done
31500 _ACEOF
31501 cat >>$CONFIG_STATUS <<\_ACEOF
31502
31503 #
31504 # CONFIG_COMMANDS section.
31505 #
31506 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31507   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31508   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31509   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31510 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31511          X"$ac_dest" : 'X\(//\)[^/]' \| \
31512          X"$ac_dest" : 'X\(//\)$' \| \
31513          X"$ac_dest" : 'X\(/\)' \| \
31514          .     : '\(.\)' 2>/dev/null ||
31515 echo X"$ac_dest" |
31516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31517           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31518           /^X\(\/\/\)$/{ s//\1/; q; }
31519           /^X\(\/\).*/{ s//\1/; q; }
31520           s/.*/./; q'`
31521   { if $as_mkdir_p; then
31522     mkdir -p "$ac_dir"
31523   else
31524     as_dir="$ac_dir"
31525     as_dirs=
31526     while test ! -d "$as_dir"; do
31527       as_dirs="$as_dir $as_dirs"
31528       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31530          X"$as_dir" : 'X\(//\)[^/]' \| \
31531          X"$as_dir" : 'X\(//\)$' \| \
31532          X"$as_dir" : 'X\(/\)' \| \
31533          .     : '\(.\)' 2>/dev/null ||
31534 echo X"$as_dir" |
31535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31537           /^X\(\/\/\)$/{ s//\1/; q; }
31538           /^X\(\/\).*/{ s//\1/; q; }
31539           s/.*/./; q'`
31540     done
31541     test ! -n "$as_dirs" || mkdir $as_dirs
31542   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31544    { (exit 1); exit 1; }; }; }
31545
31546   ac_builddir=.
31547
31548 if test "$ac_dir" != .; then
31549   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550   # A "../" for each directory in $ac_dir_suffix.
31551   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31552 else
31553   ac_dir_suffix= ac_top_builddir=
31554 fi
31555
31556 case $srcdir in
31557   .)  # No --srcdir option.  We are building in place.
31558     ac_srcdir=.
31559     if test -z "$ac_top_builddir"; then
31560        ac_top_srcdir=.
31561     else
31562        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31563     fi ;;
31564   [\\/]* | ?:[\\/]* )  # Absolute path.
31565     ac_srcdir=$srcdir$ac_dir_suffix;
31566     ac_top_srcdir=$srcdir ;;
31567   *) # Relative path.
31568     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31569     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31570 esac
31571
31572 # Do not use `cd foo && pwd` to compute absolute paths, because
31573 # the directories may not exist.
31574 case `pwd` in
31575 .) ac_abs_builddir="$ac_dir";;
31576 *)
31577   case "$ac_dir" in
31578   .) ac_abs_builddir=`pwd`;;
31579   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31580   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31581   esac;;
31582 esac
31583 case $ac_abs_builddir in
31584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31585 *)
31586   case ${ac_top_builddir}. in
31587   .) ac_abs_top_builddir=$ac_abs_builddir;;
31588   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31589   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31590   esac;;
31591 esac
31592 case $ac_abs_builddir in
31593 .) ac_abs_srcdir=$ac_srcdir;;
31594 *)
31595   case $ac_srcdir in
31596   .) ac_abs_srcdir=$ac_abs_builddir;;
31597   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31598   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31599   esac;;
31600 esac
31601 case $ac_abs_builddir in
31602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31603 *)
31604   case $ac_top_srcdir in
31605   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31606   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31607   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31608   esac;;
31609 esac
31610
31611
31612   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31613 echo "$as_me: executing $ac_dest commands" >&6;}
31614   case $ac_dest in
31615     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31616    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31617     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31618    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31619     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31620    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31621     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31622    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31623     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31624    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31625     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31626    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31627     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31628    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31629     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31630    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31631     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31632    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31633     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31634    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31635   esac
31636 done
31637 _ACEOF
31638
31639 cat >>$CONFIG_STATUS <<\_ACEOF
31640
31641 { (exit 0); exit 0; }
31642 _ACEOF
31643 chmod +x $CONFIG_STATUS
31644 ac_clean_files=$ac_clean_files_save
31645
31646
31647 # configure is writing to config.log, and then calls config.status.
31648 # config.status does its own redirection, appending to config.log.
31649 # Unfortunately, on DOS this fails, as config.log is still kept open
31650 # by configure, so config.status won't be able to write to it; its
31651 # output is simply discarded.  So we exec the FD to /dev/null,
31652 # effectively closing config.log, so it can be properly (re)opened and
31653 # appended to by config.status.  When coming back to configure, we
31654 # need to make the FD available again.
31655 if test "$no_create" != yes; then
31656   ac_cs_success=:
31657   ac_config_status_args=
31658   test "$silent" = yes &&
31659     ac_config_status_args="$ac_config_status_args --quiet"
31660   exec 5>/dev/null
31661   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31662   exec 5>>config.log
31663   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31664   # would make configure fail if this is the last instruction.
31665   $ac_cs_success || { (exit 1); exit 1; }
31666 fi
31667
31668 #
31669 # CONFIG_SUBDIRS section.
31670 #
31671 if test "$no_recursion" != yes; then
31672
31673   # Remove --cache-file and --srcdir arguments so they do not pile up.
31674   ac_sub_configure_args=
31675   ac_prev=
31676   for ac_arg in $ac_configure_args; do
31677     if test -n "$ac_prev"; then
31678       ac_prev=
31679       continue
31680     fi
31681     case $ac_arg in
31682     -cache-file | --cache-file | --cache-fil | --cache-fi \
31683     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31684       ac_prev=cache_file ;;
31685     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31686     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31687     | --c=*)
31688       ;;
31689     --config-cache | -C)
31690       ;;
31691     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31692       ac_prev=srcdir ;;
31693     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31694       ;;
31695     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31696       ac_prev=prefix ;;
31697     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31698       ;;
31699     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31700     esac
31701   done
31702
31703   # Always prepend --prefix to ensure using the same prefix
31704   # in subdir configurations.
31705   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31706
31707   ac_popdir=`pwd`
31708   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31709
31710     # Do not complain, so a configure script can configure whichever
31711     # parts of a large source tree are present.
31712     test -d $srcdir/$ac_dir || continue
31713
31714     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31715 echo "$as_me: configuring in $ac_dir" >&6;}
31716     { if $as_mkdir_p; then
31717     mkdir -p "$ac_dir"
31718   else
31719     as_dir="$ac_dir"
31720     as_dirs=
31721     while test ! -d "$as_dir"; do
31722       as_dirs="$as_dir $as_dirs"
31723       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31725          X"$as_dir" : 'X\(//\)[^/]' \| \
31726          X"$as_dir" : 'X\(//\)$' \| \
31727          X"$as_dir" : 'X\(/\)' \| \
31728          .     : '\(.\)' 2>/dev/null ||
31729 echo X"$as_dir" |
31730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31732           /^X\(\/\/\)$/{ s//\1/; q; }
31733           /^X\(\/\).*/{ s//\1/; q; }
31734           s/.*/./; q'`
31735     done
31736     test ! -n "$as_dirs" || mkdir $as_dirs
31737   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31739    { (exit 1); exit 1; }; }; }
31740
31741     ac_builddir=.
31742
31743 if test "$ac_dir" != .; then
31744   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31745   # A "../" for each directory in $ac_dir_suffix.
31746   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31747 else
31748   ac_dir_suffix= ac_top_builddir=
31749 fi
31750
31751 case $srcdir in
31752   .)  # No --srcdir option.  We are building in place.
31753     ac_srcdir=.
31754     if test -z "$ac_top_builddir"; then
31755        ac_top_srcdir=.
31756     else
31757        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31758     fi ;;
31759   [\\/]* | ?:[\\/]* )  # Absolute path.
31760     ac_srcdir=$srcdir$ac_dir_suffix;
31761     ac_top_srcdir=$srcdir ;;
31762   *) # Relative path.
31763     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31764     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31765 esac
31766
31767 # Do not use `cd foo && pwd` to compute absolute paths, because
31768 # the directories may not exist.
31769 case `pwd` in
31770 .) ac_abs_builddir="$ac_dir";;
31771 *)
31772   case "$ac_dir" in
31773   .) ac_abs_builddir=`pwd`;;
31774   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31775   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31776   esac;;
31777 esac
31778 case $ac_abs_builddir in
31779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31780 *)
31781   case ${ac_top_builddir}. in
31782   .) ac_abs_top_builddir=$ac_abs_builddir;;
31783   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31784   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31785   esac;;
31786 esac
31787 case $ac_abs_builddir in
31788 .) ac_abs_srcdir=$ac_srcdir;;
31789 *)
31790   case $ac_srcdir in
31791   .) ac_abs_srcdir=$ac_abs_builddir;;
31792   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31793   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31794   esac;;
31795 esac
31796 case $ac_abs_builddir in
31797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31798 *)
31799   case $ac_top_srcdir in
31800   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31801   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31802   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31803   esac;;
31804 esac
31805
31806
31807     cd $ac_dir
31808
31809     # Check for guested configure; otherwise get Cygnus style configure.
31810     if test -f $ac_srcdir/configure.gnu; then
31811       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31812     elif test -f $ac_srcdir/configure; then
31813       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31814     elif test -f $ac_srcdir/configure.in; then
31815       ac_sub_configure=$ac_configure
31816     else
31817       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31818 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31819       ac_sub_configure=
31820     fi
31821
31822     # The recursion is here.
31823     if test -n "$ac_sub_configure"; then
31824       # Make the cache file name correct relative to the subdirectory.
31825       case $cache_file in
31826       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31827       *) # Relative path.
31828         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31829       esac
31830
31831       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31832 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31833       # The eval makes quoting arguments work.
31834       eval $ac_sub_configure $ac_sub_configure_args \
31835            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31836         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31837 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31838    { (exit 1); exit 1; }; }
31839     fi
31840
31841     cd $ac_popdir
31842   done
31843 fi
31844
31845
31846 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31847  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31848 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31849  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31850 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31851  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31852 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31853  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31854 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31855  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31856 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31857 fi