new testcase for PR541
[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 TARGETS_TO_BUILD 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-target         Build specific host targets:
1041                           all,host-only,{target-name} (default=all)
1042   --enable-ltdl-install   install libltdl
1043   --enable-shared[=PKGS]
1044                           build shared libraries [default=yes]
1045   --enable-static[=PKGS]
1046                           build static libraries [default=yes]
1047   --enable-fast-install[=PKGS]
1048                           optimize for fast installation [default=yes]
1049   --disable-libtool-lock  avoid locking (might break parallel builds)
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1055                           searches PATH)
1056   --with-tclinclude       directory where tcl headers are
1057   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058   --with-pic              try to use only PIC/non-PIC objects [default=use
1059                           both]
1060   --with-tags[=TAGS]
1061                           include additional configurations [automatic]
1062
1063 Some influential environment variables:
1064   CC          C compiler command
1065   CFLAGS      C compiler flags
1066   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1067               nonstandard directory <lib dir>
1068   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069               headers in a nonstandard directory <include dir>
1070   CPP         C preprocessor
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CXXCPP      C++ preprocessor
1074   F77         Fortran 77 compiler command
1075   FFLAGS      Fortran 77 compiler flags
1076
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1079
1080 Report bugs to <llvmbugs@cs.uiuc.edu>.
1081 _ACEOF
1082 fi
1083
1084 if test "$ac_init_help" = "recursive"; then
1085   # If there are subdirs, report their specific --help.
1086   ac_popdir=`pwd`
1087   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088     test -d $ac_dir || continue
1089     ac_builddir=.
1090
1091 if test "$ac_dir" != .; then
1092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093   # A "../" for each directory in $ac_dir_suffix.
1094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 else
1096   ac_dir_suffix= ac_top_builddir=
1097 fi
1098
1099 case $srcdir in
1100   .)  # No --srcdir option.  We are building in place.
1101     ac_srcdir=.
1102     if test -z "$ac_top_builddir"; then
1103        ac_top_srcdir=.
1104     else
1105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106     fi ;;
1107   [\\/]* | ?:[\\/]* )  # Absolute path.
1108     ac_srcdir=$srcdir$ac_dir_suffix;
1109     ac_top_srcdir=$srcdir ;;
1110   *) # Relative path.
1111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 esac
1114
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1117 case `pwd` in
1118 .) ac_abs_builddir="$ac_dir";;
1119 *)
1120   case "$ac_dir" in
1121   .) ac_abs_builddir=`pwd`;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *)
1129   case ${ac_top_builddir}. in
1130   .) ac_abs_top_builddir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1137 *)
1138   case $ac_srcdir in
1139   .) ac_abs_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *)
1147   case $ac_top_srcdir in
1148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151   esac;;
1152 esac
1153
1154     cd $ac_dir
1155     # Check for guested configure; otherwise get Cygnus style configure.
1156     if test -f $ac_srcdir/configure.gnu; then
1157       echo
1158       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1159     elif test -f $ac_srcdir/configure; then
1160       echo
1161       $SHELL $ac_srcdir/configure  --help=recursive
1162     elif test -f $ac_srcdir/configure.ac ||
1163            test -f $ac_srcdir/configure.in; then
1164       echo
1165       $ac_configure --help
1166     else
1167       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168     fi
1169     cd $ac_popdir
1170   done
1171 fi
1172
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1175   cat <<\_ACEOF
1176 llvm configure 1.5cvs
1177 generated by GNU Autoconf 2.59
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182
1183 $LLVM_COPYRIGHT
1184 _ACEOF
1185   exit 0
1186 fi
1187 exec 5>config.log
1188 cat >&5 <<_ACEOF
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1191
1192 It was created by llvm $as_me 1.5cvs, which was
1193 generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195   $ $0 $@
1196
1197 _ACEOF
1198 {
1199 cat <<_ASUNAME
1200 ## --------- ##
1201 ## Platform. ##
1202 ## --------- ##
1203
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221 _ASUNAME
1222
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226   IFS=$as_save_IFS
1227   test -z "$as_dir" && as_dir=.
1228   echo "PATH: $as_dir"
1229 done
1230
1231 } >&5
1232
1233 cat >&5 <<_ACEOF
1234
1235
1236 ## ----------- ##
1237 ## Core tests. ##
1238 ## ----------- ##
1239
1240 _ACEOF
1241
1242
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_configure_args=
1249 ac_configure_args0=
1250 ac_configure_args1=
1251 ac_sep=
1252 ac_must_keep_next=false
1253 for ac_pass in 1 2
1254 do
1255   for ac_arg
1256   do
1257     case $ac_arg in
1258     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260     | -silent | --silent | --silen | --sile | --sil)
1261       continue ;;
1262     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264     esac
1265     case $ac_pass in
1266     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267     2)
1268       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269       if test $ac_must_keep_next = true; then
1270         ac_must_keep_next=false # Got value, back to normal.
1271       else
1272         case $ac_arg in
1273           *=* | --config-cache | -C | -disable-* | --disable-* \
1274           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276           | -with-* | --with-* | -without-* | --without-* | --x)
1277             case "$ac_configure_args0 " in
1278               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279             esac
1280             ;;
1281           -* ) ac_must_keep_next=true ;;
1282         esac
1283       fi
1284       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285       # Get rid of the leading space.
1286       ac_sep=" "
1287       ;;
1288     esac
1289   done
1290 done
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log.  We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300   # Save into config.log some information that might help in debugging.
1301   {
1302     echo
1303
1304     cat <<\_ASBOX
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1308 _ASBOX
1309     echo
1310     # The following way of writing the cache mishandles newlines in values,
1311 {
1312   (set) 2>&1 |
1313     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314     *ac_space=\ *)
1315       sed -n \
1316         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318       ;;
1319     *)
1320       sed -n \
1321         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322       ;;
1323     esac;
1324 }
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1331 _ASBOX
1332     echo
1333     for ac_var in $ac_subst_vars
1334     do
1335       eval ac_val=$`echo $ac_var`
1336       echo "$ac_var='"'"'$ac_val'"'"'"
1337     done | sort
1338     echo
1339
1340     if test -n "$ac_subst_files"; then
1341       cat <<\_ASBOX
1342 ## ------------- ##
1343 ## Output files. ##
1344 ## ------------- ##
1345 _ASBOX
1346       echo
1347       for ac_var in $ac_subst_files
1348       do
1349         eval ac_val=$`echo $ac_var`
1350         echo "$ac_var='"'"'$ac_val'"'"'"
1351       done | sort
1352       echo
1353     fi
1354
1355     if test -s confdefs.h; then
1356       cat <<\_ASBOX
1357 ## ----------- ##
1358 ## confdefs.h. ##
1359 ## ----------- ##
1360 _ASBOX
1361       echo
1362       sed "/^$/d" confdefs.h | sort
1363       echo
1364     fi
1365     test "$ac_signal" != 0 &&
1366       echo "$as_me: caught signal $ac_signal"
1367     echo "$as_me: exit $exit_status"
1368   } >&5
1369   rm -f core *.core &&
1370   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371     exit $exit_status
1372      ' 0
1373 for ac_signal in 1 2 13 15; do
1374   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 done
1376 ac_signal=0
1377
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 echo >confdefs.h
1382
1383 # Predefined preprocessor variables.
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 _ACEOF
1408
1409
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413   if test "x$prefix" != xNONE; then
1414     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415   else
1416     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417   fi
1418 fi
1419 for ac_site_file in $CONFIG_SITE; do
1420   if test -r "$ac_site_file"; then
1421     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423     sed 's/^/| /' "$ac_site_file" >&5
1424     . "$ac_site_file"
1425   fi
1426 done
1427
1428 if test -r "$cache_file"; then
1429   # Some versions of bash will fail to source /dev/null (special
1430   # files actually), so we avoid doing that.
1431   if test -f "$cache_file"; then
1432     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1434     case $cache_file in
1435       [\\/]* | ?:[\\/]* ) . $cache_file;;
1436       *)                      . ./$cache_file;;
1437     esac
1438   fi
1439 else
1440   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1442   >$cache_file
1443 fi
1444
1445 # Check that the precious variables saved in the cache have kept the same
1446 # value.
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451   eval ac_new_set=\$ac_env_${ac_var}_set
1452   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453   eval ac_new_val="\$ac_env_${ac_var}_value"
1454   case $ac_old_set,$ac_new_set in
1455     set,)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,set)
1460       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462       ac_cache_corrupted=: ;;
1463     ,);;
1464     *)
1465       if test "x$ac_old_val" != "x$ac_new_val"; then
1466         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469 echo "$as_me:   former value:  $ac_old_val" >&2;}
1470         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471 echo "$as_me:   current value: $ac_new_val" >&2;}
1472         ac_cache_corrupted=:
1473       fi;;
1474   esac
1475   # Pass precious variables to config.status.
1476   if test "$ac_new_set" = set; then
1477     case $ac_new_val in
1478     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480     *) ac_arg=$ac_var=$ac_new_val ;;
1481     esac
1482     case " $ac_configure_args " in
1483       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485     esac
1486   fi
1487 done
1488 if $ac_cache_corrupted; then
1489   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493    { (exit 1); exit 1; }; }
1494 fi
1495
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1528
1529 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1530
1531
1532
1533
1534
1535
1536
1537 ac_aux_dir=
1538 for ac_dir in autoconf $srcdir/autoconf; do
1539   if test -f $ac_dir/install-sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install-sh -c"
1542     break
1543   elif test -f $ac_dir/install.sh; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/install.sh -c"
1546     break
1547   elif test -f $ac_dir/shtool; then
1548     ac_aux_dir=$ac_dir
1549     ac_install_sh="$ac_aux_dir/shtool install -c"
1550     break
1551   fi
1552 done
1553 if test -z "$ac_aux_dir"; then
1554   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1556    { (exit 1); exit 1; }; }
1557 fi
1558 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
1562
1563 if test ${srcdir} != "." ; then
1564   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1566 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567    { (exit 1); exit 1; }; }
1568   fi
1569 fi
1570
1571 for i in `ls ${srcdir}/projects`
1572 do
1573   if test -d ${srcdir}/projects/${i} ; then
1574     case ${i} in
1575       "CVS") ;;
1576       "sample")
1577
1578 subdirs="$subdirs projects/sample"
1579     ;;
1580       "Stacker")
1581
1582 subdirs="$subdirs projects/Stacker"
1583    ;;
1584       "llvm-test")
1585
1586 subdirs="$subdirs projects/llvm-test"
1587  ;;
1588       "llvm-reopt")
1589
1590 subdirs="$subdirs projects/llvm-reopt"
1591 ;;
1592       "llvm-gcc")
1593
1594 subdirs="$subdirs projects/llvm-gcc"
1595   ;;
1596       "llvm-java")
1597
1598 subdirs="$subdirs projects/llvm-java"
1599  ;;
1600       "llvm-tv")
1601
1602 subdirs="$subdirs projects/llvm-tv"
1603    ;;
1604       "llvm-fefw")
1605
1606 subdirs="$subdirs projects/llvm-fefw"
1607  ;;
1608       "llvm-poolalloc")
1609
1610 subdirs="$subdirs projects/llvm-poolalloc"
1611  ;;
1612       *)
1613         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1614 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1615         ;;
1616     esac
1617   fi
1618 done
1619
1620
1621 # Make sure we can run config.sub.
1622 $ac_config_sub sun4 >/dev/null 2>&1 ||
1623   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1624 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1625    { (exit 1); exit 1; }; }
1626
1627 echo "$as_me:$LINENO: checking build system type" >&5
1628 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1629 if test "${ac_cv_build+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   ac_cv_build_alias=$build_alias
1633 test -z "$ac_cv_build_alias" &&
1634   ac_cv_build_alias=`$ac_config_guess`
1635 test -z "$ac_cv_build_alias" &&
1636   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1637 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1638    { (exit 1); exit 1; }; }
1639 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1640   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1642    { (exit 1); exit 1; }; }
1643
1644 fi
1645 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1646 echo "${ECHO_T}$ac_cv_build" >&6
1647 build=$ac_cv_build
1648 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653 echo "$as_me:$LINENO: checking host system type" >&5
1654 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1655 if test "${ac_cv_host+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   ac_cv_host_alias=$host_alias
1659 test -z "$ac_cv_host_alias" &&
1660   ac_cv_host_alias=$ac_cv_build_alias
1661 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1662   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1663 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1664    { (exit 1); exit 1; }; }
1665
1666 fi
1667 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1668 echo "${ECHO_T}$ac_cv_host" >&6
1669 host=$ac_cv_host
1670 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675 echo "$as_me:$LINENO: checking target system type" >&5
1676 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1677 if test "${ac_cv_target+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   ac_cv_target_alias=$target_alias
1681 test "x$ac_cv_target_alias" = "x" &&
1682   ac_cv_target_alias=$ac_cv_host_alias
1683 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1684   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1685 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1686    { (exit 1); exit 1; }; }
1687
1688 fi
1689 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1690 echo "${ECHO_T}$ac_cv_target" >&6
1691 target=$ac_cv_target
1692 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1693 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1694 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695
1696
1697 # The aliases save the names the user supplied, while $host etc.
1698 # will get canonicalized.
1699 test -n "$target_alias" &&
1700   test "$program_prefix$program_suffix$program_transform_name" = \
1701     NONENONEs,x,x, &&
1702   program_prefix=${target_alias}-
1703
1704 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1705 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1706 if test "${llvm_cv_os_type+set}" = set; then
1707   echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709   case $build in
1710   *-*-aix*)
1711     llvm_cv_os_type="AIX"
1712     llvm_cv_platform_type="Unix" ;;
1713   *-*-cygwin*)
1714     llvm_cv_os_type="Cygwin"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-darwin*)
1717     llvm_cv_os_type="Darwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-freebsd*)
1720     llvm_cv_os_type="FreeBSD"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-interix*)
1723     llvm_cv_os_type="Interix"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-linux*)
1726     llvm_cv_os_type="Linux"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-solaris*)
1729     llvm_cv_os_type="SunOS"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-win32*)
1732     llvm_cv_os_type="Win32"
1733     llvm_cv_platform_type="Win32" ;;
1734   *-*-mingw*)
1735     llvm_cv_os_type="MingW"
1736     llvm_cv_platform_type="Win32" ;;
1737   *)
1738     llvm_cv_os_type="Unknown"
1739     llvm_cv_platform_type="Unknown" ;;
1740 esac
1741 fi
1742 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1743 echo "${ECHO_T}$llvm_cv_os_type" >&6
1744
1745 if test "$llvm_cv_os_type" = "Unknown" ; then
1746   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1747 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1748    { (exit 1); exit 1; }; }
1749 fi
1750
1751 OS=$llvm_cv_os_type
1752
1753
1754 case $llvm_cv_platform_type in
1755   Unix)
1756
1757 cat >>confdefs.h <<\_ACEOF
1758 #define LLVM_ON_UNIX 1
1759 _ACEOF
1760
1761     LLVM_ON_UNIX=1
1762
1763     LLVM_ON_WIN32=0
1764
1765     ;;
1766   Win32)
1767
1768 cat >>confdefs.h <<\_ACEOF
1769 #define LLVM_ON_WIN32 1
1770 _ACEOF
1771
1772     LLVM_ON_UNIX=0
1773
1774     LLVM_ON_WIN32=1
1775
1776     ;;
1777 esac
1778
1779 case $target in
1780   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1781
1782   ;;
1783 esac
1784
1785 echo "$as_me:$LINENO: checking target architecture" >&5
1786 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1787 if test "${llvm_cv_target_arch+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   case $target in
1791   i?86-*)                 llvm_cv_target_arch="x86" ;;
1792   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1793   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1794   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1795   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1796   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1797   *)                      llvm_cv_target_arch="Unknown" ;;
1798 esac
1799 fi
1800 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1802
1803 if test "$llvm_cv_target_arch" = "Unknown" ; then
1804   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806 fi
1807
1808 ARCH=$llvm_cv_target_arch
1809
1810
1811 ac_ext=c
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 if test -n "$ac_tool_prefix"; then
1817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824   if test -n "$CC"; then
1825   ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832   for ac_exec_ext in '' $ac_executable_extensions; do
1833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836     break 2
1837   fi
1838 done
1839 done
1840
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845   echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$ac_cv_prog_CC"; then
1854   ac_ct_CC=$CC
1855   # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   if test -n "$ac_ct_CC"; then
1863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868   IFS=$as_save_IFS
1869   test -z "$as_dir" && as_dir=.
1870   for ac_exec_ext in '' $ac_executable_extensions; do
1871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872     ac_cv_prog_ac_ct_CC="gcc"
1873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874     break 2
1875   fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886   echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890   CC=$ac_ct_CC
1891 else
1892   CC="$ac_cv_prog_CC"
1893 fi
1894
1895 if test -z "$CC"; then
1896   if test -n "$ac_tool_prefix"; then
1897   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$CC"; then
1905   ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_CC="${ac_tool_prefix}cc"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920
1921 fi
1922 fi
1923 CC=$ac_cv_prog_CC
1924 if test -n "$CC"; then
1925   echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1927 else
1928   echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1930 fi
1931
1932 fi
1933 if test -z "$ac_cv_prog_CC"; then
1934   ac_ct_CC=$CC
1935   # Extract the first word of "cc", so it can be a program name with args.
1936 set dummy cc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$ac_ct_CC"; then
1943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_ac_ct_CC="cc"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970   CC=$ac_ct_CC
1971 else
1972   CC="$ac_cv_prog_CC"
1973 fi
1974
1975 fi
1976 if test -z "$CC"; then
1977   # Extract the first word of "cc", so it can be a program name with args.
1978 set dummy cc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987   ac_prog_rejected=no
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996        ac_prog_rejected=yes
1997        continue
1998      fi
1999     ac_cv_prog_CC="cc"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006 if test $ac_prog_rejected = yes; then
2007   # We found a bogon in the path, so make sure we never use it.
2008   set dummy $ac_cv_prog_CC
2009   shift
2010   if test $# != 0; then
2011     # We chose a different compiler from the bogus one.
2012     # However, it has the same basename, so the bogon will be chosen
2013     # first if we set CC to just the basename; use the full file name.
2014     shift
2015     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016   fi
2017 fi
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022   echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 fi
2030 if test -z "$CC"; then
2031   if test -n "$ac_tool_prefix"; then
2032   for ac_prog in cl
2033   do
2034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2064 else
2065   echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069     test -n "$CC" && break
2070   done
2071 fi
2072 if test -z "$CC"; then
2073   ac_ct_CC=$CC
2074   for ac_prog in cl
2075 do
2076   # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$ac_ct_CC"; then
2084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093     ac_cv_prog_ac_ct_CC="$ac_prog"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099
2100 fi
2101 fi
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111   test -n "$ac_ct_CC" && break
2112 done
2113
2114   CC=$ac_ct_CC
2115 fi
2116
2117 fi
2118
2119
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO:" \
2128      "checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131   (eval $ac_compiler --version </dev/null >&5) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136   (eval $ac_compiler -v </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141   (eval $ac_compiler -V </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h.  */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h.  */
2152
2153 int
2154 main ()
2155 {
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 ac_clean_files_save=$ac_clean_files
2162 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163 # Try to create an executable without -o first, disregard a.out.
2164 # It will help us diagnose broken compilers, and finding out an intuition
2165 # of exeext.
2166 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170   (eval $ac_link_default) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; then
2174   # Find the output, starting from the most likely.  This scheme is
2175 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176 # resort.
2177
2178 # Be careful to initialize this variable, since it used to be cached.
2179 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180 ac_cv_exeext=
2181 # b.out is created by i960 compilers.
2182 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183 do
2184   test -f "$ac_file" || continue
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187         ;;
2188     conftest.$ac_ext )
2189         # This is the source file.
2190         ;;
2191     [ab].out )
2192         # We found the default executable, but exeext='' is most
2193         # certainly right.
2194         break;;
2195     *.* )
2196         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         # FIXME: I believe we export ac_cv_exeext for Libtool,
2198         # but it would be cool to find out if it's true.  Does anybody
2199         # maintain Libtool? --akim.
2200         export ac_cv_exeext
2201         break;;
2202     * )
2203         break;;
2204   esac
2205 done
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214    { (exit 77); exit 77; }; }
2215 fi
2216
2217 ac_exeext=$ac_cv_exeext
2218 echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6
2220
2221 # Check the compiler produces executables we can run.  If not, either
2222 # the compiler is broken, or we cross compile.
2223 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228   if { ac_try='./$ac_file'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234     cross_compiling=no
2235   else
2236     if test "$cross_compiling" = maybe; then
2237         cross_compiling=yes
2238     else
2239         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245    { (exit 1); exit 1; }; }
2246     fi
2247   fi
2248 fi
2249 echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6
2251
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check the compiler produces executables we can run.  If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6
2260
2261 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264   (eval $ac_link) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 # `rm'.
2272 for ac_file in conftest.exe conftest conftest.*; do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277           export ac_cv_exeext
2278           break;;
2279     * ) break;;
2280   esac
2281 done
2282 else
2283   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2297 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299 if test "${ac_cv_objext+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308
2309 int
2310 main ()
2311 {
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.o conftest.obj
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324   case $ac_file in
2325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327        break;;
2328   esac
2329 done
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6
2345 OBJEXT=$ac_cv_objext
2346 ac_objext=$OBJEXT
2347 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358
2359 int
2360 main ()
2361 {
2362 #ifndef __GNUC__
2363        choke me
2364 #endif
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   ac_compiler_gnu=yes
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 ac_compiler_gnu=no
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
2402 fi
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2408 CFLAGS="-g"
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   ac_cv_prog_cc_g=yes
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_cv_prog_cc_g=no
2457 fi
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462 if test "$ac_test_CFLAGS" = set; then
2463   CFLAGS=$ac_save_CFLAGS
2464 elif test $ac_cv_prog_cc_g = yes; then
2465   if test "$GCC" = yes; then
2466     CFLAGS="-g -O2"
2467   else
2468     CFLAGS="-g"
2469   fi
2470 else
2471   if test "$GCC" = yes; then
2472     CFLAGS="-O2"
2473   else
2474     CFLAGS=
2475   fi
2476 fi
2477 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   ac_cv_prog_cc_stdc=no
2483 ac_save_CC=$CC
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 #include <stdarg.h>
2491 #include <stdio.h>
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2498      char **p;
2499      int i;
2500 {
2501   return p[i];
2502 }
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2504 {
2505   char *s;
2506   va_list v;
2507   va_start (v,p);
2508   s = g (p, va_arg (v,int));
2509   va_end (v);
2510   return s;
2511 }
2512
2513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2514    function prototypes and stuff, but not '\xHH' hex character constants.
2515    These don't provoke an error unfortunately, instead are silently treated
2516    as 'x'.  The following induces an error, until -std1 is added to get
2517    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2518    array size at least.  It's necessary to write '\x00'==0 to get something
2519    that's true only with -std1.  */
2520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526 int argc;
2527 char **argv;
2528 int
2529 main ()
2530 {
2531 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 # Don't try gcc -ansi; that turns off useful extensions and
2537 # breaks some systems' header files.
2538 # AIX                   -qlanglvl=ansi
2539 # Ultrix and OSF/1      -std1
2540 # HP-UX 10.20 and later -Ae
2541 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2542 # SVR4                  -Xc -D__EXTENSIONS__
2543 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 do
2545   CC="$ac_save_CC $ac_arg"
2546   rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548   (eval $ac_compile) 2>conftest.er1
2549   ac_status=$?
2550   grep -v '^ *+' conftest.er1 >conftest.err
2551   rm -f conftest.er1
2552   cat conftest.err >&5
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); } &&
2555          { ac_try='test -z "$ac_c_werror_flag"
2556                          || test ! -s conftest.err'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   ac_cv_prog_cc_stdc=$ac_arg
2569 break
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 fi
2575 rm -f conftest.err conftest.$ac_objext
2576 done
2577 rm -f conftest.$ac_ext conftest.$ac_objext
2578 CC=$ac_save_CC
2579
2580 fi
2581
2582 case "x$ac_cv_prog_cc_stdc" in
2583   x|xno)
2584     echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2586   *)
2587     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589     CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 esac
2591
2592 # Some people use a C++ compiler to compile C.  Since we use `exit',
2593 # in C++ we need to declare it.  In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.$ac_ext <<_ACEOF
2597 #ifndef __cplusplus
2598   choke me
2599 #endif
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -z "$ac_c_werror_flag"
2611                          || test ! -s conftest.err'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   for ac_declaration in \
2624    '' \
2625    'extern "C" void std::exit (int) throw (); using std::exit;' \
2626    'extern "C" void std::exit (int); using std::exit;' \
2627    'extern "C" void exit (int) throw ();' \
2628    'extern "C" void exit (int);' \
2629    'void exit (int);'
2630 do
2631   cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637 $ac_declaration
2638 #include <stdlib.h>
2639 int
2640 main ()
2641 {
2642 exit (42);
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag"
2657                          || test ! -s conftest.err'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   :
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 continue
2675 fi
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 $ac_declaration
2684 int
2685 main ()
2686 {
2687 exit (42);
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"
2702                          || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   break
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 fi
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 done
2722 rm -f conftest*
2723 if test -n "$ac_declaration"; then
2724   echo '#ifdef __cplusplus' >>confdefs.h
2725   echo $ac_declaration      >>confdefs.h
2726   echo '#endif'             >>confdefs.h
2727 fi
2728
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744 if test "${ac_cv_c_bigendian+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   # See if sys/param.h defines the BYTE_ORDER macro.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 #include <sys/types.h>
2755 #include <sys/param.h>
2756
2757 int
2758 main ()
2759 {
2760 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761  bogus endian macros
2762 #endif
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -z "$ac_c_werror_flag"
2778                          || test ! -s conftest.err'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; } &&
2784          { ac_try='test -s conftest.$ac_objext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   # It does; now see whether it defined to BIG_ENDIAN or not.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h.  */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h.  */
2797 #include <sys/types.h>
2798 #include <sys/param.h>
2799
2800 int
2801 main ()
2802 {
2803 #if BYTE_ORDER != BIG_ENDIAN
2804  not big endian
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813   (eval $ac_compile) 2>conftest.er1
2814   ac_status=$?
2815   grep -v '^ *+' conftest.er1 >conftest.err
2816   rm -f conftest.er1
2817   cat conftest.err >&5
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); } &&
2820          { ac_try='test -z "$ac_c_werror_flag"
2821                          || test ! -s conftest.err'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_cv_c_bigendian=yes
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 ac_cv_c_bigendian=no
2839 fi
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 # It does not; compile a test program.
2846 if test "$cross_compiling" = yes; then
2847   # try to guess the endianness by grepping values into an object file
2848   ac_cv_c_bigendian=unknown
2849   cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861 int
2862 main ()
2863 {
2864  _ascii (); _ebcdic ();
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871   (eval $ac_compile) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } &&
2878          { ac_try='test -z "$ac_c_werror_flag"
2879                          || test ! -s conftest.err'
2880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881   (eval $ac_try) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892   ac_cv_c_bigendian=yes
2893 fi
2894 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895   if test "$ac_cv_c_bigendian" = unknown; then
2896     ac_cv_c_bigendian=no
2897   else
2898     # finding both strings is unlikely to happen, but who knows?
2899     ac_cv_c_bigendian=unknown
2900   fi
2901 fi
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 int
2916 main ()
2917 {
2918   /* Are we little or big endian?  From Harbison&Steele.  */
2919   union
2920   {
2921     long l;
2922     char c[sizeof (long)];
2923   } u;
2924   u.l = 1;
2925   exit (u.c[sizeof (long) - 1] == 1);
2926 }
2927 _ACEOF
2928 rm -f conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930   (eval $ac_link) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   ac_cv_c_bigendian=no
2940 else
2941   echo "$as_me: program exited with status $ac_status" >&5
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 ( exit $ac_status )
2946 ac_cv_c_bigendian=yes
2947 fi
2948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949 fi
2950 fi
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955 case $ac_cv_c_bigendian in
2956   yes)
2957     ENDIAN=big
2958  ;;
2959   no)
2960     ENDIAN=little
2961  ;;
2962   *)
2963     { { echo "$as_me:$LINENO: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965 echo "$as_me: error: unknown endianness
2966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967    { (exit 1); exit 1; }; } ;;
2968 esac
2969
2970
2971
2972 # Check whether --enable-optimized or --disable-optimized was given.
2973 if test "${enable_optimized+set}" = set; then
2974   enableval="$enable_optimized"
2975
2976 else
2977   enableval=no
2978 fi;
2979 if test ${enableval} = "no" ; then
2980   ENABLE_OPTIMIZED=
2981
2982 else
2983   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2984
2985 fi
2986
2987 # Check whether --enable-jit or --disable-jit was given.
2988 if test "${enable_jit+set}" = set; then
2989   enableval="$enable_jit"
2990
2991 else
2992   enableval=default
2993 fi;
2994 if test ${enableval} = "no"
2995 then
2996   JIT=
2997
2998 else
2999   case "$llvm_cv_target_arch" in
3000     x86)     JIT=TARGET_HAS_JIT=1
3001  ;;
3002     Sparc)   JIT=TARGET_HAS_JIT=1
3003  ;;
3004     PowerPC) JIT=TARGET_HAS_JIT=1
3005  ;;
3006     x86_64)  JIT=
3007  ;;
3008     Alpha)   JIT=
3009  ;;
3010     IA64)    JIT=
3011  ;;
3012     *)       JIT=
3013  ;;
3014   esac
3015 fi
3016
3017 # Check whether --enable-doxygen or --disable-doxygen was given.
3018 if test "${enable_doxygen+set}" = set; then
3019   enableval="$enable_doxygen"
3020
3021 else
3022   enableval=default
3023 fi;
3024 case "$enableval" in
3025   yes) ENABLE_DOXYGEN=1
3026  ;;
3027   no)  ENABLE_DOXYGEN=0
3028  ;;
3029   default) ENABLE_DOXYGEN=0
3030  ;;
3031   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3032 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3033    { (exit 1); exit 1; }; } ;;
3034 esac
3035
3036 TARGETS_TO_BUILD=""
3037 # Check whether --enable-targets or --disable-targets was given.
3038 if test "${enable_targets+set}" = set; then
3039   enableval="$enable_targets"
3040
3041 else
3042   enableval=all
3043 fi;
3044 case "$enableval" in
3045   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3046   host-only)
3047     case "$llvm_cv_target_arch" in
3048       x86)     TARGETS_TO_BUILD="X86" ;;
3049       x86_64)  TARGETS_TO_BUILD="X86" ;;
3050       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3051       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3052       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3053       IA64)    TARGETS_TO_BUILD="IA64" ;;
3054       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3055 echo "$as_me: error: Can not set target to build" >&2;}
3056    { (exit 1); exit 1; }; } ;;
3057     esac
3058     ;;
3059   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3060       case "$a_target" in
3061         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3062         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3063         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3064         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3065         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3066         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3067         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3068         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3069 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3070    { (exit 1); exit 1; }; } ;;
3071       esac
3072   done
3073   ;;
3074 esac
3075 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3076 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3077
3078
3079
3080 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3081 if test "${with_llvmgccdir+set}" = set; then
3082   withval="$with_llvmgccdir"
3083
3084 else
3085   withval=default
3086 fi;
3087 case "$withval" in
3088   default) WITH_LLVMGCCDIR=default ;;
3089   /*)      WITH_LLVMGCCDIR=$withval ;;
3090   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3091 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3092    { (exit 1); exit 1; }; } ;;
3093 esac
3094
3095
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3104 # On Suns, sometimes $CPP names a directory.
3105 if test -n "$CPP" && test -d "$CPP"; then
3106   CPP=
3107 fi
3108 if test -z "$CPP"; then
3109   if test "${ac_cv_prog_CPP+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112       # Double quotes because CPP needs to be expanded
3113     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3114     do
3115       ac_preproc_ok=false
3116 for ac_c_preproc_warn_flag in '' yes
3117 do
3118   # Use a header file that comes with gcc, so configuring glibc
3119   # with a fresh cross-compiler works.
3120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121   # <limits.h> exists even on freestanding compilers.
3122   # On the NeXT, cc -E runs the code through the compiler's parser,
3123   # not just through cpp. "Syntax error" is here to catch this case.
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #ifdef __STDC__
3131 # include <limits.h>
3132 #else
3133 # include <assert.h>
3134 #endif
3135                      Syntax error
3136 _ACEOF
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } >/dev/null; then
3145   if test -s conftest.err; then
3146     ac_cpp_err=$ac_c_preproc_warn_flag
3147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148   else
3149     ac_cpp_err=
3150   fi
3151 else
3152   ac_cpp_err=yes
3153 fi
3154 if test -z "$ac_cpp_err"; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160   # Broken: fails on valid input.
3161 continue
3162 fi
3163 rm -f conftest.err conftest.$ac_ext
3164
3165   # OK, works on sane cases.  Now check whether non-existent headers
3166   # can be detected and how.
3167   cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #include <ac_nonexistent.h>
3174 _ACEOF
3175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } >/dev/null; then
3183   if test -s conftest.err; then
3184     ac_cpp_err=$ac_c_preproc_warn_flag
3185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186   else
3187     ac_cpp_err=
3188   fi
3189 else
3190   ac_cpp_err=yes
3191 fi
3192 if test -z "$ac_cpp_err"; then
3193   # Broken: success on invalid input.
3194 continue
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199   # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3209   break
3210 fi
3211
3212     done
3213     ac_cv_prog_CPP=$CPP
3214
3215 fi
3216   CPP=$ac_cv_prog_CPP
3217 else
3218   ac_cv_prog_CPP=$CPP
3219 fi
3220 echo "$as_me:$LINENO: result: $CPP" >&5
3221 echo "${ECHO_T}$CPP" >&6
3222 ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3224 do
3225   # Use a header file that comes with gcc, so configuring glibc
3226   # with a fresh cross-compiler works.
3227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228   # <limits.h> exists even on freestanding compilers.
3229   # On the NeXT, cc -E runs the code through the compiler's parser,
3230   # not just through cpp. "Syntax error" is here to catch this case.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #ifdef __STDC__
3238 # include <limits.h>
3239 #else
3240 # include <assert.h>
3241 #endif
3242                      Syntax error
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null; then
3252   if test -s conftest.err; then
3253     ac_cpp_err=$ac_c_preproc_warn_flag
3254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255   else
3256     ac_cpp_err=
3257   fi
3258 else
3259   ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262   :
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267   # Broken: fails on valid input.
3268 continue
3269 fi
3270 rm -f conftest.err conftest.$ac_ext
3271
3272   # OK, works on sane cases.  Now check whether non-existent headers
3273   # can be detected and how.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } >/dev/null; then
3290   if test -s conftest.err; then
3291     ac_cpp_err=$ac_c_preproc_warn_flag
3292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293   else
3294     ac_cpp_err=
3295   fi
3296 else
3297   ac_cpp_err=yes
3298 fi
3299 if test -z "$ac_cpp_err"; then
3300   # Broken: success on invalid input.
3301 continue
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306   # Passes both tests.
3307 ac_preproc_ok=:
3308 break
3309 fi
3310 rm -f conftest.err conftest.$ac_ext
3311
3312 done
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.$ac_ext
3315 if $ac_preproc_ok; then
3316   :
3317 else
3318   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 if test -n "$ac_tool_prefix"; then
3337   for ac_prog in gcc
3338   do
3339     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_CC+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$CC"; then
3347   ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367   echo "$as_me:$LINENO: result: $CC" >&5
3368 echo "${ECHO_T}$CC" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374     test -n "$CC" && break
3375   done
3376 fi
3377 if test -z "$CC"; then
3378   ac_ct_CC=$CC
3379   for ac_prog in gcc
3380 do
3381   # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy $ac_prog; ac_word=$2
3383 echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   if test -n "$ac_ct_CC"; then
3389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394   IFS=$as_save_IFS
3395   test -z "$as_dir" && as_dir=.
3396   for ac_exec_ext in '' $ac_executable_extensions; do
3397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398     ac_cv_prog_ac_ct_CC="$ac_prog"
3399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400     break 2
3401   fi
3402 done
3403 done
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3410 echo "${ECHO_T}$ac_ct_CC" >&6
3411 else
3412   echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3414 fi
3415
3416   test -n "$ac_ct_CC" && break
3417 done
3418
3419   CC=$ac_ct_CC
3420 fi
3421
3422
3423 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." >&5
3425 echo "$as_me: error: no acceptable C compiler found in \$PATH
3426 See \`config.log' for more details." >&2;}
3427    { (exit 1); exit 1; }; }
3428
3429 # Provide some information about the compiler.
3430 echo "$as_me:$LINENO:" \
3431      "checking for C compiler version" >&5
3432 ac_compiler=`set X $ac_compile; echo $2`
3433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3434   (eval $ac_compiler --version </dev/null >&5) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }
3438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3439   (eval $ac_compiler -v </dev/null >&5) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }
3443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3444   (eval $ac_compiler -V </dev/null >&5) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }
3448
3449 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3450 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3451 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465        choke me
3466 #endif
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474   (eval $ac_compile) 2>conftest.er1
3475   ac_status=$?
3476   grep -v '^ *+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } &&
3481          { ac_try='test -z "$ac_c_werror_flag"
3482                          || test ! -s conftest.err'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; } &&
3488          { ac_try='test -s conftest.$ac_objext'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; }; then
3494   ac_compiler_gnu=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 ac_compiler_gnu=no
3500 fi
3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3506 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3507 GCC=`test $ac_compiler_gnu = yes && echo yes`
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 CFLAGS="-g"
3511 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3513 if test "${ac_cv_prog_cc_g+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533   (eval $ac_compile) 2>conftest.er1
3534   ac_status=$?
3535   grep -v '^ *+' conftest.er1 >conftest.err
3536   rm -f conftest.er1
3537   cat conftest.err >&5
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } &&
3540          { ac_try='test -z "$ac_c_werror_flag"
3541                          || test ! -s conftest.err'
3542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543   (eval $ac_try) 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; } &&
3547          { ac_try='test -s conftest.$ac_objext'
3548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; }; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 ac_cv_prog_cc_g=no
3559 fi
3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3564 if test "$ac_test_CFLAGS" = set; then
3565   CFLAGS=$ac_save_CFLAGS
3566 elif test $ac_cv_prog_cc_g = yes; then
3567   if test "$GCC" = yes; then
3568     CFLAGS="-g -O2"
3569   else
3570     CFLAGS="-g"
3571   fi
3572 else
3573   if test "$GCC" = yes; then
3574     CFLAGS="-O2"
3575   else
3576     CFLAGS=
3577   fi
3578 fi
3579 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3580 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3581 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   ac_cv_prog_cc_stdc=no
3585 ac_save_CC=$CC
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592 #include <stdarg.h>
3593 #include <stdio.h>
3594 #include <sys/types.h>
3595 #include <sys/stat.h>
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3600      char **p;
3601      int i;
3602 {
3603   return p[i];
3604 }
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3606 {
3607   char *s;
3608   va_list v;
3609   va_start (v,p);
3610   s = g (p, va_arg (v,int));
3611   va_end (v);
3612   return s;
3613 }
3614
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3616    function prototypes and stuff, but not '\xHH' hex character constants.
3617    These don't provoke an error unfortunately, instead are silently treated
3618    as 'x'.  The following induces an error, until -std1 is added to get
3619    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3620    array size at least.  It's necessary to write '\x00'==0 to get something
3621    that's true only with -std1.  */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 int argc;
3629 char **argv;
3630 int
3631 main ()
3632 {
3633 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 # Don't try gcc -ansi; that turns off useful extensions and
3639 # breaks some systems' header files.
3640 # AIX                   -qlanglvl=ansi
3641 # Ultrix and OSF/1      -std1
3642 # HP-UX 10.20 and later -Ae
3643 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3644 # SVR4                  -Xc -D__EXTENSIONS__
3645 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 do
3647   CC="$ac_save_CC $ac_arg"
3648   rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650   (eval $ac_compile) 2>conftest.er1
3651   ac_status=$?
3652   grep -v '^ *+' conftest.er1 >conftest.err
3653   rm -f conftest.er1
3654   cat conftest.err >&5
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -z "$ac_c_werror_flag"
3658                          || test ! -s conftest.err'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; } &&
3664          { ac_try='test -s conftest.$ac_objext'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; }; then
3670   ac_cv_prog_cc_stdc=$ac_arg
3671 break
3672 else
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 fi
3677 rm -f conftest.err conftest.$ac_objext
3678 done
3679 rm -f conftest.$ac_ext conftest.$ac_objext
3680 CC=$ac_save_CC
3681
3682 fi
3683
3684 case "x$ac_cv_prog_cc_stdc" in
3685   x|xno)
3686     echo "$as_me:$LINENO: result: none needed" >&5
3687 echo "${ECHO_T}none needed" >&6 ;;
3688   *)
3689     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3690 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3691     CC="$CC $ac_cv_prog_cc_stdc" ;;
3692 esac
3693
3694 # Some people use a C++ compiler to compile C.  Since we use `exit',
3695 # in C++ we need to declare it.  In case someone uses the same compiler
3696 # for both compiling C and C++ we need to have the C++ compiler decide
3697 # the declaration of exit, since it's the most demanding environment.
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #ifndef __cplusplus
3700   choke me
3701 #endif
3702 _ACEOF
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705   (eval $ac_compile) 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          { ac_try='test -z "$ac_c_werror_flag"
3713                          || test ! -s conftest.err'
3714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715   (eval $ac_try) 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); }; } &&
3719          { ac_try='test -s conftest.$ac_objext'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; }; then
3725   for ac_declaration in \
3726    '' \
3727    'extern "C" void std::exit (int) throw (); using std::exit;' \
3728    'extern "C" void std::exit (int); using std::exit;' \
3729    'extern "C" void exit (int) throw ();' \
3730    'extern "C" void exit (int);' \
3731    'void exit (int);'
3732 do
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 $ac_declaration
3740 #include <stdlib.h>
3741 int
3742 main ()
3743 {
3744 exit (42);
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } &&
3758          { ac_try='test -z "$ac_c_werror_flag"
3759                          || test ! -s conftest.err'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; } &&
3765          { ac_try='test -s conftest.$ac_objext'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; }; then
3771   :
3772 else
3773   echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 continue
3777 fi
3778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 $ac_declaration
3786 int
3787 main ()
3788 {
3789 exit (42);
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796   (eval $ac_compile) 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } &&
3803          { ac_try='test -z "$ac_c_werror_flag"
3804                          || test ! -s conftest.err'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; } &&
3810          { ac_try='test -s conftest.$ac_objext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   break
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 fi
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 done
3824 rm -f conftest*
3825 if test -n "$ac_declaration"; then
3826   echo '#ifdef __cplusplus' >>confdefs.h
3827   echo $ac_declaration      >>confdefs.h
3828   echo '#endif'             >>confdefs.h
3829 fi
3830
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 fi
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843 ac_ext=cc
3844 ac_cpp='$CXXCPP $CPPFLAGS'
3845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3848 if test -n "$ac_tool_prefix"; then
3849   for ac_prog in $CCC g++
3850   do
3851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_CXX+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   if test -n "$CXX"; then
3859   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875 fi
3876 fi
3877 CXX=$ac_cv_prog_CXX
3878 if test -n "$CXX"; then
3879   echo "$as_me:$LINENO: result: $CXX" >&5
3880 echo "${ECHO_T}$CXX" >&6
3881 else
3882   echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 fi
3885
3886     test -n "$CXX" && break
3887   done
3888 fi
3889 if test -z "$CXX"; then
3890   ac_ct_CXX=$CXX
3891   for ac_prog in $CCC g++
3892 do
3893   # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 echo "$as_me:$LINENO: checking for $ac_word" >&5
3896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   if test -n "$ac_ct_CXX"; then
3901   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_exec_ext in '' $ac_executable_extensions; do
3909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_ac_ct_CXX="$ac_prog"
3911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915 done
3916
3917 fi
3918 fi
3919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3920 if test -n "$ac_ct_CXX"; then
3921   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3922 echo "${ECHO_T}$ac_ct_CXX" >&6
3923 else
3924   echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926 fi
3927
3928   test -n "$ac_ct_CXX" && break
3929 done
3930 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3931
3932   CXX=$ac_ct_CXX
3933 fi
3934
3935
3936 # Provide some information about the compiler.
3937 echo "$as_me:$LINENO:" \
3938      "checking for C++ compiler version" >&5
3939 ac_compiler=`set X $ac_compile; echo $2`
3940 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3941   (eval $ac_compiler --version </dev/null >&5) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }
3945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3946   (eval $ac_compiler -v </dev/null >&5) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }
3950 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3951   (eval $ac_compiler -V </dev/null >&5) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }
3955
3956 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967
3968 int
3969 main ()
3970 {
3971 #ifndef __GNUC__
3972        choke me
3973 #endif
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981   (eval $ac_compile) 2>conftest.er1
3982   ac_status=$?
3983   grep -v '^ *+' conftest.er1 >conftest.err
3984   rm -f conftest.er1
3985   cat conftest.err >&5
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); } &&
3988          { ac_try='test -z "$ac_cxx_werror_flag"
3989                          || test ! -s conftest.err'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; } &&
3995          { ac_try='test -s conftest.$ac_objext'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; }; then
4001   ac_compiler_gnu=yes
4002 else
4003   echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ac_compiler_gnu=no
4007 fi
4008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4010
4011 fi
4012 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4014 GXX=`test $ac_compiler_gnu = yes && echo yes`
4015 ac_test_CXXFLAGS=${CXXFLAGS+set}
4016 ac_save_CXXFLAGS=$CXXFLAGS
4017 CXXFLAGS="-g"
4018 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4020 if test "${ac_cv_prog_cxx_g+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040   (eval $ac_compile) 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -z "$ac_cxx_werror_flag"
4048                          || test ! -s conftest.err'
4049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050   (eval $ac_try) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); }; } &&
4054          { ac_try='test -s conftest.$ac_objext'
4055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056   (eval $ac_try) 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; }; then
4060   ac_cv_prog_cxx_g=yes
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 ac_cv_prog_cxx_g=no
4066 fi
4067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068 fi
4069 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4070 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4071 if test "$ac_test_CXXFLAGS" = set; then
4072   CXXFLAGS=$ac_save_CXXFLAGS
4073 elif test $ac_cv_prog_cxx_g = yes; then
4074   if test "$GXX" = yes; then
4075     CXXFLAGS="-g -O2"
4076   else
4077     CXXFLAGS="-g"
4078   fi
4079 else
4080   if test "$GXX" = yes; then
4081     CXXFLAGS="-O2"
4082   else
4083     CXXFLAGS=
4084   fi
4085 fi
4086 for ac_declaration in \
4087    '' \
4088    'extern "C" void std::exit (int) throw (); using std::exit;' \
4089    'extern "C" void std::exit (int); using std::exit;' \
4090    'extern "C" void exit (int) throw ();' \
4091    'extern "C" void exit (int);' \
4092    'void exit (int);'
4093 do
4094   cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 $ac_declaration
4101 #include <stdlib.h>
4102 int
4103 main ()
4104 {
4105 exit (42);
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112   (eval $ac_compile) 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -z "$ac_cxx_werror_flag"
4120                          || test ! -s conftest.err'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; } &&
4126          { ac_try='test -s conftest.$ac_objext'
4127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128   (eval $ac_try) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; }; then
4132   :
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 continue
4138 fi
4139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 $ac_declaration
4147 int
4148 main ()
4149 {
4150 exit (42);
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_cxx_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   break
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 fi
4183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4184 done
4185 rm -f conftest*
4186 if test -n "$ac_declaration"; then
4187   echo '#ifdef __cplusplus' >>confdefs.h
4188   echo $ac_declaration      >>confdefs.h
4189   echo '#endif'             >>confdefs.h
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198 echo "$as_me:$LINENO: checking " >&5
4199 echo $ECHO_N "checking ... $ECHO_C" >&6
4200 if test "${ac_cv_has_flex+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   for ac_prog in flex lex
4204 do
4205   # Extract the first word of "$ac_prog", so it can be a program name with args.
4206 set dummy $ac_prog; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_LEX+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   if test -n "$LEX"; then
4213   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220   for ac_exec_ext in '' $ac_executable_extensions; do
4221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222     ac_cv_prog_LEX="$ac_prog"
4223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227 done
4228
4229 fi
4230 fi
4231 LEX=$ac_cv_prog_LEX
4232 if test -n "$LEX"; then
4233   echo "$as_me:$LINENO: result: $LEX" >&5
4234 echo "${ECHO_T}$LEX" >&6
4235 else
4236   echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4238 fi
4239
4240   test -n "$LEX" && break
4241 done
4242 test -n "$LEX" || LEX=":"
4243
4244 if test -z "$LEXLIB"
4245 then
4246   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4247 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4248 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   ac_check_lib_save_LIBS=$LIBS
4252 LIBS="-lfl  $LIBS"
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259
4260 /* Override any gcc2 internal prototype to avoid an error.  */
4261 #ifdef __cplusplus
4262 extern "C"
4263 #endif
4264 /* We use char because int might match the return type of a gcc2
4265    builtin and then its argument prototype would still apply.  */
4266 char yywrap ();
4267 int
4268 main ()
4269 {
4270 yywrap ();
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.$ac_objext conftest$ac_exeext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277   (eval $ac_link) 2>conftest.er1
4278   ac_status=$?
4279   grep -v '^ *+' conftest.er1 >conftest.err
4280   rm -f conftest.er1
4281   cat conftest.err >&5
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); } &&
4284          { ac_try='test -z "$ac_c_werror_flag"
4285                          || test ! -s conftest.err'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; } &&
4291          { ac_try='test -s conftest$ac_exeext'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_lib_fl_yywrap=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_cv_lib_fl_yywrap=no
4303 fi
4304 rm -f conftest.err conftest.$ac_objext \
4305       conftest$ac_exeext conftest.$ac_ext
4306 LIBS=$ac_check_lib_save_LIBS
4307 fi
4308 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4309 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4310 if test $ac_cv_lib_fl_yywrap = yes; then
4311   LEXLIB="-lfl"
4312 else
4313   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4314 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4315 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   ac_check_lib_save_LIBS=$LIBS
4319 LIBS="-ll  $LIBS"
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326
4327 /* Override any gcc2 internal prototype to avoid an error.  */
4328 #ifdef __cplusplus
4329 extern "C"
4330 #endif
4331 /* We use char because int might match the return type of a gcc2
4332    builtin and then its argument prototype would still apply.  */
4333 char yywrap ();
4334 int
4335 main ()
4336 {
4337 yywrap ();
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext conftest$ac_exeext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344   (eval $ac_link) 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_c_werror_flag"
4352                          || test ! -s conftest.err'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; } &&
4358          { ac_try='test -s conftest$ac_exeext'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   ac_cv_lib_l_yywrap=yes
4365 else
4366   echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ac_cv_lib_l_yywrap=no
4370 fi
4371 rm -f conftest.err conftest.$ac_objext \
4372       conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_check_lib_save_LIBS
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4376 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4377 if test $ac_cv_lib_l_yywrap = yes; then
4378   LEXLIB="-ll"
4379 fi
4380
4381 fi
4382
4383 fi
4384
4385 if test "x$LEX" != "x:"; then
4386   echo "$as_me:$LINENO: checking lex output file root" >&5
4387 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4388 if test "${ac_cv_prog_lex_root+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   # The minimal lex program is just a single line: %%.  But some broken lexes
4392 # (Solaris, I think it was) want two %% lines, so accommodate them.
4393 cat >conftest.l <<_ACEOF
4394 %%
4395 %%
4396 _ACEOF
4397 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4398   (eval $LEX conftest.l) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }
4402 if test -f lex.yy.c; then
4403   ac_cv_prog_lex_root=lex.yy
4404 elif test -f lexyy.c; then
4405   ac_cv_prog_lex_root=lexyy
4406 else
4407   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4408 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4409    { (exit 1); exit 1; }; }
4410 fi
4411 fi
4412 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4413 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4414 rm -f conftest.l
4415 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4416
4417 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4418 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4419 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   # POSIX says lex can declare yytext either as a pointer or an array; the
4423 # default is implementation-dependent. Figure out which it is, since
4424 # not all implementations provide the %pointer and %array declarations.
4425 ac_cv_prog_lex_yytext_pointer=no
4426 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4427 ac_save_LIBS=$LIBS
4428 LIBS="$LIBS $LEXLIB"
4429 cat >conftest.$ac_ext <<_ACEOF
4430 `cat $LEX_OUTPUT_ROOT.c`
4431 _ACEOF
4432 rm -f conftest.$ac_objext conftest$ac_exeext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434   (eval $ac_link) 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } &&
4441          { ac_try='test -z "$ac_c_werror_flag"
4442                          || test ! -s conftest.err'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; } &&
4448          { ac_try='test -s conftest$ac_exeext'
4449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450   (eval $ac_try) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; }; then
4454   ac_cv_prog_lex_yytext_pointer=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 fi
4460 rm -f conftest.err conftest.$ac_objext \
4461       conftest$ac_exeext conftest.$ac_ext
4462 LIBS=$ac_save_LIBS
4463 rm -f "${LEX_OUTPUT_ROOT}.c"
4464
4465 fi
4466 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4467 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4468 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4469
4470 cat >>confdefs.h <<\_ACEOF
4471 #define YYTEXT_POINTER 1
4472 _ACEOF
4473
4474 fi
4475
4476 fi
4477
4478 fi
4479 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4480 echo "${ECHO_T}$ac_cv_has_flex" >&6
4481 if test "$LEX" != "flex"; then
4482   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4483 echo "$as_me: error: flex not found but required" >&2;}
4484    { (exit 1); exit 1; }; }
4485 else
4486   FLEX=flex
4487
4488 fi
4489
4490 echo "$as_me:$LINENO: checking " >&5
4491 echo $ECHO_N "checking ... $ECHO_C" >&6
4492 if test "${llvm_cv_has_bison+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   for ac_prog in 'bison -y' byacc
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_YACC+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$YACC"; then
4505   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_YACC="$ac_prog"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521 fi
4522 fi
4523 YACC=$ac_cv_prog_YACC
4524 if test -n "$YACC"; then
4525   echo "$as_me:$LINENO: result: $YACC" >&5
4526 echo "${ECHO_T}$YACC" >&6
4527 else
4528   echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4530 fi
4531
4532   test -n "$YACC" && break
4533 done
4534 test -n "$YACC" || YACC="yacc"
4535
4536 fi
4537 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4538 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4539 if test "$YACC" != "bison -y"; then
4540   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4541 echo "$as_me: error: bison not found but required" >&2;}
4542    { (exit 1); exit 1; }; }
4543 else
4544   BISON=bison
4545
4546 fi
4547
4548 echo "$as_me:$LINENO: checking for GNU make" >&5
4549 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4550 if test "${llvm_cv_gnu_make_command+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   llvm_cv_gnu_make_command=''
4554  for a in "$MAKE" make gmake gnumake ; do
4555   if test -z "$a" ; then continue ; fi ;
4556   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4557   then
4558    llvm_cv_gnu_make_command=$a ;
4559    break;
4560   fi
4561  done
4562 fi
4563 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4564 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4565  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4566    ifGNUmake='' ;
4567  else
4568    ifGNUmake='#' ;
4569    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4570 echo "${ECHO_T}\"Not found\"" >&6;
4571  fi
4572
4573
4574 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4575 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4576 LN_S=$as_ln_s
4577 if test "$LN_S" = "ln -s"; then
4578   echo "$as_me:$LINENO: result: yes" >&5
4579 echo "${ECHO_T}yes" >&6
4580 else
4581   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4582 echo "${ECHO_T}no, using $LN_S" >&6
4583 fi
4584
4585 # Extract the first word of "cmp", so it can be a program name with args.
4586 set dummy cmp; ac_word=$2
4587 echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589 if test "${ac_cv_path_CMP+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   case $CMP in
4593   [\\/]* | ?:[\\/]*)
4594   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4595   ;;
4596   *)
4597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602   for ac_exec_ext in '' $ac_executable_extensions; do
4603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606     break 2
4607   fi
4608 done
4609 done
4610
4611   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4612   ;;
4613 esac
4614 fi
4615 CMP=$ac_cv_path_CMP
4616
4617 if test -n "$CMP"; then
4618   echo "$as_me:$LINENO: result: $CMP" >&5
4619 echo "${ECHO_T}$CMP" >&6
4620 else
4621   echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4623 fi
4624
4625 # Extract the first word of "cp", so it can be a program name with args.
4626 set dummy cp; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_path_CP+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   case $CP in
4633   [\\/]* | ?:[\\/]*)
4634   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4635   ;;
4636   *)
4637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650
4651   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4652   ;;
4653 esac
4654 fi
4655 CP=$ac_cv_path_CP
4656
4657 if test -n "$CP"; then
4658   echo "$as_me:$LINENO: result: $CP" >&5
4659 echo "${ECHO_T}$CP" >&6
4660 else
4661   echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4663 fi
4664
4665 # Extract the first word of "date", so it can be a program name with args.
4666 set dummy date; ac_word=$2
4667 echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669 if test "${ac_cv_path_DATE+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   case $DATE in
4673   [\\/]* | ?:[\\/]*)
4674   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4675   ;;
4676   *)
4677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689 done
4690
4691   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4692   ;;
4693 esac
4694 fi
4695 DATE=$ac_cv_path_DATE
4696
4697 if test -n "$DATE"; then
4698   echo "$as_me:$LINENO: result: $DATE" >&5
4699 echo "${ECHO_T}$DATE" >&6
4700 else
4701   echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4703 fi
4704
4705 # Extract the first word of "find", so it can be a program name with args.
4706 set dummy find; ac_word=$2
4707 echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709 if test "${ac_cv_path_FIND+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   case $FIND in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730
4731   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4732   ;;
4733 esac
4734 fi
4735 FIND=$ac_cv_path_FIND
4736
4737 if test -n "$FIND"; then
4738   echo "$as_me:$LINENO: result: $FIND" >&5
4739 echo "${ECHO_T}$FIND" >&6
4740 else
4741   echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6
4743 fi
4744
4745 # Extract the first word of "grep", so it can be a program name with args.
4746 set dummy grep; ac_word=$2
4747 echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749 if test "${ac_cv_path_GREP+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   case $GREP in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770
4771   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4772   ;;
4773 esac
4774 fi
4775 GREP=$ac_cv_path_GREP
4776
4777 if test -n "$GREP"; then
4778   echo "$as_me:$LINENO: result: $GREP" >&5
4779 echo "${ECHO_T}$GREP" >&6
4780 else
4781   echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6
4783 fi
4784
4785 # Extract the first word of "mkdir", so it can be a program name with args.
4786 set dummy mkdir; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_path_MKDIR+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   case $MKDIR in
4793   [\\/]* | ?:[\\/]*)
4794   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4795   ;;
4796   *)
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802   for ac_exec_ext in '' $ac_executable_extensions; do
4803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809 done
4810
4811   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4812   ;;
4813 esac
4814 fi
4815 MKDIR=$ac_cv_path_MKDIR
4816
4817 if test -n "$MKDIR"; then
4818   echo "$as_me:$LINENO: result: $MKDIR" >&5
4819 echo "${ECHO_T}$MKDIR" >&6
4820 else
4821   echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4823 fi
4824
4825 # Extract the first word of "mv", so it can be a program name with args.
4826 set dummy mv; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_path_MV+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   case $MV in
4833   [\\/]* | ?:[\\/]*)
4834   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4835   ;;
4836   *)
4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850
4851   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4852   ;;
4853 esac
4854 fi
4855 MV=$ac_cv_path_MV
4856
4857 if test -n "$MV"; then
4858   echo "$as_me:$LINENO: result: $MV" >&5
4859 echo "${ECHO_T}$MV" >&6
4860 else
4861   echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6
4863 fi
4864
4865 if test -n "$ac_tool_prefix"; then
4866   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_RANLIB+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test -n "$RANLIB"; then
4874   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889
4890 fi
4891 fi
4892 RANLIB=$ac_cv_prog_RANLIB
4893 if test -n "$RANLIB"; then
4894   echo "$as_me:$LINENO: result: $RANLIB" >&5
4895 echo "${ECHO_T}$RANLIB" >&6
4896 else
4897   echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4899 fi
4900
4901 fi
4902 if test -z "$ac_cv_prog_RANLIB"; then
4903   ac_ct_RANLIB=$RANLIB
4904   # Extract the first word of "ranlib", so it can be a program name with args.
4905 set dummy ranlib; ac_word=$2
4906 echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4908 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   if test -n "$ac_ct_RANLIB"; then
4912   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921     ac_cv_prog_ac_ct_RANLIB="ranlib"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927
4928   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4929 fi
4930 fi
4931 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4932 if test -n "$ac_ct_RANLIB"; then
4933   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4934 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4935 else
4936   echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4938 fi
4939
4940   RANLIB=$ac_ct_RANLIB
4941 else
4942   RANLIB="$ac_cv_prog_RANLIB"
4943 fi
4944
4945 # Extract the first word of "rm", so it can be a program name with args.
4946 set dummy rm; ac_word=$2
4947 echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4949 if test "${ac_cv_path_RM+set}" = set; then
4950   echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952   case $RM in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962   for ac_exec_ext in '' $ac_executable_extensions; do
4963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969 done
4970
4971   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4972   ;;
4973 esac
4974 fi
4975 RM=$ac_cv_path_RM
4976
4977 if test -n "$RM"; then
4978   echo "$as_me:$LINENO: result: $RM" >&5
4979 echo "${ECHO_T}$RM" >&6
4980 else
4981   echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6
4983 fi
4984
4985 # Extract the first word of "sed", so it can be a program name with args.
4986 set dummy sed; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_path_SED+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   case $SED in
4993   [\\/]* | ?:[\\/]*)
4994   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4995   ;;
4996   *)
4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002   for ac_exec_ext in '' $ac_executable_extensions; do
5003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009 done
5010
5011   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5012   ;;
5013 esac
5014 fi
5015 SED=$ac_cv_path_SED
5016
5017 if test -n "$SED"; then
5018   echo "$as_me:$LINENO: result: $SED" >&5
5019 echo "${ECHO_T}$SED" >&6
5020 else
5021   echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5023 fi
5024
5025 # Extract the first word of "tar", so it can be a program name with args.
5026 set dummy tar; ac_word=$2
5027 echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029 if test "${ac_cv_path_TAR+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   case $TAR in
5033   [\\/]* | ?:[\\/]*)
5034   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5035   ;;
5036   *)
5037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042   for ac_exec_ext in '' $ac_executable_extensions; do
5043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049 done
5050
5051   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5052   ;;
5053 esac
5054 fi
5055 TAR=$ac_cv_path_TAR
5056
5057 if test -n "$TAR"; then
5058   echo "$as_me:$LINENO: result: $TAR" >&5
5059 echo "${ECHO_T}$TAR" >&6
5060 else
5061   echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5063 fi
5064
5065
5066 # Find a good install program.  We prefer a C program (faster),
5067 # so one script is as good as another.  But avoid the broken or
5068 # incompatible versions:
5069 # SysV /etc/install, /usr/sbin/install
5070 # SunOS /usr/etc/install
5071 # IRIX /sbin/install
5072 # AIX /bin/install
5073 # AmigaOS /C/install, which installs bootblocks on floppy discs
5074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5077 # OS/2's system install, which has a completely different semantic
5078 # ./install, which can be erroneously created by make from ./install.sh.
5079 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5080 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5081 if test -z "$INSTALL"; then
5082 if test "${ac_cv_path_install+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090   # Account for people who put trailing slashes in PATH elements.
5091 case $as_dir/ in
5092   ./ | .// | /cC/* | \
5093   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5094   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5095   /usr/ucb/* ) ;;
5096   *)
5097     # OSF1 and SCO ODT 3.0 have their own names for install.
5098     # Don't use installbsd from OSF since it installs stuff as root
5099     # by default.
5100     for ac_prog in ginstall scoinst install; do
5101       for ac_exec_ext in '' $ac_executable_extensions; do
5102         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5103           if test $ac_prog = install &&
5104             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5105             # AIX install.  It has an incompatible calling convention.
5106             :
5107           elif test $ac_prog = install &&
5108             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5109             # program-specific install script used by HP pwplus--don't use.
5110             :
5111           else
5112             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5113             break 3
5114           fi
5115         fi
5116       done
5117     done
5118     ;;
5119 esac
5120 done
5121
5122
5123 fi
5124   if test "${ac_cv_path_install+set}" = set; then
5125     INSTALL=$ac_cv_path_install
5126   else
5127     # As a last resort, use the slow shell script.  We don't cache a
5128     # path for INSTALL within a source directory, because that will
5129     # break other packages using the cache if that directory is
5130     # removed, or if the path is relative.
5131     INSTALL=$ac_install_sh
5132   fi
5133 fi
5134 echo "$as_me:$LINENO: result: $INSTALL" >&5
5135 echo "${ECHO_T}$INSTALL" >&6
5136
5137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5138 # It thinks the first close brace ends the variable substitution.
5139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5140
5141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5142
5143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5144
5145
5146 # Extract the first word of "bzip2", so it can be a program name with args.
5147 set dummy bzip2; ac_word=$2
5148 echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_path_BZIP2+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   case $BZIP2 in
5154   [\\/]* | ?:[\\/]*)
5155   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5156   ;;
5157   *)
5158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163   for ac_exec_ext in '' $ac_executable_extensions; do
5164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167     break 2
5168   fi
5169 done
5170 done
5171
5172   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5173   ;;
5174 esac
5175 fi
5176 BZIP2=$ac_cv_path_BZIP2
5177
5178 if test -n "$BZIP2"; then
5179   echo "$as_me:$LINENO: result: $BZIP2" >&5
5180 echo "${ECHO_T}$BZIP2" >&6
5181 else
5182   echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5184 fi
5185
5186 # Extract the first word of "dot", so it can be a program name with args.
5187 set dummy dot; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_path_DOT+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   case $DOT in
5194   [\\/]* | ?:[\\/]*)
5195   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5196   ;;
5197   *)
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211
5212   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5213   ;;
5214 esac
5215 fi
5216 DOT=$ac_cv_path_DOT
5217
5218 if test -n "$DOT"; then
5219   echo "$as_me:$LINENO: result: $DOT" >&5
5220 echo "${ECHO_T}$DOT" >&6
5221 else
5222   echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226 # Extract the first word of "doxygen", so it can be a program name with args.
5227 set dummy doxygen; ac_word=$2
5228 echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   case $DOXYGEN in
5234   [\\/]* | ?:[\\/]*)
5235   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5236   ;;
5237   *)
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243   for ac_exec_ext in '' $ac_executable_extensions; do
5244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250 done
5251
5252   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5253   ;;
5254 esac
5255 fi
5256 DOXYGEN=$ac_cv_path_DOXYGEN
5257
5258 if test -n "$DOXYGEN"; then
5259   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5260 echo "${ECHO_T}$DOXYGEN" >&6
5261 else
5262   echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5264 fi
5265
5266 # Extract the first word of "etags", so it can be a program name with args.
5267 set dummy etags; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_path_ETAGS+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   case $ETAGS in
5274   [\\/]* | ?:[\\/]*)
5275   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5276   ;;
5277   *)
5278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283   for ac_exec_ext in '' $ac_executable_extensions; do
5284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290 done
5291
5292   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5293   ;;
5294 esac
5295 fi
5296 ETAGS=$ac_cv_path_ETAGS
5297
5298 if test -n "$ETAGS"; then
5299   echo "$as_me:$LINENO: result: $ETAGS" >&5
5300 echo "${ECHO_T}$ETAGS" >&6
5301 else
5302   echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6
5304 fi
5305
5306 # Extract the first word of "groff", so it can be a program name with args.
5307 set dummy groff; ac_word=$2
5308 echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310 if test "${ac_cv_path_GROFF+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   case $GROFF in
5314   [\\/]* | ?:[\\/]*)
5315   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5316   ;;
5317   *)
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323   for ac_exec_ext in '' $ac_executable_extensions; do
5324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330 done
5331
5332   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5333   ;;
5334 esac
5335 fi
5336 GROFF=$ac_cv_path_GROFF
5337
5338 if test -n "$GROFF"; then
5339   echo "$as_me:$LINENO: result: $GROFF" >&5
5340 echo "${ECHO_T}$GROFF" >&6
5341 else
5342   echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5344 fi
5345
5346 # Extract the first word of "gzip", so it can be a program name with args.
5347 set dummy gzip; ac_word=$2
5348 echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350 if test "${ac_cv_path_GZIP+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   case $GZIP in
5354   [\\/]* | ?:[\\/]*)
5355   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5356   ;;
5357   *)
5358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363   for ac_exec_ext in '' $ac_executable_extensions; do
5364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370 done
5371
5372   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5373   ;;
5374 esac
5375 fi
5376 GZIP=$ac_cv_path_GZIP
5377
5378 if test -n "$GZIP"; then
5379   echo "$as_me:$LINENO: result: $GZIP" >&5
5380 echo "${ECHO_T}$GZIP" >&6
5381 else
5382   echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5384 fi
5385
5386 # Extract the first word of "pod2html", so it can be a program name with args.
5387 set dummy pod2html; ac_word=$2
5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5390 if test "${ac_cv_path_POD2HTML+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   case $POD2HTML in
5394   [\\/]* | ?:[\\/]*)
5395   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5396   ;;
5397   *)
5398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403   for ac_exec_ext in '' $ac_executable_extensions; do
5404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410 done
5411
5412   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5413   ;;
5414 esac
5415 fi
5416 POD2HTML=$ac_cv_path_POD2HTML
5417
5418 if test -n "$POD2HTML"; then
5419   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5420 echo "${ECHO_T}$POD2HTML" >&6
5421 else
5422   echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6
5424 fi
5425
5426 # Extract the first word of "pod2man", so it can be a program name with args.
5427 set dummy pod2man; ac_word=$2
5428 echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430 if test "${ac_cv_path_POD2MAN+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   case $POD2MAN in
5434   [\\/]* | ?:[\\/]*)
5435   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5436   ;;
5437   *)
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443   for ac_exec_ext in '' $ac_executable_extensions; do
5444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450 done
5451
5452   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5453   ;;
5454 esac
5455 fi
5456 POD2MAN=$ac_cv_path_POD2MAN
5457
5458 if test -n "$POD2MAN"; then
5459   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5460 echo "${ECHO_T}$POD2MAN" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 # Extract the first word of "runtest", so it can be a program name with args.
5467 set dummy runtest; ac_word=$2
5468 echo "$as_me:$LINENO: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_path_RUNTEST+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   case $RUNTEST in
5474   [\\/]* | ?:[\\/]*)
5475   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5476   ;;
5477   *)
5478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483   for ac_exec_ext in '' $ac_executable_extensions; do
5484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490 done
5491
5492   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5493   ;;
5494 esac
5495 fi
5496 RUNTEST=$ac_cv_path_RUNTEST
5497
5498 if test -n "$RUNTEST"; then
5499   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5500 echo "${ECHO_T}$RUNTEST" >&6
5501 else
5502   echo "$as_me:$LINENO: result: no" >&5
5503 echo "${ECHO_T}no" >&6
5504 fi
5505
5506
5507 no_itcl=true
5508 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5509 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5510
5511 # Check whether --with-tclinclude or --without-tclinclude was given.
5512 if test "${with_tclinclude+set}" = set; then
5513   withval="$with_tclinclude"
5514   with_tclinclude=${withval}
5515 else
5516   with_tclinclude=''
5517 fi;
5518 if test "${ac_cv_path_tclsh+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521
5522 if test x"${with_tclinclude}" != x ; then
5523   if test -f ${with_tclinclude}/tclsh ; then
5524     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5525   elif test -f ${with_tclinclude}/src/tclsh ; then
5526     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5527   else
5528     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5529 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5530    { (exit 1); exit 1; }; }
5531   fi
5532 fi
5533
5534 if test x"${ac_cv_path_tclsh}" = x ; then
5535   echo "$as_me:$LINENO: result: none" >&5
5536 echo "${ECHO_T}none" >&6
5537   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
5538 do
5539   # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543 if test "${ac_cv_path_TCLSH+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   case $TCLSH in
5547   [\\/]* | ?:[\\/]*)
5548   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5549   ;;
5550   *)
5551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556   for ac_exec_ext in '' $ac_executable_extensions; do
5557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563 done
5564
5565   ;;
5566 esac
5567 fi
5568 TCLSH=$ac_cv_path_TCLSH
5569
5570 if test -n "$TCLSH"; then
5571   echo "$as_me:$LINENO: result: $TCLSH" >&5
5572 echo "${ECHO_T}$TCLSH" >&6
5573 else
5574   echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5576 fi
5577
5578   test -n "$TCLSH" && break
5579 done
5580
5581   if test x"${TCLSH}" = x ; then
5582     ac_cv_path_tclsh='';
5583   else
5584     ac_cv_path_tclsh="${TCLSH}";
5585   fi
5586 else
5587   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5588 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5589   TCLSH="${ac_cv_path_tclsh}"
5590
5591 fi
5592
5593 fi
5594
5595 # Extract the first word of "zip", so it can be a program name with args.
5596 set dummy zip; ac_word=$2
5597 echo "$as_me:$LINENO: checking for $ac_word" >&5
5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599 if test "${ac_cv_path_ZIP+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   case $ZIP in
5603   [\\/]* | ?:[\\/]*)
5604   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5605   ;;
5606   *)
5607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610   IFS=$as_save_IFS
5611   test -z "$as_dir" && as_dir=.
5612   for ac_exec_ext in '' $ac_executable_extensions; do
5613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616     break 2
5617   fi
5618 done
5619 done
5620
5621   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5622   ;;
5623 esac
5624 fi
5625 ZIP=$ac_cv_path_ZIP
5626
5627 if test -n "$ZIP"; then
5628   echo "$as_me:$LINENO: result: $ZIP" >&5
5629 echo "${ECHO_T}$ZIP" >&6
5630 else
5631   echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5637 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5638 if test "${llvm_cv_link_use_r+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641    ac_ext=c
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647   oldcflags="$CFLAGS"
5648   CFLAGS="$CFLAGS -Wl,-R."
5649   cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h.  */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h.  */
5655
5656 int
5657 main ()
5658 {
5659 int main() { return 0; }
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666   (eval $ac_link) 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
5670   cat conftest.err >&5
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } &&
5673          { ac_try='test -z "$ac_c_werror_flag"
5674                          || test ! -s conftest.err'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; } &&
5680          { ac_try='test -s conftest$ac_exeext'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; }; then
5686   llvm_cv_link_use_r=yes
5687 else
5688   echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 llvm_cv_link_use_r=no
5692 fi
5693 rm -f conftest.err conftest.$ac_objext \
5694       conftest$ac_exeext conftest.$ac_ext
5695   CFLAGS="$oldcflags"
5696   ac_ext=c
5697 ac_cpp='$CPP $CPPFLAGS'
5698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
5702
5703 fi
5704 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5705 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5706 if test "$llvm_cv_link_use_r" = yes ; then
5707
5708 cat >>confdefs.h <<\_ACEOF
5709 #define HAVE_LINK_R 1
5710 _ACEOF
5711
5712   fi
5713
5714
5715
5716
5717 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5718 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5719 if test "${ac_cv_c_const+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728
5729 int
5730 main ()
5731 {
5732 /* FIXME: Include the comments suggested by Paul. */
5733 #ifndef __cplusplus
5734   /* Ultrix mips cc rejects this.  */
5735   typedef int charset[2];
5736   const charset x;
5737   /* SunOS 4.1.1 cc rejects this.  */
5738   char const *const *ccp;
5739   char **p;
5740   /* NEC SVR4.0.2 mips cc rejects this.  */
5741   struct point {int x, y;};
5742   static struct point const zero = {0,0};
5743   /* AIX XL C 1.02.0.0 rejects this.
5744      It does not let you subtract one const X* pointer from another in
5745      an arm of an if-expression whose if-part is not a constant
5746      expression */
5747   const char *g = "string";
5748   ccp = &g + (g ? g-g : 0);
5749   /* HPUX 7.0 cc rejects these. */
5750   ++ccp;
5751   p = (char**) ccp;
5752   ccp = (char const *const *) p;
5753   { /* SCO 3.2v4 cc rejects this.  */
5754     char *t;
5755     char const *s = 0 ? (char *) 0 : (char const *) 0;
5756
5757     *t++ = 0;
5758   }
5759   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5760     int x[] = {25, 17};
5761     const int *foo = &x[0];
5762     ++foo;
5763   }
5764   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5765     typedef const int *iptr;
5766     iptr p = 0;
5767     ++p;
5768   }
5769   { /* AIX XL C 1.02.0.0 rejects this saying
5770        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5771     struct s { int j; const int *ap[3]; };
5772     struct s *b; b->j = 5;
5773   }
5774   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5775     const int foo = 10;
5776   }
5777 #endif
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785   (eval $ac_compile) 2>conftest.er1
5786   ac_status=$?
5787   grep -v '^ *+' conftest.er1 >conftest.err
5788   rm -f conftest.er1
5789   cat conftest.err >&5
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } &&
5792          { ac_try='test -z "$ac_c_werror_flag"
5793                          || test ! -s conftest.err'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; } &&
5799          { ac_try='test -s conftest.$ac_objext'
5800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801   (eval $ac_try) 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }; }; then
5805   ac_cv_c_const=yes
5806 else
5807   echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_cv_c_const=no
5811 fi
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5815 echo "${ECHO_T}$ac_cv_c_const" >&6
5816 if test $ac_cv_c_const = no; then
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define const
5820 _ACEOF
5821
5822 fi
5823
5824
5825 echo "$as_me:$LINENO: checking for egrep" >&5
5826 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5827 if test "${ac_cv_prog_egrep+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5831     then ac_cv_prog_egrep='grep -E'
5832     else ac_cv_prog_egrep='egrep'
5833     fi
5834 fi
5835 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5836 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5837  EGREP=$ac_cv_prog_egrep
5838
5839
5840 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5842 if test "${ac_cv_header_stdc+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 #include <stdlib.h>
5852 #include <stdarg.h>
5853 #include <string.h>
5854 #include <float.h>
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866   (eval $ac_compile) 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag"
5874                          || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest.$ac_objext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   ac_cv_header_stdc=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_cv_header_stdc=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894
5895 if test $ac_cv_header_stdc = yes; then
5896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5897   cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h.  */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h.  */
5903 #include <string.h>
5904
5905 _ACEOF
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907   $EGREP "memchr" >/dev/null 2>&1; then
5908   :
5909 else
5910   ac_cv_header_stdc=no
5911 fi
5912 rm -f conftest*
5913
5914 fi
5915
5916 if test $ac_cv_header_stdc = yes; then
5917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5918   cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 #include <stdlib.h>
5925
5926 _ACEOF
5927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5928   $EGREP "free" >/dev/null 2>&1; then
5929   :
5930 else
5931   ac_cv_header_stdc=no
5932 fi
5933 rm -f conftest*
5934
5935 fi
5936
5937 if test $ac_cv_header_stdc = yes; then
5938   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5939   if test "$cross_compiling" = yes; then
5940   :
5941 else
5942   cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948 #include <ctype.h>
5949 #if ((' ' & 0x0FF) == 0x020)
5950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952 #else
5953 # define ISLOWER(c) \
5954                    (('a' <= (c) && (c) <= 'i') \
5955                      || ('j' <= (c) && (c) <= 'r') \
5956                      || ('s' <= (c) && (c) <= 'z'))
5957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #endif
5959
5960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5961 int
5962 main ()
5963 {
5964   int i;
5965   for (i = 0; i < 256; i++)
5966     if (XOR (islower (i), ISLOWER (i))
5967         || toupper (i) != TOUPPER (i))
5968       exit(2);
5969   exit (0);
5970 }
5971 _ACEOF
5972 rm -f conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974   (eval $ac_link) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   :
5984 else
5985   echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ( exit $ac_status )
5990 ac_cv_header_stdc=no
5991 fi
5992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5993 fi
5994 fi
5995 fi
5996 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5997 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5998 if test $ac_cv_header_stdc = yes; then
5999
6000 cat >>confdefs.h <<\_ACEOF
6001 #define STDC_HEADERS 1
6002 _ACEOF
6003
6004 fi
6005
6006
6007
6008
6009
6010
6011 ac_header_dirent=no
6012 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6013   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6014 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6015 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019   cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #include <sys/types.h>
6026 #include <$ac_hdr>
6027
6028 int
6029 main ()
6030 {
6031 if ((DIR *) 0)
6032 return 0;
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039   (eval $ac_compile) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -z "$ac_c_werror_flag"
6047                          || test ! -s conftest.err'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; } &&
6053          { ac_try='test -s conftest.$ac_objext'
6054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055   (eval $ac_try) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; }; then
6059   eval "$as_ac_Header=yes"
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 eval "$as_ac_Header=no"
6065 fi
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6067 fi
6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071   cat >>confdefs.h <<_ACEOF
6072 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6073 _ACEOF
6074
6075 ac_header_dirent=$ac_hdr; break
6076 fi
6077
6078 done
6079 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6080 if test $ac_header_dirent = dirent.h; then
6081   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6083 if test "${ac_cv_search_opendir+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   ac_func_search_save_LIBS=$LIBS
6087 ac_cv_search_opendir=no
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094
6095 /* Override any gcc2 internal prototype to avoid an error.  */
6096 #ifdef __cplusplus
6097 extern "C"
6098 #endif
6099 /* We use char because int might match the return type of a gcc2
6100    builtin and then its argument prototype would still apply.  */
6101 char opendir ();
6102 int
6103 main ()
6104 {
6105 opendir ();
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112   (eval $ac_link) 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag"
6120                          || test ! -s conftest.err'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; } &&
6126          { ac_try='test -s conftest$ac_exeext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_cv_search_opendir="none required"
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 fi
6138 rm -f conftest.err conftest.$ac_objext \
6139       conftest$ac_exeext conftest.$ac_ext
6140 if test "$ac_cv_search_opendir" = no; then
6141   for ac_lib in dir; do
6142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6143     cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149
6150 /* Override any gcc2 internal prototype to avoid an error.  */
6151 #ifdef __cplusplus
6152 extern "C"
6153 #endif
6154 /* We use char because int might match the return type of a gcc2
6155    builtin and then its argument prototype would still apply.  */
6156 char opendir ();
6157 int
6158 main ()
6159 {
6160 opendir ();
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167   (eval $ac_link) 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -z "$ac_c_werror_flag"
6175                          || test ! -s conftest.err'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; } &&
6181          { ac_try='test -s conftest$ac_exeext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_search_opendir="-l$ac_lib"
6188 break
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 fi
6194 rm -f conftest.err conftest.$ac_objext \
6195       conftest$ac_exeext conftest.$ac_ext
6196   done
6197 fi
6198 LIBS=$ac_func_search_save_LIBS
6199 fi
6200 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6201 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6202 if test "$ac_cv_search_opendir" != no; then
6203   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6204
6205 fi
6206
6207 else
6208   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6209 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6210 if test "${ac_cv_search_opendir+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   ac_func_search_save_LIBS=$LIBS
6214 ac_cv_search_opendir=no
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h.  */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h.  */
6221
6222 /* Override any gcc2 internal prototype to avoid an error.  */
6223 #ifdef __cplusplus
6224 extern "C"
6225 #endif
6226 /* We use char because int might match the return type of a gcc2
6227    builtin and then its argument prototype would still apply.  */
6228 char opendir ();
6229 int
6230 main ()
6231 {
6232 opendir ();
6233   ;
6234   return 0;
6235 }
6236 _ACEOF
6237 rm -f conftest.$ac_objext conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239   (eval $ac_link) 2>conftest.er1
6240   ac_status=$?
6241   grep -v '^ *+' conftest.er1 >conftest.err
6242   rm -f conftest.er1
6243   cat conftest.err >&5
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -z "$ac_c_werror_flag"
6247                          || test ! -s conftest.err'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; } &&
6253          { ac_try='test -s conftest$ac_exeext'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   ac_cv_search_opendir="none required"
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 fi
6265 rm -f conftest.err conftest.$ac_objext \
6266       conftest$ac_exeext conftest.$ac_ext
6267 if test "$ac_cv_search_opendir" = no; then
6268   for ac_lib in x; do
6269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6270     cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276
6277 /* Override any gcc2 internal prototype to avoid an error.  */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282    builtin and then its argument prototype would still apply.  */
6283 char opendir ();
6284 int
6285 main ()
6286 {
6287 opendir ();
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294   (eval $ac_link) 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -z "$ac_c_werror_flag"
6302                          || test ! -s conftest.err'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; } &&
6308          { ac_try='test -s conftest$ac_exeext'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; }; then
6314   ac_cv_search_opendir="-l$ac_lib"
6315 break
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 fi
6321 rm -f conftest.err conftest.$ac_objext \
6322       conftest$ac_exeext conftest.$ac_ext
6323   done
6324 fi
6325 LIBS=$ac_func_search_save_LIBS
6326 fi
6327 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6328 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6329 if test "$ac_cv_search_opendir" != no; then
6330   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6331
6332 fi
6333
6334 fi
6335
6336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6347                   inttypes.h stdint.h unistd.h
6348 do
6349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 echo "$as_me:$LINENO: checking for $ac_header" >&5
6351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361 $ac_includes_default
6362
6363 #include <$ac_header>
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367   (eval $ac_compile) 2>conftest.er1
6368   ac_status=$?
6369   grep -v '^ *+' conftest.er1 >conftest.err
6370   rm -f conftest.er1
6371   cat conftest.err >&5
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } &&
6374          { ac_try='test -z "$ac_c_werror_flag"
6375                          || test ! -s conftest.err'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; } &&
6381          { ac_try='test -s conftest.$ac_objext'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; }; then
6387   eval "$as_ac_Header=yes"
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 eval "$as_ac_Header=no"
6393 fi
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399   cat >>confdefs.h <<_ACEOF
6400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 _ACEOF
6402
6403 fi
6404
6405 done
6406
6407
6408
6409 for ac_header in dlfcn.h
6410 do
6411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 fi
6418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6420 else
6421   # Is the header compilable?
6422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 $ac_includes_default
6431 #include <$ac_header>
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435   (eval $ac_compile) 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } &&
6442          { ac_try='test -z "$ac_c_werror_flag"
6443                          || test ! -s conftest.err'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; } &&
6449          { ac_try='test -s conftest.$ac_objext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   ac_header_compiler=yes
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_header_compiler=no
6461 fi
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6464 echo "${ECHO_T}$ac_header_compiler" >&6
6465
6466 # Is the header present?
6467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h.  */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h.  */
6475 #include <$ac_header>
6476 _ACEOF
6477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6479   ac_status=$?
6480   grep -v '^ *+' conftest.er1 >conftest.err
6481   rm -f conftest.er1
6482   cat conftest.err >&5
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); } >/dev/null; then
6485   if test -s conftest.err; then
6486     ac_cpp_err=$ac_c_preproc_warn_flag
6487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6488   else
6489     ac_cpp_err=
6490   fi
6491 else
6492   ac_cpp_err=yes
6493 fi
6494 if test -z "$ac_cpp_err"; then
6495   ac_header_preproc=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500   ac_header_preproc=no
6501 fi
6502 rm -f conftest.err conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6504 echo "${ECHO_T}$ac_header_preproc" >&6
6505
6506 # So?  What about this header?
6507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6508   yes:no: )
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6513     ac_header_preproc=yes
6514     ;;
6515   no:yes:* )
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6528     (
6529       cat <<\_ASBOX
6530 ## ----------------------------------- ##
6531 ## Report this to llvmbugs@cs.uiuc.edu ##
6532 ## ----------------------------------- ##
6533 _ASBOX
6534     ) |
6535       sed "s/^/$as_me: WARNING:     /" >&2
6536     ;;
6537 esac
6538 echo "$as_me:$LINENO: checking for $ac_header" >&5
6539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   eval "$as_ac_Header=\$ac_header_preproc"
6544 fi
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547
6548 fi
6549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6550   cat >>confdefs.h <<_ACEOF
6551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552 _ACEOF
6553
6554 fi
6555
6556 done
6557
6558 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6559 if test "${enable_ltdl_install+set}" = set; then
6560   enableval="$enable_ltdl_install"
6561
6562 fi;
6563
6564
6565
6566 if test x"${enable_ltdl_install-no}" != xno; then
6567   INSTALL_LTDL_TRUE=
6568   INSTALL_LTDL_FALSE='#'
6569 else
6570   INSTALL_LTDL_TRUE='#'
6571   INSTALL_LTDL_FALSE=
6572 fi
6573
6574
6575
6576 if test x"${enable_ltdl_convenience-no}" != xno; then
6577   CONVENIENCE_LTDL_TRUE=
6578   CONVENIENCE_LTDL_FALSE='#'
6579 else
6580   CONVENIENCE_LTDL_TRUE='#'
6581   CONVENIENCE_LTDL_FALSE=
6582 fi
6583
6584
6585 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6587 library_names_spec=
6588 libname_spec='lib$name'
6589 soname_spec=
6590 shrext_cmds=".so"
6591 postinstall_cmds=
6592 postuninstall_cmds=
6593 finish_cmds=
6594 finish_eval=
6595 shlibpath_var=
6596 shlibpath_overrides_runpath=unknown
6597 version_type=none
6598 dynamic_linker="$host_os ld.so"
6599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6600 if test "$GCC" = yes; then
6601   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6602   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6603     # if the path contains ";" then we assume it to be the separator
6604     # otherwise default to the standard path separator (i.e. ":") - it is
6605     # assumed that no part of a normal pathname contains ";" but that should
6606     # okay in the real world where ";" in dirpaths is itself problematic.
6607     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6608   else
6609     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6610   fi
6611 else
6612   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6613 fi
6614 need_lib_prefix=unknown
6615 hardcode_into_libs=no
6616
6617 # when you set need_version to no, make sure it does not cause -set_version
6618 # flags to be left without arguments
6619 need_version=unknown
6620
6621 case $host_os in
6622 aix3*)
6623   version_type=linux
6624   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6625   shlibpath_var=LIBPATH
6626
6627   # AIX 3 has no versioning support, so we append a major version to the name.
6628   soname_spec='${libname}${release}${shared_ext}$major'
6629   ;;
6630
6631 aix4* | aix5*)
6632   version_type=linux
6633   need_lib_prefix=no
6634   need_version=no
6635   hardcode_into_libs=yes
6636   if test "$host_cpu" = ia64; then
6637     # AIX 5 supports IA64
6638     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6639     shlibpath_var=LD_LIBRARY_PATH
6640   else
6641     # With GCC up to 2.95.x, collect2 would create an import file
6642     # for dependence libraries.  The import file would start with
6643     # the line `#! .'.  This would cause the generated library to
6644     # depend on `.', always an invalid library.  This was fixed in
6645     # development snapshots of GCC prior to 3.0.
6646     case $host_os in
6647       aix4 | aix4.[01] | aix4.[01].*)
6648       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6649            echo ' yes '
6650            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6651         :
6652       else
6653         can_build_shared=no
6654       fi
6655       ;;
6656     esac
6657     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6658     # soname into executable. Probably we can add versioning support to
6659     # collect2, so additional links can be useful in future.
6660     if test "$aix_use_runtimelinking" = yes; then
6661       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6662       # instead of lib<name>.a to let people know that these are not
6663       # typical AIX shared libraries.
6664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6665     else
6666       # We preserve .a as extension for shared libraries through AIX4.2
6667       # and later when we are not doing run time linking.
6668       library_names_spec='${libname}${release}.a $libname.a'
6669       soname_spec='${libname}${release}${shared_ext}$major'
6670     fi
6671     shlibpath_var=LIBPATH
6672   fi
6673   ;;
6674
6675 amigaos*)
6676   library_names_spec='$libname.ixlibrary $libname.a'
6677   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6678   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'
6679   ;;
6680
6681 beos*)
6682   library_names_spec='${libname}${shared_ext}'
6683   dynamic_linker="$host_os ld.so"
6684   shlibpath_var=LIBRARY_PATH
6685   ;;
6686
6687 bsdi[45]*)
6688   version_type=linux
6689   need_version=no
6690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6691   soname_spec='${libname}${release}${shared_ext}$major'
6692   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6693   shlibpath_var=LD_LIBRARY_PATH
6694   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6695   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6696   # the default ld.so.conf also contains /usr/contrib/lib and
6697   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6698   # libtool to hard-code these into programs
6699   ;;
6700
6701 cygwin* | mingw* | pw32*)
6702   version_type=windows
6703   shrext_cmds=".dll"
6704   need_version=no
6705   need_lib_prefix=no
6706
6707   case $GCC,$host_os in
6708   yes,cygwin* | yes,mingw* | yes,pw32*)
6709     library_names_spec='$libname.dll.a'
6710     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6711     postinstall_cmds='base_file=`basename \${file}`~
6712       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6713       dldir=$destdir/`dirname \$dlpath`~
6714       test -d \$dldir || mkdir -p \$dldir~
6715       $install_prog $dir/$dlname \$dldir/$dlname'
6716     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6717       dlpath=$dir/\$dldll~
6718        $rm \$dlpath'
6719     shlibpath_overrides_runpath=yes
6720
6721     case $host_os in
6722     cygwin*)
6723       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6724       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6725       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6726       ;;
6727     mingw*)
6728       # MinGW DLLs use traditional 'lib' prefix
6729       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6730       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6731       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6732         # It is most probably a Windows format PATH printed by
6733         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6734         # path with ; separators, and with drive letters. We can handle the
6735         # drive letters (cygwin fileutils understands them), so leave them,
6736         # especially as we might pass files found there to a mingw objdump,
6737         # which wouldn't understand a cygwinified path. Ahh.
6738         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6739       else
6740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6741       fi
6742       ;;
6743     pw32*)
6744       # pw32 DLLs use 'pw' prefix rather than 'lib'
6745       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6746       ;;
6747     esac
6748     ;;
6749
6750   *)
6751     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6752     ;;
6753   esac
6754   dynamic_linker='Win32 ld.exe'
6755   # FIXME: first we should search . and the directory the executable is in
6756   shlibpath_var=PATH
6757   ;;
6758
6759 darwin* | rhapsody*)
6760   dynamic_linker="$host_os dyld"
6761   version_type=darwin
6762   need_lib_prefix=no
6763   need_version=no
6764   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6765   soname_spec='${libname}${release}${major}$shared_ext'
6766   shlibpath_overrides_runpath=yes
6767   shlibpath_var=DYLD_LIBRARY_PATH
6768   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6769   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6770   if test "$GCC" = yes; then
6771     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"`
6772   else
6773     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6774   fi
6775   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6776   ;;
6777
6778 dgux*)
6779   version_type=linux
6780   need_lib_prefix=no
6781   need_version=no
6782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6783   soname_spec='${libname}${release}${shared_ext}$major'
6784   shlibpath_var=LD_LIBRARY_PATH
6785   ;;
6786
6787 freebsd1*)
6788   dynamic_linker=no
6789   ;;
6790
6791 kfreebsd*-gnu)
6792   version_type=linux
6793   need_lib_prefix=no
6794   need_version=no
6795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6796   soname_spec='${libname}${release}${shared_ext}$major'
6797   shlibpath_var=LD_LIBRARY_PATH
6798   shlibpath_overrides_runpath=no
6799   hardcode_into_libs=yes
6800   dynamic_linker='GNU ld.so'
6801   ;;
6802
6803 freebsd*)
6804   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6805   version_type=freebsd-$objformat
6806   case $version_type in
6807     freebsd-elf*)
6808       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6809       need_version=no
6810       need_lib_prefix=no
6811       ;;
6812     freebsd-*)
6813       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6814       need_version=yes
6815       ;;
6816   esac
6817   shlibpath_var=LD_LIBRARY_PATH
6818   case $host_os in
6819   freebsd2*)
6820     shlibpath_overrides_runpath=yes
6821     ;;
6822   freebsd3.01* | freebsdelf3.01*)
6823     shlibpath_overrides_runpath=yes
6824     hardcode_into_libs=yes
6825     ;;
6826   *) # from 3.2 on
6827     shlibpath_overrides_runpath=no
6828     hardcode_into_libs=yes
6829     ;;
6830   esac
6831   ;;
6832
6833 gnu*)
6834   version_type=linux
6835   need_lib_prefix=no
6836   need_version=no
6837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6838   soname_spec='${libname}${release}${shared_ext}$major'
6839   shlibpath_var=LD_LIBRARY_PATH
6840   hardcode_into_libs=yes
6841   ;;
6842
6843 hpux9* | hpux10* | hpux11*)
6844   # Give a soname corresponding to the major version so that dld.sl refuses to
6845   # link against other versions.
6846   version_type=sunos
6847   need_lib_prefix=no
6848   need_version=no
6849   case "$host_cpu" in
6850   ia64*)
6851     shrext_cmds='.so'
6852     hardcode_into_libs=yes
6853     dynamic_linker="$host_os dld.so"
6854     shlibpath_var=LD_LIBRARY_PATH
6855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6857     soname_spec='${libname}${release}${shared_ext}$major'
6858     if test "X$HPUX_IA64_MODE" = X32; then
6859       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6860     else
6861       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6862     fi
6863     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6864     ;;
6865    hppa*64*)
6866      shrext_cmds='.sl'
6867      hardcode_into_libs=yes
6868      dynamic_linker="$host_os dld.sl"
6869      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6870      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6872      soname_spec='${libname}${release}${shared_ext}$major'
6873      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6874      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6875      ;;
6876    *)
6877     shrext_cmds='.sl'
6878     dynamic_linker="$host_os dld.sl"
6879     shlibpath_var=SHLIB_PATH
6880     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6882     soname_spec='${libname}${release}${shared_ext}$major'
6883     ;;
6884   esac
6885   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6886   postinstall_cmds='chmod 555 $lib'
6887   ;;
6888
6889 irix5* | irix6* | nonstopux*)
6890   case $host_os in
6891     nonstopux*) version_type=nonstopux ;;
6892     *)
6893         if test "$lt_cv_prog_gnu_ld" = yes; then
6894                 version_type=linux
6895         else
6896                 version_type=irix
6897         fi ;;
6898   esac
6899   need_lib_prefix=no
6900   need_version=no
6901   soname_spec='${libname}${release}${shared_ext}$major'
6902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6903   case $host_os in
6904   irix5* | nonstopux*)
6905     libsuff= shlibsuff=
6906     ;;
6907   *)
6908     case $LD in # libtool.m4 will add one of these switches to LD
6909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6910       libsuff= shlibsuff= libmagic=32-bit;;
6911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6912       libsuff=32 shlibsuff=N32 libmagic=N32;;
6913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6915     *) libsuff= shlibsuff= libmagic=never-match;;
6916     esac
6917     ;;
6918   esac
6919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6920   shlibpath_overrides_runpath=no
6921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6923   hardcode_into_libs=yes
6924   ;;
6925
6926 # No shared lib support for Linux oldld, aout, or coff.
6927 linux*oldld* | linux*aout* | linux*coff*)
6928   dynamic_linker=no
6929   ;;
6930
6931 # This must be Linux ELF.
6932 linux*)
6933   version_type=linux
6934   need_lib_prefix=no
6935   need_version=no
6936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6937   soname_spec='${libname}${release}${shared_ext}$major'
6938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6939   shlibpath_var=LD_LIBRARY_PATH
6940   shlibpath_overrides_runpath=no
6941   # This implies no fast_install, which is unacceptable.
6942   # Some rework will be needed to allow for fast_install
6943   # before this can be enabled.
6944   hardcode_into_libs=yes
6945
6946   # Append ld.so.conf contents to the search path
6947   if test -f /etc/ld.so.conf; then
6948     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6950   fi
6951
6952   # We used to test for /lib/ld.so.1 and disable shared libraries on
6953   # powerpc, because MkLinux only supported shared libraries with the
6954   # GNU dynamic linker.  Since this was broken with cross compilers,
6955   # most powerpc-linux boxes support dynamic linking these days and
6956   # people can always --disable-shared, the test was removed, and we
6957   # assume the GNU/Linux dynamic linker is in use.
6958   dynamic_linker='GNU/Linux ld.so'
6959   ;;
6960
6961 knetbsd*-gnu)
6962   version_type=linux
6963   need_lib_prefix=no
6964   need_version=no
6965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6966   soname_spec='${libname}${release}${shared_ext}$major'
6967   shlibpath_var=LD_LIBRARY_PATH
6968   shlibpath_overrides_runpath=no
6969   hardcode_into_libs=yes
6970   dynamic_linker='GNU ld.so'
6971   ;;
6972
6973 netbsd*)
6974   version_type=sunos
6975   need_lib_prefix=no
6976   need_version=no
6977   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6980     dynamic_linker='NetBSD (a.out) ld.so'
6981   else
6982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6983     soname_spec='${libname}${release}${shared_ext}$major'
6984     dynamic_linker='NetBSD ld.elf_so'
6985   fi
6986   shlibpath_var=LD_LIBRARY_PATH
6987   shlibpath_overrides_runpath=yes
6988   hardcode_into_libs=yes
6989   ;;
6990
6991 newsos6)
6992   version_type=linux
6993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6994   shlibpath_var=LD_LIBRARY_PATH
6995   shlibpath_overrides_runpath=yes
6996   ;;
6997
6998 nto-qnx*)
6999   version_type=linux
7000   need_lib_prefix=no
7001   need_version=no
7002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7003   soname_spec='${libname}${release}${shared_ext}$major'
7004   shlibpath_var=LD_LIBRARY_PATH
7005   shlibpath_overrides_runpath=yes
7006   ;;
7007
7008 openbsd*)
7009   version_type=sunos
7010   need_lib_prefix=no
7011   need_version=no
7012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7014   shlibpath_var=LD_LIBRARY_PATH
7015   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016     case $host_os in
7017       openbsd2.[89] | openbsd2.[89].*)
7018         shlibpath_overrides_runpath=no
7019         ;;
7020       *)
7021         shlibpath_overrides_runpath=yes
7022         ;;
7023       esac
7024   else
7025     shlibpath_overrides_runpath=yes
7026   fi
7027   ;;
7028
7029 os2*)
7030   libname_spec='$name'
7031   shrext_cmds=".dll"
7032   need_lib_prefix=no
7033   library_names_spec='$libname${shared_ext} $libname.a'
7034   dynamic_linker='OS/2 ld.exe'
7035   shlibpath_var=LIBPATH
7036   ;;
7037
7038 osf3* | osf4* | osf5*)
7039   version_type=osf
7040   need_lib_prefix=no
7041   need_version=no
7042   soname_spec='${libname}${release}${shared_ext}$major'
7043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7044   shlibpath_var=LD_LIBRARY_PATH
7045   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7046   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7047   ;;
7048
7049 sco3.2v5*)
7050   version_type=osf
7051   soname_spec='${libname}${release}${shared_ext}$major'
7052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7053   shlibpath_var=LD_LIBRARY_PATH
7054   ;;
7055
7056 solaris*)
7057   version_type=linux
7058   need_lib_prefix=no
7059   need_version=no
7060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7061   soname_spec='${libname}${release}${shared_ext}$major'
7062   shlibpath_var=LD_LIBRARY_PATH
7063   shlibpath_overrides_runpath=yes
7064   hardcode_into_libs=yes
7065   # ldd complains unless libraries are executable
7066   postinstall_cmds='chmod +x $lib'
7067   ;;
7068
7069 sunos4*)
7070   version_type=sunos
7071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7072   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7073   shlibpath_var=LD_LIBRARY_PATH
7074   shlibpath_overrides_runpath=yes
7075   if test "$with_gnu_ld" = yes; then
7076     need_lib_prefix=no
7077   fi
7078   need_version=yes
7079   ;;
7080
7081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7082   version_type=linux
7083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084   soname_spec='${libname}${release}${shared_ext}$major'
7085   shlibpath_var=LD_LIBRARY_PATH
7086   case $host_vendor in
7087     sni)
7088       shlibpath_overrides_runpath=no
7089       need_lib_prefix=no
7090       export_dynamic_flag_spec='${wl}-Blargedynsym'
7091       runpath_var=LD_RUN_PATH
7092       ;;
7093     siemens)
7094       need_lib_prefix=no
7095       ;;
7096     motorola)
7097       need_lib_prefix=no
7098       need_version=no
7099       shlibpath_overrides_runpath=no
7100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7101       ;;
7102   esac
7103   ;;
7104
7105 sysv4*MP*)
7106   if test -d /usr/nec ;then
7107     version_type=linux
7108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7109     soname_spec='$libname${shared_ext}.$major'
7110     shlibpath_var=LD_LIBRARY_PATH
7111   fi
7112   ;;
7113
7114 uts4*)
7115   version_type=linux
7116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7117   soname_spec='${libname}${release}${shared_ext}$major'
7118   shlibpath_var=LD_LIBRARY_PATH
7119   ;;
7120
7121 *)
7122   dynamic_linker=no
7123   ;;
7124 esac
7125 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7126 echo "${ECHO_T}$dynamic_linker" >&6
7127 test "$dynamic_linker" = no && can_build_shared=no
7128
7129
7130 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7131 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7132 if test "${libltdl_cv_shlibext+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135
7136 module=yes
7137 eval libltdl_cv_shlibext=$shrext_cmds
7138
7139 fi
7140 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7141 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7142 if test -n "$libltdl_cv_shlibext"; then
7143
7144 cat >>confdefs.h <<_ACEOF
7145 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7146 _ACEOF
7147
7148 fi
7149
7150
7151 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7152 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7153 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   libltdl_cv_shlibpath_var="$shlibpath_var"
7157 fi
7158 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7159 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7160 if test -n "$libltdl_cv_shlibpath_var"; then
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7164 _ACEOF
7165
7166 fi
7167
7168
7169 echo "$as_me:$LINENO: checking for the default library search path" >&5
7170 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7171 if test "${libltdl_cv_sys_search_path+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7175 fi
7176 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7177 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7178 if test -n "$libltdl_cv_sys_search_path"; then
7179   sys_search_path=
7180   for dir in $libltdl_cv_sys_search_path; do
7181     if test -z "$sys_search_path"; then
7182       sys_search_path="$dir"
7183     else
7184       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7185     fi
7186   done
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7190 _ACEOF
7191
7192 fi
7193
7194 echo "$as_me:$LINENO: checking for objdir" >&5
7195 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7196 if test "${libltdl_cv_objdir+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   libltdl_cv_objdir="$objdir"
7200   if test -n "$objdir"; then
7201     :
7202   else
7203     rm -f .libs 2>/dev/null
7204     mkdir .libs 2>/dev/null
7205     if test -d .libs; then
7206       libltdl_cv_objdir=.libs
7207     else
7208       # MS-DOS does not allow filenames that begin with a dot.
7209       libltdl_cv_objdir=_libs
7210     fi
7211   rmdir .libs 2>/dev/null
7212   fi
7213
7214 fi
7215 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7216 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7217
7218 cat >>confdefs.h <<_ACEOF
7219 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7220 _ACEOF
7221
7222
7223 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7224 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7225 if test "${lt_cv_path_NM+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   if test -n "$NM"; then
7229   # Let the user override the test.
7230   lt_cv_path_NM="$NM"
7231 else
7232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7234     IFS="$lt_save_ifs"
7235     test -z "$ac_dir" && ac_dir=.
7236     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7237     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7238       # Check to see if the nm accepts a BSD-compat flag.
7239       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7240       #   nm: unknown option "B" ignored
7241       # Tru64's nm complains that /dev/null is an invalid object file
7242       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7243       */dev/null* | *'Invalid file or object type'*)
7244         lt_cv_path_NM="$tmp_nm -B"
7245         break
7246         ;;
7247       *)
7248         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7249         */dev/null*)
7250           lt_cv_path_NM="$tmp_nm -p"
7251           break
7252           ;;
7253         *)
7254           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7255           continue # so that we can try to find one that supports BSD flags
7256           ;;
7257         esac
7258       esac
7259     fi
7260   done
7261   IFS="$lt_save_ifs"
7262   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7263 fi
7264 fi
7265 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7266 echo "${ECHO_T}$lt_cv_path_NM" >&6
7267 NM="$lt_cv_path_NM"
7268
7269
7270
7271
7272
7273 # Check for command to grab the raw symbol name followed by C symbol from nm.
7274 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7275 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7276 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279
7280 # These are sane defaults that work on at least a few old systems.
7281 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7282
7283 # Character class describing NM global symbol codes.
7284 symcode='[BCDEGRST]'
7285
7286 # Regexp to match symbols that can be accessed directly from C.
7287 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7288
7289 # Transform the above into a raw symbol and a C symbol.
7290 symxfrm='\1 \2\3 \3'
7291
7292 # Transform an extracted symbol line into a proper C declaration
7293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7294
7295 # Transform an extracted symbol line into symbol name and symbol address
7296 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'"
7297
7298 # Define system-specific variables.
7299 case $host_os in
7300 aix*)
7301   symcode='[BCDT]'
7302   ;;
7303 cygwin* | mingw* | pw32*)
7304   symcode='[ABCDGISTW]'
7305   ;;
7306 hpux*) # Its linker distinguishes data from code symbols
7307   if test "$host_cpu" = ia64; then
7308     symcode='[ABCDEGRST]'
7309   fi
7310   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7311   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'"
7312   ;;
7313 linux*)
7314   if test "$host_cpu" = ia64; then
7315     symcode='[ABCDGIRSTW]'
7316     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7317     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'"
7318   fi
7319   ;;
7320 irix* | nonstopux*)
7321   symcode='[BCDEGRST]'
7322   ;;
7323 osf*)
7324   symcode='[BCDEGQRST]'
7325   ;;
7326 solaris* | sysv5*)
7327   symcode='[BDRT]'
7328   ;;
7329 sysv4)
7330   symcode='[DFNSTU]'
7331   ;;
7332 esac
7333
7334 # Handle CRLF in mingw tool chain
7335 opt_cr=
7336 case $build_os in
7337 mingw*)
7338   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7339   ;;
7340 esac
7341
7342 # If we're using GNU nm, then use its standard symbol codes.
7343 case `$NM -V 2>&1` in
7344 *GNU* | *'with BFD'*)
7345   symcode='[ABCDGIRSTW]' ;;
7346 esac
7347
7348 # Try without a prefix undercore, then with it.
7349 for ac_symprfx in "" "_"; do
7350
7351   # Write the raw and C identifiers.
7352   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7353
7354   # Check to see that the pipe works correctly.
7355   pipe_works=no
7356
7357   rm -f conftest*
7358   cat > conftest.$ac_ext <<EOF
7359 #ifdef __cplusplus
7360 extern "C" {
7361 #endif
7362 char nm_test_var;
7363 void nm_test_func(){}
7364 #ifdef __cplusplus
7365 }
7366 #endif
7367 int main(){nm_test_var='a';nm_test_func();return(0);}
7368 EOF
7369
7370   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>&5
7372   ac_status=$?
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); }; then
7375     # Now try to grab the symbols.
7376     nlist=conftest.nm
7377     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7378   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } && test -s "$nlist"; then
7382       # Try sorting and uniquifying the output.
7383       if sort "$nlist" | uniq > "$nlist"T; then
7384         mv -f "$nlist"T "$nlist"
7385       else
7386         rm -f "$nlist"T
7387       fi
7388
7389       # Make sure that we snagged all the symbols we need.
7390       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7391         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7392           cat <<EOF > conftest.$ac_ext
7393 #ifdef __cplusplus
7394 extern "C" {
7395 #endif
7396
7397 EOF
7398           # Now generate the symbol file.
7399           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7400
7401           cat <<EOF >> conftest.$ac_ext
7402 #if defined (__STDC__) && __STDC__
7403 # define lt_ptr_t void *
7404 #else
7405 # define lt_ptr_t char *
7406 # define const
7407 #endif
7408
7409 /* The mapping between symbol names and symbols. */
7410 const struct {
7411   const char *name;
7412   lt_ptr_t address;
7413 }
7414 lt_preloaded_symbols[] =
7415 {
7416 EOF
7417           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7418           cat <<\EOF >> conftest.$ac_ext
7419   {0, (lt_ptr_t) 0}
7420 };
7421
7422 #ifdef __cplusplus
7423 }
7424 #endif
7425 EOF
7426           # Now try linking the two files.
7427           mv conftest.$ac_objext conftstm.$ac_objext
7428           lt_save_LIBS="$LIBS"
7429           lt_save_CFLAGS="$CFLAGS"
7430           LIBS="conftstm.$ac_objext"
7431           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7432           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433   (eval $ac_link) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7437             pipe_works=yes
7438           fi
7439           LIBS="$lt_save_LIBS"
7440           CFLAGS="$lt_save_CFLAGS"
7441         else
7442           echo "cannot find nm_test_func in $nlist" >&5
7443         fi
7444       else
7445         echo "cannot find nm_test_var in $nlist" >&5
7446       fi
7447     else
7448       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7449     fi
7450   else
7451     echo "$progname: failed program was:" >&5
7452     cat conftest.$ac_ext >&5
7453   fi
7454   rm -f conftest* conftst*
7455
7456   # Do not use the global_symbol_pipe unless it works.
7457   if test "$pipe_works" = yes; then
7458     break
7459   else
7460     lt_cv_sys_global_symbol_pipe=
7461   fi
7462 done
7463
7464 fi
7465
7466 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7467   lt_cv_sys_global_symbol_to_cdecl=
7468 fi
7469 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7470   echo "$as_me:$LINENO: result: failed" >&5
7471 echo "${ECHO_T}failed" >&6
7472 else
7473   echo "$as_me:$LINENO: result: ok" >&5
7474 echo "${ECHO_T}ok" >&6
7475 fi
7476
7477
7478 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7479 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7480 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7484     libltdl_cv_preloaded_symbols=yes
7485   else
7486     libltdl_cv_preloaded_symbols=no
7487   fi
7488
7489 fi
7490 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7491 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7492 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_PRELOADED_SYMBOLS 1
7496 _ACEOF
7497
7498 fi
7499
7500 LIBADD_DL=
7501
7502 ac_ext=c
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509 echo "$as_me:$LINENO: checking for shl_load" >&5
7510 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7511 if test "${ac_cv_func_shl_load+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7522 #define shl_load innocuous_shl_load
7523
7524 /* System header to define __stub macros and hopefully few prototypes,
7525     which can conflict with char shl_load (); below.
7526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7527     <limits.h> exists even on freestanding compilers.  */
7528
7529 #ifdef __STDC__
7530 # include <limits.h>
7531 #else
7532 # include <assert.h>
7533 #endif
7534
7535 #undef shl_load
7536
7537 /* Override any gcc2 internal prototype to avoid an error.  */
7538 #ifdef __cplusplus
7539 extern "C"
7540 {
7541 #endif
7542 /* We use char because int might match the return type of a gcc2
7543    builtin and then its argument prototype would still apply.  */
7544 char shl_load ();
7545 /* The GNU C library defines this for functions which it implements
7546     to always fail with ENOSYS.  Some functions are actually named
7547     something starting with __ and the normal name is an alias.  */
7548 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7549 choke me
7550 #else
7551 char (*f) () = shl_load;
7552 #endif
7553 #ifdef __cplusplus
7554 }
7555 #endif
7556
7557 int
7558 main ()
7559 {
7560 return f != shl_load;
7561   ;
7562   return 0;
7563 }
7564 _ACEOF
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567   (eval $ac_link) 2>conftest.er1
7568   ac_status=$?
7569   grep -v '^ *+' conftest.er1 >conftest.err
7570   rm -f conftest.er1
7571   cat conftest.err >&5
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } &&
7574          { ac_try='test -z "$ac_c_werror_flag"
7575                          || test ! -s conftest.err'
7576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577   (eval $ac_try) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; } &&
7581          { ac_try='test -s conftest$ac_exeext'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; }; then
7587   ac_cv_func_shl_load=yes
7588 else
7589   echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592 ac_cv_func_shl_load=no
7593 fi
7594 rm -f conftest.err conftest.$ac_objext \
7595       conftest$ac_exeext conftest.$ac_ext
7596 fi
7597 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7599 if test $ac_cv_func_shl_load = yes; then
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_SHL_LOAD 1
7603 _ACEOF
7604
7605 else
7606   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   ac_check_lib_save_LIBS=$LIBS
7612 LIBS="-ldld  $LIBS"
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 /* Override any gcc2 internal prototype to avoid an error.  */
7621 #ifdef __cplusplus
7622 extern "C"
7623 #endif
7624 /* We use char because int might match the return type of a gcc2
7625    builtin and then its argument prototype would still apply.  */
7626 char shl_load ();
7627 int
7628 main ()
7629 {
7630 shl_load ();
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest.$ac_objext conftest$ac_exeext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7637   (eval $ac_link) 2>conftest.er1
7638   ac_status=$?
7639   grep -v '^ *+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -z "$ac_c_werror_flag"
7645                          || test ! -s conftest.err'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; } &&
7651          { ac_try='test -s conftest$ac_exeext'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; }; then
7657   ac_cv_lib_dld_shl_load=yes
7658 else
7659   echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662 ac_cv_lib_dld_shl_load=no
7663 fi
7664 rm -f conftest.err conftest.$ac_objext \
7665       conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_check_lib_save_LIBS
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7670 if test $ac_cv_lib_dld_shl_load = yes; then
7671
7672 cat >>confdefs.h <<\_ACEOF
7673 #define HAVE_SHL_LOAD 1
7674 _ACEOF
7675
7676         LIBADD_DL="$LIBADD_DL -ldld"
7677 else
7678   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   ac_check_lib_save_LIBS=$LIBS
7684 LIBS="-ldl  $LIBS"
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691
7692 /* Override any gcc2 internal prototype to avoid an error.  */
7693 #ifdef __cplusplus
7694 extern "C"
7695 #endif
7696 /* We use char because int might match the return type of a gcc2
7697    builtin and then its argument prototype would still apply.  */
7698 char dlopen ();
7699 int
7700 main ()
7701 {
7702 dlopen ();
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest$ac_exeext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_cv_lib_dl_dlopen=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_lib_dl_dlopen=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext \
7737       conftest$ac_exeext conftest.$ac_ext
7738 LIBS=$ac_check_lib_save_LIBS
7739 fi
7740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7742 if test $ac_cv_lib_dl_dlopen = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_LIBDL 1
7746 _ACEOF
7747
7748                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7749 else
7750   cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 #if HAVE_DLFCN_H
7757 #  include <dlfcn.h>
7758 #endif
7759
7760 int
7761 main ()
7762 {
7763 dlopen(0, 0);
7764   ;
7765   return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770   (eval $ac_link) 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -z "$ac_c_werror_flag"
7778                          || test ! -s conftest.err'
7779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780   (eval $ac_try) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); }; } &&
7784          { ac_try='test -s conftest$ac_exeext'
7785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786   (eval $ac_try) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_LIBDL 1
7793 _ACEOF
7794  libltdl_cv_func_dlopen="yes"
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7800 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   ac_check_lib_save_LIBS=$LIBS
7805 LIBS="-lsvld  $LIBS"
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812
7813 /* Override any gcc2 internal prototype to avoid an error.  */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818    builtin and then its argument prototype would still apply.  */
7819 char dlopen ();
7820 int
7821 main ()
7822 {
7823 dlopen ();
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830   (eval $ac_link) 2>conftest.er1
7831   ac_status=$?
7832   grep -v '^ *+' conftest.er1 >conftest.err
7833   rm -f conftest.er1
7834   cat conftest.err >&5
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } &&
7837          { ac_try='test -z "$ac_c_werror_flag"
7838                          || test ! -s conftest.err'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; } &&
7844          { ac_try='test -s conftest$ac_exeext'
7845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; }; then
7850   ac_cv_lib_svld_dlopen=yes
7851 else
7852   echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_cv_lib_svld_dlopen=no
7856 fi
7857 rm -f conftest.err conftest.$ac_objext \
7858       conftest$ac_exeext conftest.$ac_ext
7859 LIBS=$ac_check_lib_save_LIBS
7860 fi
7861 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7862 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7863 if test $ac_cv_lib_svld_dlopen = yes; then
7864
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_LIBDL 1
7867 _ACEOF
7868
7869                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7870 else
7871   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   ac_check_lib_save_LIBS=$LIBS
7877 LIBS="-ldld  $LIBS"
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884
7885 /* Override any gcc2 internal prototype to avoid an error.  */
7886 #ifdef __cplusplus
7887 extern "C"
7888 #endif
7889 /* We use char because int might match the return type of a gcc2
7890    builtin and then its argument prototype would still apply.  */
7891 char dld_link ();
7892 int
7893 main ()
7894 {
7895 dld_link ();
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag"
7910                          || test ! -s conftest.err'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_lib_dld_dld_link=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_cv_lib_dld_dld_link=no
7928 fi
7929 rm -f conftest.err conftest.$ac_objext \
7930       conftest$ac_exeext conftest.$ac_ext
7931 LIBS=$ac_check_lib_save_LIBS
7932 fi
7933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7935 if test $ac_cv_lib_dld_dld_link = yes; then
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define HAVE_DLD 1
7939 _ACEOF
7940
7941                 LIBADD_DL="$LIBADD_DL -ldld"
7942 else
7943   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7944 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7945 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7956 #define _dyld_func_lookup innocuous__dyld_func_lookup
7957
7958 /* System header to define __stub macros and hopefully few prototypes,
7959     which can conflict with char _dyld_func_lookup (); below.
7960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7961     <limits.h> exists even on freestanding compilers.  */
7962
7963 #ifdef __STDC__
7964 # include <limits.h>
7965 #else
7966 # include <assert.h>
7967 #endif
7968
7969 #undef _dyld_func_lookup
7970
7971 /* Override any gcc2 internal prototype to avoid an error.  */
7972 #ifdef __cplusplus
7973 extern "C"
7974 {
7975 #endif
7976 /* We use char because int might match the return type of a gcc2
7977    builtin and then its argument prototype would still apply.  */
7978 char _dyld_func_lookup ();
7979 /* The GNU C library defines this for functions which it implements
7980     to always fail with ENOSYS.  Some functions are actually named
7981     something starting with __ and the normal name is an alias.  */
7982 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7983 choke me
7984 #else
7985 char (*f) () = _dyld_func_lookup;
7986 #endif
7987 #ifdef __cplusplus
7988 }
7989 #endif
7990
7991 int
7992 main ()
7993 {
7994 return f != _dyld_func_lookup;
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001   (eval $ac_link) 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -z "$ac_c_werror_flag"
8009                          || test ! -s conftest.err'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest$ac_exeext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_cv_func__dyld_func_lookup=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ac_cv_func__dyld_func_lookup=no
8027 fi
8028 rm -f conftest.err conftest.$ac_objext \
8029       conftest$ac_exeext conftest.$ac_ext
8030 fi
8031 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8032 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8033 if test $ac_cv_func__dyld_func_lookup = yes; then
8034
8035 cat >>confdefs.h <<\_ACEOF
8036 #define HAVE_DYLD 1
8037 _ACEOF
8038
8039 fi
8040
8041
8042 fi
8043
8044
8045 fi
8046
8047
8048 fi
8049 rm -f conftest.err conftest.$ac_objext \
8050       conftest$ac_exeext conftest.$ac_ext
8051
8052 fi
8053
8054
8055 fi
8056
8057
8058 fi
8059
8060
8061 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8062 then
8063   lt_save_LIBS="$LIBS"
8064   LIBS="$LIBS $LIBADD_DL"
8065
8066 for ac_func in dlerror
8067 do
8068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069 echo "$as_me:$LINENO: checking for $ac_func" >&5
8070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8071 if eval "test \"\${$as_ac_var+set}\" = set"; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h.  */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h.  */
8080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8082 #define $ac_func innocuous_$ac_func
8083
8084 /* System header to define __stub macros and hopefully few prototypes,
8085     which can conflict with char $ac_func (); below.
8086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087     <limits.h> exists even on freestanding compilers.  */
8088
8089 #ifdef __STDC__
8090 # include <limits.h>
8091 #else
8092 # include <assert.h>
8093 #endif
8094
8095 #undef $ac_func
8096
8097 /* Override any gcc2 internal prototype to avoid an error.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 {
8101 #endif
8102 /* We use char because int might match the return type of a gcc2
8103    builtin and then its argument prototype would still apply.  */
8104 char $ac_func ();
8105 /* The GNU C library defines this for functions which it implements
8106     to always fail with ENOSYS.  Some functions are actually named
8107     something starting with __ and the normal name is an alias.  */
8108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109 choke me
8110 #else
8111 char (*f) () = $ac_func;
8112 #endif
8113 #ifdef __cplusplus
8114 }
8115 #endif
8116
8117 int
8118 main ()
8119 {
8120 return f != $ac_func;
8121   ;
8122   return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127   (eval $ac_link) 2>conftest.er1
8128   ac_status=$?
8129   grep -v '^ *+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -z "$ac_c_werror_flag"
8135                          || test ! -s conftest.err'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest$ac_exeext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   eval "$as_ac_var=yes"
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 eval "$as_ac_var=no"
8153 fi
8154 rm -f conftest.err conftest.$ac_objext \
8155       conftest$ac_exeext conftest.$ac_ext
8156 fi
8157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8159 if test `eval echo '${'$as_ac_var'}'` = yes; then
8160   cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165 done
8166
8167   LIBS="$lt_save_LIBS"
8168 fi
8169 ac_ext=c
8170 ac_cpp='$CPP $CPPFLAGS'
8171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8174
8175
8176
8177 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8178 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8179 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   ac_cv_sys_symbol_underscore=no
8183   cat > conftest.$ac_ext <<EOF
8184 void nm_test_func(){}
8185 int main(){nm_test_func;return 0;}
8186 EOF
8187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188   (eval $ac_compile) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; then
8192     # Now try to grab the symbols.
8193     ac_nlist=conftest.nm
8194     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8195   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && test -s "$ac_nlist"; then
8199       # See whether the symbols have a leading underscore.
8200       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8201         ac_cv_sys_symbol_underscore=yes
8202       else
8203         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8204           :
8205         else
8206           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8207         fi
8208       fi
8209     else
8210       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8211     fi
8212   else
8213     echo "configure: failed program was:" >&5
8214     cat conftest.c >&5
8215   fi
8216   rm -rf conftest*
8217
8218 fi
8219 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8220 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8221
8222
8223 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8224   if test x"$libltdl_cv_func_dlopen" = xyes ||
8225      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8226         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8227 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8228 if test "${libltdl_cv_need_uscore+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   libltdl_cv_need_uscore=unknown
8232           save_LIBS="$LIBS"
8233           LIBS="$LIBS $LIBADD_DL"
8234           if test "$cross_compiling" = yes; then :
8235   libltdl_cv_need_uscore=cross
8236 else
8237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8238   lt_status=$lt_dlunknown
8239   cat > conftest.$ac_ext <<EOF
8240 #line 8240 "configure"
8241 #include "confdefs.h"
8242
8243 #if HAVE_DLFCN_H
8244 #include <dlfcn.h>
8245 #endif
8246
8247 #include <stdio.h>
8248
8249 #ifdef RTLD_GLOBAL
8250 #  define LT_DLGLOBAL           RTLD_GLOBAL
8251 #else
8252 #  ifdef DL_GLOBAL
8253 #    define LT_DLGLOBAL         DL_GLOBAL
8254 #  else
8255 #    define LT_DLGLOBAL         0
8256 #  endif
8257 #endif
8258
8259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8260    find out it does not work in some platform. */
8261 #ifndef LT_DLLAZY_OR_NOW
8262 #  ifdef RTLD_LAZY
8263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8264 #  else
8265 #    ifdef DL_LAZY
8266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8267 #    else
8268 #      ifdef RTLD_NOW
8269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8270 #      else
8271 #        ifdef DL_NOW
8272 #          define LT_DLLAZY_OR_NOW      DL_NOW
8273 #        else
8274 #          define LT_DLLAZY_OR_NOW      0
8275 #        endif
8276 #      endif
8277 #    endif
8278 #  endif
8279 #endif
8280
8281 #ifdef __cplusplus
8282 extern "C" void exit (int);
8283 #endif
8284
8285 void fnord() { int i=42;}
8286 int main ()
8287 {
8288   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8289   int status = $lt_dlunknown;
8290
8291   if (self)
8292     {
8293       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8294       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8295       /* dlclose (self); */
8296     }
8297
8298     exit (status);
8299 }
8300 EOF
8301   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302   (eval $ac_link) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8306     (./conftest; exit; ) 2>/dev/null
8307     lt_status=$?
8308     case x$lt_status in
8309       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8310       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8311       x$lt_unknown|x*)  ;;
8312     esac
8313   else :
8314     # compilation failed
8315
8316   fi
8317 fi
8318 rm -fr conftest*
8319
8320           LIBS="$save_LIBS"
8321
8322 fi
8323 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8324 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8325   fi
8326 fi
8327
8328 if test x"$libltdl_cv_need_uscore" = xyes; then
8329
8330 cat >>confdefs.h <<\_ACEOF
8331 #define NEED_USCORE 1
8332 _ACEOF
8333
8334 fi
8335
8336
8337 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8338 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8339 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   # PORTME does your system automatically load deplibs for dlopen?
8343   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8344   # For now, we just catch OSes we know something about -- in the
8345   # future, we'll try test this programmatically.
8346   libltdl_cv_sys_dlopen_deplibs=unknown
8347   case "$host_os" in
8348   aix3*|aix4.1.*|aix4.2.*)
8349     # Unknown whether this is true for these versions of AIX, but
8350     # we want this `case' here to explicitly catch those versions.
8351     libltdl_cv_sys_dlopen_deplibs=unknown
8352     ;;
8353   aix[45]*)
8354     libltdl_cv_sys_dlopen_deplibs=yes
8355     ;;
8356   darwin*)
8357     # Assuming the user has installed a libdl from somewhere, this is true
8358     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8359     libltdl_cv_sys_dlopen_deplibs=yes
8360     ;;
8361   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8362     # GNU and its variants, using gnu ld.so (Glibc)
8363     libltdl_cv_sys_dlopen_deplibs=yes
8364     ;;
8365   hpux10*|hpux11*)
8366     libltdl_cv_sys_dlopen_deplibs=yes
8367     ;;
8368   irix[12345]*|irix6.[01]*)
8369     # Catch all versions of IRIX before 6.2, and indicate that we don't
8370     # know how it worked for any of those versions.
8371     libltdl_cv_sys_dlopen_deplibs=unknown
8372     ;;
8373   irix*)
8374     # The case above catches anything before 6.2, and it's known that
8375     # at 6.2 and later dlopen does load deplibs.
8376     libltdl_cv_sys_dlopen_deplibs=yes
8377     ;;
8378   netbsd*)
8379     libltdl_cv_sys_dlopen_deplibs=yes
8380     ;;
8381   openbsd*)
8382     libltdl_cv_sys_dlopen_deplibs=yes
8383     ;;
8384   osf[1234]*)
8385     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8386     # it did *not* use an RPATH in a shared library to find objects the
8387     # library depends on, so we explictly say `no'.
8388     libltdl_cv_sys_dlopen_deplibs=no
8389     ;;
8390   osf5.0|osf5.0a|osf5.1)
8391     # dlopen *does* load deplibs and with the right loader patch applied
8392     # it even uses RPATH in a shared library to search for shared objects
8393     # that the library depends on, but there's no easy way to know if that
8394     # patch is installed.  Since this is the case, all we can really
8395     # say is unknown -- it depends on the patch being installed.  If
8396     # it is, this changes to `yes'.  Without it, it would be `no'.
8397     libltdl_cv_sys_dlopen_deplibs=unknown
8398     ;;
8399   osf*)
8400     # the two cases above should catch all versions of osf <= 5.1.  Read
8401     # the comments above for what we know about them.
8402     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8403     # is used to find them so we can finally say `yes'.
8404     libltdl_cv_sys_dlopen_deplibs=yes
8405     ;;
8406   solaris*)
8407     libltdl_cv_sys_dlopen_deplibs=yes
8408     ;;
8409   esac
8410
8411 fi
8412 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8413 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8414 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define LTDL_DLOPEN_DEPLIBS 1
8418 _ACEOF
8419
8420 fi
8421
8422
8423 for ac_header in argz.h
8424 do
8425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427   echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 fi
8432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8434 else
8435   # Is the header compilable?
8436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 $ac_includes_default
8445 #include <$ac_header>
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449   (eval $ac_compile) 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } &&
8456          { ac_try='test -z "$ac_c_werror_flag"
8457                          || test ! -s conftest.err'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; } &&
8463          { ac_try='test -s conftest.$ac_objext'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; }; then
8469   ac_header_compiler=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ac_header_compiler=no
8475 fi
8476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8478 echo "${ECHO_T}$ac_header_compiler" >&6
8479
8480 # Is the header present?
8481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489 #include <$ac_header>
8490 _ACEOF
8491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8493   ac_status=$?
8494   grep -v '^ *+' conftest.er1 >conftest.err
8495   rm -f conftest.er1
8496   cat conftest.err >&5
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } >/dev/null; then
8499   if test -s conftest.err; then
8500     ac_cpp_err=$ac_c_preproc_warn_flag
8501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8502   else
8503     ac_cpp_err=
8504   fi
8505 else
8506   ac_cpp_err=yes
8507 fi
8508 if test -z "$ac_cpp_err"; then
8509   ac_header_preproc=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514   ac_header_preproc=no
8515 fi
8516 rm -f conftest.err conftest.$ac_ext
8517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518 echo "${ECHO_T}$ac_header_preproc" >&6
8519
8520 # So?  What about this header?
8521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8522   yes:no: )
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8527     ac_header_preproc=yes
8528     ;;
8529   no:yes:* )
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8542     (
8543       cat <<\_ASBOX
8544 ## ----------------------------------- ##
8545 ## Report this to llvmbugs@cs.uiuc.edu ##
8546 ## ----------------------------------- ##
8547 _ASBOX
8548     ) |
8549       sed "s/^/$as_me: WARNING:     /" >&2
8550     ;;
8551 esac
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   eval "$as_ac_Header=\$ac_header_preproc"
8558 fi
8559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8561
8562 fi
8563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8564   cat >>confdefs.h <<_ACEOF
8565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566 _ACEOF
8567
8568 fi
8569
8570 done
8571
8572
8573 echo "$as_me:$LINENO: checking for error_t" >&5
8574 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8575 if test "${ac_cv_type_error_t+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 #if HAVE_ARGZ_H
8585 #  include <argz.h>
8586 #endif
8587
8588 int
8589 main ()
8590 {
8591 if ((error_t *) 0)
8592   return 0;
8593 if (sizeof (error_t))
8594   return 0;
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601   (eval $ac_compile) 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag"
8609                          || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest.$ac_objext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_type_error_t=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_type_error_t=no
8627 fi
8628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8631 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8632 if test $ac_cv_type_error_t = yes; then
8633
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_ERROR_T 1
8636 _ACEOF
8637
8638
8639 else
8640
8641 cat >>confdefs.h <<\_ACEOF
8642 #define error_t int
8643 _ACEOF
8644
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8654 do
8655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 echo "$as_me:$LINENO: checking for $ac_func" >&5
8657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658 if eval "test \"\${$as_ac_var+set}\" = set"; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8669 #define $ac_func innocuous_$ac_func
8670
8671 /* System header to define __stub macros and hopefully few prototypes,
8672     which can conflict with char $ac_func (); below.
8673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674     <limits.h> exists even on freestanding compilers.  */
8675
8676 #ifdef __STDC__
8677 # include <limits.h>
8678 #else
8679 # include <assert.h>
8680 #endif
8681
8682 #undef $ac_func
8683
8684 /* Override any gcc2 internal prototype to avoid an error.  */
8685 #ifdef __cplusplus
8686 extern "C"
8687 {
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690    builtin and then its argument prototype would still apply.  */
8691 char $ac_func ();
8692 /* The GNU C library defines this for functions which it implements
8693     to always fail with ENOSYS.  Some functions are actually named
8694     something starting with __ and the normal name is an alias.  */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 choke me
8697 #else
8698 char (*f) () = $ac_func;
8699 #endif
8700 #ifdef __cplusplus
8701 }
8702 #endif
8703
8704 int
8705 main ()
8706 {
8707 return f != $ac_func;
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"
8722                          || test ! -s conftest.err'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest$ac_exeext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   eval "$as_ac_var=yes"
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 eval "$as_ac_var=no"
8740 fi
8741 rm -f conftest.err conftest.$ac_objext \
8742       conftest$ac_exeext conftest.$ac_ext
8743 fi
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747   cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752 done
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8782                   stdio.h unistd.h
8783 do
8784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786   echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 fi
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793 else
8794   # Is the header compilable?
8795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803 $ac_includes_default
8804 #include <$ac_header>
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808   (eval $ac_compile) 2>conftest.er1
8809   ac_status=$?
8810   grep -v '^ *+' conftest.er1 >conftest.err
8811   rm -f conftest.er1
8812   cat conftest.err >&5
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } &&
8815          { ac_try='test -z "$ac_c_werror_flag"
8816                          || test ! -s conftest.err'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; } &&
8822          { ac_try='test -s conftest.$ac_objext'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; }; then
8828   ac_header_compiler=yes
8829 else
8830   echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_header_compiler=no
8834 fi
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8837 echo "${ECHO_T}$ac_header_compiler" >&6
8838
8839 # Is the header present?
8840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h.  */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h.  */
8848 #include <$ac_header>
8849 _ACEOF
8850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } >/dev/null; then
8858   if test -s conftest.err; then
8859     ac_cpp_err=$ac_c_preproc_warn_flag
8860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861   else
8862     ac_cpp_err=
8863   fi
8864 else
8865   ac_cpp_err=yes
8866 fi
8867 if test -z "$ac_cpp_err"; then
8868   ac_header_preproc=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873   ac_header_preproc=no
8874 fi
8875 rm -f conftest.err conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8877 echo "${ECHO_T}$ac_header_preproc" >&6
8878
8879 # So?  What about this header?
8880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8881   yes:no: )
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8886     ac_header_preproc=yes
8887     ;;
8888   no:yes:* )
8889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8901     (
8902       cat <<\_ASBOX
8903 ## ----------------------------------- ##
8904 ## Report this to llvmbugs@cs.uiuc.edu ##
8905 ## ----------------------------------- ##
8906 _ASBOX
8907     ) |
8908       sed "s/^/$as_me: WARNING:     /" >&2
8909     ;;
8910 esac
8911 echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   eval "$as_ac_Header=\$ac_header_preproc"
8917 fi
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920
8921 fi
8922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8923   cat >>confdefs.h <<_ACEOF
8924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8925 _ACEOF
8926
8927 fi
8928
8929 done
8930
8931
8932
8933
8934
8935 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8936 do
8937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939   echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946 else
8947   # Is the header compilable?
8948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 $ac_includes_default
8957 #include <$ac_header>
8958 _ACEOF
8959 rm -f conftest.$ac_objext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961   (eval $ac_compile) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -z "$ac_c_werror_flag"
8969                          || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_header_compiler=yes
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_header_compiler=no
8987 fi
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 echo "${ECHO_T}$ac_header_compiler" >&6
8991
8992 # Is the header present?
8993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 #include <$ac_header>
9002 _ACEOF
9003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } >/dev/null; then
9011   if test -s conftest.err; then
9012     ac_cpp_err=$ac_c_preproc_warn_flag
9013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014   else
9015     ac_cpp_err=
9016   fi
9017 else
9018   ac_cpp_err=yes
9019 fi
9020 if test -z "$ac_cpp_err"; then
9021   ac_header_preproc=yes
9022 else
9023   echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026   ac_header_preproc=no
9027 fi
9028 rm -f conftest.err conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 echo "${ECHO_T}$ac_header_preproc" >&6
9031
9032 # So?  What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034   yes:no: )
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039     ac_header_preproc=yes
9040     ;;
9041   no:yes:* )
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054     (
9055       cat <<\_ASBOX
9056 ## ----------------------------------- ##
9057 ## Report this to llvmbugs@cs.uiuc.edu ##
9058 ## ----------------------------------- ##
9059 _ASBOX
9060     ) |
9061       sed "s/^/$as_me: WARNING:     /" >&2
9062     ;;
9063 esac
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   eval "$as_ac_Header=\$ac_header_preproc"
9070 fi
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073
9074 fi
9075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 fi
9081
9082 done
9083
9084
9085
9086 for ac_header in string.h strings.h
9087 do
9088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9090   echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093   echo $ECHO_N "(cached) $ECHO_C" >&6
9094 fi
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097 else
9098   # Is the header compilable?
9099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107 $ac_includes_default
9108 #include <$ac_header>
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112   (eval $ac_compile) 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -z "$ac_c_werror_flag"
9120                          || test ! -s conftest.err'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; } &&
9126          { ac_try='test -s conftest.$ac_objext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   ac_header_compiler=yes
9133 else
9134   echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 ac_header_compiler=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6
9142
9143 # Is the header present?
9144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h.  */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h.  */
9152 #include <$ac_header>
9153 _ACEOF
9154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9156   ac_status=$?
9157   grep -v '^ *+' conftest.er1 >conftest.err
9158   rm -f conftest.er1
9159   cat conftest.err >&5
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); } >/dev/null; then
9162   if test -s conftest.err; then
9163     ac_cpp_err=$ac_c_preproc_warn_flag
9164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9165   else
9166     ac_cpp_err=
9167   fi
9168 else
9169   ac_cpp_err=yes
9170 fi
9171 if test -z "$ac_cpp_err"; then
9172   ac_header_preproc=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177   ac_header_preproc=no
9178 fi
9179 rm -f conftest.err conftest.$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9181 echo "${ECHO_T}$ac_header_preproc" >&6
9182
9183 # So?  What about this header?
9184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9185   yes:no: )
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9190     ac_header_preproc=yes
9191     ;;
9192   no:yes:* )
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9205     (
9206       cat <<\_ASBOX
9207 ## ----------------------------------- ##
9208 ## Report this to llvmbugs@cs.uiuc.edu ##
9209 ## ----------------------------------- ##
9210 _ASBOX
9211     ) |
9212       sed "s/^/$as_me: WARNING:     /" >&2
9213     ;;
9214 esac
9215 echo "$as_me:$LINENO: checking for $ac_header" >&5
9216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   eval "$as_ac_Header=\$ac_header_preproc"
9221 fi
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9224
9225 fi
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227   cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229 _ACEOF
9230  break
9231 fi
9232
9233 done
9234
9235
9236
9237
9238 for ac_func in strchr index
9239 do
9240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9241 echo "$as_me:$LINENO: checking for $ac_func" >&5
9242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9243 if eval "test \"\${$as_ac_var+set}\" = set"; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9254 #define $ac_func innocuous_$ac_func
9255
9256 /* System header to define __stub macros and hopefully few prototypes,
9257     which can conflict with char $ac_func (); below.
9258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9259     <limits.h> exists even on freestanding compilers.  */
9260
9261 #ifdef __STDC__
9262 # include <limits.h>
9263 #else
9264 # include <assert.h>
9265 #endif
9266
9267 #undef $ac_func
9268
9269 /* Override any gcc2 internal prototype to avoid an error.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 {
9273 #endif
9274 /* We use char because int might match the return type of a gcc2
9275    builtin and then its argument prototype would still apply.  */
9276 char $ac_func ();
9277 /* The GNU C library defines this for functions which it implements
9278     to always fail with ENOSYS.  Some functions are actually named
9279     something starting with __ and the normal name is an alias.  */
9280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9281 choke me
9282 #else
9283 char (*f) () = $ac_func;
9284 #endif
9285 #ifdef __cplusplus
9286 }
9287 #endif
9288
9289 int
9290 main ()
9291 {
9292 return f != $ac_func;
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299   (eval $ac_link) 2>conftest.er1
9300   ac_status=$?
9301   grep -v '^ *+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } &&
9306          { ac_try='test -z "$ac_c_werror_flag"
9307                          || test ! -s conftest.err'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; } &&
9313          { ac_try='test -s conftest$ac_exeext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   eval "$as_ac_var=yes"
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324 eval "$as_ac_var=no"
9325 fi
9326 rm -f conftest.err conftest.$ac_objext \
9327       conftest$ac_exeext conftest.$ac_ext
9328 fi
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9331 if test `eval echo '${'$as_ac_var'}'` = yes; then
9332   cat >>confdefs.h <<_ACEOF
9333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9334 _ACEOF
9335  break
9336 fi
9337 done
9338
9339
9340
9341 for ac_func in strrchr rindex
9342 do
9343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344 echo "$as_me:$LINENO: checking for $ac_func" >&5
9345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9346 if eval "test \"\${$as_ac_var+set}\" = set"; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349   cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9357 #define $ac_func innocuous_$ac_func
9358
9359 /* System header to define __stub macros and hopefully few prototypes,
9360     which can conflict with char $ac_func (); below.
9361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362     <limits.h> exists even on freestanding compilers.  */
9363
9364 #ifdef __STDC__
9365 # include <limits.h>
9366 #else
9367 # include <assert.h>
9368 #endif
9369
9370 #undef $ac_func
9371
9372 /* Override any gcc2 internal prototype to avoid an error.  */
9373 #ifdef __cplusplus
9374 extern "C"
9375 {
9376 #endif
9377 /* We use char because int might match the return type of a gcc2
9378    builtin and then its argument prototype would still apply.  */
9379 char $ac_func ();
9380 /* The GNU C library defines this for functions which it implements
9381     to always fail with ENOSYS.  Some functions are actually named
9382     something starting with __ and the normal name is an alias.  */
9383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384 choke me
9385 #else
9386 char (*f) () = $ac_func;
9387 #endif
9388 #ifdef __cplusplus
9389 }
9390 #endif
9391
9392 int
9393 main ()
9394 {
9395 return f != $ac_func;
9396   ;
9397   return 0;
9398 }
9399 _ACEOF
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402   (eval $ac_link) 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -z "$ac_c_werror_flag"
9410                          || test ! -s conftest.err'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; } &&
9416          { ac_try='test -s conftest$ac_exeext'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422   eval "$as_ac_var=yes"
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 eval "$as_ac_var=no"
9428 fi
9429 rm -f conftest.err conftest.$ac_objext \
9430       conftest$ac_exeext conftest.$ac_ext
9431 fi
9432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9434 if test `eval echo '${'$as_ac_var'}'` = yes; then
9435   cat >>confdefs.h <<_ACEOF
9436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9437 _ACEOF
9438  break
9439 fi
9440 done
9441
9442
9443
9444 for ac_func in memcpy bcopy
9445 do
9446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9447 echo "$as_me:$LINENO: checking for $ac_func" >&5
9448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9449 if eval "test \"\${$as_ac_var+set}\" = set"; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9460 #define $ac_func innocuous_$ac_func
9461
9462 /* System header to define __stub macros and hopefully few prototypes,
9463     which can conflict with char $ac_func (); below.
9464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465     <limits.h> exists even on freestanding compilers.  */
9466
9467 #ifdef __STDC__
9468 # include <limits.h>
9469 #else
9470 # include <assert.h>
9471 #endif
9472
9473 #undef $ac_func
9474
9475 /* Override any gcc2 internal prototype to avoid an error.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 {
9479 #endif
9480 /* We use char because int might match the return type of a gcc2
9481    builtin and then its argument prototype would still apply.  */
9482 char $ac_func ();
9483 /* The GNU C library defines this for functions which it implements
9484     to always fail with ENOSYS.  Some functions are actually named
9485     something starting with __ and the normal name is an alias.  */
9486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9487 choke me
9488 #else
9489 char (*f) () = $ac_func;
9490 #endif
9491 #ifdef __cplusplus
9492 }
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 return f != $ac_func;
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505   (eval $ac_link) 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } &&
9512          { ac_try='test -z "$ac_c_werror_flag"
9513                          || test ! -s conftest.err'
9514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515   (eval $ac_try) 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; } &&
9519          { ac_try='test -s conftest$ac_exeext'
9520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521   (eval $ac_try) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); }; }; then
9525   eval "$as_ac_var=yes"
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 eval "$as_ac_var=no"
9531 fi
9532 rm -f conftest.err conftest.$ac_objext \
9533       conftest$ac_exeext conftest.$ac_ext
9534 fi
9535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9537 if test `eval echo '${'$as_ac_var'}'` = yes; then
9538   cat >>confdefs.h <<_ACEOF
9539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9540 _ACEOF
9541  break
9542 fi
9543 done
9544
9545
9546
9547 for ac_func in memmove strcmp
9548 do
9549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550 echo "$as_me:$LINENO: checking for $ac_func" >&5
9551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_var+set}\" = set"; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9563 #define $ac_func innocuous_$ac_func
9564
9565 /* System header to define __stub macros and hopefully few prototypes,
9566     which can conflict with char $ac_func (); below.
9567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568     <limits.h> exists even on freestanding compilers.  */
9569
9570 #ifdef __STDC__
9571 # include <limits.h>
9572 #else
9573 # include <assert.h>
9574 #endif
9575
9576 #undef $ac_func
9577
9578 /* Override any gcc2 internal prototype to avoid an error.  */
9579 #ifdef __cplusplus
9580 extern "C"
9581 {
9582 #endif
9583 /* We use char because int might match the return type of a gcc2
9584    builtin and then its argument prototype would still apply.  */
9585 char $ac_func ();
9586 /* The GNU C library defines this for functions which it implements
9587     to always fail with ENOSYS.  Some functions are actually named
9588     something starting with __ and the normal name is an alias.  */
9589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9590 choke me
9591 #else
9592 char (*f) () = $ac_func;
9593 #endif
9594 #ifdef __cplusplus
9595 }
9596 #endif
9597
9598 int
9599 main ()
9600 {
9601 return f != $ac_func;
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag"
9616                          || test ! -s conftest.err'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   eval "$as_ac_var=yes"
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 eval "$as_ac_var=no"
9634 fi
9635 rm -f conftest.err conftest.$ac_objext \
9636       conftest$ac_exeext conftest.$ac_ext
9637 fi
9638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9640 if test `eval echo '${'$as_ac_var'}'` = yes; then
9641   cat >>confdefs.h <<_ACEOF
9642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643 _ACEOF
9644
9645 fi
9646 done
9647
9648
9649
9650
9651 for ac_func in closedir opendir readdir
9652 do
9653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9654 echo "$as_me:$LINENO: checking for $ac_func" >&5
9655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9656 if eval "test \"\${$as_ac_var+set}\" = set"; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9667 #define $ac_func innocuous_$ac_func
9668
9669 /* System header to define __stub macros and hopefully few prototypes,
9670     which can conflict with char $ac_func (); below.
9671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9672     <limits.h> exists even on freestanding compilers.  */
9673
9674 #ifdef __STDC__
9675 # include <limits.h>
9676 #else
9677 # include <assert.h>
9678 #endif
9679
9680 #undef $ac_func
9681
9682 /* Override any gcc2 internal prototype to avoid an error.  */
9683 #ifdef __cplusplus
9684 extern "C"
9685 {
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688    builtin and then its argument prototype would still apply.  */
9689 char $ac_func ();
9690 /* The GNU C library defines this for functions which it implements
9691     to always fail with ENOSYS.  Some functions are actually named
9692     something starting with __ and the normal name is an alias.  */
9693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9694 choke me
9695 #else
9696 char (*f) () = $ac_func;
9697 #endif
9698 #ifdef __cplusplus
9699 }
9700 #endif
9701
9702 int
9703 main ()
9704 {
9705 return f != $ac_func;
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_c_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   eval "$as_ac_var=yes"
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 eval "$as_ac_var=no"
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740       conftest$ac_exeext conftest.$ac_ext
9741 fi
9742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9744 if test `eval echo '${'$as_ac_var'}'` = yes; then
9745   cat >>confdefs.h <<_ACEOF
9746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747 _ACEOF
9748
9749 fi
9750 done
9751
9752
9753 # Check whether --enable-shared or --disable-shared was given.
9754 if test "${enable_shared+set}" = set; then
9755   enableval="$enable_shared"
9756   p=${PACKAGE-default}
9757     case $enableval in
9758     yes) enable_shared=yes ;;
9759     no) enable_shared=no ;;
9760     *)
9761       enable_shared=no
9762       # Look at the argument we got.  We use all the common list separators.
9763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9764       for pkg in $enableval; do
9765         IFS="$lt_save_ifs"
9766         if test "X$pkg" = "X$p"; then
9767           enable_shared=yes
9768         fi
9769       done
9770       IFS="$lt_save_ifs"
9771       ;;
9772     esac
9773 else
9774   enable_shared=yes
9775 fi;
9776
9777 # Check whether --enable-static or --disable-static was given.
9778 if test "${enable_static+set}" = set; then
9779   enableval="$enable_static"
9780   p=${PACKAGE-default}
9781     case $enableval in
9782     yes) enable_static=yes ;;
9783     no) enable_static=no ;;
9784     *)
9785      enable_static=no
9786       # Look at the argument we got.  We use all the common list separators.
9787       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9788       for pkg in $enableval; do
9789         IFS="$lt_save_ifs"
9790         if test "X$pkg" = "X$p"; then
9791           enable_static=yes
9792         fi
9793       done
9794       IFS="$lt_save_ifs"
9795       ;;
9796     esac
9797 else
9798   enable_static=yes
9799 fi;
9800
9801 # Check whether --enable-fast-install or --disable-fast-install was given.
9802 if test "${enable_fast_install+set}" = set; then
9803   enableval="$enable_fast_install"
9804   p=${PACKAGE-default}
9805     case $enableval in
9806     yes) enable_fast_install=yes ;;
9807     no) enable_fast_install=no ;;
9808     *)
9809       enable_fast_install=no
9810       # Look at the argument we got.  We use all the common list separators.
9811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9812       for pkg in $enableval; do
9813         IFS="$lt_save_ifs"
9814         if test "X$pkg" = "X$p"; then
9815           enable_fast_install=yes
9816         fi
9817       done
9818       IFS="$lt_save_ifs"
9819       ;;
9820     esac
9821 else
9822   enable_fast_install=yes
9823 fi;
9824
9825 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9826 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9827 if test "${lt_cv_path_SED+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   # Loop through the user's path and test for sed and gsed.
9831 # Then use that list of sed's as ones to test for truncation.
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $PATH
9834 do
9835   IFS=$as_save_IFS
9836   test -z "$as_dir" && as_dir=.
9837   for lt_ac_prog in sed gsed; do
9838     for ac_exec_ext in '' $ac_executable_extensions; do
9839       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9840         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9841       fi
9842     done
9843   done
9844 done
9845 lt_ac_max=0
9846 lt_ac_count=0
9847 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9848 # along with /bin/sed that truncates output.
9849 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9850   test ! -f $lt_ac_sed && break
9851   cat /dev/null > conftest.in
9852   lt_ac_count=0
9853   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9854   # Check for GNU sed and select it if it is found.
9855   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9856     lt_cv_path_SED=$lt_ac_sed
9857     break
9858   fi
9859   while true; do
9860     cat conftest.in conftest.in >conftest.tmp
9861     mv conftest.tmp conftest.in
9862     cp conftest.in conftest.nl
9863     echo >>conftest.nl
9864     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9865     cmp -s conftest.out conftest.nl || break
9866     # 10000 chars as input seems more than enough
9867     test $lt_ac_count -gt 10 && break
9868     lt_ac_count=`expr $lt_ac_count + 1`
9869     if test $lt_ac_count -gt $lt_ac_max; then
9870       lt_ac_max=$lt_ac_count
9871       lt_cv_path_SED=$lt_ac_sed
9872     fi
9873   done
9874 done
9875
9876 fi
9877
9878 SED=$lt_cv_path_SED
9879 echo "$as_me:$LINENO: result: $SED" >&5
9880 echo "${ECHO_T}$SED" >&6
9881
9882
9883 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9884 if test "${with_gnu_ld+set}" = set; then
9885   withval="$with_gnu_ld"
9886   test "$withval" = no || with_gnu_ld=yes
9887 else
9888   with_gnu_ld=no
9889 fi;
9890 ac_prog=ld
9891 if test "$GCC" = yes; then
9892   # Check if gcc -print-prog-name=ld gives a path.
9893   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9894 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9895   case $host in
9896   *-*-mingw*)
9897     # gcc leaves a trailing carriage return which upsets mingw
9898     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9899   *)
9900     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9901   esac
9902   case $ac_prog in
9903     # Accept absolute paths.
9904     [\\/]* | ?:[\\/]*)
9905       re_direlt='/[^/][^/]*/\.\./'
9906       # Canonicalize the pathname of ld
9907       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9908       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9909         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9910       done
9911       test -z "$LD" && LD="$ac_prog"
9912       ;;
9913   "")
9914     # If it fails, then pretend we aren't using GCC.
9915     ac_prog=ld
9916     ;;
9917   *)
9918     # If it is relative, then search for the first ld in PATH.
9919     with_gnu_ld=unknown
9920     ;;
9921   esac
9922 elif test "$with_gnu_ld" = yes; then
9923   echo "$as_me:$LINENO: checking for GNU ld" >&5
9924 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9925 else
9926   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9927 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9928 fi
9929 if test "${lt_cv_path_LD+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   if test -z "$LD"; then
9933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9934   for ac_dir in $PATH; do
9935     IFS="$lt_save_ifs"
9936     test -z "$ac_dir" && ac_dir=.
9937     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9938       lt_cv_path_LD="$ac_dir/$ac_prog"
9939       # Check to see if the program is GNU ld.  I'd rather use --version,
9940       # but apparently some GNU ld's only accept -v.
9941       # Break only if it was the GNU/non-GNU ld that we prefer.
9942       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9943       *GNU* | *'with BFD'*)
9944         test "$with_gnu_ld" != no && break
9945         ;;
9946       *)
9947         test "$with_gnu_ld" != yes && break
9948         ;;
9949       esac
9950     fi
9951   done
9952   IFS="$lt_save_ifs"
9953 else
9954   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9955 fi
9956 fi
9957
9958 LD="$lt_cv_path_LD"
9959 if test -n "$LD"; then
9960   echo "$as_me:$LINENO: result: $LD" >&5
9961 echo "${ECHO_T}$LD" >&6
9962 else
9963   echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9965 fi
9966 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9967 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9968    { (exit 1); exit 1; }; }
9969 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9970 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9971 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9975 case `$LD -v 2>&1 </dev/null` in
9976 *GNU* | *'with BFD'*)
9977   lt_cv_prog_gnu_ld=yes
9978   ;;
9979 *)
9980   lt_cv_prog_gnu_ld=no
9981   ;;
9982 esac
9983 fi
9984 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9985 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9986 with_gnu_ld=$lt_cv_prog_gnu_ld
9987
9988
9989 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9990 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9991 if test "${lt_cv_ld_reload_flag+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   lt_cv_ld_reload_flag='-r'
9995 fi
9996 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9997 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9998 reload_flag=$lt_cv_ld_reload_flag
9999 case $reload_flag in
10000 "" | " "*) ;;
10001 *) reload_flag=" $reload_flag" ;;
10002 esac
10003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10004 case $host_os in
10005   darwin*)
10006     if test "$GCC" = yes; then
10007       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10008     else
10009       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10010     fi
10011     ;;
10012 esac
10013
10014 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10015 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10016 if test "${lt_cv_deplibs_check_method+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   lt_cv_file_magic_cmd='$MAGIC_CMD'
10020 lt_cv_file_magic_test_file=
10021 lt_cv_deplibs_check_method='unknown'
10022 # Need to set the preceding variable on all platforms that support
10023 # interlibrary dependencies.
10024 # 'none' -- dependencies not supported.
10025 # `unknown' -- same as none, but documents that we really don't know.
10026 # 'pass_all' -- all dependencies passed with no checks.
10027 # 'test_compile' -- check by making test program.
10028 # 'file_magic [[regex]]' -- check by looking for files in library path
10029 # which responds to the $file_magic_cmd with a given extended regex.
10030 # If you have `file' or equivalent on your system and you're not sure
10031 # whether `pass_all' will *always* work, you probably want this one.
10032
10033 case $host_os in
10034 aix4* | aix5*)
10035   lt_cv_deplibs_check_method=pass_all
10036   ;;
10037
10038 beos*)
10039   lt_cv_deplibs_check_method=pass_all
10040   ;;
10041
10042 bsdi[45]*)
10043   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10044   lt_cv_file_magic_cmd='/usr/bin/file -L'
10045   lt_cv_file_magic_test_file=/shlib/libc.so
10046   ;;
10047
10048 cygwin*)
10049   # func_win32_libid is a shell function defined in ltmain.sh
10050   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10051   lt_cv_file_magic_cmd='func_win32_libid'
10052   ;;
10053
10054 mingw* | pw32*)
10055   # Base MSYS/MinGW do not provide the 'file' command needed by
10056   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10057   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10058   lt_cv_file_magic_cmd='$OBJDUMP -f'
10059   ;;
10060
10061 darwin* | rhapsody*)
10062   lt_cv_deplibs_check_method=pass_all
10063   ;;
10064
10065 freebsd* | kfreebsd*-gnu)
10066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10067     case $host_cpu in
10068     i*86 )
10069       # Not sure whether the presence of OpenBSD here was a mistake.
10070       # Let's accept both of them until this is cleared up.
10071       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10072       lt_cv_file_magic_cmd=/usr/bin/file
10073       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10074       ;;
10075     esac
10076   else
10077     lt_cv_deplibs_check_method=pass_all
10078   fi
10079   ;;
10080
10081 gnu*)
10082   lt_cv_deplibs_check_method=pass_all
10083   ;;
10084
10085 hpux10.20* | hpux11*)
10086   lt_cv_file_magic_cmd=/usr/bin/file
10087   case "$host_cpu" in
10088   ia64*)
10089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10090     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10091     ;;
10092   hppa*64*)
10093     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]'
10094     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10095     ;;
10096   *)
10097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10098     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10099     ;;
10100   esac
10101   ;;
10102
10103 irix5* | irix6* | nonstopux*)
10104   case $LD in
10105   *-32|*"-32 ") libmagic=32-bit;;
10106   *-n32|*"-n32 ") libmagic=N32;;
10107   *-64|*"-64 ") libmagic=64-bit;;
10108   *) libmagic=never-match;;
10109   esac
10110   lt_cv_deplibs_check_method=pass_all
10111   ;;
10112
10113 # This must be Linux ELF.
10114 linux*)
10115   lt_cv_deplibs_check_method=pass_all
10116   ;;
10117
10118 netbsd*)
10119   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10121   else
10122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10123   fi
10124   ;;
10125
10126 newos6*)
10127   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10128   lt_cv_file_magic_cmd=/usr/bin/file
10129   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10130   ;;
10131
10132 nto-qnx*)
10133   lt_cv_deplibs_check_method=unknown
10134   ;;
10135
10136 openbsd*)
10137   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10139   else
10140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10141   fi
10142   ;;
10143
10144 osf3* | osf4* | osf5*)
10145   lt_cv_deplibs_check_method=pass_all
10146   ;;
10147
10148 sco3.2v5*)
10149   lt_cv_deplibs_check_method=pass_all
10150   ;;
10151
10152 solaris*)
10153   lt_cv_deplibs_check_method=pass_all
10154   ;;
10155
10156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10157   case $host_vendor in
10158   motorola)
10159     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]'
10160     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10161     ;;
10162   ncr)
10163     lt_cv_deplibs_check_method=pass_all
10164     ;;
10165   sequent)
10166     lt_cv_file_magic_cmd='/bin/file'
10167     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10168     ;;
10169   sni)
10170     lt_cv_file_magic_cmd='/bin/file'
10171     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10172     lt_cv_file_magic_test_file=/lib/libc.so
10173     ;;
10174   siemens)
10175     lt_cv_deplibs_check_method=pass_all
10176     ;;
10177   esac
10178   ;;
10179
10180 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10181   lt_cv_deplibs_check_method=pass_all
10182   ;;
10183 esac
10184
10185 fi
10186 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10187 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10188 file_magic_cmd=$lt_cv_file_magic_cmd
10189 deplibs_check_method=$lt_cv_deplibs_check_method
10190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10191
10192
10193
10194 # If no C compiler was specified, use CC.
10195 LTCC=${LTCC-"$CC"}
10196
10197 # Allow CC to be a program name with arguments.
10198 compiler=$CC
10199
10200 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10201 if test "${enable_libtool_lock+set}" = set; then
10202   enableval="$enable_libtool_lock"
10203
10204 fi;
10205 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10206
10207 # Some flags need to be propagated to the compiler or linker for good
10208 # libtool support.
10209 case $host in
10210 ia64-*-hpux*)
10211   # Find out which ABI we are using.
10212   echo 'int i;' > conftest.$ac_ext
10213   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214   (eval $ac_compile) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; then
10218     case `/usr/bin/file conftest.$ac_objext` in
10219     *ELF-32*)
10220       HPUX_IA64_MODE="32"
10221       ;;
10222     *ELF-64*)
10223       HPUX_IA64_MODE="64"
10224       ;;
10225     esac
10226   fi
10227   rm -rf conftest*
10228   ;;
10229 *-*-irix6*)
10230   # Find out which ABI we are using.
10231   echo '#line 10231 "configure"' > conftest.$ac_ext
10232   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233   (eval $ac_compile) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; then
10237    if test "$lt_cv_prog_gnu_ld" = yes; then
10238     case `/usr/bin/file conftest.$ac_objext` in
10239     *32-bit*)
10240       LD="${LD-ld} -melf32bsmip"
10241       ;;
10242     *N32*)
10243       LD="${LD-ld} -melf32bmipn32"
10244       ;;
10245     *64-bit*)
10246       LD="${LD-ld} -melf64bmip"
10247       ;;
10248     esac
10249    else
10250     case `/usr/bin/file conftest.$ac_objext` in
10251     *32-bit*)
10252       LD="${LD-ld} -32"
10253       ;;
10254     *N32*)
10255       LD="${LD-ld} -n32"
10256       ;;
10257     *64-bit*)
10258       LD="${LD-ld} -64"
10259       ;;
10260     esac
10261    fi
10262   fi
10263   rm -rf conftest*
10264   ;;
10265
10266 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10267   # Find out which ABI we are using.
10268   echo 'int i;' > conftest.$ac_ext
10269   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270   (eval $ac_compile) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; then
10274     case "`/usr/bin/file conftest.o`" in
10275     *32-bit*)
10276       case $host in
10277         x86_64-*linux*)
10278           LD="${LD-ld} -m elf_i386"
10279           ;;
10280         ppc64-*linux*|powerpc64-*linux*)
10281           LD="${LD-ld} -m elf32ppclinux"
10282           ;;
10283         s390x-*linux*)
10284           LD="${LD-ld} -m elf_s390"
10285           ;;
10286         sparc64-*linux*)
10287           LD="${LD-ld} -m elf32_sparc"
10288           ;;
10289       esac
10290       ;;
10291     *64-bit*)
10292       case $host in
10293         x86_64-*linux*)
10294           LD="${LD-ld} -m elf_x86_64"
10295           ;;
10296         ppc*-*linux*|powerpc*-*linux*)
10297           LD="${LD-ld} -m elf64ppc"
10298           ;;
10299         s390*-*linux*)
10300           LD="${LD-ld} -m elf64_s390"
10301           ;;
10302         sparc*-*linux*)
10303           LD="${LD-ld} -m elf64_sparc"
10304           ;;
10305       esac
10306       ;;
10307     esac
10308   fi
10309   rm -rf conftest*
10310   ;;
10311
10312 *-*-sco3.2v5*)
10313   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10314   SAVE_CFLAGS="$CFLAGS"
10315   CFLAGS="$CFLAGS -belf"
10316   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10318 if test "${lt_cv_cc_needs_belf+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   ac_ext=c
10322 ac_cpp='$CPP $CPPFLAGS'
10323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10326
10327      cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337   (eval $ac_link) 2>conftest.er1
10338   ac_status=$?
10339   grep -v '^ *+' conftest.er1 >conftest.err
10340   rm -f conftest.er1
10341   cat conftest.err >&5
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } &&
10344          { ac_try='test -z "$ac_c_werror_flag"
10345                          || test ! -s conftest.err'
10346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347   (eval $ac_try) 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; } &&
10351          { ac_try='test -s conftest$ac_exeext'
10352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353   (eval $ac_try) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; }; then
10357   lt_cv_cc_needs_belf=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 lt_cv_cc_needs_belf=no
10363 fi
10364 rm -f conftest.err conftest.$ac_objext \
10365       conftest$ac_exeext conftest.$ac_ext
10366      ac_ext=c
10367 ac_cpp='$CPP $CPPFLAGS'
10368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371
10372 fi
10373 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10374 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10375   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10376     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10377     CFLAGS="$SAVE_CFLAGS"
10378   fi
10379   ;;
10380
10381 esac
10382
10383 need_locks="$enable_libtool_lock"
10384
10385
10386
10387
10388 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10389     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10390     (test "X$CXX" != "Xg++"))) ; then
10391   ac_ext=cc
10392 ac_cpp='$CXXCPP $CPPFLAGS'
10393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10396 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10397 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10398 if test -z "$CXXCPP"; then
10399   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402       # Double quotes because CXXCPP needs to be expanded
10403     for CXXCPP in "$CXX -E" "/lib/cpp"
10404     do
10405       ac_preproc_ok=false
10406 for ac_cxx_preproc_warn_flag in '' yes
10407 do
10408   # Use a header file that comes with gcc, so configuring glibc
10409   # with a fresh cross-compiler works.
10410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411   # <limits.h> exists even on freestanding compilers.
10412   # On the NeXT, cc -E runs the code through the compiler's parser,
10413   # not just through cpp. "Syntax error" is here to catch this case.
10414   cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420 #ifdef __STDC__
10421 # include <limits.h>
10422 #else
10423 # include <assert.h>
10424 #endif
10425                      Syntax error
10426 _ACEOF
10427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } >/dev/null; then
10435   if test -s conftest.err; then
10436     ac_cpp_err=$ac_cxx_preproc_warn_flag
10437     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10438   else
10439     ac_cpp_err=
10440   fi
10441 else
10442   ac_cpp_err=yes
10443 fi
10444 if test -z "$ac_cpp_err"; then
10445   :
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450   # Broken: fails on valid input.
10451 continue
10452 fi
10453 rm -f conftest.err conftest.$ac_ext
10454
10455   # OK, works on sane cases.  Now check whether non-existent headers
10456   # can be detected and how.
10457   cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 #include <ac_nonexistent.h>
10464 _ACEOF
10465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } >/dev/null; then
10473   if test -s conftest.err; then
10474     ac_cpp_err=$ac_cxx_preproc_warn_flag
10475     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10476   else
10477     ac_cpp_err=
10478   fi
10479 else
10480   ac_cpp_err=yes
10481 fi
10482 if test -z "$ac_cpp_err"; then
10483   # Broken: success on invalid input.
10484 continue
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489   # Passes both tests.
10490 ac_preproc_ok=:
10491 break
10492 fi
10493 rm -f conftest.err conftest.$ac_ext
10494
10495 done
10496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10497 rm -f conftest.err conftest.$ac_ext
10498 if $ac_preproc_ok; then
10499   break
10500 fi
10501
10502     done
10503     ac_cv_prog_CXXCPP=$CXXCPP
10504
10505 fi
10506   CXXCPP=$ac_cv_prog_CXXCPP
10507 else
10508   ac_cv_prog_CXXCPP=$CXXCPP
10509 fi
10510 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10511 echo "${ECHO_T}$CXXCPP" >&6
10512 ac_preproc_ok=false
10513 for ac_cxx_preproc_warn_flag in '' yes
10514 do
10515   # Use a header file that comes with gcc, so configuring glibc
10516   # with a fresh cross-compiler works.
10517   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10518   # <limits.h> exists even on freestanding compilers.
10519   # On the NeXT, cc -E runs the code through the compiler's parser,
10520   # not just through cpp. "Syntax error" is here to catch this case.
10521   cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 #ifdef __STDC__
10528 # include <limits.h>
10529 #else
10530 # include <assert.h>
10531 #endif
10532                      Syntax error
10533 _ACEOF
10534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } >/dev/null; then
10542   if test -s conftest.err; then
10543     ac_cpp_err=$ac_cxx_preproc_warn_flag
10544     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10545   else
10546     ac_cpp_err=
10547   fi
10548 else
10549   ac_cpp_err=yes
10550 fi
10551 if test -z "$ac_cpp_err"; then
10552   :
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557   # Broken: fails on valid input.
10558 continue
10559 fi
10560 rm -f conftest.err conftest.$ac_ext
10561
10562   # OK, works on sane cases.  Now check whether non-existent headers
10563   # can be detected and how.
10564   cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570 #include <ac_nonexistent.h>
10571 _ACEOF
10572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10574   ac_status=$?
10575   grep -v '^ *+' conftest.er1 >conftest.err
10576   rm -f conftest.er1
10577   cat conftest.err >&5
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } >/dev/null; then
10580   if test -s conftest.err; then
10581     ac_cpp_err=$ac_cxx_preproc_warn_flag
10582     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10583   else
10584     ac_cpp_err=
10585   fi
10586 else
10587   ac_cpp_err=yes
10588 fi
10589 if test -z "$ac_cpp_err"; then
10590   # Broken: success on invalid input.
10591 continue
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596   # Passes both tests.
10597 ac_preproc_ok=:
10598 break
10599 fi
10600 rm -f conftest.err conftest.$ac_ext
10601
10602 done
10603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10604 rm -f conftest.err conftest.$ac_ext
10605 if $ac_preproc_ok; then
10606   :
10607 else
10608   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10609 See \`config.log' for more details." >&5
10610 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10611 See \`config.log' for more details." >&2;}
10612    { (exit 1); exit 1; }; }
10613 fi
10614
10615 ac_ext=cc
10616 ac_cpp='$CXXCPP $CPPFLAGS'
10617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10620
10621 fi
10622
10623
10624 ac_ext=f
10625 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10626 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10628 if test -n "$ac_tool_prefix"; then
10629   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10630   do
10631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10633 echo "$as_me:$LINENO: checking for $ac_word" >&5
10634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10635 if test "${ac_cv_prog_F77+set}" = set; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638   if test -n "$F77"; then
10639   ac_cv_prog_F77="$F77" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644   IFS=$as_save_IFS
10645   test -z "$as_dir" && as_dir=.
10646   for ac_exec_ext in '' $ac_executable_extensions; do
10647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10648     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10650     break 2
10651   fi
10652 done
10653 done
10654
10655 fi
10656 fi
10657 F77=$ac_cv_prog_F77
10658 if test -n "$F77"; then
10659   echo "$as_me:$LINENO: result: $F77" >&5
10660 echo "${ECHO_T}$F77" >&6
10661 else
10662   echo "$as_me:$LINENO: result: no" >&5
10663 echo "${ECHO_T}no" >&6
10664 fi
10665
10666     test -n "$F77" && break
10667   done
10668 fi
10669 if test -z "$F77"; then
10670   ac_ct_F77=$F77
10671   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10672 do
10673   # Extract the first word of "$ac_prog", so it can be a program name with args.
10674 set dummy $ac_prog; ac_word=$2
10675 echo "$as_me:$LINENO: checking for $ac_word" >&5
10676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10677 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680   if test -n "$ac_ct_F77"; then
10681   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686   IFS=$as_save_IFS
10687   test -z "$as_dir" && as_dir=.
10688   for ac_exec_ext in '' $ac_executable_extensions; do
10689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690     ac_cv_prog_ac_ct_F77="$ac_prog"
10691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10692     break 2
10693   fi
10694 done
10695 done
10696
10697 fi
10698 fi
10699 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10700 if test -n "$ac_ct_F77"; then
10701   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10702 echo "${ECHO_T}$ac_ct_F77" >&6
10703 else
10704   echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10706 fi
10707
10708   test -n "$ac_ct_F77" && break
10709 done
10710
10711   F77=$ac_ct_F77
10712 fi
10713
10714
10715 # Provide some information about the compiler.
10716 echo "$as_me:10716:" \
10717      "checking for Fortran 77 compiler version" >&5
10718 ac_compiler=`set X $ac_compile; echo $2`
10719 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10720   (eval $ac_compiler --version </dev/null >&5) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }
10724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10725   (eval $ac_compiler -v </dev/null >&5) 2>&5
10726   ac_status=$?
10727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }
10729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10730   (eval $ac_compiler -V </dev/null >&5) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }
10734 rm -f a.out
10735
10736 # If we don't use `.F' as extension, the preprocessor is not run on the
10737 # input file.  (Note that this only needs to work for GNU compilers.)
10738 ac_save_ext=$ac_ext
10739 ac_ext=F
10740 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10741 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10742 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   cat >conftest.$ac_ext <<_ACEOF
10746       program main
10747 #ifndef __GNUC__
10748        choke me
10749 #endif
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_compiler_gnu=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_compiler_gnu=no
10781 fi
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10784
10785 fi
10786 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10787 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10788 ac_ext=$ac_save_ext
10789 ac_test_FFLAGS=${FFLAGS+set}
10790 ac_save_FFLAGS=$FFLAGS
10791 FFLAGS=
10792 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10793 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10794 if test "${ac_cv_prog_f77_g+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   FFLAGS=-g
10798 cat >conftest.$ac_ext <<_ACEOF
10799       program main
10800
10801       end
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805   (eval $ac_compile) 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -z "$ac_f77_werror_flag"
10813                          || test ! -s conftest.err'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; } &&
10819          { ac_try='test -s conftest.$ac_objext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_cv_prog_f77_g=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_prog_f77_g=no
10831 fi
10832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10833
10834 fi
10835 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10836 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10837 if test "$ac_test_FFLAGS" = set; then
10838   FFLAGS=$ac_save_FFLAGS
10839 elif test $ac_cv_prog_f77_g = yes; then
10840   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10841     FFLAGS="-g -O2"
10842   else
10843     FFLAGS="-g"
10844   fi
10845 else
10846   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10847     FFLAGS="-O2"
10848   else
10849     FFLAGS=
10850   fi
10851 fi
10852
10853 G77=`test $ac_compiler_gnu = yes && echo yes`
10854 ac_ext=c
10855 ac_cpp='$CPP $CPPFLAGS'
10856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10859
10860
10861
10862 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10863
10864 # find the maximum length of command line arguments
10865 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10866 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10867 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870     i=0
10871   teststring="ABCD"
10872
10873   case $build_os in
10874   msdosdjgpp*)
10875     # On DJGPP, this test can blow up pretty badly due to problems in libc
10876     # (any single argument exceeding 2000 bytes causes a buffer overrun
10877     # during glob expansion).  Even if it were fixed, the result of this
10878     # check would be larger than it should be.
10879     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10880     ;;
10881
10882   gnu*)
10883     # Under GNU Hurd, this test is not required because there is
10884     # no limit to the length of command line arguments.
10885     # Libtool will interpret -1 as no limit whatsoever
10886     lt_cv_sys_max_cmd_len=-1;
10887     ;;
10888
10889   cygwin* | mingw*)
10890     # On Win9x/ME, this test blows up -- it succeeds, but takes
10891     # about 5 minutes as the teststring grows exponentially.
10892     # Worse, since 9x/ME are not pre-emptively multitasking,
10893     # you end up with a "frozen" computer, even though with patience
10894     # the test eventually succeeds (with a max line length of 256k).
10895     # Instead, let's just punt: use the minimum linelength reported by
10896     # all of the supported platforms: 8192 (on NT/2K/XP).
10897     lt_cv_sys_max_cmd_len=8192;
10898     ;;
10899
10900   amigaos*)
10901     # On AmigaOS with pdksh, this test takes hours, literally.
10902     # So we just punt and use a minimum line length of 8192.
10903     lt_cv_sys_max_cmd_len=8192;
10904     ;;
10905
10906   netbsd* | freebsd* | openbsd* | darwin* )
10907     # This has been around since 386BSD, at least.  Likely further.
10908     if test -x /sbin/sysctl; then
10909       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10910     elif test -x /usr/sbin/sysctl; then
10911       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10912     else
10913       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10914     fi
10915     # And add a safety zone
10916     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10917     ;;
10918
10919  *)
10920     # If test is not a shell built-in, we'll probably end up computing a
10921     # maximum length that is only half of the actual maximum length, but
10922     # we can't tell.
10923     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10924     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10925                = "XX$teststring") >/dev/null 2>&1 &&
10926             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10927             lt_cv_sys_max_cmd_len=$new_result &&
10928             test $i != 17 # 1/2 MB should be enough
10929     do
10930       i=`expr $i + 1`
10931       teststring=$teststring$teststring
10932     done
10933     teststring=
10934     # Add a significant safety factor because C++ compilers can tack on massive
10935     # amounts of additional arguments before passing them to the linker.
10936     # It appears as though 1/2 is a usable value.
10937     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10938     ;;
10939   esac
10940
10941 fi
10942
10943 if test -n $lt_cv_sys_max_cmd_len ; then
10944   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10945 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10946 else
10947   echo "$as_me:$LINENO: result: none" >&5
10948 echo "${ECHO_T}none" >&6
10949 fi
10950
10951
10952
10953
10954 # Check for command to grab the raw symbol name followed by C symbol from nm.
10955 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10956 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10957 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10958   echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960
10961 # These are sane defaults that work on at least a few old systems.
10962 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10963
10964 # Character class describing NM global symbol codes.
10965 symcode='[BCDEGRST]'
10966
10967 # Regexp to match symbols that can be accessed directly from C.
10968 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10969
10970 # Transform the above into a raw symbol and a C symbol.
10971 symxfrm='\1 \2\3 \3'
10972
10973 # Transform an extracted symbol line into a proper C declaration
10974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10975
10976 # Transform an extracted symbol line into symbol name and symbol address
10977 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'"
10978
10979 # Define system-specific variables.
10980 case $host_os in
10981 aix*)
10982   symcode='[BCDT]'
10983   ;;
10984 cygwin* | mingw* | pw32*)
10985   symcode='[ABCDGISTW]'
10986   ;;
10987 hpux*) # Its linker distinguishes data from code symbols
10988   if test "$host_cpu" = ia64; then
10989     symcode='[ABCDEGRST]'
10990   fi
10991   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10992   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'"
10993   ;;
10994 linux*)
10995   if test "$host_cpu" = ia64; then
10996     symcode='[ABCDGIRSTW]'
10997     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10998     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'"
10999   fi
11000   ;;
11001 irix* | nonstopux*)
11002   symcode='[BCDEGRST]'
11003   ;;
11004 osf*)
11005   symcode='[BCDEGQRST]'
11006   ;;
11007 solaris* | sysv5*)
11008   symcode='[BDRT]'
11009   ;;
11010 sysv4)
11011   symcode='[DFNSTU]'
11012   ;;
11013 esac
11014
11015 # Handle CRLF in mingw tool chain
11016 opt_cr=
11017 case $build_os in
11018 mingw*)
11019   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11020   ;;
11021 esac
11022
11023 # If we're using GNU nm, then use its standard symbol codes.
11024 case `$NM -V 2>&1` in
11025 *GNU* | *'with BFD'*)
11026   symcode='[ABCDGIRSTW]' ;;
11027 esac
11028
11029 # Try without a prefix undercore, then with it.
11030 for ac_symprfx in "" "_"; do
11031
11032   # Write the raw and C identifiers.
11033   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11034
11035   # Check to see that the pipe works correctly.
11036   pipe_works=no
11037
11038   rm -f conftest*
11039   cat > conftest.$ac_ext <<EOF
11040 #ifdef __cplusplus
11041 extern "C" {
11042 #endif
11043 char nm_test_var;
11044 void nm_test_func(){}
11045 #ifdef __cplusplus
11046 }
11047 #endif
11048 int main(){nm_test_var='a';nm_test_func();return(0);}
11049 EOF
11050
11051   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052   (eval $ac_compile) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; then
11056     # Now try to grab the symbols.
11057     nlist=conftest.nm
11058     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11059   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } && test -s "$nlist"; then
11063       # Try sorting and uniquifying the output.
11064       if sort "$nlist" | uniq > "$nlist"T; then
11065         mv -f "$nlist"T "$nlist"
11066       else
11067         rm -f "$nlist"T
11068       fi
11069
11070       # Make sure that we snagged all the symbols we need.
11071       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11072         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11073           cat <<EOF > conftest.$ac_ext
11074 #ifdef __cplusplus
11075 extern "C" {
11076 #endif
11077
11078 EOF
11079           # Now generate the symbol file.
11080           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11081
11082           cat <<EOF >> conftest.$ac_ext
11083 #if defined (__STDC__) && __STDC__
11084 # define lt_ptr_t void *
11085 #else
11086 # define lt_ptr_t char *
11087 # define const
11088 #endif
11089
11090 /* The mapping between symbol names and symbols. */
11091 const struct {
11092   const char *name;
11093   lt_ptr_t address;
11094 }
11095 lt_preloaded_symbols[] =
11096 {
11097 EOF
11098           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11099           cat <<\EOF >> conftest.$ac_ext
11100   {0, (lt_ptr_t) 0}
11101 };
11102
11103 #ifdef __cplusplus
11104 }
11105 #endif
11106 EOF
11107           # Now try linking the two files.
11108           mv conftest.$ac_objext conftstm.$ac_objext
11109           lt_save_LIBS="$LIBS"
11110           lt_save_CFLAGS="$CFLAGS"
11111           LIBS="conftstm.$ac_objext"
11112           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11113           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114   (eval $ac_link) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11118             pipe_works=yes
11119           fi
11120           LIBS="$lt_save_LIBS"
11121           CFLAGS="$lt_save_CFLAGS"
11122         else
11123           echo "cannot find nm_test_func in $nlist" >&5
11124         fi
11125       else
11126         echo "cannot find nm_test_var in $nlist" >&5
11127       fi
11128     else
11129       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11130     fi
11131   else
11132     echo "$progname: failed program was:" >&5
11133     cat conftest.$ac_ext >&5
11134   fi
11135   rm -f conftest* conftst*
11136
11137   # Do not use the global_symbol_pipe unless it works.
11138   if test "$pipe_works" = yes; then
11139     break
11140   else
11141     lt_cv_sys_global_symbol_pipe=
11142   fi
11143 done
11144
11145 fi
11146
11147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11148   lt_cv_sys_global_symbol_to_cdecl=
11149 fi
11150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11151   echo "$as_me:$LINENO: result: failed" >&5
11152 echo "${ECHO_T}failed" >&6
11153 else
11154   echo "$as_me:$LINENO: result: ok" >&5
11155 echo "${ECHO_T}ok" >&6
11156 fi
11157
11158 echo "$as_me:$LINENO: checking for objdir" >&5
11159 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11160 if test "${lt_cv_objdir+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   rm -f .libs 2>/dev/null
11164 mkdir .libs 2>/dev/null
11165 if test -d .libs; then
11166   lt_cv_objdir=.libs
11167 else
11168   # MS-DOS does not allow filenames that begin with a dot.
11169   lt_cv_objdir=_libs
11170 fi
11171 rmdir .libs 2>/dev/null
11172 fi
11173 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11174 echo "${ECHO_T}$lt_cv_objdir" >&6
11175 objdir=$lt_cv_objdir
11176
11177
11178
11179
11180
11181 case $host_os in
11182 aix3*)
11183   # AIX sometimes has problems with the GCC collect2 program.  For some
11184   # reason, if we set the COLLECT_NAMES environment variable, the problems
11185   # vanish in a puff of smoke.
11186   if test "X${COLLECT_NAMES+set}" != Xset; then
11187     COLLECT_NAMES=
11188     export COLLECT_NAMES
11189   fi
11190   ;;
11191 esac
11192
11193 # Sed substitution that helps us do robust quoting.  It backslashifies
11194 # metacharacters that are still active within double-quoted strings.
11195 Xsed='sed -e s/^X//'
11196 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11197
11198 # Same as above, but do not quote variable references.
11199 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11200
11201 # Sed substitution to delay expansion of an escaped shell variable in a
11202 # double_quote_subst'ed string.
11203 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11204
11205 # Sed substitution to avoid accidental globbing in evaled expressions
11206 no_glob_subst='s/\*/\\\*/g'
11207
11208 # Constants:
11209 rm="rm -f"
11210
11211 # Global variables:
11212 default_ofile=mklib
11213 can_build_shared=yes
11214
11215 # All known linkers require a `.a' archive for static linking (except M$VC,
11216 # which needs '.lib').
11217 libext=a
11218 ltmain="$ac_aux_dir/ltmain.sh"
11219 ofile="$default_ofile"
11220 with_gnu_ld="$lt_cv_prog_gnu_ld"
11221
11222 if test -n "$ac_tool_prefix"; then
11223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11224 set dummy ${ac_tool_prefix}ar; ac_word=$2
11225 echo "$as_me:$LINENO: checking for $ac_word" >&5
11226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11227 if test "${ac_cv_prog_AR+set}" = set; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   if test -n "$AR"; then
11231   ac_cv_prog_AR="$AR" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236   IFS=$as_save_IFS
11237   test -z "$as_dir" && as_dir=.
11238   for ac_exec_ext in '' $ac_executable_extensions; do
11239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240     ac_cv_prog_AR="${ac_tool_prefix}ar"
11241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242     break 2
11243   fi
11244 done
11245 done
11246
11247 fi
11248 fi
11249 AR=$ac_cv_prog_AR
11250 if test -n "$AR"; then
11251   echo "$as_me:$LINENO: result: $AR" >&5
11252 echo "${ECHO_T}$AR" >&6
11253 else
11254   echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6
11256 fi
11257
11258 fi
11259 if test -z "$ac_cv_prog_AR"; then
11260   ac_ct_AR=$AR
11261   # Extract the first word of "ar", so it can be a program name with args.
11262 set dummy ar; ac_word=$2
11263 echo "$as_me:$LINENO: checking for $ac_word" >&5
11264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268   if test -n "$ac_ct_AR"; then
11269   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11270 else
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276   for ac_exec_ext in '' $ac_executable_extensions; do
11277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278     ac_cv_prog_ac_ct_AR="ar"
11279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283 done
11284
11285   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11286 fi
11287 fi
11288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11289 if test -n "$ac_ct_AR"; then
11290   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11291 echo "${ECHO_T}$ac_ct_AR" >&6
11292 else
11293   echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6
11295 fi
11296
11297   AR=$ac_ct_AR
11298 else
11299   AR="$ac_cv_prog_AR"
11300 fi
11301
11302 if test -n "$ac_tool_prefix"; then
11303   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11305 echo "$as_me:$LINENO: checking for $ac_word" >&5
11306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11307 if test "${ac_cv_prog_RANLIB+set}" = set; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310   if test -n "$RANLIB"; then
11311   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11315 do
11316   IFS=$as_save_IFS
11317   test -z "$as_dir" && as_dir=.
11318   for ac_exec_ext in '' $ac_executable_extensions; do
11319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322     break 2
11323   fi
11324 done
11325 done
11326
11327 fi
11328 fi
11329 RANLIB=$ac_cv_prog_RANLIB
11330 if test -n "$RANLIB"; then
11331   echo "$as_me:$LINENO: result: $RANLIB" >&5
11332 echo "${ECHO_T}$RANLIB" >&6
11333 else
11334   echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6
11336 fi
11337
11338 fi
11339 if test -z "$ac_cv_prog_RANLIB"; then
11340   ac_ct_RANLIB=$RANLIB
11341   # Extract the first word of "ranlib", so it can be a program name with args.
11342 set dummy ranlib; ac_word=$2
11343 echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   if test -n "$ac_ct_RANLIB"; then
11349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356   for ac_exec_ext in '' $ac_executable_extensions; do
11357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358     ac_cv_prog_ac_ct_RANLIB="ranlib"
11359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363 done
11364
11365   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11366 fi
11367 fi
11368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11369 if test -n "$ac_ct_RANLIB"; then
11370   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11372 else
11373   echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11375 fi
11376
11377   RANLIB=$ac_ct_RANLIB
11378 else
11379   RANLIB="$ac_cv_prog_RANLIB"
11380 fi
11381
11382 if test -n "$ac_tool_prefix"; then
11383   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11384 set dummy ${ac_tool_prefix}strip; ac_word=$2
11385 echo "$as_me:$LINENO: checking for $ac_word" >&5
11386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387 if test "${ac_cv_prog_STRIP+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   if test -n "$STRIP"; then
11391   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11395 do
11396   IFS=$as_save_IFS
11397   test -z "$as_dir" && as_dir=.
11398   for ac_exec_ext in '' $ac_executable_extensions; do
11399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402     break 2
11403   fi
11404 done
11405 done
11406
11407 fi
11408 fi
11409 STRIP=$ac_cv_prog_STRIP
11410 if test -n "$STRIP"; then
11411   echo "$as_me:$LINENO: result: $STRIP" >&5
11412 echo "${ECHO_T}$STRIP" >&6
11413 else
11414   echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6
11416 fi
11417
11418 fi
11419 if test -z "$ac_cv_prog_STRIP"; then
11420   ac_ct_STRIP=$STRIP
11421   # Extract the first word of "strip", so it can be a program name with args.
11422 set dummy strip; ac_word=$2
11423 echo "$as_me:$LINENO: checking for $ac_word" >&5
11424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   if test -n "$ac_ct_STRIP"; then
11429   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11430 else
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11433 do
11434   IFS=$as_save_IFS
11435   test -z "$as_dir" && as_dir=.
11436   for ac_exec_ext in '' $ac_executable_extensions; do
11437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438     ac_cv_prog_ac_ct_STRIP="strip"
11439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440     break 2
11441   fi
11442 done
11443 done
11444
11445   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11446 fi
11447 fi
11448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11449 if test -n "$ac_ct_STRIP"; then
11450   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11451 echo "${ECHO_T}$ac_ct_STRIP" >&6
11452 else
11453   echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11455 fi
11456
11457   STRIP=$ac_ct_STRIP
11458 else
11459   STRIP="$ac_cv_prog_STRIP"
11460 fi
11461
11462
11463 old_CC="$CC"
11464 old_CFLAGS="$CFLAGS"
11465
11466 # Set sane defaults for various variables
11467 test -z "$AR" && AR=ar
11468 test -z "$AR_FLAGS" && AR_FLAGS=cru
11469 test -z "$AS" && AS=as
11470 test -z "$CC" && CC=cc
11471 test -z "$LTCC" && LTCC=$CC
11472 test -z "$DLLTOOL" && DLLTOOL=dlltool
11473 test -z "$LD" && LD=ld
11474 test -z "$LN_S" && LN_S="ln -s"
11475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11476 test -z "$NM" && NM=nm
11477 test -z "$SED" && SED=sed
11478 test -z "$OBJDUMP" && OBJDUMP=objdump
11479 test -z "$RANLIB" && RANLIB=:
11480 test -z "$STRIP" && STRIP=:
11481 test -z "$ac_objext" && ac_objext=o
11482
11483 # Determine commands to create old-style static archives.
11484 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11485 old_postinstall_cmds='chmod 644 $oldlib'
11486 old_postuninstall_cmds=
11487
11488 if test -n "$RANLIB"; then
11489   case $host_os in
11490   openbsd*)
11491     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11492     ;;
11493   *)
11494     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11495     ;;
11496   esac
11497   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11498 fi
11499
11500 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11501
11502 # Only perform the check for file, if the check method requires it
11503 case $deplibs_check_method in
11504 file_magic*)
11505   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11506     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11507 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511   case $MAGIC_CMD in
11512 [\\/*] |  ?:[\\/]*)
11513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11514   ;;
11515 *)
11516   lt_save_MAGIC_CMD="$MAGIC_CMD"
11517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11519   for ac_dir in $ac_dummy; do
11520     IFS="$lt_save_ifs"
11521     test -z "$ac_dir" && ac_dir=.
11522     if test -f $ac_dir/${ac_tool_prefix}file; then
11523       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11524       if test -n "$file_magic_test_file"; then
11525         case $deplibs_check_method in
11526         "file_magic "*)
11527           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11530             $EGREP "$file_magic_regex" > /dev/null; then
11531             :
11532           else
11533             cat <<EOF 1>&2
11534
11535 *** Warning: the command libtool uses to detect shared libraries,
11536 *** $file_magic_cmd, produces output that libtool cannot recognize.
11537 *** The result is that libtool may fail to recognize shared libraries
11538 *** as such.  This will affect the creation of libtool libraries that
11539 *** depend on shared libraries, but programs linked with such libtool
11540 *** libraries will work regardless of this problem.  Nevertheless, you
11541 *** may want to report the problem to your system manager and/or to
11542 *** bug-libtool@gnu.org
11543
11544 EOF
11545           fi ;;
11546         esac
11547       fi
11548       break
11549     fi
11550   done
11551   IFS="$lt_save_ifs"
11552   MAGIC_CMD="$lt_save_MAGIC_CMD"
11553   ;;
11554 esac
11555 fi
11556
11557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11558 if test -n "$MAGIC_CMD"; then
11559   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11560 echo "${ECHO_T}$MAGIC_CMD" >&6
11561 else
11562   echo "$as_me:$LINENO: result: no" >&5
11563 echo "${ECHO_T}no" >&6
11564 fi
11565
11566 if test -z "$lt_cv_path_MAGIC_CMD"; then
11567   if test -n "$ac_tool_prefix"; then
11568     echo "$as_me:$LINENO: checking for file" >&5
11569 echo $ECHO_N "checking for file... $ECHO_C" >&6
11570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   case $MAGIC_CMD in
11574 [\\/*] |  ?:[\\/]*)
11575   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11576   ;;
11577 *)
11578   lt_save_MAGIC_CMD="$MAGIC_CMD"
11579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11581   for ac_dir in $ac_dummy; do
11582     IFS="$lt_save_ifs"
11583     test -z "$ac_dir" && ac_dir=.
11584     if test -f $ac_dir/file; then
11585       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11586       if test -n "$file_magic_test_file"; then
11587         case $deplibs_check_method in
11588         "file_magic "*)
11589           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11590           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11592             $EGREP "$file_magic_regex" > /dev/null; then
11593             :
11594           else
11595             cat <<EOF 1>&2
11596
11597 *** Warning: the command libtool uses to detect shared libraries,
11598 *** $file_magic_cmd, produces output that libtool cannot recognize.
11599 *** The result is that libtool may fail to recognize shared libraries
11600 *** as such.  This will affect the creation of libtool libraries that
11601 *** depend on shared libraries, but programs linked with such libtool
11602 *** libraries will work regardless of this problem.  Nevertheless, you
11603 *** may want to report the problem to your system manager and/or to
11604 *** bug-libtool@gnu.org
11605
11606 EOF
11607           fi ;;
11608         esac
11609       fi
11610       break
11611     fi
11612   done
11613   IFS="$lt_save_ifs"
11614   MAGIC_CMD="$lt_save_MAGIC_CMD"
11615   ;;
11616 esac
11617 fi
11618
11619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11620 if test -n "$MAGIC_CMD"; then
11621   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11622 echo "${ECHO_T}$MAGIC_CMD" >&6
11623 else
11624   echo "$as_me:$LINENO: result: no" >&5
11625 echo "${ECHO_T}no" >&6
11626 fi
11627
11628   else
11629     MAGIC_CMD=:
11630   fi
11631 fi
11632
11633   fi
11634   ;;
11635 esac
11636
11637 enable_dlopen=yes
11638 enable_win32_dll=no
11639
11640 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11641 if test "${enable_libtool_lock+set}" = set; then
11642   enableval="$enable_libtool_lock"
11643
11644 fi;
11645 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11646
11647
11648 # Check whether --with-pic or --without-pic was given.
11649 if test "${with_pic+set}" = set; then
11650   withval="$with_pic"
11651   pic_mode="$withval"
11652 else
11653   pic_mode=default
11654 fi;
11655 test -z "$pic_mode" && pic_mode=default
11656
11657 # Use C for the default configuration in the libtool script
11658 tagname=
11659 lt_save_CC="$CC"
11660 ac_ext=c
11661 ac_cpp='$CPP $CPPFLAGS'
11662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665
11666
11667 # Source file extension for C test sources.
11668 ac_ext=c
11669
11670 # Object file extension for compiled C test sources.
11671 objext=o
11672 objext=$objext
11673
11674 # Code to be used in simple compile tests
11675 lt_simple_compile_test_code="int some_variable = 0;\n"
11676
11677 # Code to be used in simple link tests
11678 lt_simple_link_test_code='int main(){return(0);}\n'
11679
11680
11681 # If no C compiler was specified, use CC.
11682 LTCC=${LTCC-"$CC"}
11683
11684 # Allow CC to be a program name with arguments.
11685 compiler=$CC
11686
11687
11688 #
11689 # Check for any special shared library compilation flags.
11690 #
11691 lt_prog_cc_shlib=
11692 if test "$GCC" = no; then
11693   case $host_os in
11694   sco3.2v5*)
11695     lt_prog_cc_shlib='-belf'
11696     ;;
11697   esac
11698 fi
11699 if test -n "$lt_prog_cc_shlib"; then
11700   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11701 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11702   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11703   else
11704     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11705 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11706     lt_cv_prog_cc_can_build_shared=no
11707   fi
11708 fi
11709
11710
11711 #
11712 # Check to make sure the static flag actually works.
11713 #
11714 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11715 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11716 if test "${lt_prog_compiler_static_works+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   lt_prog_compiler_static_works=no
11720    save_LDFLAGS="$LDFLAGS"
11721    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11722    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11723    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11724      # The compiler can only warn and ignore the option if not recognized
11725      # So say no if there are warnings
11726      if test -s conftest.err; then
11727        # Append any errors to the config.log.
11728        cat conftest.err 1>&5
11729      else
11730        lt_prog_compiler_static_works=yes
11731      fi
11732    fi
11733    $rm conftest*
11734    LDFLAGS="$save_LDFLAGS"
11735
11736 fi
11737 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11738 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11739
11740 if test x"$lt_prog_compiler_static_works" = xyes; then
11741     :
11742 else
11743     lt_prog_compiler_static=
11744 fi
11745
11746
11747
11748
11749 lt_prog_compiler_no_builtin_flag=
11750
11751 if test "$GCC" = yes; then
11752   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11753
11754
11755 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11756 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   lt_cv_prog_compiler_rtti_exceptions=no
11761   ac_outfile=conftest.$ac_objext
11762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11763    lt_compiler_flag="-fno-rtti -fno-exceptions"
11764    # Insert the option either (1) after the last *FLAGS variable, or
11765    # (2) before a word containing "conftest.", or (3) at the end.
11766    # Note that $ac_compile itself does not contain backslashes and begins
11767    # with a dollar sign (not a hyphen), so the echo should work correctly.
11768    # The option is referenced via a variable to avoid confusing sed.
11769    lt_compile=`echo "$ac_compile" | $SED \
11770    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11772    -e 's:$: $lt_compiler_flag:'`
11773    (eval echo "\"\$as_me:11773: $lt_compile\"" >&5)
11774    (eval "$lt_compile" 2>conftest.err)
11775    ac_status=$?
11776    cat conftest.err >&5
11777    echo "$as_me:11777: \$? = $ac_status" >&5
11778    if (exit $ac_status) && test -s "$ac_outfile"; then
11779      # The compiler can only warn and ignore the option if not recognized
11780      # So say no if there are warnings
11781      if test ! -s conftest.err; then
11782        lt_cv_prog_compiler_rtti_exceptions=yes
11783      fi
11784    fi
11785    $rm conftest*
11786
11787 fi
11788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11790
11791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11792     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11793 else
11794     :
11795 fi
11796
11797 fi
11798
11799 lt_prog_compiler_wl=
11800 lt_prog_compiler_pic=
11801 lt_prog_compiler_static=
11802
11803 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11805
11806   if test "$GCC" = yes; then
11807     lt_prog_compiler_wl='-Wl,'
11808     lt_prog_compiler_static='-static'
11809
11810     case $host_os in
11811       aix*)
11812       # All AIX code is PIC.
11813       if test "$host_cpu" = ia64; then
11814         # AIX 5 now supports IA64 processor
11815         lt_prog_compiler_static='-Bstatic'
11816       fi
11817       ;;
11818
11819     amigaos*)
11820       # FIXME: we need at least 68020 code to build shared libraries, but
11821       # adding the `-m68020' flag to GCC prevents building anything better,
11822       # like `-m68040'.
11823       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11824       ;;
11825
11826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11827       # PIC is the default for these OSes.
11828       ;;
11829
11830     mingw* | pw32* | os2*)
11831       # This hack is so that the source file can tell whether it is being
11832       # built for inclusion in a dll (and should export symbols for example).
11833       lt_prog_compiler_pic='-DDLL_EXPORT'
11834       ;;
11835
11836     darwin* | rhapsody*)
11837       # PIC is the default on this platform
11838       # Common symbols not allowed in MH_DYLIB files
11839       lt_prog_compiler_pic='-fno-common'
11840       ;;
11841
11842     msdosdjgpp*)
11843       # Just because we use GCC doesn't mean we suddenly get shared libraries
11844       # on systems that don't support them.
11845       lt_prog_compiler_can_build_shared=no
11846       enable_shared=no
11847       ;;
11848
11849     sysv4*MP*)
11850       if test -d /usr/nec; then
11851         lt_prog_compiler_pic=-Kconform_pic
11852       fi
11853       ;;
11854
11855     hpux*)
11856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11857       # not for PA HP-UX.
11858       case "$host_cpu" in
11859       hppa*64*|ia64*)
11860         # +Z the default
11861         ;;
11862       *)
11863         lt_prog_compiler_pic='-fPIC'
11864         ;;
11865       esac
11866       ;;
11867
11868     *)
11869       lt_prog_compiler_pic='-fPIC'
11870       ;;
11871     esac
11872   else
11873     # PORTME Check for flag to pass linker flags through the system compiler.
11874     case $host_os in
11875     aix*)
11876       lt_prog_compiler_wl='-Wl,'
11877       if test "$host_cpu" = ia64; then
11878         # AIX 5 now supports IA64 processor
11879         lt_prog_compiler_static='-Bstatic'
11880       else
11881         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11882       fi
11883       ;;
11884       darwin*)
11885         # PIC is the default on this platform
11886         # Common symbols not allowed in MH_DYLIB files
11887        case "$cc_basename" in
11888          xlc*)
11889          lt_prog_compiler_pic='-qnocommon'
11890          lt_prog_compiler_wl='-Wl,'
11891          ;;
11892        esac
11893        ;;
11894
11895     mingw* | pw32* | os2*)
11896       # This hack is so that the source file can tell whether it is being
11897       # built for inclusion in a dll (and should export symbols for example).
11898       lt_prog_compiler_pic='-DDLL_EXPORT'
11899       ;;
11900
11901     hpux9* | hpux10* | hpux11*)
11902       lt_prog_compiler_wl='-Wl,'
11903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11904       # not for PA HP-UX.
11905       case "$host_cpu" in
11906       hppa*64*|ia64*)
11907         # +Z the default
11908         ;;
11909       *)
11910         lt_prog_compiler_pic='+Z'
11911         ;;
11912       esac
11913       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11914       lt_prog_compiler_static='${wl}-a ${wl}archive'
11915       ;;
11916
11917     irix5* | irix6* | nonstopux*)
11918       lt_prog_compiler_wl='-Wl,'
11919       # PIC (with -KPIC) is the default.
11920       lt_prog_compiler_static='-non_shared'
11921       ;;
11922
11923     newsos6)
11924       lt_prog_compiler_pic='-KPIC'
11925       lt_prog_compiler_static='-Bstatic'
11926       ;;
11927
11928     linux*)
11929       case $CC in
11930       icc* | ecc*)
11931         lt_prog_compiler_wl='-Wl,'
11932         lt_prog_compiler_pic='-KPIC'
11933         lt_prog_compiler_static='-static'
11934         ;;
11935       ccc*)
11936         lt_prog_compiler_wl='-Wl,'
11937         # All Alpha code is PIC.
11938         lt_prog_compiler_static='-non_shared'
11939         ;;
11940       esac
11941       ;;
11942
11943     osf3* | osf4* | osf5*)
11944       lt_prog_compiler_wl='-Wl,'
11945       # All OSF/1 code is PIC.
11946       lt_prog_compiler_static='-non_shared'
11947       ;;
11948
11949     sco3.2v5*)
11950       lt_prog_compiler_pic='-Kpic'
11951       lt_prog_compiler_static='-dn'
11952       ;;
11953
11954     solaris*)
11955       lt_prog_compiler_wl='-Wl,'
11956       lt_prog_compiler_pic='-KPIC'
11957       lt_prog_compiler_static='-Bstatic'
11958       ;;
11959
11960     sunos4*)
11961       lt_prog_compiler_wl='-Qoption ld '
11962       lt_prog_compiler_pic='-PIC'
11963       lt_prog_compiler_static='-Bstatic'
11964       ;;
11965
11966     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11967       lt_prog_compiler_wl='-Wl,'
11968       lt_prog_compiler_pic='-KPIC'
11969       lt_prog_compiler_static='-Bstatic'
11970       ;;
11971
11972     sysv4*MP*)
11973       if test -d /usr/nec ;then
11974         lt_prog_compiler_pic='-Kconform_pic'
11975         lt_prog_compiler_static='-Bstatic'
11976       fi
11977       ;;
11978
11979     uts4*)
11980       lt_prog_compiler_pic='-pic'
11981       lt_prog_compiler_static='-Bstatic'
11982       ;;
11983
11984     *)
11985       lt_prog_compiler_can_build_shared=no
11986       ;;
11987     esac
11988   fi
11989
11990 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11991 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11992
11993 #
11994 # Check to make sure the PIC flag actually works.
11995 #
11996 if test -n "$lt_prog_compiler_pic"; then
11997
11998 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12000 if test "${lt_prog_compiler_pic_works+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   lt_prog_compiler_pic_works=no
12004   ac_outfile=conftest.$ac_objext
12005    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12006    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12007    # Insert the option either (1) after the last *FLAGS variable, or
12008    # (2) before a word containing "conftest.", or (3) at the end.
12009    # Note that $ac_compile itself does not contain backslashes and begins
12010    # with a dollar sign (not a hyphen), so the echo should work correctly.
12011    # The option is referenced via a variable to avoid confusing sed.
12012    lt_compile=`echo "$ac_compile" | $SED \
12013    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12015    -e 's:$: $lt_compiler_flag:'`
12016    (eval echo "\"\$as_me:12016: $lt_compile\"" >&5)
12017    (eval "$lt_compile" 2>conftest.err)
12018    ac_status=$?
12019    cat conftest.err >&5
12020    echo "$as_me:12020: \$? = $ac_status" >&5
12021    if (exit $ac_status) && test -s "$ac_outfile"; then
12022      # The compiler can only warn and ignore the option if not recognized
12023      # So say no if there are warnings
12024      if test ! -s conftest.err; then
12025        lt_prog_compiler_pic_works=yes
12026      fi
12027    fi
12028    $rm conftest*
12029
12030 fi
12031 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12032 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12033
12034 if test x"$lt_prog_compiler_pic_works" = xyes; then
12035     case $lt_prog_compiler_pic in
12036      "" | " "*) ;;
12037      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12038      esac
12039 else
12040     lt_prog_compiler_pic=
12041      lt_prog_compiler_can_build_shared=no
12042 fi
12043
12044 fi
12045 case "$host_os" in
12046   # For platforms which do not support PIC, -DPIC is meaningless:
12047   *djgpp*)
12048     lt_prog_compiler_pic=
12049     ;;
12050   *)
12051     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12052     ;;
12053 esac
12054
12055 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12056 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12057 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12058   echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060   lt_cv_prog_compiler_c_o=no
12061    $rm -r conftest 2>/dev/null
12062    mkdir conftest
12063    cd conftest
12064    mkdir out
12065    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12066
12067    lt_compiler_flag="-o out/conftest2.$ac_objext"
12068    # Insert the option either (1) after the last *FLAGS variable, or
12069    # (2) before a word containing "conftest.", or (3) at the end.
12070    # Note that $ac_compile itself does not contain backslashes and begins
12071    # with a dollar sign (not a hyphen), so the echo should work correctly.
12072    lt_compile=`echo "$ac_compile" | $SED \
12073    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12075    -e 's:$: $lt_compiler_flag:'`
12076    (eval echo "\"\$as_me:12076: $lt_compile\"" >&5)
12077    (eval "$lt_compile" 2>out/conftest.err)
12078    ac_status=$?
12079    cat out/conftest.err >&5
12080    echo "$as_me:12080: \$? = $ac_status" >&5
12081    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12082    then
12083      # The compiler can only warn and ignore the option if not recognized
12084      # So say no if there are warnings
12085      if test ! -s out/conftest.err; then
12086        lt_cv_prog_compiler_c_o=yes
12087      fi
12088    fi
12089    chmod u+w .
12090    $rm conftest*
12091    # SGI C++ compiler will create directory out/ii_files/ for
12092    # template instantiation
12093    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12094    $rm out/* && rmdir out
12095    cd ..
12096    rmdir conftest
12097    $rm conftest*
12098
12099 fi
12100 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12101 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12102
12103
12104 hard_links="nottested"
12105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12106   # do not overwrite the value of need_locks provided by the user
12107   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12108 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12109   hard_links=yes
12110   $rm conftest*
12111   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12112   touch conftest.a
12113   ln conftest.a conftest.b 2>&5 || hard_links=no
12114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12115   echo "$as_me:$LINENO: result: $hard_links" >&5
12116 echo "${ECHO_T}$hard_links" >&6
12117   if test "$hard_links" = no; then
12118     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12119 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12120     need_locks=warn
12121   fi
12122 else
12123   need_locks=no
12124 fi
12125
12126 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12128
12129   runpath_var=
12130   allow_undefined_flag=
12131   enable_shared_with_static_runtimes=no
12132   archive_cmds=
12133   archive_expsym_cmds=
12134   old_archive_From_new_cmds=
12135   old_archive_from_expsyms_cmds=
12136   export_dynamic_flag_spec=
12137   whole_archive_flag_spec=
12138   thread_safe_flag_spec=
12139   hardcode_libdir_flag_spec=
12140   hardcode_libdir_flag_spec_ld=
12141   hardcode_libdir_separator=
12142   hardcode_direct=no
12143   hardcode_minus_L=no
12144   hardcode_shlibpath_var=unsupported
12145   link_all_deplibs=unknown
12146   hardcode_automatic=no
12147   module_cmds=
12148   module_expsym_cmds=
12149   always_export_symbols=no
12150   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12151   # include_expsyms should be a list of space-separated symbols to be *always*
12152   # included in the symbol list
12153   include_expsyms=
12154   # exclude_expsyms can be an extended regexp of symbols to exclude
12155   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12156   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12157   # as well as any symbol that contains `d'.
12158   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12159   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12160   # platforms (ab)use it in PIC code, but their linkers get confused if
12161   # the symbol is explicitly referenced.  Since portable code cannot
12162   # rely on this symbol name, it's probably fine to never include it in
12163   # preloaded symbol tables.
12164   extract_expsyms_cmds=
12165
12166   case $host_os in
12167   cygwin* | mingw* | pw32*)
12168     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12169     # When not using gcc, we currently assume that we are using
12170     # Microsoft Visual C++.
12171     if test "$GCC" != yes; then
12172       with_gnu_ld=no
12173     fi
12174     ;;
12175   openbsd*)
12176     with_gnu_ld=no
12177     ;;
12178   esac
12179
12180   ld_shlibs=yes
12181   if test "$with_gnu_ld" = yes; then
12182     # If archive_cmds runs LD, not CC, wlarc should be empty
12183     wlarc='${wl}'
12184
12185     # See if GNU ld supports shared libraries.
12186     case $host_os in
12187     aix3* | aix4* | aix5*)
12188       # On AIX/PPC, the GNU linker is very broken
12189       if test "$host_cpu" != ia64; then
12190         ld_shlibs=no
12191         cat <<EOF 1>&2
12192
12193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12194 *** to be unable to reliably create shared libraries on AIX.
12195 *** Therefore, libtool is disabling shared libraries support.  If you
12196 *** really care for shared libraries, you may want to modify your PATH
12197 *** so that a non-GNU linker is found, and then restart.
12198
12199 EOF
12200       fi
12201       ;;
12202
12203     amigaos*)
12204       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)'
12205       hardcode_libdir_flag_spec='-L$libdir'
12206       hardcode_minus_L=yes
12207
12208       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12209       # that the semantics of dynamic libraries on AmigaOS, at least up
12210       # to version 4, is to share data among multiple programs linked
12211       # with the same dynamic library.  Since this doesn't match the
12212       # behavior of shared libraries on other platforms, we can't use
12213       # them.
12214       ld_shlibs=no
12215       ;;
12216
12217     beos*)
12218       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12219         allow_undefined_flag=unsupported
12220         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12221         # support --undefined.  This deserves some investigation.  FIXME
12222         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223       else
12224         ld_shlibs=no
12225       fi
12226       ;;
12227
12228     cygwin* | mingw* | pw32*)
12229       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12230       # as there is no search path for DLLs.
12231       hardcode_libdir_flag_spec='-L$libdir'
12232       allow_undefined_flag=unsupported
12233       always_export_symbols=no
12234       enable_shared_with_static_runtimes=yes
12235       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12236
12237       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12239         # If the export-symbols file already is a .def file (1st line
12240         # is EXPORTS), use it as is; otherwise, prepend...
12241         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12242           cp $export_symbols $output_objdir/$soname.def;
12243         else
12244           echo EXPORTS > $output_objdir/$soname.def;
12245           cat $export_symbols >> $output_objdir/$soname.def;
12246         fi~
12247         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12248       else
12249         ld_shlibs=no
12250       fi
12251       ;;
12252
12253     netbsd*)
12254       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12255         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12256         wlarc=
12257       else
12258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12260       fi
12261       ;;
12262
12263     solaris* | sysv5*)
12264       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12265         ld_shlibs=no
12266         cat <<EOF 1>&2
12267
12268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12269 *** create shared libraries on Solaris systems.  Therefore, libtool
12270 *** is disabling shared libraries support.  We urge you to upgrade GNU
12271 *** binutils to release 2.9.1 or newer.  Another option is to modify
12272 *** your PATH or compiler configuration so that the native linker is
12273 *** used, and then restart.
12274
12275 EOF
12276       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12277         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12279       else
12280         ld_shlibs=no
12281       fi
12282       ;;
12283
12284     sunos4*)
12285       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12286       wlarc=
12287       hardcode_direct=yes
12288       hardcode_shlibpath_var=no
12289       ;;
12290
12291   linux*)
12292     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12293         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12294         archive_cmds="$tmp_archive_cmds"
12295       supports_anon_versioning=no
12296       case `$LD -v 2>/dev/null` in
12297         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12298         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12299         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12300         *\ 2.11.*) ;; # other 2.11 versions
12301         *) supports_anon_versioning=yes ;;
12302       esac
12303       if test $supports_anon_versioning = yes; then
12304         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12306 $echo "local: *; };" >> $output_objdir/$libname.ver~
12307         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12308       else
12309         archive_expsym_cmds="$tmp_archive_cmds"
12310       fi
12311     else
12312       ld_shlibs=no
12313     fi
12314     ;;
12315
12316     *)
12317       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12318         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12320       else
12321         ld_shlibs=no
12322       fi
12323       ;;
12324     esac
12325
12326     if test "$ld_shlibs" = yes; then
12327       runpath_var=LD_RUN_PATH
12328       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12329       export_dynamic_flag_spec='${wl}--export-dynamic'
12330       # ancient GNU ld didn't support --whole-archive et. al.
12331       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12332         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12333       else
12334         whole_archive_flag_spec=
12335       fi
12336     fi
12337   else
12338     # PORTME fill in a description of your system's linker (not GNU ld)
12339     case $host_os in
12340     aix3*)
12341       allow_undefined_flag=unsupported
12342       always_export_symbols=yes
12343       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'
12344       # Note: this linker hardcodes the directories in LIBPATH if there
12345       # are no directories specified by -L.
12346       hardcode_minus_L=yes
12347       if test "$GCC" = yes && test -z "$link_static_flag"; then
12348         # Neither direct hardcoding nor static linking is supported with a
12349         # broken collect2.
12350         hardcode_direct=unsupported
12351       fi
12352       ;;
12353
12354     aix4* | aix5*)
12355       if test "$host_cpu" = ia64; then
12356         # On IA64, the linker does run time linking by default, so we don't
12357         # have to do anything special.
12358         aix_use_runtimelinking=no
12359         exp_sym_flag='-Bexport'
12360         no_entry_flag=""
12361       else
12362         # If we're using GNU nm, then we don't want the "-C" option.
12363         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12364         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12365           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'
12366         else
12367           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'
12368         fi
12369         aix_use_runtimelinking=no
12370
12371         # Test if we are trying to use run time linking or normal
12372         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12373         # need to do runtime linking.
12374         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12375           for ld_flag in $LDFLAGS; do
12376           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12377             aix_use_runtimelinking=yes
12378             break
12379           fi
12380           done
12381         esac
12382
12383         exp_sym_flag='-bexport'
12384         no_entry_flag='-bnoentry'
12385       fi
12386
12387       # When large executables or shared objects are built, AIX ld can
12388       # have problems creating the table of contents.  If linking a library
12389       # or program results in "error TOC overflow" add -mminimal-toc to
12390       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12391       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12392
12393       archive_cmds=''
12394       hardcode_direct=yes
12395       hardcode_libdir_separator=':'
12396       link_all_deplibs=yes
12397
12398       if test "$GCC" = yes; then
12399         case $host_os in aix4.012|aix4.012.*)
12400         # We only want to do this on AIX 4.2 and lower, the check
12401         # below for broken collect2 doesn't work under 4.3+
12402           collect2name=`${CC} -print-prog-name=collect2`
12403           if test -f "$collect2name" && \
12404            strings "$collect2name" | grep resolve_lib_name >/dev/null
12405           then
12406           # We have reworked collect2
12407           hardcode_direct=yes
12408           else
12409           # We have old collect2
12410           hardcode_direct=unsupported
12411           # It fails to find uninstalled libraries when the uninstalled
12412           # path is not listed in the libpath.  Setting hardcode_minus_L
12413           # to unsupported forces relinking
12414           hardcode_minus_L=yes
12415           hardcode_libdir_flag_spec='-L$libdir'
12416           hardcode_libdir_separator=
12417           fi
12418         esac
12419         shared_flag='-shared'
12420       else
12421         # not using gcc
12422         if test "$host_cpu" = ia64; then
12423         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12424         # chokes on -Wl,-G. The following line is correct:
12425           shared_flag='-G'
12426         else
12427         if test "$aix_use_runtimelinking" = yes; then
12428             shared_flag='${wl}-G'
12429           else
12430             shared_flag='${wl}-bM:SRE'
12431         fi
12432         fi
12433       fi
12434
12435       # It seems that -bexpall does not export symbols beginning with
12436       # underscore (_), so it is better to generate a list of symbols to export.
12437       always_export_symbols=yes
12438       if test "$aix_use_runtimelinking" = yes; then
12439         # Warning - without using the other runtime loading flags (-brtl),
12440         # -berok will link without error, but may produce a broken library.
12441         allow_undefined_flag='-berok'
12442        # Determine the default libpath from the value encoded in an empty executable.
12443        cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449
12450 int
12451 main ()
12452 {
12453
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460   (eval $ac_link) 2>conftest.er1
12461   ac_status=$?
12462   grep -v '^ *+' conftest.er1 >conftest.err
12463   rm -f conftest.er1
12464   cat conftest.err >&5
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); } &&
12467          { ac_try='test -z "$ac_c_werror_flag"
12468                          || test ! -s conftest.err'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; } &&
12474          { ac_try='test -s conftest$ac_exeext'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; }; then
12480
12481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12482 }'`
12483 # Check for a 64-bit object if we didn't find anything.
12484 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; }
12485 }'`; fi
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 fi
12491 rm -f conftest.err conftest.$ac_objext \
12492       conftest$ac_exeext conftest.$ac_ext
12493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12494
12495        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12496         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"
12497        else
12498         if test "$host_cpu" = ia64; then
12499           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12500           allow_undefined_flag="-z nodefs"
12501           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"
12502         else
12503          # Determine the default libpath from the value encoded in an empty executable.
12504          cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510
12511 int
12512 main ()
12513 {
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521   (eval $ac_link) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"
12529                          || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541
12542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12543 }'`
12544 # Check for a 64-bit object if we didn't find anything.
12545 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; }
12546 }'`; fi
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12555
12556          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12557           # Warning - without using the other run time loading flags,
12558           # -berok will link without error, but may produce a broken library.
12559           no_undefined_flag=' ${wl}-bernotok'
12560           allow_undefined_flag=' ${wl}-berok'
12561           # -bexpall does not export symbols beginning with underscore (_)
12562           always_export_symbols=yes
12563           # Exported symbols can be pulled into shared objects from archives
12564           whole_archive_flag_spec=' '
12565           archive_cmds_need_lc=yes
12566           # This is similar to how AIX traditionally builds it's shared libraries.
12567           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'
12568         fi
12569       fi
12570       ;;
12571
12572     amigaos*)
12573       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)'
12574       hardcode_libdir_flag_spec='-L$libdir'
12575       hardcode_minus_L=yes
12576       # see comment about different semantics on the GNU ld section
12577       ld_shlibs=no
12578       ;;
12579
12580     bsdi[45]*)
12581       export_dynamic_flag_spec=-rdynamic
12582       ;;
12583
12584     cygwin* | mingw* | pw32*)
12585       # When not using gcc, we currently assume that we are using
12586       # Microsoft Visual C++.
12587       # hardcode_libdir_flag_spec is actually meaningless, as there is
12588       # no search path for DLLs.
12589       hardcode_libdir_flag_spec=' '
12590       allow_undefined_flag=unsupported
12591       # Tell ltmain to make .lib files, not .a files.
12592       libext=lib
12593       # Tell ltmain to make .dll files, not .so files.
12594       shrext_cmds=".dll"
12595       # FIXME: Setting linknames here is a bad hack.
12596       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12597       # The linker will automatically build a .lib file if we build a DLL.
12598       old_archive_From_new_cmds='true'
12599       # FIXME: Should let the user specify the lib program.
12600       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12601       fix_srcfile_path='`cygpath -w "$srcfile"`'
12602       enable_shared_with_static_runtimes=yes
12603       ;;
12604
12605     darwin* | rhapsody*)
12606       case "$host_os" in
12607         rhapsody* | darwin1.[012])
12608          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12609          ;;
12610        *) # Darwin 1.3 on
12611          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12612            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12613          else
12614            case ${MACOSX_DEPLOYMENT_TARGET} in
12615              10.[012])
12616                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12617                ;;
12618              10.*)
12619                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12620                ;;
12621            esac
12622          fi
12623          ;;
12624       esac
12625       archive_cmds_need_lc=no
12626       hardcode_direct=no
12627       hardcode_automatic=yes
12628       hardcode_shlibpath_var=unsupported
12629       whole_archive_flag_spec=''
12630       link_all_deplibs=yes
12631     if test "$GCC" = yes ; then
12632         output_verbose_link_cmd='echo'
12633         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12634       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12635       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12636       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}'
12637       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}'
12638     else
12639       case "$cc_basename" in
12640         xlc*)
12641          output_verbose_link_cmd='echo'
12642          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12643          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12644           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12645          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}'
12646           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}'
12647           ;;
12648        *)
12649          ld_shlibs=no
12650           ;;
12651       esac
12652     fi
12653       ;;
12654
12655     dgux*)
12656       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657       hardcode_libdir_flag_spec='-L$libdir'
12658       hardcode_shlibpath_var=no
12659       ;;
12660
12661     freebsd1*)
12662       ld_shlibs=no
12663       ;;
12664
12665     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12666     # support.  Future versions do this automatically, but an explicit c++rt0.o
12667     # does not break anything, and helps significantly (at the cost of a little
12668     # extra space).
12669     freebsd2.2*)
12670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12671       hardcode_libdir_flag_spec='-R$libdir'
12672       hardcode_direct=yes
12673       hardcode_shlibpath_var=no
12674       ;;
12675
12676     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12677     freebsd2*)
12678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12679       hardcode_direct=yes
12680       hardcode_minus_L=yes
12681       hardcode_shlibpath_var=no
12682       ;;
12683
12684     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12685     freebsd* | kfreebsd*-gnu)
12686       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12687       hardcode_libdir_flag_spec='-R$libdir'
12688       hardcode_direct=yes
12689       hardcode_shlibpath_var=no
12690       ;;
12691
12692     hpux9*)
12693       if test "$GCC" = yes; then
12694         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'
12695       else
12696         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'
12697       fi
12698       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12699       hardcode_libdir_separator=:
12700       hardcode_direct=yes
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       export_dynamic_flag_spec='${wl}-E'
12706       ;;
12707
12708     hpux10* | hpux11*)
12709       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12710         case "$host_cpu" in
12711         hppa*64*|ia64*)
12712           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12713           ;;
12714         *)
12715           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12716           ;;
12717         esac
12718       else
12719         case "$host_cpu" in
12720         hppa*64*|ia64*)
12721           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12722           ;;
12723         *)
12724           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12725           ;;
12726         esac
12727       fi
12728       if test "$with_gnu_ld" = no; then
12729         case "$host_cpu" in
12730         hppa*64*)
12731           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12732           hardcode_libdir_flag_spec_ld='+b $libdir'
12733           hardcode_libdir_separator=:
12734           hardcode_direct=no
12735           hardcode_shlibpath_var=no
12736           ;;
12737         ia64*)
12738           hardcode_libdir_flag_spec='-L$libdir'
12739           hardcode_direct=no
12740           hardcode_shlibpath_var=no
12741
12742           # hardcode_minus_L: Not really in the search PATH,
12743           # but as the default location of the library.
12744           hardcode_minus_L=yes
12745           ;;
12746         *)
12747           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12748           hardcode_libdir_separator=:
12749           hardcode_direct=yes
12750           export_dynamic_flag_spec='${wl}-E'
12751
12752           # hardcode_minus_L: Not really in the search PATH,
12753           # but as the default location of the library.
12754           hardcode_minus_L=yes
12755           ;;
12756         esac
12757       fi
12758       ;;
12759
12760     irix5* | irix6* | nonstopux*)
12761       if test "$GCC" = yes; then
12762         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'
12763       else
12764         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'
12765         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12766       fi
12767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12768       hardcode_libdir_separator=:
12769       link_all_deplibs=yes
12770       ;;
12771
12772     netbsd*)
12773       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12775       else
12776         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12777       fi
12778       hardcode_libdir_flag_spec='-R$libdir'
12779       hardcode_direct=yes
12780       hardcode_shlibpath_var=no
12781       ;;
12782
12783     newsos6)
12784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12785       hardcode_direct=yes
12786       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12787       hardcode_libdir_separator=:
12788       hardcode_shlibpath_var=no
12789       ;;
12790
12791     openbsd*)
12792       hardcode_direct=yes
12793       hardcode_shlibpath_var=no
12794       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12796         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12797         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12798         export_dynamic_flag_spec='${wl}-E'
12799       else
12800        case $host_os in
12801          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12802            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803            hardcode_libdir_flag_spec='-R$libdir'
12804            ;;
12805          *)
12806            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12807            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12808            ;;
12809        esac
12810       fi
12811       ;;
12812
12813     os2*)
12814       hardcode_libdir_flag_spec='-L$libdir'
12815       hardcode_minus_L=yes
12816       allow_undefined_flag=unsupported
12817       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'
12818       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12819       ;;
12820
12821     osf3*)
12822       if test "$GCC" = yes; then
12823         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12824         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'
12825       else
12826         allow_undefined_flag=' -expect_unresolved \*'
12827         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'
12828       fi
12829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12830       hardcode_libdir_separator=:
12831       ;;
12832
12833     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12834       if test "$GCC" = yes; then
12835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12836         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'
12837         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12838       else
12839         allow_undefined_flag=' -expect_unresolved \*'
12840         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'
12841         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12842         $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'
12843
12844         # Both c and cxx compiler support -rpath directly
12845         hardcode_libdir_flag_spec='-rpath $libdir'
12846       fi
12847       hardcode_libdir_separator=:
12848       ;;
12849
12850     sco3.2v5*)
12851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852       hardcode_shlibpath_var=no
12853       export_dynamic_flag_spec='${wl}-Bexport'
12854       runpath_var=LD_RUN_PATH
12855       hardcode_runpath_var=yes
12856       ;;
12857
12858     solaris*)
12859       no_undefined_flag=' -z text'
12860       if test "$GCC" = yes; then
12861         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12862         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12863           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12864       else
12865         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12867         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12868       fi
12869       hardcode_libdir_flag_spec='-R$libdir'
12870       hardcode_shlibpath_var=no
12871       case $host_os in
12872       solaris2.[0-5] | solaris2.[0-5].*) ;;
12873       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12874         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12875       esac
12876       link_all_deplibs=yes
12877       ;;
12878
12879     sunos4*)
12880       if test "x$host_vendor" = xsequent; then
12881         # Use $CC to link under sequent, because it throws in some extra .o
12882         # files that make .init and .fini sections work.
12883         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12884       else
12885         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12886       fi
12887       hardcode_libdir_flag_spec='-L$libdir'
12888       hardcode_direct=yes
12889       hardcode_minus_L=yes
12890       hardcode_shlibpath_var=no
12891       ;;
12892
12893     sysv4)
12894       case $host_vendor in
12895         sni)
12896           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897           hardcode_direct=yes # is this really true???
12898         ;;
12899         siemens)
12900           ## LD is ld it makes a PLAMLIB
12901           ## CC just makes a GrossModule.
12902           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12903           reload_cmds='$CC -r -o $output$reload_objs'
12904           hardcode_direct=no
12905         ;;
12906         motorola)
12907           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12909         ;;
12910       esac
12911       runpath_var='LD_RUN_PATH'
12912       hardcode_shlibpath_var=no
12913       ;;
12914
12915     sysv4.3*)
12916       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917       hardcode_shlibpath_var=no
12918       export_dynamic_flag_spec='-Bexport'
12919       ;;
12920
12921     sysv4*MP*)
12922       if test -d /usr/nec; then
12923         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924         hardcode_shlibpath_var=no
12925         runpath_var=LD_RUN_PATH
12926         hardcode_runpath_var=yes
12927         ld_shlibs=yes
12928       fi
12929       ;;
12930
12931     sysv4.2uw2*)
12932       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12933       hardcode_direct=yes
12934       hardcode_minus_L=no
12935       hardcode_shlibpath_var=no
12936       hardcode_runpath_var=yes
12937       runpath_var=LD_RUN_PATH
12938       ;;
12939
12940    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12941       no_undefined_flag='${wl}-z ${wl}text'
12942       if test "$GCC" = yes; then
12943         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944       else
12945         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12946       fi
12947       runpath_var='LD_RUN_PATH'
12948       hardcode_shlibpath_var=no
12949       ;;
12950
12951     sysv5*)
12952       no_undefined_flag=' -z text'
12953       # $CC -shared without GNU ld will not create a library from C++
12954       # object files and a static libstdc++, better avoid it by now
12955       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12956       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12957                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12958       hardcode_libdir_flag_spec=
12959       hardcode_shlibpath_var=no
12960       runpath_var='LD_RUN_PATH'
12961       ;;
12962
12963     uts4*)
12964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12965       hardcode_libdir_flag_spec='-L$libdir'
12966       hardcode_shlibpath_var=no
12967       ;;
12968
12969     *)
12970       ld_shlibs=no
12971       ;;
12972     esac
12973   fi
12974
12975 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12976 echo "${ECHO_T}$ld_shlibs" >&6
12977 test "$ld_shlibs" = no && can_build_shared=no
12978
12979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12980 if test "$GCC" = yes; then
12981   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12982 fi
12983
12984 #
12985 # Do we need to explicitly link libc?
12986 #
12987 case "x$archive_cmds_need_lc" in
12988 x|xyes)
12989   # Assume -lc should be added
12990   archive_cmds_need_lc=yes
12991
12992   if test "$enable_shared" = yes && test "$GCC" = yes; then
12993     case $archive_cmds in
12994     *'~'*)
12995       # FIXME: we may have to deal with multi-command sequences.
12996       ;;
12997     '$CC '*)
12998       # Test whether the compiler implicitly links with -lc since on some
12999       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13000       # to ld, don't add -lc before -lgcc.
13001       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13002 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13003       $rm conftest*
13004       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13005
13006       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007   (eval $ac_compile) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } 2>conftest.err; then
13011         soname=conftest
13012         lib=conftest
13013         libobjs=conftest.$ac_objext
13014         deplibs=
13015         wl=$lt_prog_compiler_wl
13016         compiler_flags=-v
13017         linker_flags=-v
13018         verstring=
13019         output_objdir=.
13020         libname=conftest
13021         lt_save_allow_undefined_flag=$allow_undefined_flag
13022         allow_undefined_flag=
13023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }
13028         then
13029           archive_cmds_need_lc=no
13030         else
13031           archive_cmds_need_lc=yes
13032         fi
13033         allow_undefined_flag=$lt_save_allow_undefined_flag
13034       else
13035         cat conftest.err 1>&5
13036       fi
13037       $rm conftest*
13038       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13039 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13040       ;;
13041     esac
13042   fi
13043   ;;
13044 esac
13045
13046 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13048 library_names_spec=
13049 libname_spec='lib$name'
13050 soname_spec=
13051 shrext_cmds=".so"
13052 postinstall_cmds=
13053 postuninstall_cmds=
13054 finish_cmds=
13055 finish_eval=
13056 shlibpath_var=
13057 shlibpath_overrides_runpath=unknown
13058 version_type=none
13059 dynamic_linker="$host_os ld.so"
13060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13061 if test "$GCC" = yes; then
13062   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13063   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13064     # if the path contains ";" then we assume it to be the separator
13065     # otherwise default to the standard path separator (i.e. ":") - it is
13066     # assumed that no part of a normal pathname contains ";" but that should
13067     # okay in the real world where ";" in dirpaths is itself problematic.
13068     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069   else
13070     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13071   fi
13072 else
13073   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13074 fi
13075 need_lib_prefix=unknown
13076 hardcode_into_libs=no
13077
13078 # when you set need_version to no, make sure it does not cause -set_version
13079 # flags to be left without arguments
13080 need_version=unknown
13081
13082 case $host_os in
13083 aix3*)
13084   version_type=linux
13085   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13086   shlibpath_var=LIBPATH
13087
13088   # AIX 3 has no versioning support, so we append a major version to the name.
13089   soname_spec='${libname}${release}${shared_ext}$major'
13090   ;;
13091
13092 aix4* | aix5*)
13093   version_type=linux
13094   need_lib_prefix=no
13095   need_version=no
13096   hardcode_into_libs=yes
13097   if test "$host_cpu" = ia64; then
13098     # AIX 5 supports IA64
13099     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13100     shlibpath_var=LD_LIBRARY_PATH
13101   else
13102     # With GCC up to 2.95.x, collect2 would create an import file
13103     # for dependence libraries.  The import file would start with
13104     # the line `#! .'.  This would cause the generated library to
13105     # depend on `.', always an invalid library.  This was fixed in
13106     # development snapshots of GCC prior to 3.0.
13107     case $host_os in
13108       aix4 | aix4.[01] | aix4.[01].*)
13109       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13110            echo ' yes '
13111            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13112         :
13113       else
13114         can_build_shared=no
13115       fi
13116       ;;
13117     esac
13118     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13119     # soname into executable. Probably we can add versioning support to
13120     # collect2, so additional links can be useful in future.
13121     if test "$aix_use_runtimelinking" = yes; then
13122       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13123       # instead of lib<name>.a to let people know that these are not
13124       # typical AIX shared libraries.
13125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13126     else
13127       # We preserve .a as extension for shared libraries through AIX4.2
13128       # and later when we are not doing run time linking.
13129       library_names_spec='${libname}${release}.a $libname.a'
13130       soname_spec='${libname}${release}${shared_ext}$major'
13131     fi
13132     shlibpath_var=LIBPATH
13133   fi
13134   ;;
13135
13136 amigaos*)
13137   library_names_spec='$libname.ixlibrary $libname.a'
13138   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13139   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'
13140   ;;
13141
13142 beos*)
13143   library_names_spec='${libname}${shared_ext}'
13144   dynamic_linker="$host_os ld.so"
13145   shlibpath_var=LIBRARY_PATH
13146   ;;
13147
13148 bsdi[45]*)
13149   version_type=linux
13150   need_version=no
13151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152   soname_spec='${libname}${release}${shared_ext}$major'
13153   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13154   shlibpath_var=LD_LIBRARY_PATH
13155   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13156   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13157   # the default ld.so.conf also contains /usr/contrib/lib and
13158   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13159   # libtool to hard-code these into programs
13160   ;;
13161
13162 cygwin* | mingw* | pw32*)
13163   version_type=windows
13164   shrext_cmds=".dll"
13165   need_version=no
13166   need_lib_prefix=no
13167
13168   case $GCC,$host_os in
13169   yes,cygwin* | yes,mingw* | yes,pw32*)
13170     library_names_spec='$libname.dll.a'
13171     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13172     postinstall_cmds='base_file=`basename \${file}`~
13173       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13174       dldir=$destdir/`dirname \$dlpath`~
13175       test -d \$dldir || mkdir -p \$dldir~
13176       $install_prog $dir/$dlname \$dldir/$dlname'
13177     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13178       dlpath=$dir/\$dldll~
13179        $rm \$dlpath'
13180     shlibpath_overrides_runpath=yes
13181
13182     case $host_os in
13183     cygwin*)
13184       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13185       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13186       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13187       ;;
13188     mingw*)
13189       # MinGW DLLs use traditional 'lib' prefix
13190       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13192       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13193         # It is most probably a Windows format PATH printed by
13194         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13195         # path with ; separators, and with drive letters. We can handle the
13196         # drive letters (cygwin fileutils understands them), so leave them,
13197         # especially as we might pass files found there to a mingw objdump,
13198         # which wouldn't understand a cygwinified path. Ahh.
13199         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13200       else
13201         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13202       fi
13203       ;;
13204     pw32*)
13205       # pw32 DLLs use 'pw' prefix rather than 'lib'
13206       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13207       ;;
13208     esac
13209     ;;
13210
13211   *)
13212     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13213     ;;
13214   esac
13215   dynamic_linker='Win32 ld.exe'
13216   # FIXME: first we should search . and the directory the executable is in
13217   shlibpath_var=PATH
13218   ;;
13219
13220 darwin* | rhapsody*)
13221   dynamic_linker="$host_os dyld"
13222   version_type=darwin
13223   need_lib_prefix=no
13224   need_version=no
13225   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13226   soname_spec='${libname}${release}${major}$shared_ext'
13227   shlibpath_overrides_runpath=yes
13228   shlibpath_var=DYLD_LIBRARY_PATH
13229   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13230   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13231   if test "$GCC" = yes; then
13232     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"`
13233   else
13234     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13235   fi
13236   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13237   ;;
13238
13239 dgux*)
13240   version_type=linux
13241   need_lib_prefix=no
13242   need_version=no
13243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13244   soname_spec='${libname}${release}${shared_ext}$major'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   ;;
13247
13248 freebsd1*)
13249   dynamic_linker=no
13250   ;;
13251
13252 kfreebsd*-gnu)
13253   version_type=linux
13254   need_lib_prefix=no
13255   need_version=no
13256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   shlibpath_var=LD_LIBRARY_PATH
13259   shlibpath_overrides_runpath=no
13260   hardcode_into_libs=yes
13261   dynamic_linker='GNU ld.so'
13262   ;;
13263
13264 freebsd*)
13265   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13266   version_type=freebsd-$objformat
13267   case $version_type in
13268     freebsd-elf*)
13269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13270       need_version=no
13271       need_lib_prefix=no
13272       ;;
13273     freebsd-*)
13274       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13275       need_version=yes
13276       ;;
13277   esac
13278   shlibpath_var=LD_LIBRARY_PATH
13279   case $host_os in
13280   freebsd2*)
13281     shlibpath_overrides_runpath=yes
13282     ;;
13283   freebsd3.01* | freebsdelf3.01*)
13284     shlibpath_overrides_runpath=yes
13285     hardcode_into_libs=yes
13286     ;;
13287   *) # from 3.2 on
13288     shlibpath_overrides_runpath=no
13289     hardcode_into_libs=yes
13290     ;;
13291   esac
13292   ;;
13293
13294 gnu*)
13295   version_type=linux
13296   need_lib_prefix=no
13297   need_version=no
13298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13299   soname_spec='${libname}${release}${shared_ext}$major'
13300   shlibpath_var=LD_LIBRARY_PATH
13301   hardcode_into_libs=yes
13302   ;;
13303
13304 hpux9* | hpux10* | hpux11*)
13305   # Give a soname corresponding to the major version so that dld.sl refuses to
13306   # link against other versions.
13307   version_type=sunos
13308   need_lib_prefix=no
13309   need_version=no
13310   case "$host_cpu" in
13311   ia64*)
13312     shrext_cmds='.so'
13313     hardcode_into_libs=yes
13314     dynamic_linker="$host_os dld.so"
13315     shlibpath_var=LD_LIBRARY_PATH
13316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318     soname_spec='${libname}${release}${shared_ext}$major'
13319     if test "X$HPUX_IA64_MODE" = X32; then
13320       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13321     else
13322       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13323     fi
13324     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13325     ;;
13326    hppa*64*)
13327      shrext_cmds='.sl'
13328      hardcode_into_libs=yes
13329      dynamic_linker="$host_os dld.sl"
13330      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13331      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13332      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333      soname_spec='${libname}${release}${shared_ext}$major'
13334      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13335      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13336      ;;
13337    *)
13338     shrext_cmds='.sl'
13339     dynamic_linker="$host_os dld.sl"
13340     shlibpath_var=SHLIB_PATH
13341     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343     soname_spec='${libname}${release}${shared_ext}$major'
13344     ;;
13345   esac
13346   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13347   postinstall_cmds='chmod 555 $lib'
13348   ;;
13349
13350 irix5* | irix6* | nonstopux*)
13351   case $host_os in
13352     nonstopux*) version_type=nonstopux ;;
13353     *)
13354         if test "$lt_cv_prog_gnu_ld" = yes; then
13355                 version_type=linux
13356         else
13357                 version_type=irix
13358         fi ;;
13359   esac
13360   need_lib_prefix=no
13361   need_version=no
13362   soname_spec='${libname}${release}${shared_ext}$major'
13363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13364   case $host_os in
13365   irix5* | nonstopux*)
13366     libsuff= shlibsuff=
13367     ;;
13368   *)
13369     case $LD in # libtool.m4 will add one of these switches to LD
13370     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13371       libsuff= shlibsuff= libmagic=32-bit;;
13372     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13373       libsuff=32 shlibsuff=N32 libmagic=N32;;
13374     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13375       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13376     *) libsuff= shlibsuff= libmagic=never-match;;
13377     esac
13378     ;;
13379   esac
13380   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13381   shlibpath_overrides_runpath=no
13382   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13383   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13384   hardcode_into_libs=yes
13385   ;;
13386
13387 # No shared lib support for Linux oldld, aout, or coff.
13388 linux*oldld* | linux*aout* | linux*coff*)
13389   dynamic_linker=no
13390   ;;
13391
13392 # This must be Linux ELF.
13393 linux*)
13394   version_type=linux
13395   need_lib_prefix=no
13396   need_version=no
13397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398   soname_spec='${libname}${release}${shared_ext}$major'
13399   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13400   shlibpath_var=LD_LIBRARY_PATH
13401   shlibpath_overrides_runpath=no
13402   # This implies no fast_install, which is unacceptable.
13403   # Some rework will be needed to allow for fast_install
13404   # before this can be enabled.
13405   hardcode_into_libs=yes
13406
13407   # Append ld.so.conf contents to the search path
13408   if test -f /etc/ld.so.conf; then
13409     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13410     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13411   fi
13412
13413   # We used to test for /lib/ld.so.1 and disable shared libraries on
13414   # powerpc, because MkLinux only supported shared libraries with the
13415   # GNU dynamic linker.  Since this was broken with cross compilers,
13416   # most powerpc-linux boxes support dynamic linking these days and
13417   # people can always --disable-shared, the test was removed, and we
13418   # assume the GNU/Linux dynamic linker is in use.
13419   dynamic_linker='GNU/Linux ld.so'
13420   ;;
13421
13422 knetbsd*-gnu)
13423   version_type=linux
13424   need_lib_prefix=no
13425   need_version=no
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427   soname_spec='${libname}${release}${shared_ext}$major'
13428   shlibpath_var=LD_LIBRARY_PATH
13429   shlibpath_overrides_runpath=no
13430   hardcode_into_libs=yes
13431   dynamic_linker='GNU ld.so'
13432   ;;
13433
13434 netbsd*)
13435   version_type=sunos
13436   need_lib_prefix=no
13437   need_version=no
13438   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13441     dynamic_linker='NetBSD (a.out) ld.so'
13442   else
13443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13444     soname_spec='${libname}${release}${shared_ext}$major'
13445     dynamic_linker='NetBSD ld.elf_so'
13446   fi
13447   shlibpath_var=LD_LIBRARY_PATH
13448   shlibpath_overrides_runpath=yes
13449   hardcode_into_libs=yes
13450   ;;
13451
13452 newsos6)
13453   version_type=linux
13454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   shlibpath_overrides_runpath=yes
13457   ;;
13458
13459 nto-qnx*)
13460   version_type=linux
13461   need_lib_prefix=no
13462   need_version=no
13463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   shlibpath_var=LD_LIBRARY_PATH
13466   shlibpath_overrides_runpath=yes
13467   ;;
13468
13469 openbsd*)
13470   version_type=sunos
13471   need_lib_prefix=no
13472   need_version=no
13473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13477     case $host_os in
13478       openbsd2.[89] | openbsd2.[89].*)
13479         shlibpath_overrides_runpath=no
13480         ;;
13481       *)
13482         shlibpath_overrides_runpath=yes
13483         ;;
13484       esac
13485   else
13486     shlibpath_overrides_runpath=yes
13487   fi
13488   ;;
13489
13490 os2*)
13491   libname_spec='$name'
13492   shrext_cmds=".dll"
13493   need_lib_prefix=no
13494   library_names_spec='$libname${shared_ext} $libname.a'
13495   dynamic_linker='OS/2 ld.exe'
13496   shlibpath_var=LIBPATH
13497   ;;
13498
13499 osf3* | osf4* | osf5*)
13500   version_type=osf
13501   need_lib_prefix=no
13502   need_version=no
13503   soname_spec='${libname}${release}${shared_ext}$major'
13504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505   shlibpath_var=LD_LIBRARY_PATH
13506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13508   ;;
13509
13510 sco3.2v5*)
13511   version_type=osf
13512   soname_spec='${libname}${release}${shared_ext}$major'
13513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514   shlibpath_var=LD_LIBRARY_PATH
13515   ;;
13516
13517 solaris*)
13518   version_type=linux
13519   need_lib_prefix=no
13520   need_version=no
13521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522   soname_spec='${libname}${release}${shared_ext}$major'
13523   shlibpath_var=LD_LIBRARY_PATH
13524   shlibpath_overrides_runpath=yes
13525   hardcode_into_libs=yes
13526   # ldd complains unless libraries are executable
13527   postinstall_cmds='chmod +x $lib'
13528   ;;
13529
13530 sunos4*)
13531   version_type=sunos
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13533   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13534   shlibpath_var=LD_LIBRARY_PATH
13535   shlibpath_overrides_runpath=yes
13536   if test "$with_gnu_ld" = yes; then
13537     need_lib_prefix=no
13538   fi
13539   need_version=yes
13540   ;;
13541
13542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13543   version_type=linux
13544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545   soname_spec='${libname}${release}${shared_ext}$major'
13546   shlibpath_var=LD_LIBRARY_PATH
13547   case $host_vendor in
13548     sni)
13549       shlibpath_overrides_runpath=no
13550       need_lib_prefix=no
13551       export_dynamic_flag_spec='${wl}-Blargedynsym'
13552       runpath_var=LD_RUN_PATH
13553       ;;
13554     siemens)
13555       need_lib_prefix=no
13556       ;;
13557     motorola)
13558       need_lib_prefix=no
13559       need_version=no
13560       shlibpath_overrides_runpath=no
13561       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13562       ;;
13563   esac
13564   ;;
13565
13566 sysv4*MP*)
13567   if test -d /usr/nec ;then
13568     version_type=linux
13569     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13570     soname_spec='$libname${shared_ext}.$major'
13571     shlibpath_var=LD_LIBRARY_PATH
13572   fi
13573   ;;
13574
13575 uts4*)
13576   version_type=linux
13577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578   soname_spec='${libname}${release}${shared_ext}$major'
13579   shlibpath_var=LD_LIBRARY_PATH
13580   ;;
13581
13582 *)
13583   dynamic_linker=no
13584   ;;
13585 esac
13586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13587 echo "${ECHO_T}$dynamic_linker" >&6
13588 test "$dynamic_linker" = no && can_build_shared=no
13589
13590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13592 hardcode_action=
13593 if test -n "$hardcode_libdir_flag_spec" || \
13594    test -n "$runpath_var" || \
13595    test "X$hardcode_automatic" = "Xyes" ; then
13596
13597   # We can hardcode non-existant directories.
13598   if test "$hardcode_direct" != no &&
13599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13600      # have to relink, otherwise we might link with an installed library
13601      # when we should be linking with a yet-to-be-installed one
13602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13603      test "$hardcode_minus_L" != no; then
13604     # Linking always hardcodes the temporary library directory.
13605     hardcode_action=relink
13606   else
13607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13608     hardcode_action=immediate
13609   fi
13610 else
13611   # We cannot hardcode anything, or else we can only hardcode existing
13612   # directories.
13613   hardcode_action=unsupported
13614 fi
13615 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13616 echo "${ECHO_T}$hardcode_action" >&6
13617
13618 if test "$hardcode_action" = relink; then
13619   # Fast installation is not supported
13620   enable_fast_install=no
13621 elif test "$shlibpath_overrides_runpath" = yes ||
13622      test "$enable_shared" = no; then
13623   # Fast installation is not necessary
13624   enable_fast_install=needless
13625 fi
13626
13627 striplib=
13628 old_striplib=
13629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13632   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13633   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13634   echo "$as_me:$LINENO: result: yes" >&5
13635 echo "${ECHO_T}yes" >&6
13636 else
13637 # FIXME - insert some real tests, host_os isn't really good enough
13638   case $host_os in
13639    darwin*)
13640        if test -n "$STRIP" ; then
13641          striplib="$STRIP -x"
13642          echo "$as_me:$LINENO: result: yes" >&5
13643 echo "${ECHO_T}yes" >&6
13644        else
13645   echo "$as_me:$LINENO: result: no" >&5
13646 echo "${ECHO_T}no" >&6
13647 fi
13648        ;;
13649    *)
13650   echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6
13652     ;;
13653   esac
13654 fi
13655
13656 if test "x$enable_dlopen" != xyes; then
13657   enable_dlopen=unknown
13658   enable_dlopen_self=unknown
13659   enable_dlopen_self_static=unknown
13660 else
13661   lt_cv_dlopen=no
13662   lt_cv_dlopen_libs=
13663
13664   case $host_os in
13665   beos*)
13666     lt_cv_dlopen="load_add_on"
13667     lt_cv_dlopen_libs=
13668     lt_cv_dlopen_self=yes
13669     ;;
13670
13671   mingw* | pw32*)
13672     lt_cv_dlopen="LoadLibrary"
13673     lt_cv_dlopen_libs=
13674    ;;
13675
13676   cygwin*)
13677     lt_cv_dlopen="dlopen"
13678     lt_cv_dlopen_libs=
13679    ;;
13680
13681   darwin*)
13682   # if libdl is installed we need to link against it
13683     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13686   echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688   ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-ldl  $LIBS"
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h.  */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h.  */
13696
13697 /* Override any gcc2 internal prototype to avoid an error.  */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 /* We use char because int might match the return type of a gcc2
13702    builtin and then its argument prototype would still apply.  */
13703 char dlopen ();
13704 int
13705 main ()
13706 {
13707 dlopen ();
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714   (eval $ac_link) 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -z "$ac_c_werror_flag"
13722                          || test ! -s conftest.err'
13723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724   (eval $ac_try) 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; } &&
13728          { ac_try='test -s conftest$ac_exeext'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; }; then
13734   ac_cv_lib_dl_dlopen=yes
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739 ac_cv_lib_dl_dlopen=no
13740 fi
13741 rm -f conftest.err conftest.$ac_objext \
13742       conftest$ac_exeext conftest.$ac_ext
13743 LIBS=$ac_check_lib_save_LIBS
13744 fi
13745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13747 if test $ac_cv_lib_dl_dlopen = yes; then
13748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13749 else
13750
13751     lt_cv_dlopen="dyld"
13752     lt_cv_dlopen_libs=
13753     lt_cv_dlopen_self=yes
13754
13755 fi
13756
13757    ;;
13758
13759   *)
13760     echo "$as_me:$LINENO: checking for shl_load" >&5
13761 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13762 if test "${ac_cv_func_shl_load+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13773 #define shl_load innocuous_shl_load
13774
13775 /* System header to define __stub macros and hopefully few prototypes,
13776     which can conflict with char shl_load (); below.
13777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13778     <limits.h> exists even on freestanding compilers.  */
13779
13780 #ifdef __STDC__
13781 # include <limits.h>
13782 #else
13783 # include <assert.h>
13784 #endif
13785
13786 #undef shl_load
13787
13788 /* Override any gcc2 internal prototype to avoid an error.  */
13789 #ifdef __cplusplus
13790 extern "C"
13791 {
13792 #endif
13793 /* We use char because int might match the return type of a gcc2
13794    builtin and then its argument prototype would still apply.  */
13795 char shl_load ();
13796 /* The GNU C library defines this for functions which it implements
13797     to always fail with ENOSYS.  Some functions are actually named
13798     something starting with __ and the normal name is an alias.  */
13799 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13800 choke me
13801 #else
13802 char (*f) () = shl_load;
13803 #endif
13804 #ifdef __cplusplus
13805 }
13806 #endif
13807
13808 int
13809 main ()
13810 {
13811 return f != shl_load;
13812   ;
13813   return 0;
13814 }
13815 _ACEOF
13816 rm -f conftest.$ac_objext conftest$ac_exeext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818   (eval $ac_link) 2>conftest.er1
13819   ac_status=$?
13820   grep -v '^ *+' conftest.er1 >conftest.err
13821   rm -f conftest.er1
13822   cat conftest.err >&5
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } &&
13825          { ac_try='test -z "$ac_c_werror_flag"
13826                          || test ! -s conftest.err'
13827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828   (eval $ac_try) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; } &&
13832          { ac_try='test -s conftest$ac_exeext'
13833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834   (eval $ac_try) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_cv_func_shl_load=yes
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 ac_cv_func_shl_load=no
13844 fi
13845 rm -f conftest.err conftest.$ac_objext \
13846       conftest$ac_exeext conftest.$ac_ext
13847 fi
13848 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13850 if test $ac_cv_func_shl_load = yes; then
13851   lt_cv_dlopen="shl_load"
13852 else
13853   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13854 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13855 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   ac_check_lib_save_LIBS=$LIBS
13859 LIBS="-ldld  $LIBS"
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866
13867 /* Override any gcc2 internal prototype to avoid an error.  */
13868 #ifdef __cplusplus
13869 extern "C"
13870 #endif
13871 /* We use char because int might match the return type of a gcc2
13872    builtin and then its argument prototype would still apply.  */
13873 char shl_load ();
13874 int
13875 main ()
13876 {
13877 shl_load ();
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884   (eval $ac_link) 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag"
13892                          || test ! -s conftest.err'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; } &&
13898          { ac_try='test -s conftest$ac_exeext'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   ac_cv_lib_dld_shl_load=yes
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_cv_lib_dld_shl_load=no
13910 fi
13911 rm -f conftest.err conftest.$ac_objext \
13912       conftest$ac_exeext conftest.$ac_ext
13913 LIBS=$ac_check_lib_save_LIBS
13914 fi
13915 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13916 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13917 if test $ac_cv_lib_dld_shl_load = yes; then
13918   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13919 else
13920   echo "$as_me:$LINENO: checking for dlopen" >&5
13921 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13922 if test "${ac_cv_func_dlopen+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13933 #define dlopen innocuous_dlopen
13934
13935 /* System header to define __stub macros and hopefully few prototypes,
13936     which can conflict with char dlopen (); below.
13937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13938     <limits.h> exists even on freestanding compilers.  */
13939
13940 #ifdef __STDC__
13941 # include <limits.h>
13942 #else
13943 # include <assert.h>
13944 #endif
13945
13946 #undef dlopen
13947
13948 /* Override any gcc2 internal prototype to avoid an error.  */
13949 #ifdef __cplusplus
13950 extern "C"
13951 {
13952 #endif
13953 /* We use char because int might match the return type of a gcc2
13954    builtin and then its argument prototype would still apply.  */
13955 char dlopen ();
13956 /* The GNU C library defines this for functions which it implements
13957     to always fail with ENOSYS.  Some functions are actually named
13958     something starting with __ and the normal name is an alias.  */
13959 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13960 choke me
13961 #else
13962 char (*f) () = dlopen;
13963 #endif
13964 #ifdef __cplusplus
13965 }
13966 #endif
13967
13968 int
13969 main ()
13970 {
13971 return f != dlopen;
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13978   (eval $ac_link) 2>conftest.er1
13979   ac_status=$?
13980   grep -v '^ *+' conftest.er1 >conftest.err
13981   rm -f conftest.er1
13982   cat conftest.err >&5
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } &&
13985          { ac_try='test -z "$ac_c_werror_flag"
13986                          || test ! -s conftest.err'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; } &&
13992          { ac_try='test -s conftest$ac_exeext'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998   ac_cv_func_dlopen=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003 ac_cv_func_dlopen=no
14004 fi
14005 rm -f conftest.err conftest.$ac_objext \
14006       conftest$ac_exeext conftest.$ac_ext
14007 fi
14008 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14009 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14010 if test $ac_cv_func_dlopen = yes; then
14011   lt_cv_dlopen="dlopen"
14012 else
14013   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-ldl  $LIBS"
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026
14027 /* Override any gcc2 internal prototype to avoid an error.  */
14028 #ifdef __cplusplus
14029 extern "C"
14030 #endif
14031 /* We use char because int might match the return type of a gcc2
14032    builtin and then its argument prototype would still apply.  */
14033 char dlopen ();
14034 int
14035 main ()
14036 {
14037 dlopen ();
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044   (eval $ac_link) 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag"
14052                          || test ! -s conftest.err'
14053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054   (eval $ac_try) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; } &&
14058          { ac_try='test -s conftest$ac_exeext'
14059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060   (eval $ac_try) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }; then
14064   ac_cv_lib_dl_dlopen=yes
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_lib_dl_dlopen=no
14070 fi
14071 rm -f conftest.err conftest.$ac_objext \
14072       conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14074 fi
14075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14077 if test $ac_cv_lib_dl_dlopen = yes; then
14078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14079 else
14080   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085   ac_check_lib_save_LIBS=$LIBS
14086 LIBS="-lsvld  $LIBS"
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h.  */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h.  */
14093
14094 /* Override any gcc2 internal prototype to avoid an error.  */
14095 #ifdef __cplusplus
14096 extern "C"
14097 #endif
14098 /* We use char because int might match the return type of a gcc2
14099    builtin and then its argument prototype would still apply.  */
14100 char dlopen ();
14101 int
14102 main ()
14103 {
14104 dlopen ();
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext conftest$ac_exeext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14111   (eval $ac_link) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -z "$ac_c_werror_flag"
14119                          || test ! -s conftest.err'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest$ac_exeext'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; }; then
14131   ac_cv_lib_svld_dlopen=yes
14132 else
14133   echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ac_cv_lib_svld_dlopen=no
14137 fi
14138 rm -f conftest.err conftest.$ac_objext \
14139       conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14141 fi
14142 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14143 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14144 if test $ac_cv_lib_svld_dlopen = yes; then
14145   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14146 else
14147   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14148 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14149 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152   ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-ldld  $LIBS"
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160
14161 /* Override any gcc2 internal prototype to avoid an error.  */
14162 #ifdef __cplusplus
14163 extern "C"
14164 #endif
14165 /* We use char because int might match the return type of a gcc2
14166    builtin and then its argument prototype would still apply.  */
14167 char dld_link ();
14168 int
14169 main ()
14170 {
14171 dld_link ();
14172   ;
14173   return 0;
14174 }
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14178   (eval $ac_link) 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } &&
14185          { ac_try='test -z "$ac_c_werror_flag"
14186                          || test ! -s conftest.err'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; } &&
14192          { ac_try='test -s conftest$ac_exeext'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; }; then
14198   ac_cv_lib_dld_dld_link=yes
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 ac_cv_lib_dld_dld_link=no
14204 fi
14205 rm -f conftest.err conftest.$ac_objext \
14206       conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14208 fi
14209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14211 if test $ac_cv_lib_dld_dld_link = yes; then
14212   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14213 fi
14214
14215
14216 fi
14217
14218
14219 fi
14220
14221
14222 fi
14223
14224
14225 fi
14226
14227
14228 fi
14229
14230     ;;
14231   esac
14232
14233   if test "x$lt_cv_dlopen" != xno; then
14234     enable_dlopen=yes
14235   else
14236     enable_dlopen=no
14237   fi
14238
14239   case $lt_cv_dlopen in
14240   dlopen)
14241     save_CPPFLAGS="$CPPFLAGS"
14242     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14243
14244     save_LDFLAGS="$LDFLAGS"
14245     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14246
14247     save_LIBS="$LIBS"
14248     LIBS="$lt_cv_dlopen_libs $LIBS"
14249
14250     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14252 if test "${lt_cv_dlopen_self+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255           if test "$cross_compiling" = yes; then :
14256   lt_cv_dlopen_self=cross
14257 else
14258   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14259   lt_status=$lt_dlunknown
14260   cat > conftest.$ac_ext <<EOF
14261 #line 14261 "configure"
14262 #include "confdefs.h"
14263
14264 #if HAVE_DLFCN_H
14265 #include <dlfcn.h>
14266 #endif
14267
14268 #include <stdio.h>
14269
14270 #ifdef RTLD_GLOBAL
14271 #  define LT_DLGLOBAL           RTLD_GLOBAL
14272 #else
14273 #  ifdef DL_GLOBAL
14274 #    define LT_DLGLOBAL         DL_GLOBAL
14275 #  else
14276 #    define LT_DLGLOBAL         0
14277 #  endif
14278 #endif
14279
14280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14281    find out it does not work in some platform. */
14282 #ifndef LT_DLLAZY_OR_NOW
14283 #  ifdef RTLD_LAZY
14284 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14285 #  else
14286 #    ifdef DL_LAZY
14287 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14288 #    else
14289 #      ifdef RTLD_NOW
14290 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14291 #      else
14292 #        ifdef DL_NOW
14293 #          define LT_DLLAZY_OR_NOW      DL_NOW
14294 #        else
14295 #          define LT_DLLAZY_OR_NOW      0
14296 #        endif
14297 #      endif
14298 #    endif
14299 #  endif
14300 #endif
14301
14302 #ifdef __cplusplus
14303 extern "C" void exit (int);
14304 #endif
14305
14306 void fnord() { int i=42;}
14307 int main ()
14308 {
14309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14310   int status = $lt_dlunknown;
14311
14312   if (self)
14313     {
14314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14315       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14316       /* dlclose (self); */
14317     }
14318
14319     exit (status);
14320 }
14321 EOF
14322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323   (eval $ac_link) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14327     (./conftest; exit; ) 2>/dev/null
14328     lt_status=$?
14329     case x$lt_status in
14330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14332       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14333     esac
14334   else :
14335     # compilation failed
14336     lt_cv_dlopen_self=no
14337   fi
14338 fi
14339 rm -fr conftest*
14340
14341
14342 fi
14343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14345
14346     if test "x$lt_cv_dlopen_self" = xyes; then
14347       LDFLAGS="$LDFLAGS $link_static_flag"
14348       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14350 if test "${lt_cv_dlopen_self_static+set}" = set; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353           if test "$cross_compiling" = yes; then :
14354   lt_cv_dlopen_self_static=cross
14355 else
14356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14357   lt_status=$lt_dlunknown
14358   cat > conftest.$ac_ext <<EOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361
14362 #if HAVE_DLFCN_H
14363 #include <dlfcn.h>
14364 #endif
14365
14366 #include <stdio.h>
14367
14368 #ifdef RTLD_GLOBAL
14369 #  define LT_DLGLOBAL           RTLD_GLOBAL
14370 #else
14371 #  ifdef DL_GLOBAL
14372 #    define LT_DLGLOBAL         DL_GLOBAL
14373 #  else
14374 #    define LT_DLGLOBAL         0
14375 #  endif
14376 #endif
14377
14378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14379    find out it does not work in some platform. */
14380 #ifndef LT_DLLAZY_OR_NOW
14381 #  ifdef RTLD_LAZY
14382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14383 #  else
14384 #    ifdef DL_LAZY
14385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14386 #    else
14387 #      ifdef RTLD_NOW
14388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14389 #      else
14390 #        ifdef DL_NOW
14391 #          define LT_DLLAZY_OR_NOW      DL_NOW
14392 #        else
14393 #          define LT_DLLAZY_OR_NOW      0
14394 #        endif
14395 #      endif
14396 #    endif
14397 #  endif
14398 #endif
14399
14400 #ifdef __cplusplus
14401 extern "C" void exit (int);
14402 #endif
14403
14404 void fnord() { int i=42;}
14405 int main ()
14406 {
14407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14408   int status = $lt_dlunknown;
14409
14410   if (self)
14411     {
14412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14414       /* dlclose (self); */
14415     }
14416
14417     exit (status);
14418 }
14419 EOF
14420   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421   (eval $ac_link) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14425     (./conftest; exit; ) 2>/dev/null
14426     lt_status=$?
14427     case x$lt_status in
14428       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14429       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14430       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14431     esac
14432   else :
14433     # compilation failed
14434     lt_cv_dlopen_self_static=no
14435   fi
14436 fi
14437 rm -fr conftest*
14438
14439
14440 fi
14441 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14442 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14443     fi
14444
14445     CPPFLAGS="$save_CPPFLAGS"
14446     LDFLAGS="$save_LDFLAGS"
14447     LIBS="$save_LIBS"
14448     ;;
14449   esac
14450
14451   case $lt_cv_dlopen_self in
14452   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14453   *) enable_dlopen_self=unknown ;;
14454   esac
14455
14456   case $lt_cv_dlopen_self_static in
14457   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14458   *) enable_dlopen_self_static=unknown ;;
14459   esac
14460 fi
14461
14462
14463 # Report which librarie types wil actually be built
14464 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14465 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14466 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14467 echo "${ECHO_T}$can_build_shared" >&6
14468
14469 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14470 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14471 test "$can_build_shared" = "no" && enable_shared=no
14472
14473 # On AIX, shared libraries and static libraries use the same namespace, and
14474 # are all built from PIC.
14475 case "$host_os" in
14476 aix3*)
14477   test "$enable_shared" = yes && enable_static=no
14478   if test -n "$RANLIB"; then
14479     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14480     postinstall_cmds='$RANLIB $lib'
14481   fi
14482   ;;
14483
14484 aix4* | aix5*)
14485   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14486     test "$enable_shared" = yes && enable_static=no
14487   fi
14488     ;;
14489 esac
14490 echo "$as_me:$LINENO: result: $enable_shared" >&5
14491 echo "${ECHO_T}$enable_shared" >&6
14492
14493 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14494 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14495 # Make sure either enable_shared or enable_static is yes.
14496 test "$enable_shared" = yes || enable_static=yes
14497 echo "$as_me:$LINENO: result: $enable_static" >&5
14498 echo "${ECHO_T}$enable_static" >&6
14499
14500 # The else clause should only fire when bootstrapping the
14501 # libtool distribution, otherwise you forgot to ship ltmain.sh
14502 # with your package, and you will get complaints that there are
14503 # no rules to generate ltmain.sh.
14504 if test -f "$ltmain"; then
14505   # See if we are running on zsh, and set the options which allow our commands through
14506   # without removal of \ escapes.
14507   if test -n "${ZSH_VERSION+set}" ; then
14508     setopt NO_GLOB_SUBST
14509   fi
14510   # Now quote all the things that may contain metacharacters while being
14511   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14512   # variables and quote the copies for generation of the libtool script.
14513   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14514     SED SHELL STRIP \
14515     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14516     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14517     deplibs_check_method reload_flag reload_cmds need_locks \
14518     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14519     lt_cv_sys_global_symbol_to_c_name_address \
14520     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14521     old_postinstall_cmds old_postuninstall_cmds \
14522     compiler \
14523     CC \
14524     LD \
14525     lt_prog_compiler_wl \
14526     lt_prog_compiler_pic \
14527     lt_prog_compiler_static \
14528     lt_prog_compiler_no_builtin_flag \
14529     export_dynamic_flag_spec \
14530     thread_safe_flag_spec \
14531     whole_archive_flag_spec \
14532     enable_shared_with_static_runtimes \
14533     old_archive_cmds \
14534     old_archive_from_new_cmds \
14535     predep_objects \
14536     postdep_objects \
14537     predeps \
14538     postdeps \
14539     compiler_lib_search_path \
14540     archive_cmds \
14541     archive_expsym_cmds \
14542     postinstall_cmds \
14543     postuninstall_cmds \
14544     old_archive_from_expsyms_cmds \
14545     allow_undefined_flag \
14546     no_undefined_flag \
14547     export_symbols_cmds \
14548     hardcode_libdir_flag_spec \
14549     hardcode_libdir_flag_spec_ld \
14550     hardcode_libdir_separator \
14551     hardcode_automatic \
14552     module_cmds \
14553     module_expsym_cmds \
14554     lt_cv_prog_compiler_c_o \
14555     exclude_expsyms \
14556     include_expsyms; do
14557
14558     case $var in
14559     old_archive_cmds | \
14560     old_archive_from_new_cmds | \
14561     archive_cmds | \
14562     archive_expsym_cmds | \
14563     module_cmds | \
14564     module_expsym_cmds | \
14565     old_archive_from_expsyms_cmds | \
14566     export_symbols_cmds | \
14567     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14568     postinstall_cmds | postuninstall_cmds | \
14569     old_postinstall_cmds | old_postuninstall_cmds | \
14570     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14571       # Double-quote double-evaled strings.
14572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14573       ;;
14574     *)
14575       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14576       ;;
14577     esac
14578   done
14579
14580   case $lt_echo in
14581   *'\$0 --fallback-echo"')
14582     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14583     ;;
14584   esac
14585
14586 cfgfile="${ofile}T"
14587   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14588   $rm -f "$cfgfile"
14589   { echo "$as_me:$LINENO: creating $ofile" >&5
14590 echo "$as_me: creating $ofile" >&6;}
14591
14592   cat <<__EOF__ >> "$cfgfile"
14593 #! $SHELL
14594
14595 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14596 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14597 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14598 #
14599 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14600 # Free Software Foundation, Inc.
14601 #
14602 # This file is part of GNU Libtool:
14603 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14604 #
14605 # This program is free software; you can redistribute it and/or modify
14606 # it under the terms of the GNU General Public License as published by
14607 # the Free Software Foundation; either version 2 of the License, or
14608 # (at your option) any later version.
14609 #
14610 # This program is distributed in the hope that it will be useful, but
14611 # WITHOUT ANY WARRANTY; without even the implied warranty of
14612 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14613 # General Public License for more details.
14614 #
14615 # You should have received a copy of the GNU General Public License
14616 # along with this program; if not, write to the Free Software
14617 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14618 #
14619 # As a special exception to the GNU General Public License, if you
14620 # distribute this file as part of a program that contains a
14621 # configuration script generated by Autoconf, you may include it under
14622 # the same distribution terms that you use for the rest of that program.
14623
14624 # A sed program that does not truncate output.
14625 SED=$lt_SED
14626
14627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14628 Xsed="$SED -e s/^X//"
14629
14630 # The HP-UX ksh and POSIX shell print the target directory to stdout
14631 # if CDPATH is set.
14632 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14633
14634 # The names of the tagged configurations supported by this script.
14635 available_tags=
14636
14637 # ### BEGIN LIBTOOL CONFIG
14638
14639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14640
14641 # Shell to use when invoking shell scripts.
14642 SHELL=$lt_SHELL
14643
14644 # Whether or not to build shared libraries.
14645 build_libtool_libs=$enable_shared
14646
14647 # Whether or not to build static libraries.
14648 build_old_libs=$enable_static
14649
14650 # Whether or not to add -lc for building shared libraries.
14651 build_libtool_need_lc=$archive_cmds_need_lc
14652
14653 # Whether or not to disallow shared libs when runtime libs are static
14654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14655
14656 # Whether or not to optimize for fast installation.
14657 fast_install=$enable_fast_install
14658
14659 # The host system.
14660 host_alias=$host_alias
14661 host=$host
14662
14663 # An echo program that does not interpret backslashes.
14664 echo=$lt_echo
14665
14666 # The archiver.
14667 AR=$lt_AR
14668 AR_FLAGS=$lt_AR_FLAGS
14669
14670 # A C compiler.
14671 LTCC=$lt_LTCC
14672
14673 # A language-specific compiler.
14674 CC=$lt_compiler
14675
14676 # Is the compiler the GNU C compiler?
14677 with_gcc=$GCC
14678
14679 # An ERE matcher.
14680 EGREP=$lt_EGREP
14681
14682 # The linker used to build libraries.
14683 LD=$lt_LD
14684
14685 # Whether we need hard or soft links.
14686 LN_S=$lt_LN_S
14687
14688 # A BSD-compatible nm program.
14689 NM=$lt_NM
14690
14691 # A symbol stripping program
14692 STRIP=$lt_STRIP
14693
14694 # Used to examine libraries when file_magic_cmd begins "file"
14695 MAGIC_CMD=$MAGIC_CMD
14696
14697 # Used on cygwin: DLL creation program.
14698 DLLTOOL="$DLLTOOL"
14699
14700 # Used on cygwin: object dumper.
14701 OBJDUMP="$OBJDUMP"
14702
14703 # Used on cygwin: assembler.
14704 AS="$AS"
14705
14706 # The name of the directory that contains temporary libtool files.
14707 objdir=$objdir
14708
14709 # How to create reloadable object files.
14710 reload_flag=$lt_reload_flag
14711 reload_cmds=$lt_reload_cmds
14712
14713 # How to pass a linker flag through the compiler.
14714 wl=$lt_lt_prog_compiler_wl
14715
14716 # Object file suffix (normally "o").
14717 objext="$ac_objext"
14718
14719 # Old archive suffix (normally "a").
14720 libext="$libext"
14721
14722 # Shared library suffix (normally ".so").
14723 shrext_cmds='$shrext_cmds'
14724
14725 # Executable file suffix (normally "").
14726 exeext="$exeext"
14727
14728 # Additional compiler flags for building library objects.
14729 pic_flag=$lt_lt_prog_compiler_pic
14730 pic_mode=$pic_mode
14731
14732 # What is the maximum length of a command?
14733 max_cmd_len=$lt_cv_sys_max_cmd_len
14734
14735 # Does compiler simultaneously support -c and -o options?
14736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14737
14738 # Must we lock files when doing compilation ?
14739 need_locks=$lt_need_locks
14740
14741 # Do we need the lib prefix for modules?
14742 need_lib_prefix=$need_lib_prefix
14743
14744 # Do we need a version for libraries?
14745 need_version=$need_version
14746
14747 # Whether dlopen is supported.
14748 dlopen_support=$enable_dlopen
14749
14750 # Whether dlopen of programs is supported.
14751 dlopen_self=$enable_dlopen_self
14752
14753 # Whether dlopen of statically linked programs is supported.
14754 dlopen_self_static=$enable_dlopen_self_static
14755
14756 # Compiler flag to prevent dynamic linking.
14757 link_static_flag=$lt_lt_prog_compiler_static
14758
14759 # Compiler flag to turn off builtin functions.
14760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14761
14762 # Compiler flag to allow reflexive dlopens.
14763 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14764
14765 # Compiler flag to generate shared objects directly from archives.
14766 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14767
14768 # Compiler flag to generate thread-safe objects.
14769 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14770
14771 # Library versioning type.
14772 version_type=$version_type
14773
14774 # Format of library name prefix.
14775 libname_spec=$lt_libname_spec
14776
14777 # List of archive names.  First name is the real one, the rest are links.
14778 # The last name is the one that the linker finds with -lNAME.
14779 library_names_spec=$lt_library_names_spec
14780
14781 # The coded name of the library, if different from the real name.
14782 soname_spec=$lt_soname_spec
14783
14784 # Commands used to build and install an old-style archive.
14785 RANLIB=$lt_RANLIB
14786 old_archive_cmds=$lt_old_archive_cmds
14787 old_postinstall_cmds=$lt_old_postinstall_cmds
14788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14789
14790 # Create an old-style archive from a shared archive.
14791 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14792
14793 # Create a temporary old-style archive to link instead of a shared archive.
14794 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14795
14796 # Commands used to build and install a shared archive.
14797 archive_cmds=$lt_archive_cmds
14798 archive_expsym_cmds=$lt_archive_expsym_cmds
14799 postinstall_cmds=$lt_postinstall_cmds
14800 postuninstall_cmds=$lt_postuninstall_cmds
14801
14802 # Commands used to build a loadable module (assumed same as above if empty)
14803 module_cmds=$lt_module_cmds
14804 module_expsym_cmds=$lt_module_expsym_cmds
14805
14806 # Commands to strip libraries.
14807 old_striplib=$lt_old_striplib
14808 striplib=$lt_striplib
14809
14810 # Dependencies to place before the objects being linked to create a
14811 # shared library.
14812 predep_objects=$lt_predep_objects
14813
14814 # Dependencies to place after the objects being linked to create a
14815 # shared library.
14816 postdep_objects=$lt_postdep_objects
14817
14818 # Dependencies to place before the objects being linked to create a
14819 # shared library.
14820 predeps=$lt_predeps
14821
14822 # Dependencies to place after the objects being linked to create a
14823 # shared library.
14824 postdeps=$lt_postdeps
14825
14826 # The library search path used internally by the compiler when linking
14827 # a shared library.
14828 compiler_lib_search_path=$lt_compiler_lib_search_path
14829
14830 # Method to check whether dependent libraries are shared objects.
14831 deplibs_check_method=$lt_deplibs_check_method
14832
14833 # Command to use when deplibs_check_method == file_magic.
14834 file_magic_cmd=$lt_file_magic_cmd
14835
14836 # Flag that allows shared libraries with undefined symbols to be built.
14837 allow_undefined_flag=$lt_allow_undefined_flag
14838
14839 # Flag that forces no undefined symbols.
14840 no_undefined_flag=$lt_no_undefined_flag
14841
14842 # Commands used to finish a libtool library installation in a directory.
14843 finish_cmds=$lt_finish_cmds
14844
14845 # Same as above, but a single script fragment to be evaled but not shown.
14846 finish_eval=$lt_finish_eval
14847
14848 # Take the output of nm and produce a listing of raw symbols and C names.
14849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14850
14851 # Transform the output of nm in a proper C declaration
14852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14853
14854 # Transform the output of nm in a C name address pair
14855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14856
14857 # This is the shared library runtime path variable.
14858 runpath_var=$runpath_var
14859
14860 # This is the shared library path variable.
14861 shlibpath_var=$shlibpath_var
14862
14863 # Is shlibpath searched before the hard-coded library search path?
14864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14865
14866 # How to hardcode a shared library path into an executable.
14867 hardcode_action=$hardcode_action
14868
14869 # Whether we should hardcode library paths into libraries.
14870 hardcode_into_libs=$hardcode_into_libs
14871
14872 # Flag to hardcode \$libdir into a binary during linking.
14873 # This must work even if \$libdir does not exist.
14874 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14875
14876 # If ld is used when linking, flag to hardcode \$libdir into
14877 # a binary during linking. This must work even if \$libdir does
14878 # not exist.
14879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14880
14881 # Whether we need a single -rpath flag with a separated argument.
14882 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14883
14884 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14885 # resulting binary.
14886 hardcode_direct=$hardcode_direct
14887
14888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14889 # resulting binary.
14890 hardcode_minus_L=$hardcode_minus_L
14891
14892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14893 # the resulting binary.
14894 hardcode_shlibpath_var=$hardcode_shlibpath_var
14895
14896 # Set to yes if building a shared library automatically hardcodes DIR into the library
14897 # and all subsequent libraries and executables linked against it.
14898 hardcode_automatic=$hardcode_automatic
14899
14900 # Variables whose values should be saved in libtool wrapper scripts and
14901 # restored at relink time.
14902 variables_saved_for_relink="$variables_saved_for_relink"
14903
14904 # Whether libtool must link a program against all its dependency libraries.
14905 link_all_deplibs=$link_all_deplibs
14906
14907 # Compile-time system search path for libraries
14908 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14909
14910 # Run-time system search path for libraries
14911 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14912
14913 # Fix the shell variable \$srcfile for the compiler.
14914 fix_srcfile_path="$fix_srcfile_path"
14915
14916 # Set to yes if exported symbols are required.
14917 always_export_symbols=$always_export_symbols
14918
14919 # The commands to list exported symbols.
14920 export_symbols_cmds=$lt_export_symbols_cmds
14921
14922 # The commands to extract the exported symbol list from a shared archive.
14923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14924
14925 # Symbols that should not be listed in the preloaded symbols.
14926 exclude_expsyms=$lt_exclude_expsyms
14927
14928 # Symbols that must always be exported.
14929 include_expsyms=$lt_include_expsyms
14930
14931 # ### END LIBTOOL CONFIG
14932
14933 __EOF__
14934
14935
14936   case $host_os in
14937   aix3*)
14938     cat <<\EOF >> "$cfgfile"
14939
14940 # AIX sometimes has problems with the GCC collect2 program.  For some
14941 # reason, if we set the COLLECT_NAMES environment variable, the problems
14942 # vanish in a puff of smoke.
14943 if test "X${COLLECT_NAMES+set}" != Xset; then
14944   COLLECT_NAMES=
14945   export COLLECT_NAMES
14946 fi
14947 EOF
14948     ;;
14949   esac
14950
14951   # We use sed instead of cat because bash on DJGPP gets confused if
14952   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14953   # text mode, it properly converts lines to CR/LF.  This bash problem
14954   # is reportedly fixed, but why not run on old versions too?
14955   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14956
14957   mv -f "$cfgfile" "$ofile" || \
14958     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14959   chmod +x "$ofile"
14960
14961 else
14962   # If there is no Makefile yet, we rely on a make rule to execute
14963   # `config.status --recheck' to rerun these tests and create the
14964   # libtool script then.
14965   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14966   if test -f "$ltmain_in"; then
14967     test -f Makefile && make "$ltmain"
14968   fi
14969 fi
14970
14971
14972 ac_ext=c
14973 ac_cpp='$CPP $CPPFLAGS'
14974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977
14978 CC="$lt_save_CC"
14979
14980
14981 # Check whether --with-tags or --without-tags was given.
14982 if test "${with_tags+set}" = set; then
14983   withval="$with_tags"
14984   tagnames="$withval"
14985 fi;
14986
14987 if test -f "$ltmain" && test -n "$tagnames"; then
14988   if test ! -f "${ofile}"; then
14989     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14990 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14991   fi
14992
14993   if test -z "$LTCC"; then
14994     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14995     if test -z "$LTCC"; then
14996       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14997 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14998     else
14999       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15000 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15001     fi
15002   fi
15003
15004   # Extract list of available tagged configurations in $ofile.
15005   # Note that this assumes the entire list is on one line.
15006   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15007
15008   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15009   for tagname in $tagnames; do
15010     IFS="$lt_save_ifs"
15011     # Check whether tagname contains only valid characters
15012     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15013     "") ;;
15014     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15015 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15016    { (exit 1); exit 1; }; }
15017         ;;
15018     esac
15019
15020     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15021     then
15022       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15023 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15024    { (exit 1); exit 1; }; }
15025     fi
15026
15027     # Update the list of available tags.
15028     if test -n "$tagname"; then
15029       echo appending configuration tag "$tagname" to $ofile
15030
15031       case $tagname in
15032       CXX)
15033         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15034             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15035             (test "X$CXX" != "Xg++"))) ; then
15036           ac_ext=cc
15037 ac_cpp='$CXXCPP $CPPFLAGS'
15038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15041
15042
15043
15044
15045 archive_cmds_need_lc_CXX=no
15046 allow_undefined_flag_CXX=
15047 always_export_symbols_CXX=no
15048 archive_expsym_cmds_CXX=
15049 export_dynamic_flag_spec_CXX=
15050 hardcode_direct_CXX=no
15051 hardcode_libdir_flag_spec_CXX=
15052 hardcode_libdir_flag_spec_ld_CXX=
15053 hardcode_libdir_separator_CXX=
15054 hardcode_minus_L_CXX=no
15055 hardcode_automatic_CXX=no
15056 module_cmds_CXX=
15057 module_expsym_cmds_CXX=
15058 link_all_deplibs_CXX=unknown
15059 old_archive_cmds_CXX=$old_archive_cmds
15060 no_undefined_flag_CXX=
15061 whole_archive_flag_spec_CXX=
15062 enable_shared_with_static_runtimes_CXX=no
15063
15064 # Dependencies to place before and after the object being linked:
15065 predep_objects_CXX=
15066 postdep_objects_CXX=
15067 predeps_CXX=
15068 postdeps_CXX=
15069 compiler_lib_search_path_CXX=
15070
15071 # Source file extension for C++ test sources.
15072 ac_ext=cc
15073
15074 # Object file extension for compiled C++ test sources.
15075 objext=o
15076 objext_CXX=$objext
15077
15078 # Code to be used in simple compile tests
15079 lt_simple_compile_test_code="int some_variable = 0;\n"
15080
15081 # Code to be used in simple link tests
15082 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15083
15084 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15085
15086 # If no C compiler was specified, use CC.
15087 LTCC=${LTCC-"$CC"}
15088
15089 # Allow CC to be a program name with arguments.
15090 compiler=$CC
15091
15092
15093 # Allow CC to be a program name with arguments.
15094 lt_save_CC=$CC
15095 lt_save_LD=$LD
15096 lt_save_GCC=$GCC
15097 GCC=$GXX
15098 lt_save_with_gnu_ld=$with_gnu_ld
15099 lt_save_path_LD=$lt_cv_path_LD
15100 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15101   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15102 else
15103   unset lt_cv_prog_gnu_ld
15104 fi
15105 if test -n "${lt_cv_path_LDCXX+set}"; then
15106   lt_cv_path_LD=$lt_cv_path_LDCXX
15107 else
15108   unset lt_cv_path_LD
15109 fi
15110 test -z "${LDCXX+set}" || LD=$LDCXX
15111 CC=${CXX-"c++"}
15112 compiler=$CC
15113 compiler_CXX=$CC
15114 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15115
15116 # We don't want -fno-exception wen compiling C++ code, so set the
15117 # no_builtin_flag separately
15118 if test "$GXX" = yes; then
15119   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15120 else
15121   lt_prog_compiler_no_builtin_flag_CXX=
15122 fi
15123
15124 if test "$GXX" = yes; then
15125   # Set up default GNU C++ configuration
15126
15127
15128 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15129 if test "${with_gnu_ld+set}" = set; then
15130   withval="$with_gnu_ld"
15131   test "$withval" = no || with_gnu_ld=yes
15132 else
15133   with_gnu_ld=no
15134 fi;
15135 ac_prog=ld
15136 if test "$GCC" = yes; then
15137   # Check if gcc -print-prog-name=ld gives a path.
15138   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15139 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15140   case $host in
15141   *-*-mingw*)
15142     # gcc leaves a trailing carriage return which upsets mingw
15143     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15144   *)
15145     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15146   esac
15147   case $ac_prog in
15148     # Accept absolute paths.
15149     [\\/]* | ?:[\\/]*)
15150       re_direlt='/[^/][^/]*/\.\./'
15151       # Canonicalize the pathname of ld
15152       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15153       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15154         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15155       done
15156       test -z "$LD" && LD="$ac_prog"
15157       ;;
15158   "")
15159     # If it fails, then pretend we aren't using GCC.
15160     ac_prog=ld
15161     ;;
15162   *)
15163     # If it is relative, then search for the first ld in PATH.
15164     with_gnu_ld=unknown
15165     ;;
15166   esac
15167 elif test "$with_gnu_ld" = yes; then
15168   echo "$as_me:$LINENO: checking for GNU ld" >&5
15169 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15170 else
15171   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15172 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15173 fi
15174 if test "${lt_cv_path_LD+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   if test -z "$LD"; then
15178   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15179   for ac_dir in $PATH; do
15180     IFS="$lt_save_ifs"
15181     test -z "$ac_dir" && ac_dir=.
15182     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15183       lt_cv_path_LD="$ac_dir/$ac_prog"
15184       # Check to see if the program is GNU ld.  I'd rather use --version,
15185       # but apparently some GNU ld's only accept -v.
15186       # Break only if it was the GNU/non-GNU ld that we prefer.
15187       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15188       *GNU* | *'with BFD'*)
15189         test "$with_gnu_ld" != no && break
15190         ;;
15191       *)
15192         test "$with_gnu_ld" != yes && break
15193         ;;
15194       esac
15195     fi
15196   done
15197   IFS="$lt_save_ifs"
15198 else
15199   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15200 fi
15201 fi
15202
15203 LD="$lt_cv_path_LD"
15204 if test -n "$LD"; then
15205   echo "$as_me:$LINENO: result: $LD" >&5
15206 echo "${ECHO_T}$LD" >&6
15207 else
15208   echo "$as_me:$LINENO: result: no" >&5
15209 echo "${ECHO_T}no" >&6
15210 fi
15211 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15212 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15213    { (exit 1); exit 1; }; }
15214 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15215 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15216 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15220 case `$LD -v 2>&1 </dev/null` in
15221 *GNU* | *'with BFD'*)
15222   lt_cv_prog_gnu_ld=yes
15223   ;;
15224 *)
15225   lt_cv_prog_gnu_ld=no
15226   ;;
15227 esac
15228 fi
15229 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15230 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15231 with_gnu_ld=$lt_cv_prog_gnu_ld
15232
15233
15234
15235   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15236   # archiving commands below assume that GNU ld is being used.
15237   if test "$with_gnu_ld" = yes; then
15238     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15239     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'
15240
15241     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15242     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15243
15244     # If archive_cmds runs LD, not CC, wlarc should be empty
15245     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15246     #     investigate it a little bit more. (MM)
15247     wlarc='${wl}'
15248
15249     # ancient GNU ld didn't support --whole-archive et. al.
15250     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15251         grep 'no-whole-archive' > /dev/null; then
15252       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15253     else
15254       whole_archive_flag_spec_CXX=
15255     fi
15256   else
15257     with_gnu_ld=no
15258     wlarc=
15259
15260     # A generic and very simple default shared library creation
15261     # command for GNU C++ for the case where it uses the native
15262     # linker, instead of GNU ld.  If possible, this setting should
15263     # overridden to take advantage of the native linker features on
15264     # the platform it is being used on.
15265     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15266   fi
15267
15268   # Commands to make compiler produce verbose output that lists
15269   # what "hidden" libraries, object files and flags are used when
15270   # linking a shared library.
15271   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15272
15273 else
15274   GXX=no
15275   with_gnu_ld=no
15276   wlarc=
15277 fi
15278
15279 # PORTME: fill in a description of your system's C++ link characteristics
15280 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15281 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15282 ld_shlibs_CXX=yes
15283 case $host_os in
15284   aix3*)
15285     # FIXME: insert proper C++ library support
15286     ld_shlibs_CXX=no
15287     ;;
15288   aix4* | aix5*)
15289     if test "$host_cpu" = ia64; then
15290       # On IA64, the linker does run time linking by default, so we don't
15291       # have to do anything special.
15292       aix_use_runtimelinking=no
15293       exp_sym_flag='-Bexport'
15294       no_entry_flag=""
15295     else
15296       aix_use_runtimelinking=no
15297
15298       # Test if we are trying to use run time linking or normal
15299       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15300       # need to do runtime linking.
15301       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15302         for ld_flag in $LDFLAGS; do
15303           case $ld_flag in
15304           *-brtl*)
15305             aix_use_runtimelinking=yes
15306             break
15307             ;;
15308           esac
15309         done
15310       esac
15311
15312       exp_sym_flag='-bexport'
15313       no_entry_flag='-bnoentry'
15314     fi
15315
15316     # When large executables or shared objects are built, AIX ld can
15317     # have problems creating the table of contents.  If linking a library
15318     # or program results in "error TOC overflow" add -mminimal-toc to
15319     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15320     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15321
15322     archive_cmds_CXX=''
15323     hardcode_direct_CXX=yes
15324     hardcode_libdir_separator_CXX=':'
15325     link_all_deplibs_CXX=yes
15326
15327     if test "$GXX" = yes; then
15328       case $host_os in aix4.012|aix4.012.*)
15329       # We only want to do this on AIX 4.2 and lower, the check
15330       # below for broken collect2 doesn't work under 4.3+
15331         collect2name=`${CC} -print-prog-name=collect2`
15332         if test -f "$collect2name" && \
15333            strings "$collect2name" | grep resolve_lib_name >/dev/null
15334         then
15335           # We have reworked collect2
15336           hardcode_direct_CXX=yes
15337         else
15338           # We have old collect2
15339           hardcode_direct_CXX=unsupported
15340           # It fails to find uninstalled libraries when the uninstalled
15341           # path is not listed in the libpath.  Setting hardcode_minus_L
15342           # to unsupported forces relinking
15343           hardcode_minus_L_CXX=yes
15344           hardcode_libdir_flag_spec_CXX='-L$libdir'
15345           hardcode_libdir_separator_CXX=
15346         fi
15347       esac
15348       shared_flag='-shared'
15349     else
15350       # not using gcc
15351       if test "$host_cpu" = ia64; then
15352         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15353         # chokes on -Wl,-G. The following line is correct:
15354         shared_flag='-G'
15355       else
15356         if test "$aix_use_runtimelinking" = yes; then
15357           shared_flag='${wl}-G'
15358         else
15359           shared_flag='${wl}-bM:SRE'
15360         fi
15361       fi
15362     fi
15363
15364     # It seems that -bexpall does not export symbols beginning with
15365     # underscore (_), so it is better to generate a list of symbols to export.
15366     always_export_symbols_CXX=yes
15367     if test "$aix_use_runtimelinking" = yes; then
15368       # Warning - without using the other runtime loading flags (-brtl),
15369       # -berok will link without error, but may produce a broken library.
15370       allow_undefined_flag_CXX='-berok'
15371       # Determine the default libpath from the value encoded in an empty executable.
15372       cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378
15379 int
15380 main ()
15381 {
15382
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15389   (eval $ac_link) 2>conftest.er1
15390   ac_status=$?
15391   grep -v '^ *+' conftest.er1 >conftest.err
15392   rm -f conftest.er1
15393   cat conftest.err >&5
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } &&
15396          { ac_try='test -z "$ac_cxx_werror_flag"
15397                          || test ! -s conftest.err'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; } &&
15403          { ac_try='test -s conftest$ac_exeext'
15404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405   (eval $ac_try) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }; then
15409
15410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15411 }'`
15412 # Check for a 64-bit object if we didn't find anything.
15413 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; }
15414 }'`; fi
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 fi
15420 rm -f conftest.err conftest.$ac_objext \
15421       conftest$ac_exeext conftest.$ac_ext
15422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15423
15424       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15425
15426       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"
15427      else
15428       if test "$host_cpu" = ia64; then
15429         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15430         allow_undefined_flag_CXX="-z nodefs"
15431         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"
15432       else
15433         # Determine the default libpath from the value encoded in an empty executable.
15434         cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440
15441 int
15442 main ()
15443 {
15444
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15451   (eval $ac_link) 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_cxx_werror_flag"
15459                          || test ! -s conftest.err'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; } &&
15465          { ac_try='test -s conftest$ac_exeext'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; }; then
15471
15472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15473 }'`
15474 # Check for a 64-bit object if we didn't find anything.
15475 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; }
15476 }'`; fi
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 fi
15482 rm -f conftest.err conftest.$ac_objext \
15483       conftest$ac_exeext conftest.$ac_ext
15484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15485
15486         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15487         # Warning - without using the other run time loading flags,
15488         # -berok will link without error, but may produce a broken library.
15489         no_undefined_flag_CXX=' ${wl}-bernotok'
15490         allow_undefined_flag_CXX=' ${wl}-berok'
15491         # -bexpall does not export symbols beginning with underscore (_)
15492         always_export_symbols_CXX=yes
15493         # Exported symbols can be pulled into shared objects from archives
15494         whole_archive_flag_spec_CXX=' '
15495         archive_cmds_need_lc_CXX=yes
15496         # This is similar to how AIX traditionally builds it's shared libraries.
15497         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'
15498       fi
15499     fi
15500     ;;
15501   chorus*)
15502     case $cc_basename in
15503       *)
15504         # FIXME: insert proper C++ library support
15505         ld_shlibs_CXX=no
15506         ;;
15507     esac
15508     ;;
15509
15510
15511   cygwin* | mingw* | pw32*)
15512     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15513     # as there is no search path for DLLs.
15514     hardcode_libdir_flag_spec_CXX='-L$libdir'
15515     allow_undefined_flag_CXX=unsupported
15516     always_export_symbols_CXX=no
15517     enable_shared_with_static_runtimes_CXX=yes
15518
15519     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15520       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'
15521       # If the export-symbols file already is a .def file (1st line
15522       # is EXPORTS), use it as is; otherwise, prepend...
15523       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15524         cp $export_symbols $output_objdir/$soname.def;
15525       else
15526         echo EXPORTS > $output_objdir/$soname.def;
15527         cat $export_symbols >> $output_objdir/$soname.def;
15528       fi~
15529       $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'
15530     else
15531       ld_shlibs_CXX=no
15532     fi
15533   ;;
15534       darwin* | rhapsody*)
15535         case "$host_os" in
15536         rhapsody* | darwin1.[012])
15537          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15538          ;;
15539        *) # Darwin 1.3 on
15540          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15541            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15542          else
15543            case ${MACOSX_DEPLOYMENT_TARGET} in
15544              10.[012])
15545                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15546                ;;
15547              10.*)
15548                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15549                ;;
15550            esac
15551          fi
15552          ;;
15553         esac
15554       archive_cmds_need_lc_CXX=no
15555       hardcode_direct_CXX=no
15556       hardcode_automatic_CXX=yes
15557       hardcode_shlibpath_var_CXX=unsupported
15558       whole_archive_flag_spec_CXX=''
15559       link_all_deplibs_CXX=yes
15560
15561     if test "$GXX" = yes ; then
15562       lt_int_apple_cc_single_mod=no
15563       output_verbose_link_cmd='echo'
15564       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15565        lt_int_apple_cc_single_mod=yes
15566       fi
15567       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15568        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15569       else
15570           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'
15571         fi
15572         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15573         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15574           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15575             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}'
15576           else
15577             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}'
15578           fi
15579             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}'
15580       else
15581       case "$cc_basename" in
15582         xlc*)
15583          output_verbose_link_cmd='echo'
15584           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'
15585           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15586           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15587           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}'
15588           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}'
15589           ;;
15590        *)
15591          ld_shlibs_CXX=no
15592           ;;
15593       esac
15594       fi
15595         ;;
15596
15597   dgux*)
15598     case $cc_basename in
15599       ec++)
15600         # FIXME: insert proper C++ library support
15601         ld_shlibs_CXX=no
15602         ;;
15603       ghcx)
15604         # Green Hills C++ Compiler
15605         # FIXME: insert proper C++ library support
15606         ld_shlibs_CXX=no
15607         ;;
15608       *)
15609         # FIXME: insert proper C++ library support
15610         ld_shlibs_CXX=no
15611         ;;
15612     esac
15613     ;;
15614   freebsd12*)
15615     # C++ shared libraries reported to be fairly broken before switch to ELF
15616     ld_shlibs_CXX=no
15617     ;;
15618   freebsd-elf*)
15619     archive_cmds_need_lc_CXX=no
15620     ;;
15621   freebsd* | kfreebsd*-gnu)
15622     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15623     # conventions
15624     ld_shlibs_CXX=yes
15625     ;;
15626   gnu*)
15627     ;;
15628   hpux9*)
15629     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630     hardcode_libdir_separator_CXX=:
15631     export_dynamic_flag_spec_CXX='${wl}-E'
15632     hardcode_direct_CXX=yes
15633     hardcode_minus_L_CXX=yes # Not in the search PATH,
15634                                 # but as the default
15635                                 # location of the library.
15636
15637     case $cc_basename in
15638     CC)
15639       # FIXME: insert proper C++ library support
15640       ld_shlibs_CXX=no
15641       ;;
15642     aCC)
15643       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'
15644       # Commands to make compiler produce verbose output that lists
15645       # what "hidden" libraries, object files and flags are used when
15646       # linking a shared library.
15647       #
15648       # There doesn't appear to be a way to prevent this compiler from
15649       # explicitly linking system object files so we need to strip them
15650       # from the output so that they don't get included in the library
15651       # dependencies.
15652       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'
15653       ;;
15654     *)
15655       if test "$GXX" = yes; then
15656         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'
15657       else
15658         # FIXME: insert proper C++ library support
15659         ld_shlibs_CXX=no
15660       fi
15661       ;;
15662     esac
15663     ;;
15664   hpux10*|hpux11*)
15665     if test $with_gnu_ld = no; then
15666       case "$host_cpu" in
15667       hppa*64*)
15668         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15670         hardcode_libdir_separator_CXX=:
15671         ;;
15672       ia64*)
15673         hardcode_libdir_flag_spec_CXX='-L$libdir'
15674         ;;
15675       *)
15676         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15677         hardcode_libdir_separator_CXX=:
15678         export_dynamic_flag_spec_CXX='${wl}-E'
15679         ;;
15680       esac
15681     fi
15682     case "$host_cpu" in
15683     hppa*64*)
15684       hardcode_direct_CXX=no
15685       hardcode_shlibpath_var_CXX=no
15686       ;;
15687     ia64*)
15688       hardcode_direct_CXX=no
15689       hardcode_shlibpath_var_CXX=no
15690       hardcode_minus_L_CXX=yes # Not in the search PATH,
15691                                               # but as the default
15692                                               # location of the library.
15693       ;;
15694     *)
15695       hardcode_direct_CXX=yes
15696       hardcode_minus_L_CXX=yes # Not in the search PATH,
15697                                               # but as the default
15698                                               # location of the library.
15699       ;;
15700     esac
15701
15702     case $cc_basename in
15703       CC)
15704         # FIXME: insert proper C++ library support
15705         ld_shlibs_CXX=no
15706         ;;
15707       aCC)
15708         case "$host_cpu" in
15709         hppa*64*|ia64*)
15710           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15711           ;;
15712         *)
15713           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15714           ;;
15715         esac
15716         # Commands to make compiler produce verbose output that lists
15717         # what "hidden" libraries, object files and flags are used when
15718         # linking a shared library.
15719         #
15720         # There doesn't appear to be a way to prevent this compiler from
15721         # explicitly linking system object files so we need to strip them
15722         # from the output so that they don't get included in the library
15723         # dependencies.
15724         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'
15725         ;;
15726       *)
15727         if test "$GXX" = yes; then
15728           if test $with_gnu_ld = no; then
15729             case "$host_cpu" in
15730             ia64*|hppa*64*)
15731               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15732               ;;
15733             *)
15734               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'
15735               ;;
15736             esac
15737           fi
15738         else
15739           # FIXME: insert proper C++ library support
15740           ld_shlibs_CXX=no
15741         fi
15742         ;;
15743     esac
15744     ;;
15745   irix5* | irix6*)
15746     case $cc_basename in
15747       CC)
15748         # SGI C++
15749         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'
15750
15751         # Archives containing C++ object files must be created using
15752         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15753         # necessary to make sure instantiated templates are included
15754         # in the archive.
15755         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15756         ;;
15757       *)
15758         if test "$GXX" = yes; then
15759           if test "$with_gnu_ld" = no; then
15760             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'
15761           else
15762             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'
15763           fi
15764         fi
15765         link_all_deplibs_CXX=yes
15766         ;;
15767     esac
15768     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15769     hardcode_libdir_separator_CXX=:
15770     ;;
15771   linux*)
15772     case $cc_basename in
15773       KCC)
15774         # Kuck and Associates, Inc. (KAI) C++ Compiler
15775
15776         # KCC will only create a shared library if the output file
15777         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15778         # to its proper name (with version) after linking.
15779         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'
15780         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'
15781         # Commands to make compiler produce verbose output that lists
15782         # what "hidden" libraries, object files and flags are used when
15783         # linking a shared library.
15784         #
15785         # There doesn't appear to be a way to prevent this compiler from
15786         # explicitly linking system object files so we need to strip them
15787         # from the output so that they don't get included in the library
15788         # dependencies.
15789         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'
15790
15791         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15792         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15793
15794         # Archives containing C++ object files must be created using
15795         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15796         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15797         ;;
15798       icpc)
15799         # Intel C++
15800         with_gnu_ld=yes
15801         # version 8.0 and above of icpc choke on multiply defined symbols
15802         # if we add $predep_objects and $postdep_objects, however 7.1 and
15803         # earlier do not add the objects themselves.
15804         case `$CC -V 2>&1` in
15805         *"Version 7."*)
15806           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807           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'
15808           ;;
15809         *)  # Version 8.0 or newer
15810           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15812           ;;
15813         esac
15814         archive_cmds_need_lc_CXX=no
15815         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15816         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15817         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15818         ;;
15819       cxx)
15820         # Compaq C++
15821         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822         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'
15823
15824         runpath_var=LD_RUN_PATH
15825         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15826         hardcode_libdir_separator_CXX=:
15827
15828         # Commands to make compiler produce verbose output that lists
15829         # what "hidden" libraries, object files and flags are used when
15830         # linking a shared library.
15831         #
15832         # There doesn't appear to be a way to prevent this compiler from
15833         # explicitly linking system object files so we need to strip them
15834         # from the output so that they don't get included in the library
15835         # dependencies.
15836         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'
15837         ;;
15838     esac
15839     ;;
15840   lynxos*)
15841     # FIXME: insert proper C++ library support
15842     ld_shlibs_CXX=no
15843     ;;
15844   m88k*)
15845     # FIXME: insert proper C++ library support
15846     ld_shlibs_CXX=no
15847     ;;
15848   mvs*)
15849     case $cc_basename in
15850       cxx)
15851         # FIXME: insert proper C++ library support
15852         ld_shlibs_CXX=no
15853         ;;
15854       *)
15855         # FIXME: insert proper C++ library support
15856         ld_shlibs_CXX=no
15857         ;;
15858     esac
15859     ;;
15860   netbsd*)
15861     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15863       wlarc=
15864       hardcode_libdir_flag_spec_CXX='-R$libdir'
15865       hardcode_direct_CXX=yes
15866       hardcode_shlibpath_var_CXX=no
15867     fi
15868     # Workaround some broken pre-1.5 toolchains
15869     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15870     ;;
15871   openbsd2*)
15872     # C++ shared libraries are fairly broken
15873     ld_shlibs_CXX=no
15874     ;;
15875   openbsd*)
15876     hardcode_direct_CXX=yes
15877     hardcode_shlibpath_var_CXX=no
15878     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15879     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15880     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15882       export_dynamic_flag_spec_CXX='${wl}-E'
15883       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15884     fi
15885     output_verbose_link_cmd='echo'
15886     ;;
15887   osf3*)
15888     case $cc_basename in
15889       KCC)
15890         # Kuck and Associates, Inc. (KAI) C++ Compiler
15891
15892         # KCC will only create a shared library if the output file
15893         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15894         # to its proper name (with version) after linking.
15895         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'
15896
15897         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15898         hardcode_libdir_separator_CXX=:
15899
15900         # Archives containing C++ object files must be created using
15901         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15902         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15903
15904         ;;
15905       RCC)
15906         # Rational C++ 2.4.1
15907         # FIXME: insert proper C++ library support
15908         ld_shlibs_CXX=no
15909         ;;
15910       cxx)
15911         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15912         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'
15913
15914         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15915         hardcode_libdir_separator_CXX=:
15916
15917         # Commands to make compiler produce verbose output that lists
15918         # what "hidden" libraries, object files and flags are used when
15919         # linking a shared library.
15920         #
15921         # There doesn't appear to be a way to prevent this compiler from
15922         # explicitly linking system object files so we need to strip them
15923         # from the output so that they don't get included in the library
15924         # dependencies.
15925         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'
15926         ;;
15927       *)
15928         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15929           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15930           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'
15931
15932           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15933           hardcode_libdir_separator_CXX=:
15934
15935           # Commands to make compiler produce verbose output that lists
15936           # what "hidden" libraries, object files and flags are used when
15937           # linking a shared library.
15938           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15939
15940         else
15941           # FIXME: insert proper C++ library support
15942           ld_shlibs_CXX=no
15943         fi
15944         ;;
15945     esac
15946     ;;
15947   osf4* | osf5*)
15948     case $cc_basename in
15949       KCC)
15950         # Kuck and Associates, Inc. (KAI) C++ Compiler
15951
15952         # KCC will only create a shared library if the output file
15953         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15954         # to its proper name (with version) after linking.
15955         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'
15956
15957         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15958         hardcode_libdir_separator_CXX=:
15959
15960         # Archives containing C++ object files must be created using
15961         # the KAI C++ compiler.
15962         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15963         ;;
15964       RCC)
15965         # Rational C++ 2.4.1
15966         # FIXME: insert proper C++ library support
15967         ld_shlibs_CXX=no
15968         ;;
15969       cxx)
15970         allow_undefined_flag_CXX=' -expect_unresolved \*'
15971         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'
15972         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15973           echo "-hidden">> $lib.exp~
15974           $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~
15975           $rm $lib.exp'
15976
15977         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15978         hardcode_libdir_separator_CXX=:
15979
15980         # Commands to make compiler produce verbose output that lists
15981         # what "hidden" libraries, object files and flags are used when
15982         # linking a shared library.
15983         #
15984         # There doesn't appear to be a way to prevent this compiler from
15985         # explicitly linking system object files so we need to strip them
15986         # from the output so that they don't get included in the library
15987         # dependencies.
15988         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'
15989         ;;
15990       *)
15991         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15992           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15993          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'
15994
15995           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15996           hardcode_libdir_separator_CXX=:
15997
15998           # Commands to make compiler produce verbose output that lists
15999           # what "hidden" libraries, object files and flags are used when
16000           # linking a shared library.
16001           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16002
16003         else
16004           # FIXME: insert proper C++ library support
16005           ld_shlibs_CXX=no
16006         fi
16007         ;;
16008     esac
16009     ;;
16010   psos*)
16011     # FIXME: insert proper C++ library support
16012     ld_shlibs_CXX=no
16013     ;;
16014   sco*)
16015     archive_cmds_need_lc_CXX=no
16016     case $cc_basename in
16017       CC)
16018         # FIXME: insert proper C++ library support
16019         ld_shlibs_CXX=no
16020         ;;
16021       *)
16022         # FIXME: insert proper C++ library support
16023         ld_shlibs_CXX=no
16024         ;;
16025     esac
16026     ;;
16027   sunos4*)
16028     case $cc_basename in
16029       CC)
16030         # Sun C++ 4.x
16031         # FIXME: insert proper C++ library support
16032         ld_shlibs_CXX=no
16033         ;;
16034       lcc)
16035         # Lucid
16036         # FIXME: insert proper C++ library support
16037         ld_shlibs_CXX=no
16038         ;;
16039       *)
16040         # FIXME: insert proper C++ library support
16041         ld_shlibs_CXX=no
16042         ;;
16043     esac
16044     ;;
16045   solaris*)
16046     case $cc_basename in
16047       CC)
16048         # Sun C++ 4.2, 5.x and Centerline C++
16049         no_undefined_flag_CXX=' -zdefs'
16050         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16051         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16052         $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'
16053
16054         hardcode_libdir_flag_spec_CXX='-R$libdir'
16055         hardcode_shlibpath_var_CXX=no
16056         case $host_os in
16057           solaris2.0-5 | solaris2.0-5.*) ;;
16058           *)
16059             # The C++ compiler is used as linker so we must use $wl
16060             # flag to pass the commands to the underlying system
16061             # linker.
16062             # Supported since Solaris 2.6 (maybe 2.5.1?)
16063             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16064             ;;
16065         esac
16066         link_all_deplibs_CXX=yes
16067
16068         # Commands to make compiler produce verbose output that lists
16069         # what "hidden" libraries, object files and flags are used when
16070         # linking a shared library.
16071         #
16072         # There doesn't appear to be a way to prevent this compiler from
16073         # explicitly linking system object files so we need to strip them
16074         # from the output so that they don't get included in the library
16075         # dependencies.
16076         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'
16077
16078         # Archives containing C++ object files must be created using
16079         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16080         # necessary to make sure instantiated templates are included
16081         # in the archive.
16082         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16083         ;;
16084       gcx)
16085         # Green Hills C++ Compiler
16086         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16087
16088         # The C++ compiler must be used to create the archive.
16089         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16090         ;;
16091       *)
16092         # GNU C++ compiler with Solaris linker
16093         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16094           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16095           if $CC --version | grep -v '^2\.7' > /dev/null; then
16096             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16097             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16099
16100             # Commands to make compiler produce verbose output that lists
16101             # what "hidden" libraries, object files and flags are used when
16102             # linking a shared library.
16103             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16104           else
16105             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16106             # platform.
16107             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16108             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16109                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16110
16111             # Commands to make compiler produce verbose output that lists
16112             # what "hidden" libraries, object files and flags are used when
16113             # linking a shared library.
16114             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16115           fi
16116
16117           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16118         fi
16119         ;;
16120     esac
16121     ;;
16122   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16123     archive_cmds_need_lc_CXX=no
16124     ;;
16125   tandem*)
16126     case $cc_basename in
16127       NCC)
16128         # NonStop-UX NCC 3.20
16129         # FIXME: insert proper C++ library support
16130         ld_shlibs_CXX=no
16131         ;;
16132       *)
16133         # FIXME: insert proper C++ library support
16134         ld_shlibs_CXX=no
16135         ;;
16136     esac
16137     ;;
16138   vxworks*)
16139     # FIXME: insert proper C++ library support
16140     ld_shlibs_CXX=no
16141     ;;
16142   *)
16143     # FIXME: insert proper C++ library support
16144     ld_shlibs_CXX=no
16145     ;;
16146 esac
16147 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16148 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16149 test "$ld_shlibs_CXX" = no && can_build_shared=no
16150
16151 GCC_CXX="$GXX"
16152 LD_CXX="$LD"
16153
16154
16155 cat > conftest.$ac_ext <<EOF
16156 class Foo
16157 {
16158 public:
16159   Foo (void) { a = 0; }
16160 private:
16161   int a;
16162 };
16163 EOF
16164
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166   (eval $ac_compile) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; then
16170   # Parse the compiler output and extract the necessary
16171   # objects, libraries and library flags.
16172
16173   # Sentinel used to keep track of whether or not we are before
16174   # the conftest object file.
16175   pre_test_object_deps_done=no
16176
16177   # The `*' in the case matches for architectures that use `case' in
16178   # $output_verbose_cmd can trigger glob expansion during the loop
16179   # eval without this substitution.
16180   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16181
16182   for p in `eval $output_verbose_link_cmd`; do
16183     case $p in
16184
16185     -L* | -R* | -l*)
16186        # Some compilers place space between "-{L,R}" and the path.
16187        # Remove the space.
16188        if test $p = "-L" \
16189           || test $p = "-R"; then
16190          prev=$p
16191          continue
16192        else
16193          prev=
16194        fi
16195
16196        if test "$pre_test_object_deps_done" = no; then
16197          case $p in
16198          -L* | -R*)
16199            # Internal compiler library paths should come after those
16200            # provided the user.  The postdeps already come after the
16201            # user supplied libs so there is no need to process them.
16202            if test -z "$compiler_lib_search_path_CXX"; then
16203              compiler_lib_search_path_CXX="${prev}${p}"
16204            else
16205              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16206            fi
16207            ;;
16208          # The "-l" case would never come before the object being
16209          # linked, so don't bother handling this case.
16210          esac
16211        else
16212          if test -z "$postdeps_CXX"; then
16213            postdeps_CXX="${prev}${p}"
16214          else
16215            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16216          fi
16217        fi
16218        ;;
16219
16220     *.$objext)
16221        # This assumes that the test object file only shows up
16222        # once in the compiler output.
16223        if test "$p" = "conftest.$objext"; then
16224          pre_test_object_deps_done=yes
16225          continue
16226        fi
16227
16228        if test "$pre_test_object_deps_done" = no; then
16229          if test -z "$predep_objects_CXX"; then
16230            predep_objects_CXX="$p"
16231          else
16232            predep_objects_CXX="$predep_objects_CXX $p"
16233          fi
16234        else
16235          if test -z "$postdep_objects_CXX"; then
16236            postdep_objects_CXX="$p"
16237          else
16238            postdep_objects_CXX="$postdep_objects_CXX $p"
16239          fi
16240        fi
16241        ;;
16242
16243     *) ;; # Ignore the rest.
16244
16245     esac
16246   done
16247
16248   # Clean up.
16249   rm -f a.out a.exe
16250 else
16251   echo "libtool.m4: error: problem compiling CXX test program"
16252 fi
16253
16254 $rm -f confest.$objext
16255
16256 case " $postdeps_CXX " in
16257 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16258 esac
16259
16260 lt_prog_compiler_wl_CXX=
16261 lt_prog_compiler_pic_CXX=
16262 lt_prog_compiler_static_CXX=
16263
16264 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16265 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16266
16267   # C++ specific cases for pic, static, wl, etc.
16268   if test "$GXX" = yes; then
16269     lt_prog_compiler_wl_CXX='-Wl,'
16270     lt_prog_compiler_static_CXX='-static'
16271
16272     case $host_os in
16273     aix*)
16274       # All AIX code is PIC.
16275       if test "$host_cpu" = ia64; then
16276         # AIX 5 now supports IA64 processor
16277         lt_prog_compiler_static_CXX='-Bstatic'
16278       fi
16279       ;;
16280     amigaos*)
16281       # FIXME: we need at least 68020 code to build shared libraries, but
16282       # adding the `-m68020' flag to GCC prevents building anything better,
16283       # like `-m68040'.
16284       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16285       ;;
16286     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16287       # PIC is the default for these OSes.
16288       ;;
16289     mingw* | os2* | pw32*)
16290       # This hack is so that the source file can tell whether it is being
16291       # built for inclusion in a dll (and should export symbols for example).
16292       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16293       ;;
16294     darwin* | rhapsody*)
16295       # PIC is the default on this platform
16296       # Common symbols not allowed in MH_DYLIB files
16297       lt_prog_compiler_pic_CXX='-fno-common'
16298       ;;
16299     *djgpp*)
16300       # DJGPP does not support shared libraries at all
16301       lt_prog_compiler_pic_CXX=
16302       ;;
16303     sysv4*MP*)
16304       if test -d /usr/nec; then
16305         lt_prog_compiler_pic_CXX=-Kconform_pic
16306       fi
16307       ;;
16308     hpux*)
16309       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16310       # not for PA HP-UX.
16311       case "$host_cpu" in
16312       hppa*64*|ia64*)
16313         ;;
16314       *)
16315         lt_prog_compiler_pic_CXX='-fPIC'
16316         ;;
16317       esac
16318       ;;
16319     *)
16320       lt_prog_compiler_pic_CXX='-fPIC'
16321       ;;
16322     esac
16323   else
16324     case $host_os in
16325       aix4* | aix5*)
16326         # All AIX code is PIC.
16327         if test "$host_cpu" = ia64; then
16328           # AIX 5 now supports IA64 processor
16329           lt_prog_compiler_static_CXX='-Bstatic'
16330         else
16331           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16332         fi
16333         ;;
16334       chorus*)
16335         case $cc_basename in
16336         cxch68)
16337           # Green Hills C++ Compiler
16338           # _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"
16339           ;;
16340         esac
16341         ;;
16342        darwin*)
16343          # PIC is the default on this platform
16344          # Common symbols not allowed in MH_DYLIB files
16345          case "$cc_basename" in
16346            xlc*)
16347            lt_prog_compiler_pic_CXX='-qnocommon'
16348            lt_prog_compiler_wl_CXX='-Wl,'
16349            ;;
16350          esac
16351        ;;
16352       dgux*)
16353         case $cc_basename in
16354           ec++)
16355             lt_prog_compiler_pic_CXX='-KPIC'
16356             ;;
16357           ghcx)
16358             # Green Hills C++ Compiler
16359             lt_prog_compiler_pic_CXX='-pic'
16360             ;;
16361           *)
16362             ;;
16363         esac
16364         ;;
16365       freebsd* | kfreebsd*-gnu)
16366         # FreeBSD uses GNU C++
16367         ;;
16368       hpux9* | hpux10* | hpux11*)
16369         case $cc_basename in
16370           CC)
16371             lt_prog_compiler_wl_CXX='-Wl,'
16372             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16373             if test "$host_cpu" != ia64; then
16374               lt_prog_compiler_pic_CXX='+Z'
16375             fi
16376             ;;
16377           aCC)
16378             lt_prog_compiler_wl_CXX='-Wl,'
16379             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16380             case "$host_cpu" in
16381             hppa*64*|ia64*)
16382               # +Z the default
16383               ;;
16384             *)
16385               lt_prog_compiler_pic_CXX='+Z'
16386               ;;
16387             esac
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       irix5* | irix6* | nonstopux*)
16394         case $cc_basename in
16395           CC)
16396             lt_prog_compiler_wl_CXX='-Wl,'
16397             lt_prog_compiler_static_CXX='-non_shared'
16398             # CC pic flag -KPIC is the default.
16399             ;;
16400           *)
16401             ;;
16402         esac
16403         ;;
16404       linux*)
16405         case $cc_basename in
16406           KCC)
16407             # KAI C++ Compiler
16408             lt_prog_compiler_wl_CXX='--backend -Wl,'
16409             lt_prog_compiler_pic_CXX='-fPIC'
16410             ;;
16411           icpc)
16412             # Intel C++
16413             lt_prog_compiler_wl_CXX='-Wl,'
16414             lt_prog_compiler_pic_CXX='-KPIC'
16415             lt_prog_compiler_static_CXX='-static'
16416             ;;
16417           cxx)
16418             # Compaq C++
16419             # Make sure the PIC flag is empty.  It appears that all Alpha
16420             # Linux and Compaq Tru64 Unix objects are PIC.
16421             lt_prog_compiler_pic_CXX=
16422             lt_prog_compiler_static_CXX='-non_shared'
16423             ;;
16424           *)
16425             ;;
16426         esac
16427         ;;
16428       lynxos*)
16429         ;;
16430       m88k*)
16431         ;;
16432       mvs*)
16433         case $cc_basename in
16434           cxx)
16435             lt_prog_compiler_pic_CXX='-W c,exportall'
16436             ;;
16437           *)
16438             ;;
16439         esac
16440         ;;
16441       netbsd*)
16442         ;;
16443       osf3* | osf4* | osf5*)
16444         case $cc_basename in
16445           KCC)
16446             lt_prog_compiler_wl_CXX='--backend -Wl,'
16447             ;;
16448           RCC)
16449             # Rational C++ 2.4.1
16450             lt_prog_compiler_pic_CXX='-pic'
16451             ;;
16452           cxx)
16453             # Digital/Compaq C++
16454             lt_prog_compiler_wl_CXX='-Wl,'
16455             # Make sure the PIC flag is empty.  It appears that all Alpha
16456             # Linux and Compaq Tru64 Unix objects are PIC.
16457             lt_prog_compiler_pic_CXX=
16458             lt_prog_compiler_static_CXX='-non_shared'
16459             ;;
16460           *)
16461             ;;
16462         esac
16463         ;;
16464       psos*)
16465         ;;
16466       sco*)
16467         case $cc_basename in
16468           CC)
16469             lt_prog_compiler_pic_CXX='-fPIC'
16470             ;;
16471           *)
16472             ;;
16473         esac
16474         ;;
16475       solaris*)
16476         case $cc_basename in
16477           CC)
16478             # Sun C++ 4.2, 5.x and Centerline C++
16479             lt_prog_compiler_pic_CXX='-KPIC'
16480             lt_prog_compiler_static_CXX='-Bstatic'
16481             lt_prog_compiler_wl_CXX='-Qoption ld '
16482             ;;
16483           gcx)
16484             # Green Hills C++ Compiler
16485             lt_prog_compiler_pic_CXX='-PIC'
16486             ;;
16487           *)
16488             ;;
16489         esac
16490         ;;
16491       sunos4*)
16492         case $cc_basename in
16493           CC)
16494             # Sun C++ 4.x
16495             lt_prog_compiler_pic_CXX='-pic'
16496             lt_prog_compiler_static_CXX='-Bstatic'
16497             ;;
16498           lcc)
16499             # Lucid
16500             lt_prog_compiler_pic_CXX='-pic'
16501             ;;
16502           *)
16503             ;;
16504         esac
16505         ;;
16506       tandem*)
16507         case $cc_basename in
16508           NCC)
16509             # NonStop-UX NCC 3.20
16510             lt_prog_compiler_pic_CXX='-KPIC'
16511             ;;
16512           *)
16513             ;;
16514         esac
16515         ;;
16516       unixware*)
16517         ;;
16518       vxworks*)
16519         ;;
16520       *)
16521         lt_prog_compiler_can_build_shared_CXX=no
16522         ;;
16523     esac
16524   fi
16525
16526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16527 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16528
16529 #
16530 # Check to make sure the PIC flag actually works.
16531 #
16532 if test -n "$lt_prog_compiler_pic_CXX"; then
16533
16534 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16535 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16536 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539   lt_prog_compiler_pic_works_CXX=no
16540   ac_outfile=conftest.$ac_objext
16541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16542    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16543    # Insert the option either (1) after the last *FLAGS variable, or
16544    # (2) before a word containing "conftest.", or (3) at the end.
16545    # Note that $ac_compile itself does not contain backslashes and begins
16546    # with a dollar sign (not a hyphen), so the echo should work correctly.
16547    # The option is referenced via a variable to avoid confusing sed.
16548    lt_compile=`echo "$ac_compile" | $SED \
16549    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16551    -e 's:$: $lt_compiler_flag:'`
16552    (eval echo "\"\$as_me:16552: $lt_compile\"" >&5)
16553    (eval "$lt_compile" 2>conftest.err)
16554    ac_status=$?
16555    cat conftest.err >&5
16556    echo "$as_me:16556: \$? = $ac_status" >&5
16557    if (exit $ac_status) && test -s "$ac_outfile"; then
16558      # The compiler can only warn and ignore the option if not recognized
16559      # So say no if there are warnings
16560      if test ! -s conftest.err; then
16561        lt_prog_compiler_pic_works_CXX=yes
16562      fi
16563    fi
16564    $rm conftest*
16565
16566 fi
16567 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16568 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16569
16570 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16571     case $lt_prog_compiler_pic_CXX in
16572      "" | " "*) ;;
16573      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16574      esac
16575 else
16576     lt_prog_compiler_pic_CXX=
16577      lt_prog_compiler_can_build_shared_CXX=no
16578 fi
16579
16580 fi
16581 case "$host_os" in
16582   # For platforms which do not support PIC, -DPIC is meaningless:
16583   *djgpp*)
16584     lt_prog_compiler_pic_CXX=
16585     ;;
16586   *)
16587     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16588     ;;
16589 esac
16590
16591 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16592 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16593 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   lt_cv_prog_compiler_c_o_CXX=no
16597    $rm -r conftest 2>/dev/null
16598    mkdir conftest
16599    cd conftest
16600    mkdir out
16601    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16602
16603    lt_compiler_flag="-o out/conftest2.$ac_objext"
16604    # Insert the option either (1) after the last *FLAGS variable, or
16605    # (2) before a word containing "conftest.", or (3) at the end.
16606    # Note that $ac_compile itself does not contain backslashes and begins
16607    # with a dollar sign (not a hyphen), so the echo should work correctly.
16608    lt_compile=`echo "$ac_compile" | $SED \
16609    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16611    -e 's:$: $lt_compiler_flag:'`
16612    (eval echo "\"\$as_me:16612: $lt_compile\"" >&5)
16613    (eval "$lt_compile" 2>out/conftest.err)
16614    ac_status=$?
16615    cat out/conftest.err >&5
16616    echo "$as_me:16616: \$? = $ac_status" >&5
16617    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16618    then
16619      # The compiler can only warn and ignore the option if not recognized
16620      # So say no if there are warnings
16621      if test ! -s out/conftest.err; then
16622        lt_cv_prog_compiler_c_o_CXX=yes
16623      fi
16624    fi
16625    chmod u+w .
16626    $rm conftest*
16627    # SGI C++ compiler will create directory out/ii_files/ for
16628    # template instantiation
16629    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16630    $rm out/* && rmdir out
16631    cd ..
16632    rmdir conftest
16633    $rm conftest*
16634
16635 fi
16636 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16637 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16638
16639
16640 hard_links="nottested"
16641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16642   # do not overwrite the value of need_locks provided by the user
16643   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16644 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16645   hard_links=yes
16646   $rm conftest*
16647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16648   touch conftest.a
16649   ln conftest.a conftest.b 2>&5 || hard_links=no
16650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16651   echo "$as_me:$LINENO: result: $hard_links" >&5
16652 echo "${ECHO_T}$hard_links" >&6
16653   if test "$hard_links" = no; then
16654     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16655 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16656     need_locks=warn
16657   fi
16658 else
16659   need_locks=no
16660 fi
16661
16662 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16664
16665   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16666   case $host_os in
16667   aix4* | aix5*)
16668     # If we're using GNU nm, then we don't want the "-C" option.
16669     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16670     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16671       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'
16672     else
16673       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'
16674     fi
16675     ;;
16676   pw32*)
16677     export_symbols_cmds_CXX="$ltdll_cmds"
16678   ;;
16679   cygwin* | mingw*)
16680     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16681   ;;
16682   *)
16683     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16684   ;;
16685   esac
16686
16687 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16688 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16689 test "$ld_shlibs_CXX" = no && can_build_shared=no
16690
16691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16692 if test "$GCC" = yes; then
16693   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16694 fi
16695
16696 #
16697 # Do we need to explicitly link libc?
16698 #
16699 case "x$archive_cmds_need_lc_CXX" in
16700 x|xyes)
16701   # Assume -lc should be added
16702   archive_cmds_need_lc_CXX=yes
16703
16704   if test "$enable_shared" = yes && test "$GCC" = yes; then
16705     case $archive_cmds_CXX in
16706     *'~'*)
16707       # FIXME: we may have to deal with multi-command sequences.
16708       ;;
16709     '$CC '*)
16710       # Test whether the compiler implicitly links with -lc since on some
16711       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16712       # to ld, don't add -lc before -lgcc.
16713       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16714 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16715       $rm conftest*
16716       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16717
16718       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719   (eval $ac_compile) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } 2>conftest.err; then
16723         soname=conftest
16724         lib=conftest
16725         libobjs=conftest.$ac_objext
16726         deplibs=
16727         wl=$lt_prog_compiler_wl_CXX
16728         compiler_flags=-v
16729         linker_flags=-v
16730         verstring=
16731         output_objdir=.
16732         libname=conftest
16733         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16734         allow_undefined_flag_CXX=
16735         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16736   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }
16740         then
16741           archive_cmds_need_lc_CXX=no
16742         else
16743           archive_cmds_need_lc_CXX=yes
16744         fi
16745         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16746       else
16747         cat conftest.err 1>&5
16748       fi
16749       $rm conftest*
16750       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16751 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16752       ;;
16753     esac
16754   fi
16755   ;;
16756 esac
16757
16758 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16759 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16760 library_names_spec=
16761 libname_spec='lib$name'
16762 soname_spec=
16763 shrext_cmds=".so"
16764 postinstall_cmds=
16765 postuninstall_cmds=
16766 finish_cmds=
16767 finish_eval=
16768 shlibpath_var=
16769 shlibpath_overrides_runpath=unknown
16770 version_type=none
16771 dynamic_linker="$host_os ld.so"
16772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16773 if test "$GCC" = yes; then
16774   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16776     # if the path contains ";" then we assume it to be the separator
16777     # otherwise default to the standard path separator (i.e. ":") - it is
16778     # assumed that no part of a normal pathname contains ";" but that should
16779     # okay in the real world where ";" in dirpaths is itself problematic.
16780     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16781   else
16782     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16783   fi
16784 else
16785   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16786 fi
16787 need_lib_prefix=unknown
16788 hardcode_into_libs=no
16789
16790 # when you set need_version to no, make sure it does not cause -set_version
16791 # flags to be left without arguments
16792 need_version=unknown
16793
16794 case $host_os in
16795 aix3*)
16796   version_type=linux
16797   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16798   shlibpath_var=LIBPATH
16799
16800   # AIX 3 has no versioning support, so we append a major version to the name.
16801   soname_spec='${libname}${release}${shared_ext}$major'
16802   ;;
16803
16804 aix4* | aix5*)
16805   version_type=linux
16806   need_lib_prefix=no
16807   need_version=no
16808   hardcode_into_libs=yes
16809   if test "$host_cpu" = ia64; then
16810     # AIX 5 supports IA64
16811     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16812     shlibpath_var=LD_LIBRARY_PATH
16813   else
16814     # With GCC up to 2.95.x, collect2 would create an import file
16815     # for dependence libraries.  The import file would start with
16816     # the line `#! .'.  This would cause the generated library to
16817     # depend on `.', always an invalid library.  This was fixed in
16818     # development snapshots of GCC prior to 3.0.
16819     case $host_os in
16820       aix4 | aix4.[01] | aix4.[01].*)
16821       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16822            echo ' yes '
16823            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16824         :
16825       else
16826         can_build_shared=no
16827       fi
16828       ;;
16829     esac
16830     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16831     # soname into executable. Probably we can add versioning support to
16832     # collect2, so additional links can be useful in future.
16833     if test "$aix_use_runtimelinking" = yes; then
16834       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16835       # instead of lib<name>.a to let people know that these are not
16836       # typical AIX shared libraries.
16837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838     else
16839       # We preserve .a as extension for shared libraries through AIX4.2
16840       # and later when we are not doing run time linking.
16841       library_names_spec='${libname}${release}.a $libname.a'
16842       soname_spec='${libname}${release}${shared_ext}$major'
16843     fi
16844     shlibpath_var=LIBPATH
16845   fi
16846   ;;
16847
16848 amigaos*)
16849   library_names_spec='$libname.ixlibrary $libname.a'
16850   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16851   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'
16852   ;;
16853
16854 beos*)
16855   library_names_spec='${libname}${shared_ext}'
16856   dynamic_linker="$host_os ld.so"
16857   shlibpath_var=LIBRARY_PATH
16858   ;;
16859
16860 bsdi[45]*)
16861   version_type=linux
16862   need_version=no
16863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864   soname_spec='${libname}${release}${shared_ext}$major'
16865   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16866   shlibpath_var=LD_LIBRARY_PATH
16867   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16868   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16869   # the default ld.so.conf also contains /usr/contrib/lib and
16870   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16871   # libtool to hard-code these into programs
16872   ;;
16873
16874 cygwin* | mingw* | pw32*)
16875   version_type=windows
16876   shrext_cmds=".dll"
16877   need_version=no
16878   need_lib_prefix=no
16879
16880   case $GCC,$host_os in
16881   yes,cygwin* | yes,mingw* | yes,pw32*)
16882     library_names_spec='$libname.dll.a'
16883     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16884     postinstall_cmds='base_file=`basename \${file}`~
16885       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16886       dldir=$destdir/`dirname \$dlpath`~
16887       test -d \$dldir || mkdir -p \$dldir~
16888       $install_prog $dir/$dlname \$dldir/$dlname'
16889     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16890       dlpath=$dir/\$dldll~
16891        $rm \$dlpath'
16892     shlibpath_overrides_runpath=yes
16893
16894     case $host_os in
16895     cygwin*)
16896       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16897       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16899       ;;
16900     mingw*)
16901       # MinGW DLLs use traditional 'lib' prefix
16902       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16904       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16905         # It is most probably a Windows format PATH printed by
16906         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16907         # path with ; separators, and with drive letters. We can handle the
16908         # drive letters (cygwin fileutils understands them), so leave them,
16909         # especially as we might pass files found there to a mingw objdump,
16910         # which wouldn't understand a cygwinified path. Ahh.
16911         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16912       else
16913         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16914       fi
16915       ;;
16916     pw32*)
16917       # pw32 DLLs use 'pw' prefix rather than 'lib'
16918       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16919       ;;
16920     esac
16921     ;;
16922
16923   *)
16924     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925     ;;
16926   esac
16927   dynamic_linker='Win32 ld.exe'
16928   # FIXME: first we should search . and the directory the executable is in
16929   shlibpath_var=PATH
16930   ;;
16931
16932 darwin* | rhapsody*)
16933   dynamic_linker="$host_os dyld"
16934   version_type=darwin
16935   need_lib_prefix=no
16936   need_version=no
16937   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16938   soname_spec='${libname}${release}${major}$shared_ext'
16939   shlibpath_overrides_runpath=yes
16940   shlibpath_var=DYLD_LIBRARY_PATH
16941   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16942   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16943   if test "$GCC" = yes; then
16944     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"`
16945   else
16946     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16947   fi
16948   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16949   ;;
16950
16951 dgux*)
16952   version_type=linux
16953   need_lib_prefix=no
16954   need_version=no
16955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16956   soname_spec='${libname}${release}${shared_ext}$major'
16957   shlibpath_var=LD_LIBRARY_PATH
16958   ;;
16959
16960 freebsd1*)
16961   dynamic_linker=no
16962   ;;
16963
16964 kfreebsd*-gnu)
16965   version_type=linux
16966   need_lib_prefix=no
16967   need_version=no
16968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   shlibpath_var=LD_LIBRARY_PATH
16971   shlibpath_overrides_runpath=no
16972   hardcode_into_libs=yes
16973   dynamic_linker='GNU ld.so'
16974   ;;
16975
16976 freebsd*)
16977   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16978   version_type=freebsd-$objformat
16979   case $version_type in
16980     freebsd-elf*)
16981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16982       need_version=no
16983       need_lib_prefix=no
16984       ;;
16985     freebsd-*)
16986       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16987       need_version=yes
16988       ;;
16989   esac
16990   shlibpath_var=LD_LIBRARY_PATH
16991   case $host_os in
16992   freebsd2*)
16993     shlibpath_overrides_runpath=yes
16994     ;;
16995   freebsd3.01* | freebsdelf3.01*)
16996     shlibpath_overrides_runpath=yes
16997     hardcode_into_libs=yes
16998     ;;
16999   *) # from 3.2 on
17000     shlibpath_overrides_runpath=no
17001     hardcode_into_libs=yes
17002     ;;
17003   esac
17004   ;;
17005
17006 gnu*)
17007   version_type=linux
17008   need_lib_prefix=no
17009   need_version=no
17010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17011   soname_spec='${libname}${release}${shared_ext}$major'
17012   shlibpath_var=LD_LIBRARY_PATH
17013   hardcode_into_libs=yes
17014   ;;
17015
17016 hpux9* | hpux10* | hpux11*)
17017   # Give a soname corresponding to the major version so that dld.sl refuses to
17018   # link against other versions.
17019   version_type=sunos
17020   need_lib_prefix=no
17021   need_version=no
17022   case "$host_cpu" in
17023   ia64*)
17024     shrext_cmds='.so'
17025     hardcode_into_libs=yes
17026     dynamic_linker="$host_os dld.so"
17027     shlibpath_var=LD_LIBRARY_PATH
17028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030     soname_spec='${libname}${release}${shared_ext}$major'
17031     if test "X$HPUX_IA64_MODE" = X32; then
17032       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17033     else
17034       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17035     fi
17036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037     ;;
17038    hppa*64*)
17039      shrext_cmds='.sl'
17040      hardcode_into_libs=yes
17041      dynamic_linker="$host_os dld.sl"
17042      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17043      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17044      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045      soname_spec='${libname}${release}${shared_ext}$major'
17046      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17047      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17048      ;;
17049    *)
17050     shrext_cmds='.sl'
17051     dynamic_linker="$host_os dld.sl"
17052     shlibpath_var=SHLIB_PATH
17053     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055     soname_spec='${libname}${release}${shared_ext}$major'
17056     ;;
17057   esac
17058   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17059   postinstall_cmds='chmod 555 $lib'
17060   ;;
17061
17062 irix5* | irix6* | nonstopux*)
17063   case $host_os in
17064     nonstopux*) version_type=nonstopux ;;
17065     *)
17066         if test "$lt_cv_prog_gnu_ld" = yes; then
17067                 version_type=linux
17068         else
17069                 version_type=irix
17070         fi ;;
17071   esac
17072   need_lib_prefix=no
17073   need_version=no
17074   soname_spec='${libname}${release}${shared_ext}$major'
17075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17076   case $host_os in
17077   irix5* | nonstopux*)
17078     libsuff= shlibsuff=
17079     ;;
17080   *)
17081     case $LD in # libtool.m4 will add one of these switches to LD
17082     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17083       libsuff= shlibsuff= libmagic=32-bit;;
17084     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17085       libsuff=32 shlibsuff=N32 libmagic=N32;;
17086     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17087       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17088     *) libsuff= shlibsuff= libmagic=never-match;;
17089     esac
17090     ;;
17091   esac
17092   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17093   shlibpath_overrides_runpath=no
17094   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17095   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17096   hardcode_into_libs=yes
17097   ;;
17098
17099 # No shared lib support for Linux oldld, aout, or coff.
17100 linux*oldld* | linux*aout* | linux*coff*)
17101   dynamic_linker=no
17102   ;;
17103
17104 # This must be Linux ELF.
17105 linux*)
17106   version_type=linux
17107   need_lib_prefix=no
17108   need_version=no
17109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110   soname_spec='${libname}${release}${shared_ext}$major'
17111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17112   shlibpath_var=LD_LIBRARY_PATH
17113   shlibpath_overrides_runpath=no
17114   # This implies no fast_install, which is unacceptable.
17115   # Some rework will be needed to allow for fast_install
17116   # before this can be enabled.
17117   hardcode_into_libs=yes
17118
17119   # Append ld.so.conf contents to the search path
17120   if test -f /etc/ld.so.conf; then
17121     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17122     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17123   fi
17124
17125   # We used to test for /lib/ld.so.1 and disable shared libraries on
17126   # powerpc, because MkLinux only supported shared libraries with the
17127   # GNU dynamic linker.  Since this was broken with cross compilers,
17128   # most powerpc-linux boxes support dynamic linking these days and
17129   # people can always --disable-shared, the test was removed, and we
17130   # assume the GNU/Linux dynamic linker is in use.
17131   dynamic_linker='GNU/Linux ld.so'
17132   ;;
17133
17134 knetbsd*-gnu)
17135   version_type=linux
17136   need_lib_prefix=no
17137   need_version=no
17138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139   soname_spec='${libname}${release}${shared_ext}$major'
17140   shlibpath_var=LD_LIBRARY_PATH
17141   shlibpath_overrides_runpath=no
17142   hardcode_into_libs=yes
17143   dynamic_linker='GNU ld.so'
17144   ;;
17145
17146 netbsd*)
17147   version_type=sunos
17148   need_lib_prefix=no
17149   need_version=no
17150   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17151     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17152     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17153     dynamic_linker='NetBSD (a.out) ld.so'
17154   else
17155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17156     soname_spec='${libname}${release}${shared_ext}$major'
17157     dynamic_linker='NetBSD ld.elf_so'
17158   fi
17159   shlibpath_var=LD_LIBRARY_PATH
17160   shlibpath_overrides_runpath=yes
17161   hardcode_into_libs=yes
17162   ;;
17163
17164 newsos6)
17165   version_type=linux
17166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=yes
17169   ;;
17170
17171 nto-qnx*)
17172   version_type=linux
17173   need_lib_prefix=no
17174   need_version=no
17175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176   soname_spec='${libname}${release}${shared_ext}$major'
17177   shlibpath_var=LD_LIBRARY_PATH
17178   shlibpath_overrides_runpath=yes
17179   ;;
17180
17181 openbsd*)
17182   version_type=sunos
17183   need_lib_prefix=no
17184   need_version=no
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17186   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17189     case $host_os in
17190       openbsd2.[89] | openbsd2.[89].*)
17191         shlibpath_overrides_runpath=no
17192         ;;
17193       *)
17194         shlibpath_overrides_runpath=yes
17195         ;;
17196       esac
17197   else
17198     shlibpath_overrides_runpath=yes
17199   fi
17200   ;;
17201
17202 os2*)
17203   libname_spec='$name'
17204   shrext_cmds=".dll"
17205   need_lib_prefix=no
17206   library_names_spec='$libname${shared_ext} $libname.a'
17207   dynamic_linker='OS/2 ld.exe'
17208   shlibpath_var=LIBPATH
17209   ;;
17210
17211 osf3* | osf4* | osf5*)
17212   version_type=osf
17213   need_lib_prefix=no
17214   need_version=no
17215   soname_spec='${libname}${release}${shared_ext}$major'
17216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17219   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17220   ;;
17221
17222 sco3.2v5*)
17223   version_type=osf
17224   soname_spec='${libname}${release}${shared_ext}$major'
17225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226   shlibpath_var=LD_LIBRARY_PATH
17227   ;;
17228
17229 solaris*)
17230   version_type=linux
17231   need_lib_prefix=no
17232   need_version=no
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   shlibpath_var=LD_LIBRARY_PATH
17236   shlibpath_overrides_runpath=yes
17237   hardcode_into_libs=yes
17238   # ldd complains unless libraries are executable
17239   postinstall_cmds='chmod +x $lib'
17240   ;;
17241
17242 sunos4*)
17243   version_type=sunos
17244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17245   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   shlibpath_overrides_runpath=yes
17248   if test "$with_gnu_ld" = yes; then
17249     need_lib_prefix=no
17250   fi
17251   need_version=yes
17252   ;;
17253
17254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17255   version_type=linux
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   case $host_vendor in
17260     sni)
17261       shlibpath_overrides_runpath=no
17262       need_lib_prefix=no
17263       export_dynamic_flag_spec='${wl}-Blargedynsym'
17264       runpath_var=LD_RUN_PATH
17265       ;;
17266     siemens)
17267       need_lib_prefix=no
17268       ;;
17269     motorola)
17270       need_lib_prefix=no
17271       need_version=no
17272       shlibpath_overrides_runpath=no
17273       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17274       ;;
17275   esac
17276   ;;
17277
17278 sysv4*MP*)
17279   if test -d /usr/nec ;then
17280     version_type=linux
17281     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17282     soname_spec='$libname${shared_ext}.$major'
17283     shlibpath_var=LD_LIBRARY_PATH
17284   fi
17285   ;;
17286
17287 uts4*)
17288   version_type=linux
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   ;;
17293
17294 *)
17295   dynamic_linker=no
17296   ;;
17297 esac
17298 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17299 echo "${ECHO_T}$dynamic_linker" >&6
17300 test "$dynamic_linker" = no && can_build_shared=no
17301
17302 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17303 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17304 hardcode_action_CXX=
17305 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17306    test -n "$runpath_var_CXX" || \
17307    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17308
17309   # We can hardcode non-existant directories.
17310   if test "$hardcode_direct_CXX" != no &&
17311      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17312      # have to relink, otherwise we might link with an installed library
17313      # when we should be linking with a yet-to-be-installed one
17314      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17315      test "$hardcode_minus_L_CXX" != no; then
17316     # Linking always hardcodes the temporary library directory.
17317     hardcode_action_CXX=relink
17318   else
17319     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17320     hardcode_action_CXX=immediate
17321   fi
17322 else
17323   # We cannot hardcode anything, or else we can only hardcode existing
17324   # directories.
17325   hardcode_action_CXX=unsupported
17326 fi
17327 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17328 echo "${ECHO_T}$hardcode_action_CXX" >&6
17329
17330 if test "$hardcode_action_CXX" = relink; then
17331   # Fast installation is not supported
17332   enable_fast_install=no
17333 elif test "$shlibpath_overrides_runpath" = yes ||
17334      test "$enable_shared" = no; then
17335   # Fast installation is not necessary
17336   enable_fast_install=needless
17337 fi
17338
17339 striplib=
17340 old_striplib=
17341 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17342 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17343 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17344   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17345   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17346   echo "$as_me:$LINENO: result: yes" >&5
17347 echo "${ECHO_T}yes" >&6
17348 else
17349 # FIXME - insert some real tests, host_os isn't really good enough
17350   case $host_os in
17351    darwin*)
17352        if test -n "$STRIP" ; then
17353          striplib="$STRIP -x"
17354          echo "$as_me:$LINENO: result: yes" >&5
17355 echo "${ECHO_T}yes" >&6
17356        else
17357   echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6
17359 fi
17360        ;;
17361    *)
17362   echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6
17364     ;;
17365   esac
17366 fi
17367
17368 if test "x$enable_dlopen" != xyes; then
17369   enable_dlopen=unknown
17370   enable_dlopen_self=unknown
17371   enable_dlopen_self_static=unknown
17372 else
17373   lt_cv_dlopen=no
17374   lt_cv_dlopen_libs=
17375
17376   case $host_os in
17377   beos*)
17378     lt_cv_dlopen="load_add_on"
17379     lt_cv_dlopen_libs=
17380     lt_cv_dlopen_self=yes
17381     ;;
17382
17383   mingw* | pw32*)
17384     lt_cv_dlopen="LoadLibrary"
17385     lt_cv_dlopen_libs=
17386    ;;
17387
17388   cygwin*)
17389     lt_cv_dlopen="dlopen"
17390     lt_cv_dlopen_libs=
17391    ;;
17392
17393   darwin*)
17394   # if libdl is installed we need to link against it
17395     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17396 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17397 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-ldl  $LIBS"
17402 cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h.  */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h.  */
17408
17409 /* Override any gcc2 internal prototype to avoid an error.  */
17410 #ifdef __cplusplus
17411 extern "C"
17412 #endif
17413 /* We use char because int might match the return type of a gcc2
17414    builtin and then its argument prototype would still apply.  */
17415 char dlopen ();
17416 int
17417 main ()
17418 {
17419 dlopen ();
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426   (eval $ac_link) 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } &&
17433          { ac_try='test -z "$ac_cxx_werror_flag"
17434                          || test ! -s conftest.err'
17435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436   (eval $ac_try) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest$ac_exeext'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; }; then
17446   ac_cv_lib_dl_dlopen=yes
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_cv_lib_dl_dlopen=no
17452 fi
17453 rm -f conftest.err conftest.$ac_objext \
17454       conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17456 fi
17457 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17458 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17459 if test $ac_cv_lib_dl_dlopen = yes; then
17460   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17461 else
17462
17463     lt_cv_dlopen="dyld"
17464     lt_cv_dlopen_libs=
17465     lt_cv_dlopen_self=yes
17466
17467 fi
17468
17469    ;;
17470
17471   *)
17472     echo "$as_me:$LINENO: checking for shl_load" >&5
17473 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17474 if test "${ac_cv_func_shl_load+set}" = set; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17485 #define shl_load innocuous_shl_load
17486
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char shl_load (); below.
17489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490     <limits.h> exists even on freestanding compilers.  */
17491
17492 #ifdef __STDC__
17493 # include <limits.h>
17494 #else
17495 # include <assert.h>
17496 #endif
17497
17498 #undef shl_load
17499
17500 /* Override any gcc2 internal prototype to avoid an error.  */
17501 #ifdef __cplusplus
17502 extern "C"
17503 {
17504 #endif
17505 /* We use char because int might match the return type of a gcc2
17506    builtin and then its argument prototype would still apply.  */
17507 char shl_load ();
17508 /* The GNU C library defines this for functions which it implements
17509     to always fail with ENOSYS.  Some functions are actually named
17510     something starting with __ and the normal name is an alias.  */
17511 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17512 choke me
17513 #else
17514 char (*f) () = shl_load;
17515 #endif
17516 #ifdef __cplusplus
17517 }
17518 #endif
17519
17520 int
17521 main ()
17522 {
17523 return f != shl_load;
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530   (eval $ac_link) 2>conftest.er1
17531   ac_status=$?
17532   grep -v '^ *+' conftest.er1 >conftest.err
17533   rm -f conftest.er1
17534   cat conftest.err >&5
17535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536   (exit $ac_status); } &&
17537          { ac_try='test -z "$ac_cxx_werror_flag"
17538                          || test ! -s conftest.err'
17539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540   (eval $ac_try) 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; } &&
17544          { ac_try='test -s conftest$ac_exeext'
17545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546   (eval $ac_try) 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   ac_cv_func_shl_load=yes
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 ac_cv_func_shl_load=no
17556 fi
17557 rm -f conftest.err conftest.$ac_objext \
17558       conftest$ac_exeext conftest.$ac_ext
17559 fi
17560 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17561 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17562 if test $ac_cv_func_shl_load = yes; then
17563   lt_cv_dlopen="shl_load"
17564 else
17565   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17566 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17567 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17568   echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570   ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-ldld  $LIBS"
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 /* Override any gcc2 internal prototype to avoid an error.  */
17580 #ifdef __cplusplus
17581 extern "C"
17582 #endif
17583 /* We use char because int might match the return type of a gcc2
17584    builtin and then its argument prototype would still apply.  */
17585 char shl_load ();
17586 int
17587 main ()
17588 {
17589 shl_load ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596   (eval $ac_link) 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_cxx_werror_flag"
17604                          || test ! -s conftest.err'
17605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606   (eval $ac_try) 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); }; } &&
17610          { ac_try='test -s conftest$ac_exeext'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ac_cv_lib_dld_shl_load=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 ac_cv_lib_dld_shl_load=no
17622 fi
17623 rm -f conftest.err conftest.$ac_objext \
17624       conftest$ac_exeext conftest.$ac_ext
17625 LIBS=$ac_check_lib_save_LIBS
17626 fi
17627 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17628 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17629 if test $ac_cv_lib_dld_shl_load = yes; then
17630   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17631 else
17632   echo "$as_me:$LINENO: checking for dlopen" >&5
17633 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17634 if test "${ac_cv_func_dlopen+set}" = set; then
17635   echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637   cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17645 #define dlopen innocuous_dlopen
17646
17647 /* System header to define __stub macros and hopefully few prototypes,
17648     which can conflict with char dlopen (); below.
17649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650     <limits.h> exists even on freestanding compilers.  */
17651
17652 #ifdef __STDC__
17653 # include <limits.h>
17654 #else
17655 # include <assert.h>
17656 #endif
17657
17658 #undef dlopen
17659
17660 /* Override any gcc2 internal prototype to avoid an error.  */
17661 #ifdef __cplusplus
17662 extern "C"
17663 {
17664 #endif
17665 /* We use char because int might match the return type of a gcc2
17666    builtin and then its argument prototype would still apply.  */
17667 char dlopen ();
17668 /* The GNU C library defines this for functions which it implements
17669     to always fail with ENOSYS.  Some functions are actually named
17670     something starting with __ and the normal name is an alias.  */
17671 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17672 choke me
17673 #else
17674 char (*f) () = dlopen;
17675 #endif
17676 #ifdef __cplusplus
17677 }
17678 #endif
17679
17680 int
17681 main ()
17682 {
17683 return f != dlopen;
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690   (eval $ac_link) 2>conftest.er1
17691   ac_status=$?
17692   grep -v '^ *+' conftest.er1 >conftest.err
17693   rm -f conftest.er1
17694   cat conftest.err >&5
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); } &&
17697          { ac_try='test -z "$ac_cxx_werror_flag"
17698                          || test ! -s conftest.err'
17699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700   (eval $ac_try) 2>&5
17701   ac_status=$?
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; } &&
17704          { ac_try='test -s conftest$ac_exeext'
17705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706   (eval $ac_try) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }; }; then
17710   ac_cv_func_dlopen=yes
17711 else
17712   echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715 ac_cv_func_dlopen=no
17716 fi
17717 rm -f conftest.err conftest.$ac_objext \
17718       conftest$ac_exeext conftest.$ac_ext
17719 fi
17720 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17721 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17722 if test $ac_cv_func_dlopen = yes; then
17723   lt_cv_dlopen="dlopen"
17724 else
17725   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17726 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17727 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730   ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-ldl  $LIBS"
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738
17739 /* Override any gcc2 internal prototype to avoid an error.  */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 /* We use char because int might match the return type of a gcc2
17744    builtin and then its argument prototype would still apply.  */
17745 char dlopen ();
17746 int
17747 main ()
17748 {
17749 dlopen ();
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_cxx_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_lib_dl_dlopen=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_lib_dl_dlopen=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17789 if test $ac_cv_lib_dl_dlopen = yes; then
17790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17791 else
17792   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17793 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17795   echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797   ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-lsvld  $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 /* Override any gcc2 internal prototype to avoid an error.  */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 /* We use char because int might match the return type of a gcc2
17811    builtin and then its argument prototype would still apply.  */
17812 char dlopen ();
17813 int
17814 main ()
17815 {
17816 dlopen ();
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823   (eval $ac_link) 2>conftest.er1
17824   ac_status=$?
17825   grep -v '^ *+' conftest.er1 >conftest.err
17826   rm -f conftest.er1
17827   cat conftest.err >&5
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); } &&
17830          { ac_try='test -z "$ac_cxx_werror_flag"
17831                          || test ! -s conftest.err'
17832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833   (eval $ac_try) 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; } &&
17837          { ac_try='test -s conftest$ac_exeext'
17838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839   (eval $ac_try) 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; }; then
17843   ac_cv_lib_svld_dlopen=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848 ac_cv_lib_svld_dlopen=no
17849 fi
17850 rm -f conftest.err conftest.$ac_objext \
17851       conftest$ac_exeext conftest.$ac_ext
17852 LIBS=$ac_check_lib_save_LIBS
17853 fi
17854 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17855 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17856 if test $ac_cv_lib_svld_dlopen = yes; then
17857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17858 else
17859   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17860 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17861 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17862   echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864   ac_check_lib_save_LIBS=$LIBS
17865 LIBS="-ldld  $LIBS"
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872
17873 /* Override any gcc2 internal prototype to avoid an error.  */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 /* We use char because int might match the return type of a gcc2
17878    builtin and then its argument prototype would still apply.  */
17879 char dld_link ();
17880 int
17881 main ()
17882 {
17883 dld_link ();
17884   ;
17885   return 0;
17886 }
17887 _ACEOF
17888 rm -f conftest.$ac_objext conftest$ac_exeext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890   (eval $ac_link) 2>conftest.er1
17891   ac_status=$?
17892   grep -v '^ *+' conftest.er1 >conftest.err
17893   rm -f conftest.er1
17894   cat conftest.err >&5
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); } &&
17897          { ac_try='test -z "$ac_cxx_werror_flag"
17898                          || test ! -s conftest.err'
17899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900   (eval $ac_try) 2>&5
17901   ac_status=$?
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); }; } &&
17904          { ac_try='test -s conftest$ac_exeext'
17905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906   (eval $ac_try) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; }; then
17910   ac_cv_lib_dld_dld_link=yes
17911 else
17912   echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 ac_cv_lib_dld_dld_link=no
17916 fi
17917 rm -f conftest.err conftest.$ac_objext \
17918       conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17920 fi
17921 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17922 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17923 if test $ac_cv_lib_dld_dld_link = yes; then
17924   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17925 fi
17926
17927
17928 fi
17929
17930
17931 fi
17932
17933
17934 fi
17935
17936
17937 fi
17938
17939
17940 fi
17941
17942     ;;
17943   esac
17944
17945   if test "x$lt_cv_dlopen" != xno; then
17946     enable_dlopen=yes
17947   else
17948     enable_dlopen=no
17949   fi
17950
17951   case $lt_cv_dlopen in
17952   dlopen)
17953     save_CPPFLAGS="$CPPFLAGS"
17954     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17955
17956     save_LDFLAGS="$LDFLAGS"
17957     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17958
17959     save_LIBS="$LIBS"
17960     LIBS="$lt_cv_dlopen_libs $LIBS"
17961
17962     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17963 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17964 if test "${lt_cv_dlopen_self+set}" = set; then
17965   echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967           if test "$cross_compiling" = yes; then :
17968   lt_cv_dlopen_self=cross
17969 else
17970   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17971   lt_status=$lt_dlunknown
17972   cat > conftest.$ac_ext <<EOF
17973 #line 17973 "configure"
17974 #include "confdefs.h"
17975
17976 #if HAVE_DLFCN_H
17977 #include <dlfcn.h>
17978 #endif
17979
17980 #include <stdio.h>
17981
17982 #ifdef RTLD_GLOBAL
17983 #  define LT_DLGLOBAL           RTLD_GLOBAL
17984 #else
17985 #  ifdef DL_GLOBAL
17986 #    define LT_DLGLOBAL         DL_GLOBAL
17987 #  else
17988 #    define LT_DLGLOBAL         0
17989 #  endif
17990 #endif
17991
17992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17993    find out it does not work in some platform. */
17994 #ifndef LT_DLLAZY_OR_NOW
17995 #  ifdef RTLD_LAZY
17996 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17997 #  else
17998 #    ifdef DL_LAZY
17999 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18000 #    else
18001 #      ifdef RTLD_NOW
18002 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18003 #      else
18004 #        ifdef DL_NOW
18005 #          define LT_DLLAZY_OR_NOW      DL_NOW
18006 #        else
18007 #          define LT_DLLAZY_OR_NOW      0
18008 #        endif
18009 #      endif
18010 #    endif
18011 #  endif
18012 #endif
18013
18014 #ifdef __cplusplus
18015 extern "C" void exit (int);
18016 #endif
18017
18018 void fnord() { int i=42;}
18019 int main ()
18020 {
18021   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18022   int status = $lt_dlunknown;
18023
18024   if (self)
18025     {
18026       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18027       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18028       /* dlclose (self); */
18029     }
18030
18031     exit (status);
18032 }
18033 EOF
18034   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035   (eval $ac_link) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18039     (./conftest; exit; ) 2>/dev/null
18040     lt_status=$?
18041     case x$lt_status in
18042       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18043       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18044       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18045     esac
18046   else :
18047     # compilation failed
18048     lt_cv_dlopen_self=no
18049   fi
18050 fi
18051 rm -fr conftest*
18052
18053
18054 fi
18055 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18056 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18057
18058     if test "x$lt_cv_dlopen_self" = xyes; then
18059       LDFLAGS="$LDFLAGS $link_static_flag"
18060       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18061 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18062 if test "${lt_cv_dlopen_self_static+set}" = set; then
18063   echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065           if test "$cross_compiling" = yes; then :
18066   lt_cv_dlopen_self_static=cross
18067 else
18068   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069   lt_status=$lt_dlunknown
18070   cat > conftest.$ac_ext <<EOF
18071 #line 18071 "configure"
18072 #include "confdefs.h"
18073
18074 #if HAVE_DLFCN_H
18075 #include <dlfcn.h>
18076 #endif
18077
18078 #include <stdio.h>
18079
18080 #ifdef RTLD_GLOBAL
18081 #  define LT_DLGLOBAL           RTLD_GLOBAL
18082 #else
18083 #  ifdef DL_GLOBAL
18084 #    define LT_DLGLOBAL         DL_GLOBAL
18085 #  else
18086 #    define LT_DLGLOBAL         0
18087 #  endif
18088 #endif
18089
18090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091    find out it does not work in some platform. */
18092 #ifndef LT_DLLAZY_OR_NOW
18093 #  ifdef RTLD_LAZY
18094 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18095 #  else
18096 #    ifdef DL_LAZY
18097 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18098 #    else
18099 #      ifdef RTLD_NOW
18100 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18101 #      else
18102 #        ifdef DL_NOW
18103 #          define LT_DLLAZY_OR_NOW      DL_NOW
18104 #        else
18105 #          define LT_DLLAZY_OR_NOW      0
18106 #        endif
18107 #      endif
18108 #    endif
18109 #  endif
18110 #endif
18111
18112 #ifdef __cplusplus
18113 extern "C" void exit (int);
18114 #endif
18115
18116 void fnord() { int i=42;}
18117 int main ()
18118 {
18119   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18120   int status = $lt_dlunknown;
18121
18122   if (self)
18123     {
18124       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18125       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18126       /* dlclose (self); */
18127     }
18128
18129     exit (status);
18130 }
18131 EOF
18132   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133   (eval $ac_link) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18137     (./conftest; exit; ) 2>/dev/null
18138     lt_status=$?
18139     case x$lt_status in
18140       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18141       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18142       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18143     esac
18144   else :
18145     # compilation failed
18146     lt_cv_dlopen_self_static=no
18147   fi
18148 fi
18149 rm -fr conftest*
18150
18151
18152 fi
18153 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18154 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18155     fi
18156
18157     CPPFLAGS="$save_CPPFLAGS"
18158     LDFLAGS="$save_LDFLAGS"
18159     LIBS="$save_LIBS"
18160     ;;
18161   esac
18162
18163   case $lt_cv_dlopen_self in
18164   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18165   *) enable_dlopen_self=unknown ;;
18166   esac
18167
18168   case $lt_cv_dlopen_self_static in
18169   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18170   *) enable_dlopen_self_static=unknown ;;
18171   esac
18172 fi
18173
18174
18175 # The else clause should only fire when bootstrapping the
18176 # libtool distribution, otherwise you forgot to ship ltmain.sh
18177 # with your package, and you will get complaints that there are
18178 # no rules to generate ltmain.sh.
18179 if test -f "$ltmain"; then
18180   # See if we are running on zsh, and set the options which allow our commands through
18181   # without removal of \ escapes.
18182   if test -n "${ZSH_VERSION+set}" ; then
18183     setopt NO_GLOB_SUBST
18184   fi
18185   # Now quote all the things that may contain metacharacters while being
18186   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18187   # variables and quote the copies for generation of the libtool script.
18188   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18189     SED SHELL STRIP \
18190     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18191     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18192     deplibs_check_method reload_flag reload_cmds need_locks \
18193     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18194     lt_cv_sys_global_symbol_to_c_name_address \
18195     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18196     old_postinstall_cmds old_postuninstall_cmds \
18197     compiler_CXX \
18198     CC_CXX \
18199     LD_CXX \
18200     lt_prog_compiler_wl_CXX \
18201     lt_prog_compiler_pic_CXX \
18202     lt_prog_compiler_static_CXX \
18203     lt_prog_compiler_no_builtin_flag_CXX \
18204     export_dynamic_flag_spec_CXX \
18205     thread_safe_flag_spec_CXX \
18206     whole_archive_flag_spec_CXX \
18207     enable_shared_with_static_runtimes_CXX \
18208     old_archive_cmds_CXX \
18209     old_archive_from_new_cmds_CXX \
18210     predep_objects_CXX \
18211     postdep_objects_CXX \
18212     predeps_CXX \
18213     postdeps_CXX \
18214     compiler_lib_search_path_CXX \
18215     archive_cmds_CXX \
18216     archive_expsym_cmds_CXX \
18217     postinstall_cmds_CXX \
18218     postuninstall_cmds_CXX \
18219     old_archive_from_expsyms_cmds_CXX \
18220     allow_undefined_flag_CXX \
18221     no_undefined_flag_CXX \
18222     export_symbols_cmds_CXX \
18223     hardcode_libdir_flag_spec_CXX \
18224     hardcode_libdir_flag_spec_ld_CXX \
18225     hardcode_libdir_separator_CXX \
18226     hardcode_automatic_CXX \
18227     module_cmds_CXX \
18228     module_expsym_cmds_CXX \
18229     lt_cv_prog_compiler_c_o_CXX \
18230     exclude_expsyms_CXX \
18231     include_expsyms_CXX; do
18232
18233     case $var in
18234     old_archive_cmds_CXX | \
18235     old_archive_from_new_cmds_CXX | \
18236     archive_cmds_CXX | \
18237     archive_expsym_cmds_CXX | \
18238     module_cmds_CXX | \
18239     module_expsym_cmds_CXX | \
18240     old_archive_from_expsyms_cmds_CXX | \
18241     export_symbols_cmds_CXX | \
18242     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18243     postinstall_cmds | postuninstall_cmds | \
18244     old_postinstall_cmds | old_postuninstall_cmds | \
18245     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18246       # Double-quote double-evaled strings.
18247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18248       ;;
18249     *)
18250       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18251       ;;
18252     esac
18253   done
18254
18255   case $lt_echo in
18256   *'\$0 --fallback-echo"')
18257     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18258     ;;
18259   esac
18260
18261 cfgfile="$ofile"
18262
18263   cat <<__EOF__ >> "$cfgfile"
18264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18265
18266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18267
18268 # Shell to use when invoking shell scripts.
18269 SHELL=$lt_SHELL
18270
18271 # Whether or not to build shared libraries.
18272 build_libtool_libs=$enable_shared
18273
18274 # Whether or not to build static libraries.
18275 build_old_libs=$enable_static
18276
18277 # Whether or not to add -lc for building shared libraries.
18278 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18279
18280 # Whether or not to disallow shared libs when runtime libs are static
18281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18282
18283 # Whether or not to optimize for fast installation.
18284 fast_install=$enable_fast_install
18285
18286 # The host system.
18287 host_alias=$host_alias
18288 host=$host
18289
18290 # An echo program that does not interpret backslashes.
18291 echo=$lt_echo
18292
18293 # The archiver.
18294 AR=$lt_AR
18295 AR_FLAGS=$lt_AR_FLAGS
18296
18297 # A C compiler.
18298 LTCC=$lt_LTCC
18299
18300 # A language-specific compiler.
18301 CC=$lt_compiler_CXX
18302
18303 # Is the compiler the GNU C compiler?
18304 with_gcc=$GCC_CXX
18305
18306 # An ERE matcher.
18307 EGREP=$lt_EGREP
18308
18309 # The linker used to build libraries.
18310 LD=$lt_LD_CXX
18311
18312 # Whether we need hard or soft links.
18313 LN_S=$lt_LN_S
18314
18315 # A BSD-compatible nm program.
18316 NM=$lt_NM
18317
18318 # A symbol stripping program
18319 STRIP=$lt_STRIP
18320
18321 # Used to examine libraries when file_magic_cmd begins "file"
18322 MAGIC_CMD=$MAGIC_CMD
18323
18324 # Used on cygwin: DLL creation program.
18325 DLLTOOL="$DLLTOOL"
18326
18327 # Used on cygwin: object dumper.
18328 OBJDUMP="$OBJDUMP"
18329
18330 # Used on cygwin: assembler.
18331 AS="$AS"
18332
18333 # The name of the directory that contains temporary libtool files.
18334 objdir=$objdir
18335
18336 # How to create reloadable object files.
18337 reload_flag=$lt_reload_flag
18338 reload_cmds=$lt_reload_cmds
18339
18340 # How to pass a linker flag through the compiler.
18341 wl=$lt_lt_prog_compiler_wl_CXX
18342
18343 # Object file suffix (normally "o").
18344 objext="$ac_objext"
18345
18346 # Old archive suffix (normally "a").
18347 libext="$libext"
18348
18349 # Shared library suffix (normally ".so").
18350 shrext_cmds='$shrext_cmds'
18351
18352 # Executable file suffix (normally "").
18353 exeext="$exeext"
18354
18355 # Additional compiler flags for building library objects.
18356 pic_flag=$lt_lt_prog_compiler_pic_CXX
18357 pic_mode=$pic_mode
18358
18359 # What is the maximum length of a command?
18360 max_cmd_len=$lt_cv_sys_max_cmd_len
18361
18362 # Does compiler simultaneously support -c and -o options?
18363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18364
18365 # Must we lock files when doing compilation ?
18366 need_locks=$lt_need_locks
18367
18368 # Do we need the lib prefix for modules?
18369 need_lib_prefix=$need_lib_prefix
18370
18371 # Do we need a version for libraries?
18372 need_version=$need_version
18373
18374 # Whether dlopen is supported.
18375 dlopen_support=$enable_dlopen
18376
18377 # Whether dlopen of programs is supported.
18378 dlopen_self=$enable_dlopen_self
18379
18380 # Whether dlopen of statically linked programs is supported.
18381 dlopen_self_static=$enable_dlopen_self_static
18382
18383 # Compiler flag to prevent dynamic linking.
18384 link_static_flag=$lt_lt_prog_compiler_static_CXX
18385
18386 # Compiler flag to turn off builtin functions.
18387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18388
18389 # Compiler flag to allow reflexive dlopens.
18390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18391
18392 # Compiler flag to generate shared objects directly from archives.
18393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18394
18395 # Compiler flag to generate thread-safe objects.
18396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18397
18398 # Library versioning type.
18399 version_type=$version_type
18400
18401 # Format of library name prefix.
18402 libname_spec=$lt_libname_spec
18403
18404 # List of archive names.  First name is the real one, the rest are links.
18405 # The last name is the one that the linker finds with -lNAME.
18406 library_names_spec=$lt_library_names_spec
18407
18408 # The coded name of the library, if different from the real name.
18409 soname_spec=$lt_soname_spec
18410
18411 # Commands used to build and install an old-style archive.
18412 RANLIB=$lt_RANLIB
18413 old_archive_cmds=$lt_old_archive_cmds_CXX
18414 old_postinstall_cmds=$lt_old_postinstall_cmds
18415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416
18417 # Create an old-style archive from a shared archive.
18418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18419
18420 # Create a temporary old-style archive to link instead of a shared archive.
18421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18422
18423 # Commands used to build and install a shared archive.
18424 archive_cmds=$lt_archive_cmds_CXX
18425 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18426 postinstall_cmds=$lt_postinstall_cmds
18427 postuninstall_cmds=$lt_postuninstall_cmds
18428
18429 # Commands used to build a loadable module (assumed same as above if empty)
18430 module_cmds=$lt_module_cmds_CXX
18431 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18432
18433 # Commands to strip libraries.
18434 old_striplib=$lt_old_striplib
18435 striplib=$lt_striplib
18436
18437 # Dependencies to place before the objects being linked to create a
18438 # shared library.
18439 predep_objects=$lt_predep_objects_CXX
18440
18441 # Dependencies to place after the objects being linked to create a
18442 # shared library.
18443 postdep_objects=$lt_postdep_objects_CXX
18444
18445 # Dependencies to place before the objects being linked to create a
18446 # shared library.
18447 predeps=$lt_predeps_CXX
18448
18449 # Dependencies to place after the objects being linked to create a
18450 # shared library.
18451 postdeps=$lt_postdeps_CXX
18452
18453 # The library search path used internally by the compiler when linking
18454 # a shared library.
18455 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18456
18457 # Method to check whether dependent libraries are shared objects.
18458 deplibs_check_method=$lt_deplibs_check_method
18459
18460 # Command to use when deplibs_check_method == file_magic.
18461 file_magic_cmd=$lt_file_magic_cmd
18462
18463 # Flag that allows shared libraries with undefined symbols to be built.
18464 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18465
18466 # Flag that forces no undefined symbols.
18467 no_undefined_flag=$lt_no_undefined_flag_CXX
18468
18469 # Commands used to finish a libtool library installation in a directory.
18470 finish_cmds=$lt_finish_cmds
18471
18472 # Same as above, but a single script fragment to be evaled but not shown.
18473 finish_eval=$lt_finish_eval
18474
18475 # Take the output of nm and produce a listing of raw symbols and C names.
18476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477
18478 # Transform the output of nm in a proper C declaration
18479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480
18481 # Transform the output of nm in a C name address pair
18482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483
18484 # This is the shared library runtime path variable.
18485 runpath_var=$runpath_var
18486
18487 # This is the shared library path variable.
18488 shlibpath_var=$shlibpath_var
18489
18490 # Is shlibpath searched before the hard-coded library search path?
18491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492
18493 # How to hardcode a shared library path into an executable.
18494 hardcode_action=$hardcode_action_CXX
18495
18496 # Whether we should hardcode library paths into libraries.
18497 hardcode_into_libs=$hardcode_into_libs
18498
18499 # Flag to hardcode \$libdir into a binary during linking.
18500 # This must work even if \$libdir does not exist.
18501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18502
18503 # If ld is used when linking, flag to hardcode \$libdir into
18504 # a binary during linking. This must work even if \$libdir does
18505 # not exist.
18506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18507
18508 # Whether we need a single -rpath flag with a separated argument.
18509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18510
18511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18512 # resulting binary.
18513 hardcode_direct=$hardcode_direct_CXX
18514
18515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18516 # resulting binary.
18517 hardcode_minus_L=$hardcode_minus_L_CXX
18518
18519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18520 # the resulting binary.
18521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18522
18523 # Set to yes if building a shared library automatically hardcodes DIR into the library
18524 # and all subsequent libraries and executables linked against it.
18525 hardcode_automatic=$hardcode_automatic_CXX
18526
18527 # Variables whose values should be saved in libtool wrapper scripts and
18528 # restored at relink time.
18529 variables_saved_for_relink="$variables_saved_for_relink"
18530
18531 # Whether libtool must link a program against all its dependency libraries.
18532 link_all_deplibs=$link_all_deplibs_CXX
18533
18534 # Compile-time system search path for libraries
18535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536
18537 # Run-time system search path for libraries
18538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539
18540 # Fix the shell variable \$srcfile for the compiler.
18541 fix_srcfile_path="$fix_srcfile_path_CXX"
18542
18543 # Set to yes if exported symbols are required.
18544 always_export_symbols=$always_export_symbols_CXX
18545
18546 # The commands to list exported symbols.
18547 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18548
18549 # The commands to extract the exported symbol list from a shared archive.
18550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551
18552 # Symbols that should not be listed in the preloaded symbols.
18553 exclude_expsyms=$lt_exclude_expsyms_CXX
18554
18555 # Symbols that must always be exported.
18556 include_expsyms=$lt_include_expsyms_CXX
18557
18558 # ### END LIBTOOL TAG CONFIG: $tagname
18559
18560 __EOF__
18561
18562
18563 else
18564   # If there is no Makefile yet, we rely on a make rule to execute
18565   # `config.status --recheck' to rerun these tests and create the
18566   # libtool script then.
18567   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18568   if test -f "$ltmain_in"; then
18569     test -f Makefile && make "$ltmain"
18570   fi
18571 fi
18572
18573
18574 ac_ext=c
18575 ac_cpp='$CPP $CPPFLAGS'
18576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579
18580 CC=$lt_save_CC
18581 LDCXX=$LD
18582 LD=$lt_save_LD
18583 GCC=$lt_save_GCC
18584 with_gnu_ldcxx=$with_gnu_ld
18585 with_gnu_ld=$lt_save_with_gnu_ld
18586 lt_cv_path_LDCXX=$lt_cv_path_LD
18587 lt_cv_path_LD=$lt_save_path_LD
18588 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18589 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18590
18591         else
18592           tagname=""
18593         fi
18594         ;;
18595
18596       F77)
18597         if test -n "$F77" && test "X$F77" != "Xno"; then
18598
18599 ac_ext=f
18600 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18601 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18603
18604
18605 archive_cmds_need_lc_F77=no
18606 allow_undefined_flag_F77=
18607 always_export_symbols_F77=no
18608 archive_expsym_cmds_F77=
18609 export_dynamic_flag_spec_F77=
18610 hardcode_direct_F77=no
18611 hardcode_libdir_flag_spec_F77=
18612 hardcode_libdir_flag_spec_ld_F77=
18613 hardcode_libdir_separator_F77=
18614 hardcode_minus_L_F77=no
18615 hardcode_automatic_F77=no
18616 module_cmds_F77=
18617 module_expsym_cmds_F77=
18618 link_all_deplibs_F77=unknown
18619 old_archive_cmds_F77=$old_archive_cmds
18620 no_undefined_flag_F77=
18621 whole_archive_flag_spec_F77=
18622 enable_shared_with_static_runtimes_F77=no
18623
18624 # Source file extension for f77 test sources.
18625 ac_ext=f
18626
18627 # Object file extension for compiled f77 test sources.
18628 objext=o
18629 objext_F77=$objext
18630
18631 # Code to be used in simple compile tests
18632 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18633
18634 # Code to be used in simple link tests
18635 lt_simple_link_test_code="      program t\n      end\n"
18636
18637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18638
18639 # If no C compiler was specified, use CC.
18640 LTCC=${LTCC-"$CC"}
18641
18642 # Allow CC to be a program name with arguments.
18643 compiler=$CC
18644
18645
18646 # Allow CC to be a program name with arguments.
18647 lt_save_CC="$CC"
18648 CC=${F77-"f77"}
18649 compiler=$CC
18650 compiler_F77=$CC
18651 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18652
18653 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18654 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18655 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18656 echo "${ECHO_T}$can_build_shared" >&6
18657
18658 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18659 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18660 test "$can_build_shared" = "no" && enable_shared=no
18661
18662 # On AIX, shared libraries and static libraries use the same namespace, and
18663 # are all built from PIC.
18664 case "$host_os" in
18665 aix3*)
18666   test "$enable_shared" = yes && enable_static=no
18667   if test -n "$RANLIB"; then
18668     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18669     postinstall_cmds='$RANLIB $lib'
18670   fi
18671   ;;
18672 aix4* | aix5*)
18673   test "$enable_shared" = yes && enable_static=no
18674   ;;
18675 esac
18676 echo "$as_me:$LINENO: result: $enable_shared" >&5
18677 echo "${ECHO_T}$enable_shared" >&6
18678
18679 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18680 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18681 # Make sure either enable_shared or enable_static is yes.
18682 test "$enable_shared" = yes || enable_static=yes
18683 echo "$as_me:$LINENO: result: $enable_static" >&5
18684 echo "${ECHO_T}$enable_static" >&6
18685
18686 test "$ld_shlibs_F77" = no && can_build_shared=no
18687
18688 GCC_F77="$G77"
18689 LD_F77="$LD"
18690
18691 lt_prog_compiler_wl_F77=
18692 lt_prog_compiler_pic_F77=
18693 lt_prog_compiler_static_F77=
18694
18695 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18697
18698   if test "$GCC" = yes; then
18699     lt_prog_compiler_wl_F77='-Wl,'
18700     lt_prog_compiler_static_F77='-static'
18701
18702     case $host_os in
18703       aix*)
18704       # All AIX code is PIC.
18705       if test "$host_cpu" = ia64; then
18706         # AIX 5 now supports IA64 processor
18707         lt_prog_compiler_static_F77='-Bstatic'
18708       fi
18709       ;;
18710
18711     amigaos*)
18712       # FIXME: we need at least 68020 code to build shared libraries, but
18713       # adding the `-m68020' flag to GCC prevents building anything better,
18714       # like `-m68040'.
18715       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18716       ;;
18717
18718     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18719       # PIC is the default for these OSes.
18720       ;;
18721
18722     mingw* | pw32* | os2*)
18723       # This hack is so that the source file can tell whether it is being
18724       # built for inclusion in a dll (and should export symbols for example).
18725       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18726       ;;
18727
18728     darwin* | rhapsody*)
18729       # PIC is the default on this platform
18730       # Common symbols not allowed in MH_DYLIB files
18731       lt_prog_compiler_pic_F77='-fno-common'
18732       ;;
18733
18734     msdosdjgpp*)
18735       # Just because we use GCC doesn't mean we suddenly get shared libraries
18736       # on systems that don't support them.
18737       lt_prog_compiler_can_build_shared_F77=no
18738       enable_shared=no
18739       ;;
18740
18741     sysv4*MP*)
18742       if test -d /usr/nec; then
18743         lt_prog_compiler_pic_F77=-Kconform_pic
18744       fi
18745       ;;
18746
18747     hpux*)
18748       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18749       # not for PA HP-UX.
18750       case "$host_cpu" in
18751       hppa*64*|ia64*)
18752         # +Z the default
18753         ;;
18754       *)
18755         lt_prog_compiler_pic_F77='-fPIC'
18756         ;;
18757       esac
18758       ;;
18759
18760     *)
18761       lt_prog_compiler_pic_F77='-fPIC'
18762       ;;
18763     esac
18764   else
18765     # PORTME Check for flag to pass linker flags through the system compiler.
18766     case $host_os in
18767     aix*)
18768       lt_prog_compiler_wl_F77='-Wl,'
18769       if test "$host_cpu" = ia64; then
18770         # AIX 5 now supports IA64 processor
18771         lt_prog_compiler_static_F77='-Bstatic'
18772       else
18773         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18774       fi
18775       ;;
18776       darwin*)
18777         # PIC is the default on this platform
18778         # Common symbols not allowed in MH_DYLIB files
18779        case "$cc_basename" in
18780          xlc*)
18781          lt_prog_compiler_pic_F77='-qnocommon'
18782          lt_prog_compiler_wl_F77='-Wl,'
18783          ;;
18784        esac
18785        ;;
18786
18787     mingw* | pw32* | os2*)
18788       # This hack is so that the source file can tell whether it is being
18789       # built for inclusion in a dll (and should export symbols for example).
18790       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18791       ;;
18792
18793     hpux9* | hpux10* | hpux11*)
18794       lt_prog_compiler_wl_F77='-Wl,'
18795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18796       # not for PA HP-UX.
18797       case "$host_cpu" in
18798       hppa*64*|ia64*)
18799         # +Z the default
18800         ;;
18801       *)
18802         lt_prog_compiler_pic_F77='+Z'
18803         ;;
18804       esac
18805       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18806       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18807       ;;
18808
18809     irix5* | irix6* | nonstopux*)
18810       lt_prog_compiler_wl_F77='-Wl,'
18811       # PIC (with -KPIC) is the default.
18812       lt_prog_compiler_static_F77='-non_shared'
18813       ;;
18814
18815     newsos6)
18816       lt_prog_compiler_pic_F77='-KPIC'
18817       lt_prog_compiler_static_F77='-Bstatic'
18818       ;;
18819
18820     linux*)
18821       case $CC in
18822       icc* | ecc*)
18823         lt_prog_compiler_wl_F77='-Wl,'
18824         lt_prog_compiler_pic_F77='-KPIC'
18825         lt_prog_compiler_static_F77='-static'
18826         ;;
18827       ccc*)
18828         lt_prog_compiler_wl_F77='-Wl,'
18829         # All Alpha code is PIC.
18830         lt_prog_compiler_static_F77='-non_shared'
18831         ;;
18832       esac
18833       ;;
18834
18835     osf3* | osf4* | osf5*)
18836       lt_prog_compiler_wl_F77='-Wl,'
18837       # All OSF/1 code is PIC.
18838       lt_prog_compiler_static_F77='-non_shared'
18839       ;;
18840
18841     sco3.2v5*)
18842       lt_prog_compiler_pic_F77='-Kpic'
18843       lt_prog_compiler_static_F77='-dn'
18844       ;;
18845
18846     solaris*)
18847       lt_prog_compiler_wl_F77='-Wl,'
18848       lt_prog_compiler_pic_F77='-KPIC'
18849       lt_prog_compiler_static_F77='-Bstatic'
18850       ;;
18851
18852     sunos4*)
18853       lt_prog_compiler_wl_F77='-Qoption ld '
18854       lt_prog_compiler_pic_F77='-PIC'
18855       lt_prog_compiler_static_F77='-Bstatic'
18856       ;;
18857
18858     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18859       lt_prog_compiler_wl_F77='-Wl,'
18860       lt_prog_compiler_pic_F77='-KPIC'
18861       lt_prog_compiler_static_F77='-Bstatic'
18862       ;;
18863
18864     sysv4*MP*)
18865       if test -d /usr/nec ;then
18866         lt_prog_compiler_pic_F77='-Kconform_pic'
18867         lt_prog_compiler_static_F77='-Bstatic'
18868       fi
18869       ;;
18870
18871     uts4*)
18872       lt_prog_compiler_pic_F77='-pic'
18873       lt_prog_compiler_static_F77='-Bstatic'
18874       ;;
18875
18876     *)
18877       lt_prog_compiler_can_build_shared_F77=no
18878       ;;
18879     esac
18880   fi
18881
18882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18883 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18884
18885 #
18886 # Check to make sure the PIC flag actually works.
18887 #
18888 if test -n "$lt_prog_compiler_pic_F77"; then
18889
18890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18892 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18893   echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895   lt_prog_compiler_pic_works_F77=no
18896   ac_outfile=conftest.$ac_objext
18897    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18898    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18899    # Insert the option either (1) after the last *FLAGS variable, or
18900    # (2) before a word containing "conftest.", or (3) at the end.
18901    # Note that $ac_compile itself does not contain backslashes and begins
18902    # with a dollar sign (not a hyphen), so the echo should work correctly.
18903    # The option is referenced via a variable to avoid confusing sed.
18904    lt_compile=`echo "$ac_compile" | $SED \
18905    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18907    -e 's:$: $lt_compiler_flag:'`
18908    (eval echo "\"\$as_me:18908: $lt_compile\"" >&5)
18909    (eval "$lt_compile" 2>conftest.err)
18910    ac_status=$?
18911    cat conftest.err >&5
18912    echo "$as_me:18912: \$? = $ac_status" >&5
18913    if (exit $ac_status) && test -s "$ac_outfile"; then
18914      # The compiler can only warn and ignore the option if not recognized
18915      # So say no if there are warnings
18916      if test ! -s conftest.err; then
18917        lt_prog_compiler_pic_works_F77=yes
18918      fi
18919    fi
18920    $rm conftest*
18921
18922 fi
18923 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18924 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18925
18926 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18927     case $lt_prog_compiler_pic_F77 in
18928      "" | " "*) ;;
18929      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18930      esac
18931 else
18932     lt_prog_compiler_pic_F77=
18933      lt_prog_compiler_can_build_shared_F77=no
18934 fi
18935
18936 fi
18937 case "$host_os" in
18938   # For platforms which do not support PIC, -DPIC is meaningless:
18939   *djgpp*)
18940     lt_prog_compiler_pic_F77=
18941     ;;
18942   *)
18943     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18944     ;;
18945 esac
18946
18947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18949 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   lt_cv_prog_compiler_c_o_F77=no
18953    $rm -r conftest 2>/dev/null
18954    mkdir conftest
18955    cd conftest
18956    mkdir out
18957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18958
18959    lt_compiler_flag="-o out/conftest2.$ac_objext"
18960    # Insert the option either (1) after the last *FLAGS variable, or
18961    # (2) before a word containing "conftest.", or (3) at the end.
18962    # Note that $ac_compile itself does not contain backslashes and begins
18963    # with a dollar sign (not a hyphen), so the echo should work correctly.
18964    lt_compile=`echo "$ac_compile" | $SED \
18965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18967    -e 's:$: $lt_compiler_flag:'`
18968    (eval echo "\"\$as_me:18968: $lt_compile\"" >&5)
18969    (eval "$lt_compile" 2>out/conftest.err)
18970    ac_status=$?
18971    cat out/conftest.err >&5
18972    echo "$as_me:18972: \$? = $ac_status" >&5
18973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18974    then
18975      # The compiler can only warn and ignore the option if not recognized
18976      # So say no if there are warnings
18977      if test ! -s out/conftest.err; then
18978        lt_cv_prog_compiler_c_o_F77=yes
18979      fi
18980    fi
18981    chmod u+w .
18982    $rm conftest*
18983    # SGI C++ compiler will create directory out/ii_files/ for
18984    # template instantiation
18985    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18986    $rm out/* && rmdir out
18987    cd ..
18988    rmdir conftest
18989    $rm conftest*
18990
18991 fi
18992 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18993 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18994
18995
18996 hard_links="nottested"
18997 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18998   # do not overwrite the value of need_locks provided by the user
18999   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19000 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19001   hard_links=yes
19002   $rm conftest*
19003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19004   touch conftest.a
19005   ln conftest.a conftest.b 2>&5 || hard_links=no
19006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19007   echo "$as_me:$LINENO: result: $hard_links" >&5
19008 echo "${ECHO_T}$hard_links" >&6
19009   if test "$hard_links" = no; then
19010     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19011 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19012     need_locks=warn
19013   fi
19014 else
19015   need_locks=no
19016 fi
19017
19018 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19019 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19020
19021   runpath_var=
19022   allow_undefined_flag_F77=
19023   enable_shared_with_static_runtimes_F77=no
19024   archive_cmds_F77=
19025   archive_expsym_cmds_F77=
19026   old_archive_From_new_cmds_F77=
19027   old_archive_from_expsyms_cmds_F77=
19028   export_dynamic_flag_spec_F77=
19029   whole_archive_flag_spec_F77=
19030   thread_safe_flag_spec_F77=
19031   hardcode_libdir_flag_spec_F77=
19032   hardcode_libdir_flag_spec_ld_F77=
19033   hardcode_libdir_separator_F77=
19034   hardcode_direct_F77=no
19035   hardcode_minus_L_F77=no
19036   hardcode_shlibpath_var_F77=unsupported
19037   link_all_deplibs_F77=unknown
19038   hardcode_automatic_F77=no
19039   module_cmds_F77=
19040   module_expsym_cmds_F77=
19041   always_export_symbols_F77=no
19042   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19043   # include_expsyms should be a list of space-separated symbols to be *always*
19044   # included in the symbol list
19045   include_expsyms_F77=
19046   # exclude_expsyms can be an extended regexp of symbols to exclude
19047   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19048   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19049   # as well as any symbol that contains `d'.
19050   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19051   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19052   # platforms (ab)use it in PIC code, but their linkers get confused if
19053   # the symbol is explicitly referenced.  Since portable code cannot
19054   # rely on this symbol name, it's probably fine to never include it in
19055   # preloaded symbol tables.
19056   extract_expsyms_cmds=
19057
19058   case $host_os in
19059   cygwin* | mingw* | pw32*)
19060     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19061     # When not using gcc, we currently assume that we are using
19062     # Microsoft Visual C++.
19063     if test "$GCC" != yes; then
19064       with_gnu_ld=no
19065     fi
19066     ;;
19067   openbsd*)
19068     with_gnu_ld=no
19069     ;;
19070   esac
19071
19072   ld_shlibs_F77=yes
19073   if test "$with_gnu_ld" = yes; then
19074     # If archive_cmds runs LD, not CC, wlarc should be empty
19075     wlarc='${wl}'
19076
19077     # See if GNU ld supports shared libraries.
19078     case $host_os in
19079     aix3* | aix4* | aix5*)
19080       # On AIX/PPC, the GNU linker is very broken
19081       if test "$host_cpu" != ia64; then
19082         ld_shlibs_F77=no
19083         cat <<EOF 1>&2
19084
19085 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19086 *** to be unable to reliably create shared libraries on AIX.
19087 *** Therefore, libtool is disabling shared libraries support.  If you
19088 *** really care for shared libraries, you may want to modify your PATH
19089 *** so that a non-GNU linker is found, and then restart.
19090
19091 EOF
19092       fi
19093       ;;
19094
19095     amigaos*)
19096       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)'
19097       hardcode_libdir_flag_spec_F77='-L$libdir'
19098       hardcode_minus_L_F77=yes
19099
19100       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19101       # that the semantics of dynamic libraries on AmigaOS, at least up
19102       # to version 4, is to share data among multiple programs linked
19103       # with the same dynamic library.  Since this doesn't match the
19104       # behavior of shared libraries on other platforms, we can't use
19105       # them.
19106       ld_shlibs_F77=no
19107       ;;
19108
19109     beos*)
19110       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19111         allow_undefined_flag_F77=unsupported
19112         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19113         # support --undefined.  This deserves some investigation.  FIXME
19114         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19115       else
19116         ld_shlibs_F77=no
19117       fi
19118       ;;
19119
19120     cygwin* | mingw* | pw32*)
19121       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19122       # as there is no search path for DLLs.
19123       hardcode_libdir_flag_spec_F77='-L$libdir'
19124       allow_undefined_flag_F77=unsupported
19125       always_export_symbols_F77=no
19126       enable_shared_with_static_runtimes_F77=yes
19127       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19128
19129       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19130         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19131         # If the export-symbols file already is a .def file (1st line
19132         # is EXPORTS), use it as is; otherwise, prepend...
19133         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19134           cp $export_symbols $output_objdir/$soname.def;
19135         else
19136           echo EXPORTS > $output_objdir/$soname.def;
19137           cat $export_symbols >> $output_objdir/$soname.def;
19138         fi~
19139         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19140       else
19141         ld_shlibs=no
19142       fi
19143       ;;
19144
19145     netbsd*)
19146       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19147         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19148         wlarc=
19149       else
19150         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19152       fi
19153       ;;
19154
19155     solaris* | sysv5*)
19156       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19157         ld_shlibs_F77=no
19158         cat <<EOF 1>&2
19159
19160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19161 *** create shared libraries on Solaris systems.  Therefore, libtool
19162 *** is disabling shared libraries support.  We urge you to upgrade GNU
19163 *** binutils to release 2.9.1 or newer.  Another option is to modify
19164 *** your PATH or compiler configuration so that the native linker is
19165 *** used, and then restart.
19166
19167 EOF
19168       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19169         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19170         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19171       else
19172         ld_shlibs_F77=no
19173       fi
19174       ;;
19175
19176     sunos4*)
19177       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19178       wlarc=
19179       hardcode_direct_F77=yes
19180       hardcode_shlibpath_var_F77=no
19181       ;;
19182
19183   linux*)
19184     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19185         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186         archive_cmds_F77="$tmp_archive_cmds"
19187       supports_anon_versioning=no
19188       case `$LD -v 2>/dev/null` in
19189         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19190         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19191         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19192         *\ 2.11.*) ;; # other 2.11 versions
19193         *) supports_anon_versioning=yes ;;
19194       esac
19195       if test $supports_anon_versioning = yes; then
19196         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19198 $echo "local: *; };" >> $output_objdir/$libname.ver~
19199         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19200       else
19201         archive_expsym_cmds_F77="$tmp_archive_cmds"
19202       fi
19203     else
19204       ld_shlibs_F77=no
19205     fi
19206     ;;
19207
19208     *)
19209       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19210         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19211         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19212       else
19213         ld_shlibs_F77=no
19214       fi
19215       ;;
19216     esac
19217
19218     if test "$ld_shlibs_F77" = yes; then
19219       runpath_var=LD_RUN_PATH
19220       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19221       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19222       # ancient GNU ld didn't support --whole-archive et. al.
19223       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19224         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19225       else
19226         whole_archive_flag_spec_F77=
19227       fi
19228     fi
19229   else
19230     # PORTME fill in a description of your system's linker (not GNU ld)
19231     case $host_os in
19232     aix3*)
19233       allow_undefined_flag_F77=unsupported
19234       always_export_symbols_F77=yes
19235       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'
19236       # Note: this linker hardcodes the directories in LIBPATH if there
19237       # are no directories specified by -L.
19238       hardcode_minus_L_F77=yes
19239       if test "$GCC" = yes && test -z "$link_static_flag"; then
19240         # Neither direct hardcoding nor static linking is supported with a
19241         # broken collect2.
19242         hardcode_direct_F77=unsupported
19243       fi
19244       ;;
19245
19246     aix4* | aix5*)
19247       if test "$host_cpu" = ia64; then
19248         # On IA64, the linker does run time linking by default, so we don't
19249         # have to do anything special.
19250         aix_use_runtimelinking=no
19251         exp_sym_flag='-Bexport'
19252         no_entry_flag=""
19253       else
19254         # If we're using GNU nm, then we don't want the "-C" option.
19255         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19256         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19257           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'
19258         else
19259           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'
19260         fi
19261         aix_use_runtimelinking=no
19262
19263         # Test if we are trying to use run time linking or normal
19264         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19265         # need to do runtime linking.
19266         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19267           for ld_flag in $LDFLAGS; do
19268           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19269             aix_use_runtimelinking=yes
19270             break
19271           fi
19272           done
19273         esac
19274
19275         exp_sym_flag='-bexport'
19276         no_entry_flag='-bnoentry'
19277       fi
19278
19279       # When large executables or shared objects are built, AIX ld can
19280       # have problems creating the table of contents.  If linking a library
19281       # or program results in "error TOC overflow" add -mminimal-toc to
19282       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19283       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19284
19285       archive_cmds_F77=''
19286       hardcode_direct_F77=yes
19287       hardcode_libdir_separator_F77=':'
19288       link_all_deplibs_F77=yes
19289
19290       if test "$GCC" = yes; then
19291         case $host_os in aix4.012|aix4.012.*)
19292         # We only want to do this on AIX 4.2 and lower, the check
19293         # below for broken collect2 doesn't work under 4.3+
19294           collect2name=`${CC} -print-prog-name=collect2`
19295           if test -f "$collect2name" && \
19296            strings "$collect2name" | grep resolve_lib_name >/dev/null
19297           then
19298           # We have reworked collect2
19299           hardcode_direct_F77=yes
19300           else
19301           # We have old collect2
19302           hardcode_direct_F77=unsupported
19303           # It fails to find uninstalled libraries when the uninstalled
19304           # path is not listed in the libpath.  Setting hardcode_minus_L
19305           # to unsupported forces relinking
19306           hardcode_minus_L_F77=yes
19307           hardcode_libdir_flag_spec_F77='-L$libdir'
19308           hardcode_libdir_separator_F77=
19309           fi
19310         esac
19311         shared_flag='-shared'
19312       else
19313         # not using gcc
19314         if test "$host_cpu" = ia64; then
19315         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19316         # chokes on -Wl,-G. The following line is correct:
19317           shared_flag='-G'
19318         else
19319         if test "$aix_use_runtimelinking" = yes; then
19320             shared_flag='${wl}-G'
19321           else
19322             shared_flag='${wl}-bM:SRE'
19323         fi
19324         fi
19325       fi
19326
19327       # It seems that -bexpall does not export symbols beginning with
19328       # underscore (_), so it is better to generate a list of symbols to export.
19329       always_export_symbols_F77=yes
19330       if test "$aix_use_runtimelinking" = yes; then
19331         # Warning - without using the other runtime loading flags (-brtl),
19332         # -berok will link without error, but may produce a broken library.
19333         allow_undefined_flag_F77='-berok'
19334        # Determine the default libpath from the value encoded in an empty executable.
19335        cat >conftest.$ac_ext <<_ACEOF
19336       program main
19337
19338       end
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342   (eval $ac_link) 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } &&
19349          { ac_try='test -z "$ac_f77_werror_flag"
19350                          || test ! -s conftest.err'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; } &&
19356          { ac_try='test -s conftest$ac_exeext'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362
19363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19364 }'`
19365 # Check for a 64-bit object if we didn't find anything.
19366 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; }
19367 }'`; fi
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 fi
19373 rm -f conftest.err conftest.$ac_objext \
19374       conftest$ac_exeext conftest.$ac_ext
19375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19376
19377        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19378         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"
19379        else
19380         if test "$host_cpu" = ia64; then
19381           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19382           allow_undefined_flag_F77="-z nodefs"
19383           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"
19384         else
19385          # Determine the default libpath from the value encoded in an empty executable.
19386          cat >conftest.$ac_ext <<_ACEOF
19387       program main
19388
19389       end
19390 _ACEOF
19391 rm -f conftest.$ac_objext conftest$ac_exeext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19393   (eval $ac_link) 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } &&
19400          { ac_try='test -z "$ac_f77_werror_flag"
19401                          || test ! -s conftest.err'
19402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403   (eval $ac_try) 2>&5
19404   ac_status=$?
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); }; } &&
19407          { ac_try='test -s conftest$ac_exeext'
19408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409   (eval $ac_try) 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); }; }; then
19413
19414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19415 }'`
19416 # Check for a 64-bit object if we didn't find anything.
19417 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; }
19418 }'`; fi
19419 else
19420   echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 fi
19424 rm -f conftest.err conftest.$ac_objext \
19425       conftest$ac_exeext conftest.$ac_ext
19426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19427
19428          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19429           # Warning - without using the other run time loading flags,
19430           # -berok will link without error, but may produce a broken library.
19431           no_undefined_flag_F77=' ${wl}-bernotok'
19432           allow_undefined_flag_F77=' ${wl}-berok'
19433           # -bexpall does not export symbols beginning with underscore (_)
19434           always_export_symbols_F77=yes
19435           # Exported symbols can be pulled into shared objects from archives
19436           whole_archive_flag_spec_F77=' '
19437           archive_cmds_need_lc_F77=yes
19438           # This is similar to how AIX traditionally builds it's shared libraries.
19439           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'
19440         fi
19441       fi
19442       ;;
19443
19444     amigaos*)
19445       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)'
19446       hardcode_libdir_flag_spec_F77='-L$libdir'
19447       hardcode_minus_L_F77=yes
19448       # see comment about different semantics on the GNU ld section
19449       ld_shlibs_F77=no
19450       ;;
19451
19452     bsdi[45]*)
19453       export_dynamic_flag_spec_F77=-rdynamic
19454       ;;
19455
19456     cygwin* | mingw* | pw32*)
19457       # When not using gcc, we currently assume that we are using
19458       # Microsoft Visual C++.
19459       # hardcode_libdir_flag_spec is actually meaningless, as there is
19460       # no search path for DLLs.
19461       hardcode_libdir_flag_spec_F77=' '
19462       allow_undefined_flag_F77=unsupported
19463       # Tell ltmain to make .lib files, not .a files.
19464       libext=lib
19465       # Tell ltmain to make .dll files, not .so files.
19466       shrext_cmds=".dll"
19467       # FIXME: Setting linknames here is a bad hack.
19468       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19469       # The linker will automatically build a .lib file if we build a DLL.
19470       old_archive_From_new_cmds_F77='true'
19471       # FIXME: Should let the user specify the lib program.
19472       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19473       fix_srcfile_path='`cygpath -w "$srcfile"`'
19474       enable_shared_with_static_runtimes_F77=yes
19475       ;;
19476
19477     darwin* | rhapsody*)
19478       case "$host_os" in
19479         rhapsody* | darwin1.[012])
19480          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19481          ;;
19482        *) # Darwin 1.3 on
19483          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19484            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19485          else
19486            case ${MACOSX_DEPLOYMENT_TARGET} in
19487              10.[012])
19488                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19489                ;;
19490              10.*)
19491                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19492                ;;
19493            esac
19494          fi
19495          ;;
19496       esac
19497       archive_cmds_need_lc_F77=no
19498       hardcode_direct_F77=no
19499       hardcode_automatic_F77=yes
19500       hardcode_shlibpath_var_F77=unsupported
19501       whole_archive_flag_spec_F77=''
19502       link_all_deplibs_F77=yes
19503     if test "$GCC" = yes ; then
19504         output_verbose_link_cmd='echo'
19505         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19506       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19507       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19508       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}'
19509       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}'
19510     else
19511       case "$cc_basename" in
19512         xlc*)
19513          output_verbose_link_cmd='echo'
19514          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19515          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19516           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19517          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}'
19518           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}'
19519           ;;
19520        *)
19521          ld_shlibs_F77=no
19522           ;;
19523       esac
19524     fi
19525       ;;
19526
19527     dgux*)
19528       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529       hardcode_libdir_flag_spec_F77='-L$libdir'
19530       hardcode_shlibpath_var_F77=no
19531       ;;
19532
19533     freebsd1*)
19534       ld_shlibs_F77=no
19535       ;;
19536
19537     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19538     # support.  Future versions do this automatically, but an explicit c++rt0.o
19539     # does not break anything, and helps significantly (at the cost of a little
19540     # extra space).
19541     freebsd2.2*)
19542       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19543       hardcode_libdir_flag_spec_F77='-R$libdir'
19544       hardcode_direct_F77=yes
19545       hardcode_shlibpath_var_F77=no
19546       ;;
19547
19548     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19549     freebsd2*)
19550       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19551       hardcode_direct_F77=yes
19552       hardcode_minus_L_F77=yes
19553       hardcode_shlibpath_var_F77=no
19554       ;;
19555
19556     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19557     freebsd* | kfreebsd*-gnu)
19558       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19559       hardcode_libdir_flag_spec_F77='-R$libdir'
19560       hardcode_direct_F77=yes
19561       hardcode_shlibpath_var_F77=no
19562       ;;
19563
19564     hpux9*)
19565       if test "$GCC" = yes; then
19566         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'
19567       else
19568         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'
19569       fi
19570       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19571       hardcode_libdir_separator_F77=:
19572       hardcode_direct_F77=yes
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       export_dynamic_flag_spec_F77='${wl}-E'
19578       ;;
19579
19580     hpux10* | hpux11*)
19581       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19582         case "$host_cpu" in
19583         hppa*64*|ia64*)
19584           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19585           ;;
19586         *)
19587           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19588           ;;
19589         esac
19590       else
19591         case "$host_cpu" in
19592         hppa*64*|ia64*)
19593           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19594           ;;
19595         *)
19596           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19597           ;;
19598         esac
19599       fi
19600       if test "$with_gnu_ld" = no; then
19601         case "$host_cpu" in
19602         hppa*64*)
19603           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19604           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19605           hardcode_libdir_separator_F77=:
19606           hardcode_direct_F77=no
19607           hardcode_shlibpath_var_F77=no
19608           ;;
19609         ia64*)
19610           hardcode_libdir_flag_spec_F77='-L$libdir'
19611           hardcode_direct_F77=no
19612           hardcode_shlibpath_var_F77=no
19613
19614           # hardcode_minus_L: Not really in the search PATH,
19615           # but as the default location of the library.
19616           hardcode_minus_L_F77=yes
19617           ;;
19618         *)
19619           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19620           hardcode_libdir_separator_F77=:
19621           hardcode_direct_F77=yes
19622           export_dynamic_flag_spec_F77='${wl}-E'
19623
19624           # hardcode_minus_L: Not really in the search PATH,
19625           # but as the default location of the library.
19626           hardcode_minus_L_F77=yes
19627           ;;
19628         esac
19629       fi
19630       ;;
19631
19632     irix5* | irix6* | nonstopux*)
19633       if test "$GCC" = yes; then
19634         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'
19635       else
19636         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'
19637         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19638       fi
19639       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19640       hardcode_libdir_separator_F77=:
19641       link_all_deplibs_F77=yes
19642       ;;
19643
19644     netbsd*)
19645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19646         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19647       else
19648         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19649       fi
19650       hardcode_libdir_flag_spec_F77='-R$libdir'
19651       hardcode_direct_F77=yes
19652       hardcode_shlibpath_var_F77=no
19653       ;;
19654
19655     newsos6)
19656       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19657       hardcode_direct_F77=yes
19658       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19659       hardcode_libdir_separator_F77=:
19660       hardcode_shlibpath_var_F77=no
19661       ;;
19662
19663     openbsd*)
19664       hardcode_direct_F77=yes
19665       hardcode_shlibpath_var_F77=no
19666       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19667         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19668         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19669         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19670         export_dynamic_flag_spec_F77='${wl}-E'
19671       else
19672        case $host_os in
19673          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19674            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19675            hardcode_libdir_flag_spec_F77='-R$libdir'
19676            ;;
19677          *)
19678            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19679            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19680            ;;
19681        esac
19682       fi
19683       ;;
19684
19685     os2*)
19686       hardcode_libdir_flag_spec_F77='-L$libdir'
19687       hardcode_minus_L_F77=yes
19688       allow_undefined_flag_F77=unsupported
19689       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'
19690       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19691       ;;
19692
19693     osf3*)
19694       if test "$GCC" = yes; then
19695         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19696         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'
19697       else
19698         allow_undefined_flag_F77=' -expect_unresolved \*'
19699         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'
19700       fi
19701       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19702       hardcode_libdir_separator_F77=:
19703       ;;
19704
19705     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19706       if test "$GCC" = yes; then
19707         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19708         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'
19709         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19710       else
19711         allow_undefined_flag_F77=' -expect_unresolved \*'
19712         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'
19713         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~
19714         $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'
19715
19716         # Both c and cxx compiler support -rpath directly
19717         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19718       fi
19719       hardcode_libdir_separator_F77=:
19720       ;;
19721
19722     sco3.2v5*)
19723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19724       hardcode_shlibpath_var_F77=no
19725       export_dynamic_flag_spec_F77='${wl}-Bexport'
19726       runpath_var=LD_RUN_PATH
19727       hardcode_runpath_var=yes
19728       ;;
19729
19730     solaris*)
19731       no_undefined_flag_F77=' -z text'
19732       if test "$GCC" = yes; then
19733         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19734         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19735           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19736       else
19737         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19738         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19739         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19740       fi
19741       hardcode_libdir_flag_spec_F77='-R$libdir'
19742       hardcode_shlibpath_var_F77=no
19743       case $host_os in
19744       solaris2.[0-5] | solaris2.[0-5].*) ;;
19745       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19746         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19747       esac
19748       link_all_deplibs_F77=yes
19749       ;;
19750
19751     sunos4*)
19752       if test "x$host_vendor" = xsequent; then
19753         # Use $CC to link under sequent, because it throws in some extra .o
19754         # files that make .init and .fini sections work.
19755         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19756       else
19757         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19758       fi
19759       hardcode_libdir_flag_spec_F77='-L$libdir'
19760       hardcode_direct_F77=yes
19761       hardcode_minus_L_F77=yes
19762       hardcode_shlibpath_var_F77=no
19763       ;;
19764
19765     sysv4)
19766       case $host_vendor in
19767         sni)
19768           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769           hardcode_direct_F77=yes # is this really true???
19770         ;;
19771         siemens)
19772           ## LD is ld it makes a PLAMLIB
19773           ## CC just makes a GrossModule.
19774           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19775           reload_cmds_F77='$CC -r -o $output$reload_objs'
19776           hardcode_direct_F77=no
19777         ;;
19778         motorola)
19779           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19780           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19781         ;;
19782       esac
19783       runpath_var='LD_RUN_PATH'
19784       hardcode_shlibpath_var_F77=no
19785       ;;
19786
19787     sysv4.3*)
19788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19789       hardcode_shlibpath_var_F77=no
19790       export_dynamic_flag_spec_F77='-Bexport'
19791       ;;
19792
19793     sysv4*MP*)
19794       if test -d /usr/nec; then
19795         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19796         hardcode_shlibpath_var_F77=no
19797         runpath_var=LD_RUN_PATH
19798         hardcode_runpath_var=yes
19799         ld_shlibs_F77=yes
19800       fi
19801       ;;
19802
19803     sysv4.2uw2*)
19804       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19805       hardcode_direct_F77=yes
19806       hardcode_minus_L_F77=no
19807       hardcode_shlibpath_var_F77=no
19808       hardcode_runpath_var=yes
19809       runpath_var=LD_RUN_PATH
19810       ;;
19811
19812    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19813       no_undefined_flag_F77='${wl}-z ${wl}text'
19814       if test "$GCC" = yes; then
19815         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816       else
19817         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19818       fi
19819       runpath_var='LD_RUN_PATH'
19820       hardcode_shlibpath_var_F77=no
19821       ;;
19822
19823     sysv5*)
19824       no_undefined_flag_F77=' -z text'
19825       # $CC -shared without GNU ld will not create a library from C++
19826       # object files and a static libstdc++, better avoid it by now
19827       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19828       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19829                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19830       hardcode_libdir_flag_spec_F77=
19831       hardcode_shlibpath_var_F77=no
19832       runpath_var='LD_RUN_PATH'
19833       ;;
19834
19835     uts4*)
19836       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19837       hardcode_libdir_flag_spec_F77='-L$libdir'
19838       hardcode_shlibpath_var_F77=no
19839       ;;
19840
19841     *)
19842       ld_shlibs_F77=no
19843       ;;
19844     esac
19845   fi
19846
19847 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19848 echo "${ECHO_T}$ld_shlibs_F77" >&6
19849 test "$ld_shlibs_F77" = no && can_build_shared=no
19850
19851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19852 if test "$GCC" = yes; then
19853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19854 fi
19855
19856 #
19857 # Do we need to explicitly link libc?
19858 #
19859 case "x$archive_cmds_need_lc_F77" in
19860 x|xyes)
19861   # Assume -lc should be added
19862   archive_cmds_need_lc_F77=yes
19863
19864   if test "$enable_shared" = yes && test "$GCC" = yes; then
19865     case $archive_cmds_F77 in
19866     *'~'*)
19867       # FIXME: we may have to deal with multi-command sequences.
19868       ;;
19869     '$CC '*)
19870       # Test whether the compiler implicitly links with -lc since on some
19871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19872       # to ld, don't add -lc before -lgcc.
19873       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19875       $rm conftest*
19876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19877
19878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879   (eval $ac_compile) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } 2>conftest.err; then
19883         soname=conftest
19884         lib=conftest
19885         libobjs=conftest.$ac_objext
19886         deplibs=
19887         wl=$lt_prog_compiler_wl_F77
19888         compiler_flags=-v
19889         linker_flags=-v
19890         verstring=
19891         output_objdir=.
19892         libname=conftest
19893         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19894         allow_undefined_flag_F77=
19895         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19896   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }
19900         then
19901           archive_cmds_need_lc_F77=no
19902         else
19903           archive_cmds_need_lc_F77=yes
19904         fi
19905         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19906       else
19907         cat conftest.err 1>&5
19908       fi
19909       $rm conftest*
19910       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19911 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19912       ;;
19913     esac
19914   fi
19915   ;;
19916 esac
19917
19918 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19920 library_names_spec=
19921 libname_spec='lib$name'
19922 soname_spec=
19923 shrext_cmds=".so"
19924 postinstall_cmds=
19925 postuninstall_cmds=
19926 finish_cmds=
19927 finish_eval=
19928 shlibpath_var=
19929 shlibpath_overrides_runpath=unknown
19930 version_type=none
19931 dynamic_linker="$host_os ld.so"
19932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19933 if test "$GCC" = yes; then
19934   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19935   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19936     # if the path contains ";" then we assume it to be the separator
19937     # otherwise default to the standard path separator (i.e. ":") - it is
19938     # assumed that no part of a normal pathname contains ";" but that should
19939     # okay in the real world where ";" in dirpaths is itself problematic.
19940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19941   else
19942     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19943   fi
19944 else
19945   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19946 fi
19947 need_lib_prefix=unknown
19948 hardcode_into_libs=no
19949
19950 # when you set need_version to no, make sure it does not cause -set_version
19951 # flags to be left without arguments
19952 need_version=unknown
19953
19954 case $host_os in
19955 aix3*)
19956   version_type=linux
19957   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19958   shlibpath_var=LIBPATH
19959
19960   # AIX 3 has no versioning support, so we append a major version to the name.
19961   soname_spec='${libname}${release}${shared_ext}$major'
19962   ;;
19963
19964 aix4* | aix5*)
19965   version_type=linux
19966   need_lib_prefix=no
19967   need_version=no
19968   hardcode_into_libs=yes
19969   if test "$host_cpu" = ia64; then
19970     # AIX 5 supports IA64
19971     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19972     shlibpath_var=LD_LIBRARY_PATH
19973   else
19974     # With GCC up to 2.95.x, collect2 would create an import file
19975     # for dependence libraries.  The import file would start with
19976     # the line `#! .'.  This would cause the generated library to
19977     # depend on `.', always an invalid library.  This was fixed in
19978     # development snapshots of GCC prior to 3.0.
19979     case $host_os in
19980       aix4 | aix4.[01] | aix4.[01].*)
19981       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19982            echo ' yes '
19983            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19984         :
19985       else
19986         can_build_shared=no
19987       fi
19988       ;;
19989     esac
19990     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19991     # soname into executable. Probably we can add versioning support to
19992     # collect2, so additional links can be useful in future.
19993     if test "$aix_use_runtimelinking" = yes; then
19994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19995       # instead of lib<name>.a to let people know that these are not
19996       # typical AIX shared libraries.
19997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998     else
19999       # We preserve .a as extension for shared libraries through AIX4.2
20000       # and later when we are not doing run time linking.
20001       library_names_spec='${libname}${release}.a $libname.a'
20002       soname_spec='${libname}${release}${shared_ext}$major'
20003     fi
20004     shlibpath_var=LIBPATH
20005   fi
20006   ;;
20007
20008 amigaos*)
20009   library_names_spec='$libname.ixlibrary $libname.a'
20010   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20011   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'
20012   ;;
20013
20014 beos*)
20015   library_names_spec='${libname}${shared_ext}'
20016   dynamic_linker="$host_os ld.so"
20017   shlibpath_var=LIBRARY_PATH
20018   ;;
20019
20020 bsdi[45]*)
20021   version_type=linux
20022   need_version=no
20023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024   soname_spec='${libname}${release}${shared_ext}$major'
20025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20026   shlibpath_var=LD_LIBRARY_PATH
20027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20029   # the default ld.so.conf also contains /usr/contrib/lib and
20030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20031   # libtool to hard-code these into programs
20032   ;;
20033
20034 cygwin* | mingw* | pw32*)
20035   version_type=windows
20036   shrext_cmds=".dll"
20037   need_version=no
20038   need_lib_prefix=no
20039
20040   case $GCC,$host_os in
20041   yes,cygwin* | yes,mingw* | yes,pw32*)
20042     library_names_spec='$libname.dll.a'
20043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20044     postinstall_cmds='base_file=`basename \${file}`~
20045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20046       dldir=$destdir/`dirname \$dlpath`~
20047       test -d \$dldir || mkdir -p \$dldir~
20048       $install_prog $dir/$dlname \$dldir/$dlname'
20049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20050       dlpath=$dir/\$dldll~
20051        $rm \$dlpath'
20052     shlibpath_overrides_runpath=yes
20053
20054     case $host_os in
20055     cygwin*)
20056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20059       ;;
20060     mingw*)
20061       # MinGW DLLs use traditional 'lib' prefix
20062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20063       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20064       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20065         # It is most probably a Windows format PATH printed by
20066         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20067         # path with ; separators, and with drive letters. We can handle the
20068         # drive letters (cygwin fileutils understands them), so leave them,
20069         # especially as we might pass files found there to a mingw objdump,
20070         # which wouldn't understand a cygwinified path. Ahh.
20071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20072       else
20073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20074       fi
20075       ;;
20076     pw32*)
20077       # pw32 DLLs use 'pw' prefix rather than 'lib'
20078       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20079       ;;
20080     esac
20081     ;;
20082
20083   *)
20084     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20085     ;;
20086   esac
20087   dynamic_linker='Win32 ld.exe'
20088   # FIXME: first we should search . and the directory the executable is in
20089   shlibpath_var=PATH
20090   ;;
20091
20092 darwin* | rhapsody*)
20093   dynamic_linker="$host_os dyld"
20094   version_type=darwin
20095   need_lib_prefix=no
20096   need_version=no
20097   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20098   soname_spec='${libname}${release}${major}$shared_ext'
20099   shlibpath_overrides_runpath=yes
20100   shlibpath_var=DYLD_LIBRARY_PATH
20101   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20102   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20103   if test "$GCC" = yes; then
20104     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"`
20105   else
20106     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20107   fi
20108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20109   ;;
20110
20111 dgux*)
20112   version_type=linux
20113   need_lib_prefix=no
20114   need_version=no
20115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20116   soname_spec='${libname}${release}${shared_ext}$major'
20117   shlibpath_var=LD_LIBRARY_PATH
20118   ;;
20119
20120 freebsd1*)
20121   dynamic_linker=no
20122   ;;
20123
20124 kfreebsd*-gnu)
20125   version_type=linux
20126   need_lib_prefix=no
20127   need_version=no
20128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20129   soname_spec='${libname}${release}${shared_ext}$major'
20130   shlibpath_var=LD_LIBRARY_PATH
20131   shlibpath_overrides_runpath=no
20132   hardcode_into_libs=yes
20133   dynamic_linker='GNU ld.so'
20134   ;;
20135
20136 freebsd*)
20137   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20138   version_type=freebsd-$objformat
20139   case $version_type in
20140     freebsd-elf*)
20141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20142       need_version=no
20143       need_lib_prefix=no
20144       ;;
20145     freebsd-*)
20146       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20147       need_version=yes
20148       ;;
20149   esac
20150   shlibpath_var=LD_LIBRARY_PATH
20151   case $host_os in
20152   freebsd2*)
20153     shlibpath_overrides_runpath=yes
20154     ;;
20155   freebsd3.01* | freebsdelf3.01*)
20156     shlibpath_overrides_runpath=yes
20157     hardcode_into_libs=yes
20158     ;;
20159   *) # from 3.2 on
20160     shlibpath_overrides_runpath=no
20161     hardcode_into_libs=yes
20162     ;;
20163   esac
20164   ;;
20165
20166 gnu*)
20167   version_type=linux
20168   need_lib_prefix=no
20169   need_version=no
20170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171   soname_spec='${libname}${release}${shared_ext}$major'
20172   shlibpath_var=LD_LIBRARY_PATH
20173   hardcode_into_libs=yes
20174   ;;
20175
20176 hpux9* | hpux10* | hpux11*)
20177   # Give a soname corresponding to the major version so that dld.sl refuses to
20178   # link against other versions.
20179   version_type=sunos
20180   need_lib_prefix=no
20181   need_version=no
20182   case "$host_cpu" in
20183   ia64*)
20184     shrext_cmds='.so'
20185     hardcode_into_libs=yes
20186     dynamic_linker="$host_os dld.so"
20187     shlibpath_var=LD_LIBRARY_PATH
20188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190     soname_spec='${libname}${release}${shared_ext}$major'
20191     if test "X$HPUX_IA64_MODE" = X32; then
20192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20193     else
20194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20195     fi
20196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20197     ;;
20198    hppa*64*)
20199      shrext_cmds='.sl'
20200      hardcode_into_libs=yes
20201      dynamic_linker="$host_os dld.sl"
20202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205      soname_spec='${libname}${release}${shared_ext}$major'
20206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20208      ;;
20209    *)
20210     shrext_cmds='.sl'
20211     dynamic_linker="$host_os dld.sl"
20212     shlibpath_var=SHLIB_PATH
20213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215     soname_spec='${libname}${release}${shared_ext}$major'
20216     ;;
20217   esac
20218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20219   postinstall_cmds='chmod 555 $lib'
20220   ;;
20221
20222 irix5* | irix6* | nonstopux*)
20223   case $host_os in
20224     nonstopux*) version_type=nonstopux ;;
20225     *)
20226         if test "$lt_cv_prog_gnu_ld" = yes; then
20227                 version_type=linux
20228         else
20229                 version_type=irix
20230         fi ;;
20231   esac
20232   need_lib_prefix=no
20233   need_version=no
20234   soname_spec='${libname}${release}${shared_ext}$major'
20235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20236   case $host_os in
20237   irix5* | nonstopux*)
20238     libsuff= shlibsuff=
20239     ;;
20240   *)
20241     case $LD in # libtool.m4 will add one of these switches to LD
20242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20243       libsuff= shlibsuff= libmagic=32-bit;;
20244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20245       libsuff=32 shlibsuff=N32 libmagic=N32;;
20246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20248     *) libsuff= shlibsuff= libmagic=never-match;;
20249     esac
20250     ;;
20251   esac
20252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20253   shlibpath_overrides_runpath=no
20254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20256   hardcode_into_libs=yes
20257   ;;
20258
20259 # No shared lib support for Linux oldld, aout, or coff.
20260 linux*oldld* | linux*aout* | linux*coff*)
20261   dynamic_linker=no
20262   ;;
20263
20264 # This must be Linux ELF.
20265 linux*)
20266   version_type=linux
20267   need_lib_prefix=no
20268   need_version=no
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   soname_spec='${libname}${release}${shared_ext}$major'
20271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=no
20274   # This implies no fast_install, which is unacceptable.
20275   # Some rework will be needed to allow for fast_install
20276   # before this can be enabled.
20277   hardcode_into_libs=yes
20278
20279   # Append ld.so.conf contents to the search path
20280   if test -f /etc/ld.so.conf; then
20281     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20283   fi
20284
20285   # We used to test for /lib/ld.so.1 and disable shared libraries on
20286   # powerpc, because MkLinux only supported shared libraries with the
20287   # GNU dynamic linker.  Since this was broken with cross compilers,
20288   # most powerpc-linux boxes support dynamic linking these days and
20289   # people can always --disable-shared, the test was removed, and we
20290   # assume the GNU/Linux dynamic linker is in use.
20291   dynamic_linker='GNU/Linux ld.so'
20292   ;;
20293
20294 knetbsd*-gnu)
20295   version_type=linux
20296   need_lib_prefix=no
20297   need_version=no
20298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299   soname_spec='${libname}${release}${shared_ext}$major'
20300   shlibpath_var=LD_LIBRARY_PATH
20301   shlibpath_overrides_runpath=no
20302   hardcode_into_libs=yes
20303   dynamic_linker='GNU ld.so'
20304   ;;
20305
20306 netbsd*)
20307   version_type=sunos
20308   need_lib_prefix=no
20309   need_version=no
20310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20313     dynamic_linker='NetBSD (a.out) ld.so'
20314   else
20315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20316     soname_spec='${libname}${release}${shared_ext}$major'
20317     dynamic_linker='NetBSD ld.elf_so'
20318   fi
20319   shlibpath_var=LD_LIBRARY_PATH
20320   shlibpath_overrides_runpath=yes
20321   hardcode_into_libs=yes
20322   ;;
20323
20324 newsos6)
20325   version_type=linux
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327   shlibpath_var=LD_LIBRARY_PATH
20328   shlibpath_overrides_runpath=yes
20329   ;;
20330
20331 nto-qnx*)
20332   version_type=linux
20333   need_lib_prefix=no
20334   need_version=no
20335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336   soname_spec='${libname}${release}${shared_ext}$major'
20337   shlibpath_var=LD_LIBRARY_PATH
20338   shlibpath_overrides_runpath=yes
20339   ;;
20340
20341 openbsd*)
20342   version_type=sunos
20343   need_lib_prefix=no
20344   need_version=no
20345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20346   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20347   shlibpath_var=LD_LIBRARY_PATH
20348   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20349     case $host_os in
20350       openbsd2.[89] | openbsd2.[89].*)
20351         shlibpath_overrides_runpath=no
20352         ;;
20353       *)
20354         shlibpath_overrides_runpath=yes
20355         ;;
20356       esac
20357   else
20358     shlibpath_overrides_runpath=yes
20359   fi
20360   ;;
20361
20362 os2*)
20363   libname_spec='$name'
20364   shrext_cmds=".dll"
20365   need_lib_prefix=no
20366   library_names_spec='$libname${shared_ext} $libname.a'
20367   dynamic_linker='OS/2 ld.exe'
20368   shlibpath_var=LIBPATH
20369   ;;
20370
20371 osf3* | osf4* | osf5*)
20372   version_type=osf
20373   need_lib_prefix=no
20374   need_version=no
20375   soname_spec='${libname}${release}${shared_ext}$major'
20376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377   shlibpath_var=LD_LIBRARY_PATH
20378   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20379   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20380   ;;
20381
20382 sco3.2v5*)
20383   version_type=osf
20384   soname_spec='${libname}${release}${shared_ext}$major'
20385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386   shlibpath_var=LD_LIBRARY_PATH
20387   ;;
20388
20389 solaris*)
20390   version_type=linux
20391   need_lib_prefix=no
20392   need_version=no
20393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394   soname_spec='${libname}${release}${shared_ext}$major'
20395   shlibpath_var=LD_LIBRARY_PATH
20396   shlibpath_overrides_runpath=yes
20397   hardcode_into_libs=yes
20398   # ldd complains unless libraries are executable
20399   postinstall_cmds='chmod +x $lib'
20400   ;;
20401
20402 sunos4*)
20403   version_type=sunos
20404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20405   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20406   shlibpath_var=LD_LIBRARY_PATH
20407   shlibpath_overrides_runpath=yes
20408   if test "$with_gnu_ld" = yes; then
20409     need_lib_prefix=no
20410   fi
20411   need_version=yes
20412   ;;
20413
20414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20415   version_type=linux
20416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417   soname_spec='${libname}${release}${shared_ext}$major'
20418   shlibpath_var=LD_LIBRARY_PATH
20419   case $host_vendor in
20420     sni)
20421       shlibpath_overrides_runpath=no
20422       need_lib_prefix=no
20423       export_dynamic_flag_spec='${wl}-Blargedynsym'
20424       runpath_var=LD_RUN_PATH
20425       ;;
20426     siemens)
20427       need_lib_prefix=no
20428       ;;
20429     motorola)
20430       need_lib_prefix=no
20431       need_version=no
20432       shlibpath_overrides_runpath=no
20433       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20434       ;;
20435   esac
20436   ;;
20437
20438 sysv4*MP*)
20439   if test -d /usr/nec ;then
20440     version_type=linux
20441     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20442     soname_spec='$libname${shared_ext}.$major'
20443     shlibpath_var=LD_LIBRARY_PATH
20444   fi
20445   ;;
20446
20447 uts4*)
20448   version_type=linux
20449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450   soname_spec='${libname}${release}${shared_ext}$major'
20451   shlibpath_var=LD_LIBRARY_PATH
20452   ;;
20453
20454 *)
20455   dynamic_linker=no
20456   ;;
20457 esac
20458 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20459 echo "${ECHO_T}$dynamic_linker" >&6
20460 test "$dynamic_linker" = no && can_build_shared=no
20461
20462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20464 hardcode_action_F77=
20465 if test -n "$hardcode_libdir_flag_spec_F77" || \
20466    test -n "$runpath_var_F77" || \
20467    test "X$hardcode_automatic_F77" = "Xyes" ; then
20468
20469   # We can hardcode non-existant directories.
20470   if test "$hardcode_direct_F77" != no &&
20471      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20472      # have to relink, otherwise we might link with an installed library
20473      # when we should be linking with a yet-to-be-installed one
20474      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20475      test "$hardcode_minus_L_F77" != no; then
20476     # Linking always hardcodes the temporary library directory.
20477     hardcode_action_F77=relink
20478   else
20479     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20480     hardcode_action_F77=immediate
20481   fi
20482 else
20483   # We cannot hardcode anything, or else we can only hardcode existing
20484   # directories.
20485   hardcode_action_F77=unsupported
20486 fi
20487 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20488 echo "${ECHO_T}$hardcode_action_F77" >&6
20489
20490 if test "$hardcode_action_F77" = relink; then
20491   # Fast installation is not supported
20492   enable_fast_install=no
20493 elif test "$shlibpath_overrides_runpath" = yes ||
20494      test "$enable_shared" = no; then
20495   # Fast installation is not necessary
20496   enable_fast_install=needless
20497 fi
20498
20499 striplib=
20500 old_striplib=
20501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20504   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20505   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20506   echo "$as_me:$LINENO: result: yes" >&5
20507 echo "${ECHO_T}yes" >&6
20508 else
20509 # FIXME - insert some real tests, host_os isn't really good enough
20510   case $host_os in
20511    darwin*)
20512        if test -n "$STRIP" ; then
20513          striplib="$STRIP -x"
20514          echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6
20516        else
20517   echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6
20519 fi
20520        ;;
20521    *)
20522   echo "$as_me:$LINENO: result: no" >&5
20523 echo "${ECHO_T}no" >&6
20524     ;;
20525   esac
20526 fi
20527
20528
20529
20530 # The else clause should only fire when bootstrapping the
20531 # libtool distribution, otherwise you forgot to ship ltmain.sh
20532 # with your package, and you will get complaints that there are
20533 # no rules to generate ltmain.sh.
20534 if test -f "$ltmain"; then
20535   # See if we are running on zsh, and set the options which allow our commands through
20536   # without removal of \ escapes.
20537   if test -n "${ZSH_VERSION+set}" ; then
20538     setopt NO_GLOB_SUBST
20539   fi
20540   # Now quote all the things that may contain metacharacters while being
20541   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20542   # variables and quote the copies for generation of the libtool script.
20543   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20544     SED SHELL STRIP \
20545     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20546     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20547     deplibs_check_method reload_flag reload_cmds need_locks \
20548     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20549     lt_cv_sys_global_symbol_to_c_name_address \
20550     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20551     old_postinstall_cmds old_postuninstall_cmds \
20552     compiler_F77 \
20553     CC_F77 \
20554     LD_F77 \
20555     lt_prog_compiler_wl_F77 \
20556     lt_prog_compiler_pic_F77 \
20557     lt_prog_compiler_static_F77 \
20558     lt_prog_compiler_no_builtin_flag_F77 \
20559     export_dynamic_flag_spec_F77 \
20560     thread_safe_flag_spec_F77 \
20561     whole_archive_flag_spec_F77 \
20562     enable_shared_with_static_runtimes_F77 \
20563     old_archive_cmds_F77 \
20564     old_archive_from_new_cmds_F77 \
20565     predep_objects_F77 \
20566     postdep_objects_F77 \
20567     predeps_F77 \
20568     postdeps_F77 \
20569     compiler_lib_search_path_F77 \
20570     archive_cmds_F77 \
20571     archive_expsym_cmds_F77 \
20572     postinstall_cmds_F77 \
20573     postuninstall_cmds_F77 \
20574     old_archive_from_expsyms_cmds_F77 \
20575     allow_undefined_flag_F77 \
20576     no_undefined_flag_F77 \
20577     export_symbols_cmds_F77 \
20578     hardcode_libdir_flag_spec_F77 \
20579     hardcode_libdir_flag_spec_ld_F77 \
20580     hardcode_libdir_separator_F77 \
20581     hardcode_automatic_F77 \
20582     module_cmds_F77 \
20583     module_expsym_cmds_F77 \
20584     lt_cv_prog_compiler_c_o_F77 \
20585     exclude_expsyms_F77 \
20586     include_expsyms_F77; do
20587
20588     case $var in
20589     old_archive_cmds_F77 | \
20590     old_archive_from_new_cmds_F77 | \
20591     archive_cmds_F77 | \
20592     archive_expsym_cmds_F77 | \
20593     module_cmds_F77 | \
20594     module_expsym_cmds_F77 | \
20595     old_archive_from_expsyms_cmds_F77 | \
20596     export_symbols_cmds_F77 | \
20597     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20598     postinstall_cmds | postuninstall_cmds | \
20599     old_postinstall_cmds | old_postuninstall_cmds | \
20600     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20601       # Double-quote double-evaled strings.
20602       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20603       ;;
20604     *)
20605       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20606       ;;
20607     esac
20608   done
20609
20610   case $lt_echo in
20611   *'\$0 --fallback-echo"')
20612     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20613     ;;
20614   esac
20615
20616 cfgfile="$ofile"
20617
20618   cat <<__EOF__ >> "$cfgfile"
20619 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20620
20621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20622
20623 # Shell to use when invoking shell scripts.
20624 SHELL=$lt_SHELL
20625
20626 # Whether or not to build shared libraries.
20627 build_libtool_libs=$enable_shared
20628
20629 # Whether or not to build static libraries.
20630 build_old_libs=$enable_static
20631
20632 # Whether or not to add -lc for building shared libraries.
20633 build_libtool_need_lc=$archive_cmds_need_lc_F77
20634
20635 # Whether or not to disallow shared libs when runtime libs are static
20636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20637
20638 # Whether or not to optimize for fast installation.
20639 fast_install=$enable_fast_install
20640
20641 # The host system.
20642 host_alias=$host_alias
20643 host=$host
20644
20645 # An echo program that does not interpret backslashes.
20646 echo=$lt_echo
20647
20648 # The archiver.
20649 AR=$lt_AR
20650 AR_FLAGS=$lt_AR_FLAGS
20651
20652 # A C compiler.
20653 LTCC=$lt_LTCC
20654
20655 # A language-specific compiler.
20656 CC=$lt_compiler_F77
20657
20658 # Is the compiler the GNU C compiler?
20659 with_gcc=$GCC_F77
20660
20661 # An ERE matcher.
20662 EGREP=$lt_EGREP
20663
20664 # The linker used to build libraries.
20665 LD=$lt_LD_F77
20666
20667 # Whether we need hard or soft links.
20668 LN_S=$lt_LN_S
20669
20670 # A BSD-compatible nm program.
20671 NM=$lt_NM
20672
20673 # A symbol stripping program
20674 STRIP=$lt_STRIP
20675
20676 # Used to examine libraries when file_magic_cmd begins "file"
20677 MAGIC_CMD=$MAGIC_CMD
20678
20679 # Used on cygwin: DLL creation program.
20680 DLLTOOL="$DLLTOOL"
20681
20682 # Used on cygwin: object dumper.
20683 OBJDUMP="$OBJDUMP"
20684
20685 # Used on cygwin: assembler.
20686 AS="$AS"
20687
20688 # The name of the directory that contains temporary libtool files.
20689 objdir=$objdir
20690
20691 # How to create reloadable object files.
20692 reload_flag=$lt_reload_flag
20693 reload_cmds=$lt_reload_cmds
20694
20695 # How to pass a linker flag through the compiler.
20696 wl=$lt_lt_prog_compiler_wl_F77
20697
20698 # Object file suffix (normally "o").
20699 objext="$ac_objext"
20700
20701 # Old archive suffix (normally "a").
20702 libext="$libext"
20703
20704 # Shared library suffix (normally ".so").
20705 shrext_cmds='$shrext_cmds'
20706
20707 # Executable file suffix (normally "").
20708 exeext="$exeext"
20709
20710 # Additional compiler flags for building library objects.
20711 pic_flag=$lt_lt_prog_compiler_pic_F77
20712 pic_mode=$pic_mode
20713
20714 # What is the maximum length of a command?
20715 max_cmd_len=$lt_cv_sys_max_cmd_len
20716
20717 # Does compiler simultaneously support -c and -o options?
20718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20719
20720 # Must we lock files when doing compilation ?
20721 need_locks=$lt_need_locks
20722
20723 # Do we need the lib prefix for modules?
20724 need_lib_prefix=$need_lib_prefix
20725
20726 # Do we need a version for libraries?
20727 need_version=$need_version
20728
20729 # Whether dlopen is supported.
20730 dlopen_support=$enable_dlopen
20731
20732 # Whether dlopen of programs is supported.
20733 dlopen_self=$enable_dlopen_self
20734
20735 # Whether dlopen of statically linked programs is supported.
20736 dlopen_self_static=$enable_dlopen_self_static
20737
20738 # Compiler flag to prevent dynamic linking.
20739 link_static_flag=$lt_lt_prog_compiler_static_F77
20740
20741 # Compiler flag to turn off builtin functions.
20742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20743
20744 # Compiler flag to allow reflexive dlopens.
20745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20746
20747 # Compiler flag to generate shared objects directly from archives.
20748 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20749
20750 # Compiler flag to generate thread-safe objects.
20751 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20752
20753 # Library versioning type.
20754 version_type=$version_type
20755
20756 # Format of library name prefix.
20757 libname_spec=$lt_libname_spec
20758
20759 # List of archive names.  First name is the real one, the rest are links.
20760 # The last name is the one that the linker finds with -lNAME.
20761 library_names_spec=$lt_library_names_spec
20762
20763 # The coded name of the library, if different from the real name.
20764 soname_spec=$lt_soname_spec
20765
20766 # Commands used to build and install an old-style archive.
20767 RANLIB=$lt_RANLIB
20768 old_archive_cmds=$lt_old_archive_cmds_F77
20769 old_postinstall_cmds=$lt_old_postinstall_cmds
20770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20771
20772 # Create an old-style archive from a shared archive.
20773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20774
20775 # Create a temporary old-style archive to link instead of a shared archive.
20776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20777
20778 # Commands used to build and install a shared archive.
20779 archive_cmds=$lt_archive_cmds_F77
20780 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20781 postinstall_cmds=$lt_postinstall_cmds
20782 postuninstall_cmds=$lt_postuninstall_cmds
20783
20784 # Commands used to build a loadable module (assumed same as above if empty)
20785 module_cmds=$lt_module_cmds_F77
20786 module_expsym_cmds=$lt_module_expsym_cmds_F77
20787
20788 # Commands to strip libraries.
20789 old_striplib=$lt_old_striplib
20790 striplib=$lt_striplib
20791
20792 # Dependencies to place before the objects being linked to create a
20793 # shared library.
20794 predep_objects=$lt_predep_objects_F77
20795
20796 # Dependencies to place after the objects being linked to create a
20797 # shared library.
20798 postdep_objects=$lt_postdep_objects_F77
20799
20800 # Dependencies to place before the objects being linked to create a
20801 # shared library.
20802 predeps=$lt_predeps_F77
20803
20804 # Dependencies to place after the objects being linked to create a
20805 # shared library.
20806 postdeps=$lt_postdeps_F77
20807
20808 # The library search path used internally by the compiler when linking
20809 # a shared library.
20810 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20811
20812 # Method to check whether dependent libraries are shared objects.
20813 deplibs_check_method=$lt_deplibs_check_method
20814
20815 # Command to use when deplibs_check_method == file_magic.
20816 file_magic_cmd=$lt_file_magic_cmd
20817
20818 # Flag that allows shared libraries with undefined symbols to be built.
20819 allow_undefined_flag=$lt_allow_undefined_flag_F77
20820
20821 # Flag that forces no undefined symbols.
20822 no_undefined_flag=$lt_no_undefined_flag_F77
20823
20824 # Commands used to finish a libtool library installation in a directory.
20825 finish_cmds=$lt_finish_cmds
20826
20827 # Same as above, but a single script fragment to be evaled but not shown.
20828 finish_eval=$lt_finish_eval
20829
20830 # Take the output of nm and produce a listing of raw symbols and C names.
20831 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20832
20833 # Transform the output of nm in a proper C declaration
20834 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20835
20836 # Transform the output of nm in a C name address pair
20837 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20838
20839 # This is the shared library runtime path variable.
20840 runpath_var=$runpath_var
20841
20842 # This is the shared library path variable.
20843 shlibpath_var=$shlibpath_var
20844
20845 # Is shlibpath searched before the hard-coded library search path?
20846 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20847
20848 # How to hardcode a shared library path into an executable.
20849 hardcode_action=$hardcode_action_F77
20850
20851 # Whether we should hardcode library paths into libraries.
20852 hardcode_into_libs=$hardcode_into_libs
20853
20854 # Flag to hardcode \$libdir into a binary during linking.
20855 # This must work even if \$libdir does not exist.
20856 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20857
20858 # If ld is used when linking, flag to hardcode \$libdir into
20859 # a binary during linking. This must work even if \$libdir does
20860 # not exist.
20861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20862
20863 # Whether we need a single -rpath flag with a separated argument.
20864 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20865
20866 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20867 # resulting binary.
20868 hardcode_direct=$hardcode_direct_F77
20869
20870 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20871 # resulting binary.
20872 hardcode_minus_L=$hardcode_minus_L_F77
20873
20874 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20875 # the resulting binary.
20876 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20877
20878 # Set to yes if building a shared library automatically hardcodes DIR into the library
20879 # and all subsequent libraries and executables linked against it.
20880 hardcode_automatic=$hardcode_automatic_F77
20881
20882 # Variables whose values should be saved in libtool wrapper scripts and
20883 # restored at relink time.
20884 variables_saved_for_relink="$variables_saved_for_relink"
20885
20886 # Whether libtool must link a program against all its dependency libraries.
20887 link_all_deplibs=$link_all_deplibs_F77
20888
20889 # Compile-time system search path for libraries
20890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20891
20892 # Run-time system search path for libraries
20893 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20894
20895 # Fix the shell variable \$srcfile for the compiler.
20896 fix_srcfile_path="$fix_srcfile_path_F77"
20897
20898 # Set to yes if exported symbols are required.
20899 always_export_symbols=$always_export_symbols_F77
20900
20901 # The commands to list exported symbols.
20902 export_symbols_cmds=$lt_export_symbols_cmds_F77
20903
20904 # The commands to extract the exported symbol list from a shared archive.
20905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20906
20907 # Symbols that should not be listed in the preloaded symbols.
20908 exclude_expsyms=$lt_exclude_expsyms_F77
20909
20910 # Symbols that must always be exported.
20911 include_expsyms=$lt_include_expsyms_F77
20912
20913 # ### END LIBTOOL TAG CONFIG: $tagname
20914
20915 __EOF__
20916
20917
20918 else
20919   # If there is no Makefile yet, we rely on a make rule to execute
20920   # `config.status --recheck' to rerun these tests and create the
20921   # libtool script then.
20922   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20923   if test -f "$ltmain_in"; then
20924     test -f Makefile && make "$ltmain"
20925   fi
20926 fi
20927
20928
20929 ac_ext=c
20930 ac_cpp='$CPP $CPPFLAGS'
20931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934
20935 CC="$lt_save_CC"
20936
20937         else
20938           tagname=""
20939         fi
20940         ;;
20941
20942       GCJ)
20943         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20944           ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950
20951 # Source file extension for Java test sources.
20952 ac_ext=java
20953
20954 # Object file extension for compiled Java test sources.
20955 objext=o
20956 objext_GCJ=$objext
20957
20958 # Code to be used in simple compile tests
20959 lt_simple_compile_test_code="class foo {}\n"
20960
20961 # Code to be used in simple link tests
20962 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20963
20964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20965
20966 # If no C compiler was specified, use CC.
20967 LTCC=${LTCC-"$CC"}
20968
20969 # Allow CC to be a program name with arguments.
20970 compiler=$CC
20971
20972
20973 # Allow CC to be a program name with arguments.
20974 lt_save_CC="$CC"
20975 CC=${GCJ-"gcj"}
20976 compiler=$CC
20977 compiler_GCJ=$CC
20978
20979 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20980 archive_cmds_need_lc_GCJ=no
20981
20982
20983 lt_prog_compiler_no_builtin_flag_GCJ=
20984
20985 if test "$GCC" = yes; then
20986   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20987
20988
20989 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20990 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20991 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   lt_cv_prog_compiler_rtti_exceptions=no
20995   ac_outfile=conftest.$ac_objext
20996    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20997    lt_compiler_flag="-fno-rtti -fno-exceptions"
20998    # Insert the option either (1) after the last *FLAGS variable, or
20999    # (2) before a word containing "conftest.", or (3) at the end.
21000    # Note that $ac_compile itself does not contain backslashes and begins
21001    # with a dollar sign (not a hyphen), so the echo should work correctly.
21002    # The option is referenced via a variable to avoid confusing sed.
21003    lt_compile=`echo "$ac_compile" | $SED \
21004    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21006    -e 's:$: $lt_compiler_flag:'`
21007    (eval echo "\"\$as_me:21007: $lt_compile\"" >&5)
21008    (eval "$lt_compile" 2>conftest.err)
21009    ac_status=$?
21010    cat conftest.err >&5
21011    echo "$as_me:21011: \$? = $ac_status" >&5
21012    if (exit $ac_status) && test -s "$ac_outfile"; then
21013      # The compiler can only warn and ignore the option if not recognized
21014      # So say no if there are warnings
21015      if test ! -s conftest.err; then
21016        lt_cv_prog_compiler_rtti_exceptions=yes
21017      fi
21018    fi
21019    $rm conftest*
21020
21021 fi
21022 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21023 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21024
21025 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21026     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21027 else
21028     :
21029 fi
21030
21031 fi
21032
21033 lt_prog_compiler_wl_GCJ=
21034 lt_prog_compiler_pic_GCJ=
21035 lt_prog_compiler_static_GCJ=
21036
21037 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21038 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21039
21040   if test "$GCC" = yes; then
21041     lt_prog_compiler_wl_GCJ='-Wl,'
21042     lt_prog_compiler_static_GCJ='-static'
21043
21044     case $host_os in
21045       aix*)
21046       # All AIX code is PIC.
21047       if test "$host_cpu" = ia64; then
21048         # AIX 5 now supports IA64 processor
21049         lt_prog_compiler_static_GCJ='-Bstatic'
21050       fi
21051       ;;
21052
21053     amigaos*)
21054       # FIXME: we need at least 68020 code to build shared libraries, but
21055       # adding the `-m68020' flag to GCC prevents building anything better,
21056       # like `-m68040'.
21057       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21058       ;;
21059
21060     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21061       # PIC is the default for these OSes.
21062       ;;
21063
21064     mingw* | pw32* | os2*)
21065       # This hack is so that the source file can tell whether it is being
21066       # built for inclusion in a dll (and should export symbols for example).
21067       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21068       ;;
21069
21070     darwin* | rhapsody*)
21071       # PIC is the default on this platform
21072       # Common symbols not allowed in MH_DYLIB files
21073       lt_prog_compiler_pic_GCJ='-fno-common'
21074       ;;
21075
21076     msdosdjgpp*)
21077       # Just because we use GCC doesn't mean we suddenly get shared libraries
21078       # on systems that don't support them.
21079       lt_prog_compiler_can_build_shared_GCJ=no
21080       enable_shared=no
21081       ;;
21082
21083     sysv4*MP*)
21084       if test -d /usr/nec; then
21085         lt_prog_compiler_pic_GCJ=-Kconform_pic
21086       fi
21087       ;;
21088
21089     hpux*)
21090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21091       # not for PA HP-UX.
21092       case "$host_cpu" in
21093       hppa*64*|ia64*)
21094         # +Z the default
21095         ;;
21096       *)
21097         lt_prog_compiler_pic_GCJ='-fPIC'
21098         ;;
21099       esac
21100       ;;
21101
21102     *)
21103       lt_prog_compiler_pic_GCJ='-fPIC'
21104       ;;
21105     esac
21106   else
21107     # PORTME Check for flag to pass linker flags through the system compiler.
21108     case $host_os in
21109     aix*)
21110       lt_prog_compiler_wl_GCJ='-Wl,'
21111       if test "$host_cpu" = ia64; then
21112         # AIX 5 now supports IA64 processor
21113         lt_prog_compiler_static_GCJ='-Bstatic'
21114       else
21115         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21116       fi
21117       ;;
21118       darwin*)
21119         # PIC is the default on this platform
21120         # Common symbols not allowed in MH_DYLIB files
21121        case "$cc_basename" in
21122          xlc*)
21123          lt_prog_compiler_pic_GCJ='-qnocommon'
21124          lt_prog_compiler_wl_GCJ='-Wl,'
21125          ;;
21126        esac
21127        ;;
21128
21129     mingw* | pw32* | os2*)
21130       # This hack is so that the source file can tell whether it is being
21131       # built for inclusion in a dll (and should export symbols for example).
21132       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21133       ;;
21134
21135     hpux9* | hpux10* | hpux11*)
21136       lt_prog_compiler_wl_GCJ='-Wl,'
21137       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21138       # not for PA HP-UX.
21139       case "$host_cpu" in
21140       hppa*64*|ia64*)
21141         # +Z the default
21142         ;;
21143       *)
21144         lt_prog_compiler_pic_GCJ='+Z'
21145         ;;
21146       esac
21147       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21148       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21149       ;;
21150
21151     irix5* | irix6* | nonstopux*)
21152       lt_prog_compiler_wl_GCJ='-Wl,'
21153       # PIC (with -KPIC) is the default.
21154       lt_prog_compiler_static_GCJ='-non_shared'
21155       ;;
21156
21157     newsos6)
21158       lt_prog_compiler_pic_GCJ='-KPIC'
21159       lt_prog_compiler_static_GCJ='-Bstatic'
21160       ;;
21161
21162     linux*)
21163       case $CC in
21164       icc* | ecc*)
21165         lt_prog_compiler_wl_GCJ='-Wl,'
21166         lt_prog_compiler_pic_GCJ='-KPIC'
21167         lt_prog_compiler_static_GCJ='-static'
21168         ;;
21169       ccc*)
21170         lt_prog_compiler_wl_GCJ='-Wl,'
21171         # All Alpha code is PIC.
21172         lt_prog_compiler_static_GCJ='-non_shared'
21173         ;;
21174       esac
21175       ;;
21176
21177     osf3* | osf4* | osf5*)
21178       lt_prog_compiler_wl_GCJ='-Wl,'
21179       # All OSF/1 code is PIC.
21180       lt_prog_compiler_static_GCJ='-non_shared'
21181       ;;
21182
21183     sco3.2v5*)
21184       lt_prog_compiler_pic_GCJ='-Kpic'
21185       lt_prog_compiler_static_GCJ='-dn'
21186       ;;
21187
21188     solaris*)
21189       lt_prog_compiler_wl_GCJ='-Wl,'
21190       lt_prog_compiler_pic_GCJ='-KPIC'
21191       lt_prog_compiler_static_GCJ='-Bstatic'
21192       ;;
21193
21194     sunos4*)
21195       lt_prog_compiler_wl_GCJ='-Qoption ld '
21196       lt_prog_compiler_pic_GCJ='-PIC'
21197       lt_prog_compiler_static_GCJ='-Bstatic'
21198       ;;
21199
21200     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21201       lt_prog_compiler_wl_GCJ='-Wl,'
21202       lt_prog_compiler_pic_GCJ='-KPIC'
21203       lt_prog_compiler_static_GCJ='-Bstatic'
21204       ;;
21205
21206     sysv4*MP*)
21207       if test -d /usr/nec ;then
21208         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21209         lt_prog_compiler_static_GCJ='-Bstatic'
21210       fi
21211       ;;
21212
21213     uts4*)
21214       lt_prog_compiler_pic_GCJ='-pic'
21215       lt_prog_compiler_static_GCJ='-Bstatic'
21216       ;;
21217
21218     *)
21219       lt_prog_compiler_can_build_shared_GCJ=no
21220       ;;
21221     esac
21222   fi
21223
21224 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21225 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21226
21227 #
21228 # Check to make sure the PIC flag actually works.
21229 #
21230 if test -n "$lt_prog_compiler_pic_GCJ"; then
21231
21232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21234 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21235   echo $ECHO_N "(cached) $ECHO_C" >&6
21236 else
21237   lt_prog_compiler_pic_works_GCJ=no
21238   ac_outfile=conftest.$ac_objext
21239    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21240    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21241    # Insert the option either (1) after the last *FLAGS variable, or
21242    # (2) before a word containing "conftest.", or (3) at the end.
21243    # Note that $ac_compile itself does not contain backslashes and begins
21244    # with a dollar sign (not a hyphen), so the echo should work correctly.
21245    # The option is referenced via a variable to avoid confusing sed.
21246    lt_compile=`echo "$ac_compile" | $SED \
21247    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21249    -e 's:$: $lt_compiler_flag:'`
21250    (eval echo "\"\$as_me:21250: $lt_compile\"" >&5)
21251    (eval "$lt_compile" 2>conftest.err)
21252    ac_status=$?
21253    cat conftest.err >&5
21254    echo "$as_me:21254: \$? = $ac_status" >&5
21255    if (exit $ac_status) && test -s "$ac_outfile"; then
21256      # The compiler can only warn and ignore the option if not recognized
21257      # So say no if there are warnings
21258      if test ! -s conftest.err; then
21259        lt_prog_compiler_pic_works_GCJ=yes
21260      fi
21261    fi
21262    $rm conftest*
21263
21264 fi
21265 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21266 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21267
21268 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21269     case $lt_prog_compiler_pic_GCJ in
21270      "" | " "*) ;;
21271      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21272      esac
21273 else
21274     lt_prog_compiler_pic_GCJ=
21275      lt_prog_compiler_can_build_shared_GCJ=no
21276 fi
21277
21278 fi
21279 case "$host_os" in
21280   # For platforms which do not support PIC, -DPIC is meaningless:
21281   *djgpp*)
21282     lt_prog_compiler_pic_GCJ=
21283     ;;
21284   *)
21285     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21286     ;;
21287 esac
21288
21289 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21290 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21291 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294   lt_cv_prog_compiler_c_o_GCJ=no
21295    $rm -r conftest 2>/dev/null
21296    mkdir conftest
21297    cd conftest
21298    mkdir out
21299    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21300
21301    lt_compiler_flag="-o out/conftest2.$ac_objext"
21302    # Insert the option either (1) after the last *FLAGS variable, or
21303    # (2) before a word containing "conftest.", or (3) at the end.
21304    # Note that $ac_compile itself does not contain backslashes and begins
21305    # with a dollar sign (not a hyphen), so the echo should work correctly.
21306    lt_compile=`echo "$ac_compile" | $SED \
21307    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21308    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21309    -e 's:$: $lt_compiler_flag:'`
21310    (eval echo "\"\$as_me:21310: $lt_compile\"" >&5)
21311    (eval "$lt_compile" 2>out/conftest.err)
21312    ac_status=$?
21313    cat out/conftest.err >&5
21314    echo "$as_me:21314: \$? = $ac_status" >&5
21315    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21316    then
21317      # The compiler can only warn and ignore the option if not recognized
21318      # So say no if there are warnings
21319      if test ! -s out/conftest.err; then
21320        lt_cv_prog_compiler_c_o_GCJ=yes
21321      fi
21322    fi
21323    chmod u+w .
21324    $rm conftest*
21325    # SGI C++ compiler will create directory out/ii_files/ for
21326    # template instantiation
21327    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21328    $rm out/* && rmdir out
21329    cd ..
21330    rmdir conftest
21331    $rm conftest*
21332
21333 fi
21334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21335 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21336
21337
21338 hard_links="nottested"
21339 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21340   # do not overwrite the value of need_locks provided by the user
21341   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21342 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21343   hard_links=yes
21344   $rm conftest*
21345   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21346   touch conftest.a
21347   ln conftest.a conftest.b 2>&5 || hard_links=no
21348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21349   echo "$as_me:$LINENO: result: $hard_links" >&5
21350 echo "${ECHO_T}$hard_links" >&6
21351   if test "$hard_links" = no; then
21352     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21353 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21354     need_locks=warn
21355   fi
21356 else
21357   need_locks=no
21358 fi
21359
21360 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21361 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21362
21363   runpath_var=
21364   allow_undefined_flag_GCJ=
21365   enable_shared_with_static_runtimes_GCJ=no
21366   archive_cmds_GCJ=
21367   archive_expsym_cmds_GCJ=
21368   old_archive_From_new_cmds_GCJ=
21369   old_archive_from_expsyms_cmds_GCJ=
21370   export_dynamic_flag_spec_GCJ=
21371   whole_archive_flag_spec_GCJ=
21372   thread_safe_flag_spec_GCJ=
21373   hardcode_libdir_flag_spec_GCJ=
21374   hardcode_libdir_flag_spec_ld_GCJ=
21375   hardcode_libdir_separator_GCJ=
21376   hardcode_direct_GCJ=no
21377   hardcode_minus_L_GCJ=no
21378   hardcode_shlibpath_var_GCJ=unsupported
21379   link_all_deplibs_GCJ=unknown
21380   hardcode_automatic_GCJ=no
21381   module_cmds_GCJ=
21382   module_expsym_cmds_GCJ=
21383   always_export_symbols_GCJ=no
21384   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21385   # include_expsyms should be a list of space-separated symbols to be *always*
21386   # included in the symbol list
21387   include_expsyms_GCJ=
21388   # exclude_expsyms can be an extended regexp of symbols to exclude
21389   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21390   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21391   # as well as any symbol that contains `d'.
21392   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21393   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21394   # platforms (ab)use it in PIC code, but their linkers get confused if
21395   # the symbol is explicitly referenced.  Since portable code cannot
21396   # rely on this symbol name, it's probably fine to never include it in
21397   # preloaded symbol tables.
21398   extract_expsyms_cmds=
21399
21400   case $host_os in
21401   cygwin* | mingw* | pw32*)
21402     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21403     # When not using gcc, we currently assume that we are using
21404     # Microsoft Visual C++.
21405     if test "$GCC" != yes; then
21406       with_gnu_ld=no
21407     fi
21408     ;;
21409   openbsd*)
21410     with_gnu_ld=no
21411     ;;
21412   esac
21413
21414   ld_shlibs_GCJ=yes
21415   if test "$with_gnu_ld" = yes; then
21416     # If archive_cmds runs LD, not CC, wlarc should be empty
21417     wlarc='${wl}'
21418
21419     # See if GNU ld supports shared libraries.
21420     case $host_os in
21421     aix3* | aix4* | aix5*)
21422       # On AIX/PPC, the GNU linker is very broken
21423       if test "$host_cpu" != ia64; then
21424         ld_shlibs_GCJ=no
21425         cat <<EOF 1>&2
21426
21427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21428 *** to be unable to reliably create shared libraries on AIX.
21429 *** Therefore, libtool is disabling shared libraries support.  If you
21430 *** really care for shared libraries, you may want to modify your PATH
21431 *** so that a non-GNU linker is found, and then restart.
21432
21433 EOF
21434       fi
21435       ;;
21436
21437     amigaos*)
21438       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)'
21439       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21440       hardcode_minus_L_GCJ=yes
21441
21442       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21443       # that the semantics of dynamic libraries on AmigaOS, at least up
21444       # to version 4, is to share data among multiple programs linked
21445       # with the same dynamic library.  Since this doesn't match the
21446       # behavior of shared libraries on other platforms, we can't use
21447       # them.
21448       ld_shlibs_GCJ=no
21449       ;;
21450
21451     beos*)
21452       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21453         allow_undefined_flag_GCJ=unsupported
21454         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21455         # support --undefined.  This deserves some investigation.  FIXME
21456         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21457       else
21458         ld_shlibs_GCJ=no
21459       fi
21460       ;;
21461
21462     cygwin* | mingw* | pw32*)
21463       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21464       # as there is no search path for DLLs.
21465       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21466       allow_undefined_flag_GCJ=unsupported
21467       always_export_symbols_GCJ=no
21468       enable_shared_with_static_runtimes_GCJ=yes
21469       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21470
21471       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21472         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21473         # If the export-symbols file already is a .def file (1st line
21474         # is EXPORTS), use it as is; otherwise, prepend...
21475         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21476           cp $export_symbols $output_objdir/$soname.def;
21477         else
21478           echo EXPORTS > $output_objdir/$soname.def;
21479           cat $export_symbols >> $output_objdir/$soname.def;
21480         fi~
21481         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21482       else
21483         ld_shlibs=no
21484       fi
21485       ;;
21486
21487     netbsd*)
21488       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21489         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21490         wlarc=
21491       else
21492         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21493         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21494       fi
21495       ;;
21496
21497     solaris* | sysv5*)
21498       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21499         ld_shlibs_GCJ=no
21500         cat <<EOF 1>&2
21501
21502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21503 *** create shared libraries on Solaris systems.  Therefore, libtool
21504 *** is disabling shared libraries support.  We urge you to upgrade GNU
21505 *** binutils to release 2.9.1 or newer.  Another option is to modify
21506 *** your PATH or compiler configuration so that the native linker is
21507 *** used, and then restart.
21508
21509 EOF
21510       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21511         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21512         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21513       else
21514         ld_shlibs_GCJ=no
21515       fi
21516       ;;
21517
21518     sunos4*)
21519       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21520       wlarc=
21521       hardcode_direct_GCJ=yes
21522       hardcode_shlibpath_var_GCJ=no
21523       ;;
21524
21525   linux*)
21526     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21527         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21528         archive_cmds_GCJ="$tmp_archive_cmds"
21529       supports_anon_versioning=no
21530       case `$LD -v 2>/dev/null` in
21531         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21532         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21533         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21534         *\ 2.11.*) ;; # other 2.11 versions
21535         *) supports_anon_versioning=yes ;;
21536       esac
21537       if test $supports_anon_versioning = yes; then
21538         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21540 $echo "local: *; };" >> $output_objdir/$libname.ver~
21541         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21542       else
21543         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21544       fi
21545     else
21546       ld_shlibs_GCJ=no
21547     fi
21548     ;;
21549
21550     *)
21551       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21552         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21553         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21554       else
21555         ld_shlibs_GCJ=no
21556       fi
21557       ;;
21558     esac
21559
21560     if test "$ld_shlibs_GCJ" = yes; then
21561       runpath_var=LD_RUN_PATH
21562       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21563       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21564       # ancient GNU ld didn't support --whole-archive et. al.
21565       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21566         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21567       else
21568         whole_archive_flag_spec_GCJ=
21569       fi
21570     fi
21571   else
21572     # PORTME fill in a description of your system's linker (not GNU ld)
21573     case $host_os in
21574     aix3*)
21575       allow_undefined_flag_GCJ=unsupported
21576       always_export_symbols_GCJ=yes
21577       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'
21578       # Note: this linker hardcodes the directories in LIBPATH if there
21579       # are no directories specified by -L.
21580       hardcode_minus_L_GCJ=yes
21581       if test "$GCC" = yes && test -z "$link_static_flag"; then
21582         # Neither direct hardcoding nor static linking is supported with a
21583         # broken collect2.
21584         hardcode_direct_GCJ=unsupported
21585       fi
21586       ;;
21587
21588     aix4* | aix5*)
21589       if test "$host_cpu" = ia64; then
21590         # On IA64, the linker does run time linking by default, so we don't
21591         # have to do anything special.
21592         aix_use_runtimelinking=no
21593         exp_sym_flag='-Bexport'
21594         no_entry_flag=""
21595       else
21596         # If we're using GNU nm, then we don't want the "-C" option.
21597         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21598         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21599           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'
21600         else
21601           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'
21602         fi
21603         aix_use_runtimelinking=no
21604
21605         # Test if we are trying to use run time linking or normal
21606         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21607         # need to do runtime linking.
21608         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21609           for ld_flag in $LDFLAGS; do
21610           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21611             aix_use_runtimelinking=yes
21612             break
21613           fi
21614           done
21615         esac
21616
21617         exp_sym_flag='-bexport'
21618         no_entry_flag='-bnoentry'
21619       fi
21620
21621       # When large executables or shared objects are built, AIX ld can
21622       # have problems creating the table of contents.  If linking a library
21623       # or program results in "error TOC overflow" add -mminimal-toc to
21624       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21625       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21626
21627       archive_cmds_GCJ=''
21628       hardcode_direct_GCJ=yes
21629       hardcode_libdir_separator_GCJ=':'
21630       link_all_deplibs_GCJ=yes
21631
21632       if test "$GCC" = yes; then
21633         case $host_os in aix4.012|aix4.012.*)
21634         # We only want to do this on AIX 4.2 and lower, the check
21635         # below for broken collect2 doesn't work under 4.3+
21636           collect2name=`${CC} -print-prog-name=collect2`
21637           if test -f "$collect2name" && \
21638            strings "$collect2name" | grep resolve_lib_name >/dev/null
21639           then
21640           # We have reworked collect2
21641           hardcode_direct_GCJ=yes
21642           else
21643           # We have old collect2
21644           hardcode_direct_GCJ=unsupported
21645           # It fails to find uninstalled libraries when the uninstalled
21646           # path is not listed in the libpath.  Setting hardcode_minus_L
21647           # to unsupported forces relinking
21648           hardcode_minus_L_GCJ=yes
21649           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21650           hardcode_libdir_separator_GCJ=
21651           fi
21652         esac
21653         shared_flag='-shared'
21654       else
21655         # not using gcc
21656         if test "$host_cpu" = ia64; then
21657         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21658         # chokes on -Wl,-G. The following line is correct:
21659           shared_flag='-G'
21660         else
21661         if test "$aix_use_runtimelinking" = yes; then
21662             shared_flag='${wl}-G'
21663           else
21664             shared_flag='${wl}-bM:SRE'
21665         fi
21666         fi
21667       fi
21668
21669       # It seems that -bexpall does not export symbols beginning with
21670       # underscore (_), so it is better to generate a list of symbols to export.
21671       always_export_symbols_GCJ=yes
21672       if test "$aix_use_runtimelinking" = yes; then
21673         # Warning - without using the other runtime loading flags (-brtl),
21674         # -berok will link without error, but may produce a broken library.
21675         allow_undefined_flag_GCJ='-berok'
21676        # Determine the default libpath from the value encoded in an empty executable.
21677        cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h.  */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h.  */
21683
21684 int
21685 main ()
21686 {
21687
21688   ;
21689   return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21694   (eval $ac_link) 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } &&
21701          { ac_try='test -z "$ac_c_werror_flag"
21702                          || test ! -s conftest.err'
21703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); }; } &&
21708          { ac_try='test -s conftest$ac_exeext'
21709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710   (eval $ac_try) 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; }; then
21714
21715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21716 }'`
21717 # Check for a 64-bit object if we didn't find anything.
21718 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; }
21719 }'`; fi
21720 else
21721   echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 fi
21725 rm -f conftest.err conftest.$ac_objext \
21726       conftest$ac_exeext conftest.$ac_ext
21727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21728
21729        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21730         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"
21731        else
21732         if test "$host_cpu" = ia64; then
21733           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21734           allow_undefined_flag_GCJ="-z nodefs"
21735           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"
21736         else
21737          # Determine the default libpath from the value encoded in an empty executable.
21738          cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744
21745 int
21746 main ()
21747 {
21748
21749   ;
21750   return 0;
21751 }
21752 _ACEOF
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21755   (eval $ac_link) 2>conftest.er1
21756   ac_status=$?
21757   grep -v '^ *+' conftest.er1 >conftest.err
21758   rm -f conftest.er1
21759   cat conftest.err >&5
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } &&
21762          { ac_try='test -z "$ac_c_werror_flag"
21763                          || test ! -s conftest.err'
21764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765   (eval $ac_try) 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; } &&
21769          { ac_try='test -s conftest$ac_exeext'
21770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771   (eval $ac_try) 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); }; }; then
21775
21776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21777 }'`
21778 # Check for a 64-bit object if we didn't find anything.
21779 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; }
21780 }'`; fi
21781 else
21782   echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 fi
21786 rm -f conftest.err conftest.$ac_objext \
21787       conftest$ac_exeext conftest.$ac_ext
21788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21789
21790          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21791           # Warning - without using the other run time loading flags,
21792           # -berok will link without error, but may produce a broken library.
21793           no_undefined_flag_GCJ=' ${wl}-bernotok'
21794           allow_undefined_flag_GCJ=' ${wl}-berok'
21795           # -bexpall does not export symbols beginning with underscore (_)
21796           always_export_symbols_GCJ=yes
21797           # Exported symbols can be pulled into shared objects from archives
21798           whole_archive_flag_spec_GCJ=' '
21799           archive_cmds_need_lc_GCJ=yes
21800           # This is similar to how AIX traditionally builds it's shared libraries.
21801           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'
21802         fi
21803       fi
21804       ;;
21805
21806     amigaos*)
21807       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)'
21808       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21809       hardcode_minus_L_GCJ=yes
21810       # see comment about different semantics on the GNU ld section
21811       ld_shlibs_GCJ=no
21812       ;;
21813
21814     bsdi[45]*)
21815       export_dynamic_flag_spec_GCJ=-rdynamic
21816       ;;
21817
21818     cygwin* | mingw* | pw32*)
21819       # When not using gcc, we currently assume that we are using
21820       # Microsoft Visual C++.
21821       # hardcode_libdir_flag_spec is actually meaningless, as there is
21822       # no search path for DLLs.
21823       hardcode_libdir_flag_spec_GCJ=' '
21824       allow_undefined_flag_GCJ=unsupported
21825       # Tell ltmain to make .lib files, not .a files.
21826       libext=lib
21827       # Tell ltmain to make .dll files, not .so files.
21828       shrext_cmds=".dll"
21829       # FIXME: Setting linknames here is a bad hack.
21830       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21831       # The linker will automatically build a .lib file if we build a DLL.
21832       old_archive_From_new_cmds_GCJ='true'
21833       # FIXME: Should let the user specify the lib program.
21834       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21835       fix_srcfile_path='`cygpath -w "$srcfile"`'
21836       enable_shared_with_static_runtimes_GCJ=yes
21837       ;;
21838
21839     darwin* | rhapsody*)
21840       case "$host_os" in
21841         rhapsody* | darwin1.[012])
21842          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21843          ;;
21844        *) # Darwin 1.3 on
21845          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21846            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21847          else
21848            case ${MACOSX_DEPLOYMENT_TARGET} in
21849              10.[012])
21850                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21851                ;;
21852              10.*)
21853                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21854                ;;
21855            esac
21856          fi
21857          ;;
21858       esac
21859       archive_cmds_need_lc_GCJ=no
21860       hardcode_direct_GCJ=no
21861       hardcode_automatic_GCJ=yes
21862       hardcode_shlibpath_var_GCJ=unsupported
21863       whole_archive_flag_spec_GCJ=''
21864       link_all_deplibs_GCJ=yes
21865     if test "$GCC" = yes ; then
21866         output_verbose_link_cmd='echo'
21867         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21868       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21869       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21870       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}'
21871       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}'
21872     else
21873       case "$cc_basename" in
21874         xlc*)
21875          output_verbose_link_cmd='echo'
21876          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21877          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21878           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21879          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}'
21880           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}'
21881           ;;
21882        *)
21883          ld_shlibs_GCJ=no
21884           ;;
21885       esac
21886     fi
21887       ;;
21888
21889     dgux*)
21890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21891       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21892       hardcode_shlibpath_var_GCJ=no
21893       ;;
21894
21895     freebsd1*)
21896       ld_shlibs_GCJ=no
21897       ;;
21898
21899     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21900     # support.  Future versions do this automatically, but an explicit c++rt0.o
21901     # does not break anything, and helps significantly (at the cost of a little
21902     # extra space).
21903     freebsd2.2*)
21904       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21905       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21906       hardcode_direct_GCJ=yes
21907       hardcode_shlibpath_var_GCJ=no
21908       ;;
21909
21910     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21911     freebsd2*)
21912       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21913       hardcode_direct_GCJ=yes
21914       hardcode_minus_L_GCJ=yes
21915       hardcode_shlibpath_var_GCJ=no
21916       ;;
21917
21918     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21919     freebsd* | kfreebsd*-gnu)
21920       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21921       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21922       hardcode_direct_GCJ=yes
21923       hardcode_shlibpath_var_GCJ=no
21924       ;;
21925
21926     hpux9*)
21927       if test "$GCC" = yes; then
21928         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'
21929       else
21930         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'
21931       fi
21932       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21933       hardcode_libdir_separator_GCJ=:
21934       hardcode_direct_GCJ=yes
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       export_dynamic_flag_spec_GCJ='${wl}-E'
21940       ;;
21941
21942     hpux10* | hpux11*)
21943       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21944         case "$host_cpu" in
21945         hppa*64*|ia64*)
21946           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21947           ;;
21948         *)
21949           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21950           ;;
21951         esac
21952       else
21953         case "$host_cpu" in
21954         hppa*64*|ia64*)
21955           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21956           ;;
21957         *)
21958           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21959           ;;
21960         esac
21961       fi
21962       if test "$with_gnu_ld" = no; then
21963         case "$host_cpu" in
21964         hppa*64*)
21965           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21966           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21967           hardcode_libdir_separator_GCJ=:
21968           hardcode_direct_GCJ=no
21969           hardcode_shlibpath_var_GCJ=no
21970           ;;
21971         ia64*)
21972           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21973           hardcode_direct_GCJ=no
21974           hardcode_shlibpath_var_GCJ=no
21975
21976           # hardcode_minus_L: Not really in the search PATH,
21977           # but as the default location of the library.
21978           hardcode_minus_L_GCJ=yes
21979           ;;
21980         *)
21981           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21982           hardcode_libdir_separator_GCJ=:
21983           hardcode_direct_GCJ=yes
21984           export_dynamic_flag_spec_GCJ='${wl}-E'
21985
21986           # hardcode_minus_L: Not really in the search PATH,
21987           # but as the default location of the library.
21988           hardcode_minus_L_GCJ=yes
21989           ;;
21990         esac
21991       fi
21992       ;;
21993
21994     irix5* | irix6* | nonstopux*)
21995       if test "$GCC" = yes; then
21996         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'
21997       else
21998         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'
21999         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22000       fi
22001       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22002       hardcode_libdir_separator_GCJ=:
22003       link_all_deplibs_GCJ=yes
22004       ;;
22005
22006     netbsd*)
22007       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22008         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22009       else
22010         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22011       fi
22012       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22013       hardcode_direct_GCJ=yes
22014       hardcode_shlibpath_var_GCJ=no
22015       ;;
22016
22017     newsos6)
22018       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22019       hardcode_direct_GCJ=yes
22020       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22021       hardcode_libdir_separator_GCJ=:
22022       hardcode_shlibpath_var_GCJ=no
22023       ;;
22024
22025     openbsd*)
22026       hardcode_direct_GCJ=yes
22027       hardcode_shlibpath_var_GCJ=no
22028       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22029         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22030         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22031         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22032         export_dynamic_flag_spec_GCJ='${wl}-E'
22033       else
22034        case $host_os in
22035          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22036            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22037            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22038            ;;
22039          *)
22040            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22041            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22042            ;;
22043        esac
22044       fi
22045       ;;
22046
22047     os2*)
22048       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22049       hardcode_minus_L_GCJ=yes
22050       allow_undefined_flag_GCJ=unsupported
22051       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'
22052       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22053       ;;
22054
22055     osf3*)
22056       if test "$GCC" = yes; then
22057         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22058         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'
22059       else
22060         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22061         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'
22062       fi
22063       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22064       hardcode_libdir_separator_GCJ=:
22065       ;;
22066
22067     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22068       if test "$GCC" = yes; then
22069         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22070         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'
22071         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22072       else
22073         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22074         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'
22075         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~
22076         $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'
22077
22078         # Both c and cxx compiler support -rpath directly
22079         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22080       fi
22081       hardcode_libdir_separator_GCJ=:
22082       ;;
22083
22084     sco3.2v5*)
22085       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22086       hardcode_shlibpath_var_GCJ=no
22087       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22088       runpath_var=LD_RUN_PATH
22089       hardcode_runpath_var=yes
22090       ;;
22091
22092     solaris*)
22093       no_undefined_flag_GCJ=' -z text'
22094       if test "$GCC" = yes; then
22095         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22096         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22097           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22098       else
22099         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22100         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22101         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22102       fi
22103       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22104       hardcode_shlibpath_var_GCJ=no
22105       case $host_os in
22106       solaris2.[0-5] | solaris2.[0-5].*) ;;
22107       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22108         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22109       esac
22110       link_all_deplibs_GCJ=yes
22111       ;;
22112
22113     sunos4*)
22114       if test "x$host_vendor" = xsequent; then
22115         # Use $CC to link under sequent, because it throws in some extra .o
22116         # files that make .init and .fini sections work.
22117         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22118       else
22119         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22120       fi
22121       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122       hardcode_direct_GCJ=yes
22123       hardcode_minus_L_GCJ=yes
22124       hardcode_shlibpath_var_GCJ=no
22125       ;;
22126
22127     sysv4)
22128       case $host_vendor in
22129         sni)
22130           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131           hardcode_direct_GCJ=yes # is this really true???
22132         ;;
22133         siemens)
22134           ## LD is ld it makes a PLAMLIB
22135           ## CC just makes a GrossModule.
22136           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22137           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22138           hardcode_direct_GCJ=no
22139         ;;
22140         motorola)
22141           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22142           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22143         ;;
22144       esac
22145       runpath_var='LD_RUN_PATH'
22146       hardcode_shlibpath_var_GCJ=no
22147       ;;
22148
22149     sysv4.3*)
22150       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151       hardcode_shlibpath_var_GCJ=no
22152       export_dynamic_flag_spec_GCJ='-Bexport'
22153       ;;
22154
22155     sysv4*MP*)
22156       if test -d /usr/nec; then
22157         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158         hardcode_shlibpath_var_GCJ=no
22159         runpath_var=LD_RUN_PATH
22160         hardcode_runpath_var=yes
22161         ld_shlibs_GCJ=yes
22162       fi
22163       ;;
22164
22165     sysv4.2uw2*)
22166       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22167       hardcode_direct_GCJ=yes
22168       hardcode_minus_L_GCJ=no
22169       hardcode_shlibpath_var_GCJ=no
22170       hardcode_runpath_var=yes
22171       runpath_var=LD_RUN_PATH
22172       ;;
22173
22174    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22175       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22176       if test "$GCC" = yes; then
22177         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178       else
22179         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22180       fi
22181       runpath_var='LD_RUN_PATH'
22182       hardcode_shlibpath_var_GCJ=no
22183       ;;
22184
22185     sysv5*)
22186       no_undefined_flag_GCJ=' -z text'
22187       # $CC -shared without GNU ld will not create a library from C++
22188       # object files and a static libstdc++, better avoid it by now
22189       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22190       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22191                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22192       hardcode_libdir_flag_spec_GCJ=
22193       hardcode_shlibpath_var_GCJ=no
22194       runpath_var='LD_RUN_PATH'
22195       ;;
22196
22197     uts4*)
22198       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22199       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22200       hardcode_shlibpath_var_GCJ=no
22201       ;;
22202
22203     *)
22204       ld_shlibs_GCJ=no
22205       ;;
22206     esac
22207   fi
22208
22209 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22210 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22211 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22212
22213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22214 if test "$GCC" = yes; then
22215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22216 fi
22217
22218 #
22219 # Do we need to explicitly link libc?
22220 #
22221 case "x$archive_cmds_need_lc_GCJ" in
22222 x|xyes)
22223   # Assume -lc should be added
22224   archive_cmds_need_lc_GCJ=yes
22225
22226   if test "$enable_shared" = yes && test "$GCC" = yes; then
22227     case $archive_cmds_GCJ in
22228     *'~'*)
22229       # FIXME: we may have to deal with multi-command sequences.
22230       ;;
22231     '$CC '*)
22232       # Test whether the compiler implicitly links with -lc since on some
22233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22234       # to ld, don't add -lc before -lgcc.
22235       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22237       $rm conftest*
22238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22239
22240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241   (eval $ac_compile) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } 2>conftest.err; then
22245         soname=conftest
22246         lib=conftest
22247         libobjs=conftest.$ac_objext
22248         deplibs=
22249         wl=$lt_prog_compiler_wl_GCJ
22250         compiler_flags=-v
22251         linker_flags=-v
22252         verstring=
22253         output_objdir=.
22254         libname=conftest
22255         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22256         allow_undefined_flag_GCJ=
22257         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22258   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }
22262         then
22263           archive_cmds_need_lc_GCJ=no
22264         else
22265           archive_cmds_need_lc_GCJ=yes
22266         fi
22267         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22268       else
22269         cat conftest.err 1>&5
22270       fi
22271       $rm conftest*
22272       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22273 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22274       ;;
22275     esac
22276   fi
22277   ;;
22278 esac
22279
22280 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22282 library_names_spec=
22283 libname_spec='lib$name'
22284 soname_spec=
22285 shrext_cmds=".so"
22286 postinstall_cmds=
22287 postuninstall_cmds=
22288 finish_cmds=
22289 finish_eval=
22290 shlibpath_var=
22291 shlibpath_overrides_runpath=unknown
22292 version_type=none
22293 dynamic_linker="$host_os ld.so"
22294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22295 if test "$GCC" = yes; then
22296   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22297   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22298     # if the path contains ";" then we assume it to be the separator
22299     # otherwise default to the standard path separator (i.e. ":") - it is
22300     # assumed that no part of a normal pathname contains ";" but that should
22301     # okay in the real world where ";" in dirpaths is itself problematic.
22302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22303   else
22304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22305   fi
22306 else
22307   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22308 fi
22309 need_lib_prefix=unknown
22310 hardcode_into_libs=no
22311
22312 # when you set need_version to no, make sure it does not cause -set_version
22313 # flags to be left without arguments
22314 need_version=unknown
22315
22316 case $host_os in
22317 aix3*)
22318   version_type=linux
22319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22320   shlibpath_var=LIBPATH
22321
22322   # AIX 3 has no versioning support, so we append a major version to the name.
22323   soname_spec='${libname}${release}${shared_ext}$major'
22324   ;;
22325
22326 aix4* | aix5*)
22327   version_type=linux
22328   need_lib_prefix=no
22329   need_version=no
22330   hardcode_into_libs=yes
22331   if test "$host_cpu" = ia64; then
22332     # AIX 5 supports IA64
22333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22334     shlibpath_var=LD_LIBRARY_PATH
22335   else
22336     # With GCC up to 2.95.x, collect2 would create an import file
22337     # for dependence libraries.  The import file would start with
22338     # the line `#! .'.  This would cause the generated library to
22339     # depend on `.', always an invalid library.  This was fixed in
22340     # development snapshots of GCC prior to 3.0.
22341     case $host_os in
22342       aix4 | aix4.[01] | aix4.[01].*)
22343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22344            echo ' yes '
22345            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22346         :
22347       else
22348         can_build_shared=no
22349       fi
22350       ;;
22351     esac
22352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22353     # soname into executable. Probably we can add versioning support to
22354     # collect2, so additional links can be useful in future.
22355     if test "$aix_use_runtimelinking" = yes; then
22356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22357       # instead of lib<name>.a to let people know that these are not
22358       # typical AIX shared libraries.
22359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22360     else
22361       # We preserve .a as extension for shared libraries through AIX4.2
22362       # and later when we are not doing run time linking.
22363       library_names_spec='${libname}${release}.a $libname.a'
22364       soname_spec='${libname}${release}${shared_ext}$major'
22365     fi
22366     shlibpath_var=LIBPATH
22367   fi
22368   ;;
22369
22370 amigaos*)
22371   library_names_spec='$libname.ixlibrary $libname.a'
22372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22373   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'
22374   ;;
22375
22376 beos*)
22377   library_names_spec='${libname}${shared_ext}'
22378   dynamic_linker="$host_os ld.so"
22379   shlibpath_var=LIBRARY_PATH
22380   ;;
22381
22382 bsdi[45]*)
22383   version_type=linux
22384   need_version=no
22385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22386   soname_spec='${libname}${release}${shared_ext}$major'
22387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22388   shlibpath_var=LD_LIBRARY_PATH
22389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22391   # the default ld.so.conf also contains /usr/contrib/lib and
22392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22393   # libtool to hard-code these into programs
22394   ;;
22395
22396 cygwin* | mingw* | pw32*)
22397   version_type=windows
22398   shrext_cmds=".dll"
22399   need_version=no
22400   need_lib_prefix=no
22401
22402   case $GCC,$host_os in
22403   yes,cygwin* | yes,mingw* | yes,pw32*)
22404     library_names_spec='$libname.dll.a'
22405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22406     postinstall_cmds='base_file=`basename \${file}`~
22407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22408       dldir=$destdir/`dirname \$dlpath`~
22409       test -d \$dldir || mkdir -p \$dldir~
22410       $install_prog $dir/$dlname \$dldir/$dlname'
22411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22412       dlpath=$dir/\$dldll~
22413        $rm \$dlpath'
22414     shlibpath_overrides_runpath=yes
22415
22416     case $host_os in
22417     cygwin*)
22418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22421       ;;
22422     mingw*)
22423       # MinGW DLLs use traditional 'lib' prefix
22424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22427         # It is most probably a Windows format PATH printed by
22428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22429         # path with ; separators, and with drive letters. We can handle the
22430         # drive letters (cygwin fileutils understands them), so leave them,
22431         # especially as we might pass files found there to a mingw objdump,
22432         # which wouldn't understand a cygwinified path. Ahh.
22433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22434       else
22435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22436       fi
22437       ;;
22438     pw32*)
22439       # pw32 DLLs use 'pw' prefix rather than 'lib'
22440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22441       ;;
22442     esac
22443     ;;
22444
22445   *)
22446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22447     ;;
22448   esac
22449   dynamic_linker='Win32 ld.exe'
22450   # FIXME: first we should search . and the directory the executable is in
22451   shlibpath_var=PATH
22452   ;;
22453
22454 darwin* | rhapsody*)
22455   dynamic_linker="$host_os dyld"
22456   version_type=darwin
22457   need_lib_prefix=no
22458   need_version=no
22459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22460   soname_spec='${libname}${release}${major}$shared_ext'
22461   shlibpath_overrides_runpath=yes
22462   shlibpath_var=DYLD_LIBRARY_PATH
22463   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22465   if test "$GCC" = yes; then
22466     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"`
22467   else
22468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22469   fi
22470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22471   ;;
22472
22473 dgux*)
22474   version_type=linux
22475   need_lib_prefix=no
22476   need_version=no
22477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22478   soname_spec='${libname}${release}${shared_ext}$major'
22479   shlibpath_var=LD_LIBRARY_PATH
22480   ;;
22481
22482 freebsd1*)
22483   dynamic_linker=no
22484   ;;
22485
22486 kfreebsd*-gnu)
22487   version_type=linux
22488   need_lib_prefix=no
22489   need_version=no
22490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22491   soname_spec='${libname}${release}${shared_ext}$major'
22492   shlibpath_var=LD_LIBRARY_PATH
22493   shlibpath_overrides_runpath=no
22494   hardcode_into_libs=yes
22495   dynamic_linker='GNU ld.so'
22496   ;;
22497
22498 freebsd*)
22499   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22500   version_type=freebsd-$objformat
22501   case $version_type in
22502     freebsd-elf*)
22503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22504       need_version=no
22505       need_lib_prefix=no
22506       ;;
22507     freebsd-*)
22508       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22509       need_version=yes
22510       ;;
22511   esac
22512   shlibpath_var=LD_LIBRARY_PATH
22513   case $host_os in
22514   freebsd2*)
22515     shlibpath_overrides_runpath=yes
22516     ;;
22517   freebsd3.01* | freebsdelf3.01*)
22518     shlibpath_overrides_runpath=yes
22519     hardcode_into_libs=yes
22520     ;;
22521   *) # from 3.2 on
22522     shlibpath_overrides_runpath=no
22523     hardcode_into_libs=yes
22524     ;;
22525   esac
22526   ;;
22527
22528 gnu*)
22529   version_type=linux
22530   need_lib_prefix=no
22531   need_version=no
22532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22533   soname_spec='${libname}${release}${shared_ext}$major'
22534   shlibpath_var=LD_LIBRARY_PATH
22535   hardcode_into_libs=yes
22536   ;;
22537
22538 hpux9* | hpux10* | hpux11*)
22539   # Give a soname corresponding to the major version so that dld.sl refuses to
22540   # link against other versions.
22541   version_type=sunos
22542   need_lib_prefix=no
22543   need_version=no
22544   case "$host_cpu" in
22545   ia64*)
22546     shrext_cmds='.so'
22547     hardcode_into_libs=yes
22548     dynamic_linker="$host_os dld.so"
22549     shlibpath_var=LD_LIBRARY_PATH
22550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552     soname_spec='${libname}${release}${shared_ext}$major'
22553     if test "X$HPUX_IA64_MODE" = X32; then
22554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22555     else
22556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22557     fi
22558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22559     ;;
22560    hppa*64*)
22561      shrext_cmds='.sl'
22562      hardcode_into_libs=yes
22563      dynamic_linker="$host_os dld.sl"
22564      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22565      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22567      soname_spec='${libname}${release}${shared_ext}$major'
22568      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22569      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22570      ;;
22571    *)
22572     shrext_cmds='.sl'
22573     dynamic_linker="$host_os dld.sl"
22574     shlibpath_var=SHLIB_PATH
22575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22577     soname_spec='${libname}${release}${shared_ext}$major'
22578     ;;
22579   esac
22580   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22581   postinstall_cmds='chmod 555 $lib'
22582   ;;
22583
22584 irix5* | irix6* | nonstopux*)
22585   case $host_os in
22586     nonstopux*) version_type=nonstopux ;;
22587     *)
22588         if test "$lt_cv_prog_gnu_ld" = yes; then
22589                 version_type=linux
22590         else
22591                 version_type=irix
22592         fi ;;
22593   esac
22594   need_lib_prefix=no
22595   need_version=no
22596   soname_spec='${libname}${release}${shared_ext}$major'
22597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22598   case $host_os in
22599   irix5* | nonstopux*)
22600     libsuff= shlibsuff=
22601     ;;
22602   *)
22603     case $LD in # libtool.m4 will add one of these switches to LD
22604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22605       libsuff= shlibsuff= libmagic=32-bit;;
22606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22607       libsuff=32 shlibsuff=N32 libmagic=N32;;
22608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22610     *) libsuff= shlibsuff= libmagic=never-match;;
22611     esac
22612     ;;
22613   esac
22614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22615   shlibpath_overrides_runpath=no
22616   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22617   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22618   hardcode_into_libs=yes
22619   ;;
22620
22621 # No shared lib support for Linux oldld, aout, or coff.
22622 linux*oldld* | linux*aout* | linux*coff*)
22623   dynamic_linker=no
22624   ;;
22625
22626 # This must be Linux ELF.
22627 linux*)
22628   version_type=linux
22629   need_lib_prefix=no
22630   need_version=no
22631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22632   soname_spec='${libname}${release}${shared_ext}$major'
22633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22634   shlibpath_var=LD_LIBRARY_PATH
22635   shlibpath_overrides_runpath=no
22636   # This implies no fast_install, which is unacceptable.
22637   # Some rework will be needed to allow for fast_install
22638   # before this can be enabled.
22639   hardcode_into_libs=yes
22640
22641   # Append ld.so.conf contents to the search path
22642   if test -f /etc/ld.so.conf; then
22643     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22644     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22645   fi
22646
22647   # We used to test for /lib/ld.so.1 and disable shared libraries on
22648   # powerpc, because MkLinux only supported shared libraries with the
22649   # GNU dynamic linker.  Since this was broken with cross compilers,
22650   # most powerpc-linux boxes support dynamic linking these days and
22651   # people can always --disable-shared, the test was removed, and we
22652   # assume the GNU/Linux dynamic linker is in use.
22653   dynamic_linker='GNU/Linux ld.so'
22654   ;;
22655
22656 knetbsd*-gnu)
22657   version_type=linux
22658   need_lib_prefix=no
22659   need_version=no
22660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22661   soname_spec='${libname}${release}${shared_ext}$major'
22662   shlibpath_var=LD_LIBRARY_PATH
22663   shlibpath_overrides_runpath=no
22664   hardcode_into_libs=yes
22665   dynamic_linker='GNU ld.so'
22666   ;;
22667
22668 netbsd*)
22669   version_type=sunos
22670   need_lib_prefix=no
22671   need_version=no
22672   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22674     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22675     dynamic_linker='NetBSD (a.out) ld.so'
22676   else
22677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22678     soname_spec='${libname}${release}${shared_ext}$major'
22679     dynamic_linker='NetBSD ld.elf_so'
22680   fi
22681   shlibpath_var=LD_LIBRARY_PATH
22682   shlibpath_overrides_runpath=yes
22683   hardcode_into_libs=yes
22684   ;;
22685
22686 newsos6)
22687   version_type=linux
22688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22689   shlibpath_var=LD_LIBRARY_PATH
22690   shlibpath_overrides_runpath=yes
22691   ;;
22692
22693 nto-qnx*)
22694   version_type=linux
22695   need_lib_prefix=no
22696   need_version=no
22697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698   soname_spec='${libname}${release}${shared_ext}$major'
22699   shlibpath_var=LD_LIBRARY_PATH
22700   shlibpath_overrides_runpath=yes
22701   ;;
22702
22703 openbsd*)
22704   version_type=sunos
22705   need_lib_prefix=no
22706   need_version=no
22707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22709   shlibpath_var=LD_LIBRARY_PATH
22710   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22711     case $host_os in
22712       openbsd2.[89] | openbsd2.[89].*)
22713         shlibpath_overrides_runpath=no
22714         ;;
22715       *)
22716         shlibpath_overrides_runpath=yes
22717         ;;
22718       esac
22719   else
22720     shlibpath_overrides_runpath=yes
22721   fi
22722   ;;
22723
22724 os2*)
22725   libname_spec='$name'
22726   shrext_cmds=".dll"
22727   need_lib_prefix=no
22728   library_names_spec='$libname${shared_ext} $libname.a'
22729   dynamic_linker='OS/2 ld.exe'
22730   shlibpath_var=LIBPATH
22731   ;;
22732
22733 osf3* | osf4* | osf5*)
22734   version_type=osf
22735   need_lib_prefix=no
22736   need_version=no
22737   soname_spec='${libname}${release}${shared_ext}$major'
22738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739   shlibpath_var=LD_LIBRARY_PATH
22740   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22741   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22742   ;;
22743
22744 sco3.2v5*)
22745   version_type=osf
22746   soname_spec='${libname}${release}${shared_ext}$major'
22747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748   shlibpath_var=LD_LIBRARY_PATH
22749   ;;
22750
22751 solaris*)
22752   version_type=linux
22753   need_lib_prefix=no
22754   need_version=no
22755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756   soname_spec='${libname}${release}${shared_ext}$major'
22757   shlibpath_var=LD_LIBRARY_PATH
22758   shlibpath_overrides_runpath=yes
22759   hardcode_into_libs=yes
22760   # ldd complains unless libraries are executable
22761   postinstall_cmds='chmod +x $lib'
22762   ;;
22763
22764 sunos4*)
22765   version_type=sunos
22766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22768   shlibpath_var=LD_LIBRARY_PATH
22769   shlibpath_overrides_runpath=yes
22770   if test "$with_gnu_ld" = yes; then
22771     need_lib_prefix=no
22772   fi
22773   need_version=yes
22774   ;;
22775
22776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22777   version_type=linux
22778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779   soname_spec='${libname}${release}${shared_ext}$major'
22780   shlibpath_var=LD_LIBRARY_PATH
22781   case $host_vendor in
22782     sni)
22783       shlibpath_overrides_runpath=no
22784       need_lib_prefix=no
22785       export_dynamic_flag_spec='${wl}-Blargedynsym'
22786       runpath_var=LD_RUN_PATH
22787       ;;
22788     siemens)
22789       need_lib_prefix=no
22790       ;;
22791     motorola)
22792       need_lib_prefix=no
22793       need_version=no
22794       shlibpath_overrides_runpath=no
22795       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22796       ;;
22797   esac
22798   ;;
22799
22800 sysv4*MP*)
22801   if test -d /usr/nec ;then
22802     version_type=linux
22803     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22804     soname_spec='$libname${shared_ext}.$major'
22805     shlibpath_var=LD_LIBRARY_PATH
22806   fi
22807   ;;
22808
22809 uts4*)
22810   version_type=linux
22811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22812   soname_spec='${libname}${release}${shared_ext}$major'
22813   shlibpath_var=LD_LIBRARY_PATH
22814   ;;
22815
22816 *)
22817   dynamic_linker=no
22818   ;;
22819 esac
22820 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22821 echo "${ECHO_T}$dynamic_linker" >&6
22822 test "$dynamic_linker" = no && can_build_shared=no
22823
22824 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22825 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22826 hardcode_action_GCJ=
22827 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22828    test -n "$runpath_var_GCJ" || \
22829    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22830
22831   # We can hardcode non-existant directories.
22832   if test "$hardcode_direct_GCJ" != no &&
22833      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22834      # have to relink, otherwise we might link with an installed library
22835      # when we should be linking with a yet-to-be-installed one
22836      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22837      test "$hardcode_minus_L_GCJ" != no; then
22838     # Linking always hardcodes the temporary library directory.
22839     hardcode_action_GCJ=relink
22840   else
22841     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22842     hardcode_action_GCJ=immediate
22843   fi
22844 else
22845   # We cannot hardcode anything, or else we can only hardcode existing
22846   # directories.
22847   hardcode_action_GCJ=unsupported
22848 fi
22849 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22850 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22851
22852 if test "$hardcode_action_GCJ" = relink; then
22853   # Fast installation is not supported
22854   enable_fast_install=no
22855 elif test "$shlibpath_overrides_runpath" = yes ||
22856      test "$enable_shared" = no; then
22857   # Fast installation is not necessary
22858   enable_fast_install=needless
22859 fi
22860
22861 striplib=
22862 old_striplib=
22863 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22864 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22865 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22866   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22867   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22868   echo "$as_me:$LINENO: result: yes" >&5
22869 echo "${ECHO_T}yes" >&6
22870 else
22871 # FIXME - insert some real tests, host_os isn't really good enough
22872   case $host_os in
22873    darwin*)
22874        if test -n "$STRIP" ; then
22875          striplib="$STRIP -x"
22876          echo "$as_me:$LINENO: result: yes" >&5
22877 echo "${ECHO_T}yes" >&6
22878        else
22879   echo "$as_me:$LINENO: result: no" >&5
22880 echo "${ECHO_T}no" >&6
22881 fi
22882        ;;
22883    *)
22884   echo "$as_me:$LINENO: result: no" >&5
22885 echo "${ECHO_T}no" >&6
22886     ;;
22887   esac
22888 fi
22889
22890 if test "x$enable_dlopen" != xyes; then
22891   enable_dlopen=unknown
22892   enable_dlopen_self=unknown
22893   enable_dlopen_self_static=unknown
22894 else
22895   lt_cv_dlopen=no
22896   lt_cv_dlopen_libs=
22897
22898   case $host_os in
22899   beos*)
22900     lt_cv_dlopen="load_add_on"
22901     lt_cv_dlopen_libs=
22902     lt_cv_dlopen_self=yes
22903     ;;
22904
22905   mingw* | pw32*)
22906     lt_cv_dlopen="LoadLibrary"
22907     lt_cv_dlopen_libs=
22908    ;;
22909
22910   cygwin*)
22911     lt_cv_dlopen="dlopen"
22912     lt_cv_dlopen_libs=
22913    ;;
22914
22915   darwin*)
22916   # if libdl is installed we need to link against it
22917     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22918 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22919 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22920   echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922   ac_check_lib_save_LIBS=$LIBS
22923 LIBS="-ldl  $LIBS"
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930
22931 /* Override any gcc2 internal prototype to avoid an error.  */
22932 #ifdef __cplusplus
22933 extern "C"
22934 #endif
22935 /* We use char because int might match the return type of a gcc2
22936    builtin and then its argument prototype would still apply.  */
22937 char dlopen ();
22938 int
22939 main ()
22940 {
22941 dlopen ();
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext conftest$ac_exeext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948   (eval $ac_link) 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } &&
22955          { ac_try='test -z "$ac_c_werror_flag"
22956                          || test ! -s conftest.err'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; } &&
22962          { ac_try='test -s conftest$ac_exeext'
22963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964   (eval $ac_try) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968   ac_cv_lib_dl_dlopen=yes
22969 else
22970   echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973 ac_cv_lib_dl_dlopen=no
22974 fi
22975 rm -f conftest.err conftest.$ac_objext \
22976       conftest$ac_exeext conftest.$ac_ext
22977 LIBS=$ac_check_lib_save_LIBS
22978 fi
22979 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22980 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22981 if test $ac_cv_lib_dl_dlopen = yes; then
22982   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22983 else
22984
22985     lt_cv_dlopen="dyld"
22986     lt_cv_dlopen_libs=
22987     lt_cv_dlopen_self=yes
22988
22989 fi
22990
22991    ;;
22992
22993   *)
22994     echo "$as_me:$LINENO: checking for shl_load" >&5
22995 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22996 if test "${ac_cv_func_shl_load+set}" = set; then
22997   echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999   cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h.  */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h.  */
23005 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23007 #define shl_load innocuous_shl_load
23008
23009 /* System header to define __stub macros and hopefully few prototypes,
23010     which can conflict with char shl_load (); below.
23011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23012     <limits.h> exists even on freestanding compilers.  */
23013
23014 #ifdef __STDC__
23015 # include <limits.h>
23016 #else
23017 # include <assert.h>
23018 #endif
23019
23020 #undef shl_load
23021
23022 /* Override any gcc2 internal prototype to avoid an error.  */
23023 #ifdef __cplusplus
23024 extern "C"
23025 {
23026 #endif
23027 /* We use char because int might match the return type of a gcc2
23028    builtin and then its argument prototype would still apply.  */
23029 char shl_load ();
23030 /* The GNU C library defines this for functions which it implements
23031     to always fail with ENOSYS.  Some functions are actually named
23032     something starting with __ and the normal name is an alias.  */
23033 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23034 choke me
23035 #else
23036 char (*f) () = shl_load;
23037 #endif
23038 #ifdef __cplusplus
23039 }
23040 #endif
23041
23042 int
23043 main ()
23044 {
23045 return f != shl_load;
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052   (eval $ac_link) 2>conftest.er1
23053   ac_status=$?
23054   grep -v '^ *+' conftest.er1 >conftest.err
23055   rm -f conftest.er1
23056   cat conftest.err >&5
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); } &&
23059          { ac_try='test -z "$ac_c_werror_flag"
23060                          || test ! -s conftest.err'
23061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062   (eval $ac_try) 2>&5
23063   ac_status=$?
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); }; } &&
23066          { ac_try='test -s conftest$ac_exeext'
23067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068   (eval $ac_try) 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; }; then
23072   ac_cv_func_shl_load=yes
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077 ac_cv_func_shl_load=no
23078 fi
23079 rm -f conftest.err conftest.$ac_objext \
23080       conftest$ac_exeext conftest.$ac_ext
23081 fi
23082 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23083 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23084 if test $ac_cv_func_shl_load = yes; then
23085   lt_cv_dlopen="shl_load"
23086 else
23087   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23088 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23089 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23090   echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092   ac_check_lib_save_LIBS=$LIBS
23093 LIBS="-ldld  $LIBS"
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100
23101 /* Override any gcc2 internal prototype to avoid an error.  */
23102 #ifdef __cplusplus
23103 extern "C"
23104 #endif
23105 /* We use char because int might match the return type of a gcc2
23106    builtin and then its argument prototype would still apply.  */
23107 char shl_load ();
23108 int
23109 main ()
23110 {
23111 shl_load ();
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext conftest$ac_exeext
23117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23118   (eval $ac_link) 2>conftest.er1
23119   ac_status=$?
23120   grep -v '^ *+' conftest.er1 >conftest.err
23121   rm -f conftest.er1
23122   cat conftest.err >&5
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); } &&
23125          { ac_try='test -z "$ac_c_werror_flag"
23126                          || test ! -s conftest.err'
23127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128   (eval $ac_try) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); }; } &&
23132          { ac_try='test -s conftest$ac_exeext'
23133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134   (eval $ac_try) 2>&5
23135   ac_status=$?
23136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137   (exit $ac_status); }; }; then
23138   ac_cv_lib_dld_shl_load=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143 ac_cv_lib_dld_shl_load=no
23144 fi
23145 rm -f conftest.err conftest.$ac_objext \
23146       conftest$ac_exeext conftest.$ac_ext
23147 LIBS=$ac_check_lib_save_LIBS
23148 fi
23149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23150 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23151 if test $ac_cv_lib_dld_shl_load = yes; then
23152   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23153 else
23154   echo "$as_me:$LINENO: checking for dlopen" >&5
23155 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23156 if test "${ac_cv_func_dlopen+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23167 #define dlopen innocuous_dlopen
23168
23169 /* System header to define __stub macros and hopefully few prototypes,
23170     which can conflict with char dlopen (); below.
23171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23172     <limits.h> exists even on freestanding compilers.  */
23173
23174 #ifdef __STDC__
23175 # include <limits.h>
23176 #else
23177 # include <assert.h>
23178 #endif
23179
23180 #undef dlopen
23181
23182 /* Override any gcc2 internal prototype to avoid an error.  */
23183 #ifdef __cplusplus
23184 extern "C"
23185 {
23186 #endif
23187 /* We use char because int might match the return type of a gcc2
23188    builtin and then its argument prototype would still apply.  */
23189 char dlopen ();
23190 /* The GNU C library defines this for functions which it implements
23191     to always fail with ENOSYS.  Some functions are actually named
23192     something starting with __ and the normal name is an alias.  */
23193 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23194 choke me
23195 #else
23196 char (*f) () = dlopen;
23197 #endif
23198 #ifdef __cplusplus
23199 }
23200 #endif
23201
23202 int
23203 main ()
23204 {
23205 return f != dlopen;
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212   (eval $ac_link) 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } &&
23219          { ac_try='test -z "$ac_c_werror_flag"
23220                          || test ! -s conftest.err'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest$ac_exeext'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   ac_cv_func_dlopen=yes
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ac_cv_func_dlopen=no
23238 fi
23239 rm -f conftest.err conftest.$ac_objext \
23240       conftest$ac_exeext conftest.$ac_ext
23241 fi
23242 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23243 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23244 if test $ac_cv_func_dlopen = yes; then
23245   lt_cv_dlopen="dlopen"
23246 else
23247   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23250   echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252   ac_check_lib_save_LIBS=$LIBS
23253 LIBS="-ldl  $LIBS"
23254 cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260
23261 /* Override any gcc2 internal prototype to avoid an error.  */
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 /* We use char because int might match the return type of a gcc2
23266    builtin and then its argument prototype would still apply.  */
23267 char dlopen ();
23268 int
23269 main ()
23270 {
23271 dlopen ();
23272   ;
23273   return 0;
23274 }
23275 _ACEOF
23276 rm -f conftest.$ac_objext conftest$ac_exeext
23277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23278   (eval $ac_link) 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } &&
23285          { ac_try='test -z "$ac_c_werror_flag"
23286                          || test ! -s conftest.err'
23287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23288   (eval $ac_try) 2>&5
23289   ac_status=$?
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); }; } &&
23292          { ac_try='test -s conftest$ac_exeext'
23293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294   (eval $ac_try) 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; }; then
23298   ac_cv_lib_dl_dlopen=yes
23299 else
23300   echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23302
23303 ac_cv_lib_dl_dlopen=no
23304 fi
23305 rm -f conftest.err conftest.$ac_objext \
23306       conftest$ac_exeext conftest.$ac_ext
23307 LIBS=$ac_check_lib_save_LIBS
23308 fi
23309 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23311 if test $ac_cv_lib_dl_dlopen = yes; then
23312   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23313 else
23314   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23317   echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319   ac_check_lib_save_LIBS=$LIBS
23320 LIBS="-lsvld  $LIBS"
23321 cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327
23328 /* Override any gcc2 internal prototype to avoid an error.  */
23329 #ifdef __cplusplus
23330 extern "C"
23331 #endif
23332 /* We use char because int might match the return type of a gcc2
23333    builtin and then its argument prototype would still apply.  */
23334 char dlopen ();
23335 int
23336 main ()
23337 {
23338 dlopen ();
23339   ;
23340   return 0;
23341 }
23342 _ACEOF
23343 rm -f conftest.$ac_objext conftest$ac_exeext
23344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23345   (eval $ac_link) 2>conftest.er1
23346   ac_status=$?
23347   grep -v '^ *+' conftest.er1 >conftest.err
23348   rm -f conftest.er1
23349   cat conftest.err >&5
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } &&
23352          { ac_try='test -z "$ac_c_werror_flag"
23353                          || test ! -s conftest.err'
23354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355   (eval $ac_try) 2>&5
23356   ac_status=$?
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); }; } &&
23359          { ac_try='test -s conftest$ac_exeext'
23360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361   (eval $ac_try) 2>&5
23362   ac_status=$?
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); }; }; then
23365   ac_cv_lib_svld_dlopen=yes
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 ac_cv_lib_svld_dlopen=no
23371 fi
23372 rm -f conftest.err conftest.$ac_objext \
23373       conftest$ac_exeext conftest.$ac_ext
23374 LIBS=$ac_check_lib_save_LIBS
23375 fi
23376 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23377 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23378 if test $ac_cv_lib_svld_dlopen = yes; then
23379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23380 else
23381   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23382 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23383 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23384   echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386   ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-ldld  $LIBS"
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394
23395 /* Override any gcc2 internal prototype to avoid an error.  */
23396 #ifdef __cplusplus
23397 extern "C"
23398 #endif
23399 /* We use char because int might match the return type of a gcc2
23400    builtin and then its argument prototype would still apply.  */
23401 char dld_link ();
23402 int
23403 main ()
23404 {
23405 dld_link ();
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext conftest$ac_exeext
23411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23412   (eval $ac_link) 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } &&
23419          { ac_try='test -z "$ac_c_werror_flag"
23420                          || test ! -s conftest.err'
23421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422   (eval $ac_try) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; } &&
23426          { ac_try='test -s conftest$ac_exeext'
23427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); }; }; then
23432   ac_cv_lib_dld_dld_link=yes
23433 else
23434   echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ac_cv_lib_dld_dld_link=no
23438 fi
23439 rm -f conftest.err conftest.$ac_objext \
23440       conftest$ac_exeext conftest.$ac_ext
23441 LIBS=$ac_check_lib_save_LIBS
23442 fi
23443 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23444 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23445 if test $ac_cv_lib_dld_dld_link = yes; then
23446   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23447 fi
23448
23449
23450 fi
23451
23452
23453 fi
23454
23455
23456 fi
23457
23458
23459 fi
23460
23461
23462 fi
23463
23464     ;;
23465   esac
23466
23467   if test "x$lt_cv_dlopen" != xno; then
23468     enable_dlopen=yes
23469   else
23470     enable_dlopen=no
23471   fi
23472
23473   case $lt_cv_dlopen in
23474   dlopen)
23475     save_CPPFLAGS="$CPPFLAGS"
23476     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23477
23478     save_LDFLAGS="$LDFLAGS"
23479     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23480
23481     save_LIBS="$LIBS"
23482     LIBS="$lt_cv_dlopen_libs $LIBS"
23483
23484     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23485 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23486 if test "${lt_cv_dlopen_self+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489           if test "$cross_compiling" = yes; then :
23490   lt_cv_dlopen_self=cross
23491 else
23492   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23493   lt_status=$lt_dlunknown
23494   cat > conftest.$ac_ext <<EOF
23495 #line 23495 "configure"
23496 #include "confdefs.h"
23497
23498 #if HAVE_DLFCN_H
23499 #include <dlfcn.h>
23500 #endif
23501
23502 #include <stdio.h>
23503
23504 #ifdef RTLD_GLOBAL
23505 #  define LT_DLGLOBAL           RTLD_GLOBAL
23506 #else
23507 #  ifdef DL_GLOBAL
23508 #    define LT_DLGLOBAL         DL_GLOBAL
23509 #  else
23510 #    define LT_DLGLOBAL         0
23511 #  endif
23512 #endif
23513
23514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23515    find out it does not work in some platform. */
23516 #ifndef LT_DLLAZY_OR_NOW
23517 #  ifdef RTLD_LAZY
23518 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23519 #  else
23520 #    ifdef DL_LAZY
23521 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23522 #    else
23523 #      ifdef RTLD_NOW
23524 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23525 #      else
23526 #        ifdef DL_NOW
23527 #          define LT_DLLAZY_OR_NOW      DL_NOW
23528 #        else
23529 #          define LT_DLLAZY_OR_NOW      0
23530 #        endif
23531 #      endif
23532 #    endif
23533 #  endif
23534 #endif
23535
23536 #ifdef __cplusplus
23537 extern "C" void exit (int);
23538 #endif
23539
23540 void fnord() { int i=42;}
23541 int main ()
23542 {
23543   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23544   int status = $lt_dlunknown;
23545
23546   if (self)
23547     {
23548       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23549       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23550       /* dlclose (self); */
23551     }
23552
23553     exit (status);
23554 }
23555 EOF
23556   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557   (eval $ac_link) 2>&5
23558   ac_status=$?
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23561     (./conftest; exit; ) 2>/dev/null
23562     lt_status=$?
23563     case x$lt_status in
23564       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23565       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23566       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23567     esac
23568   else :
23569     # compilation failed
23570     lt_cv_dlopen_self=no
23571   fi
23572 fi
23573 rm -fr conftest*
23574
23575
23576 fi
23577 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23578 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23579
23580     if test "x$lt_cv_dlopen_self" = xyes; then
23581       LDFLAGS="$LDFLAGS $link_static_flag"
23582       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23583 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23584 if test "${lt_cv_dlopen_self_static+set}" = set; then
23585   echo $ECHO_N "(cached) $ECHO_C" >&6
23586 else
23587           if test "$cross_compiling" = yes; then :
23588   lt_cv_dlopen_self_static=cross
23589 else
23590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23591   lt_status=$lt_dlunknown
23592   cat > conftest.$ac_ext <<EOF
23593 #line 23593 "configure"
23594 #include "confdefs.h"
23595
23596 #if HAVE_DLFCN_H
23597 #include <dlfcn.h>
23598 #endif
23599
23600 #include <stdio.h>
23601
23602 #ifdef RTLD_GLOBAL
23603 #  define LT_DLGLOBAL           RTLD_GLOBAL
23604 #else
23605 #  ifdef DL_GLOBAL
23606 #    define LT_DLGLOBAL         DL_GLOBAL
23607 #  else
23608 #    define LT_DLGLOBAL         0
23609 #  endif
23610 #endif
23611
23612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23613    find out it does not work in some platform. */
23614 #ifndef LT_DLLAZY_OR_NOW
23615 #  ifdef RTLD_LAZY
23616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23617 #  else
23618 #    ifdef DL_LAZY
23619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23620 #    else
23621 #      ifdef RTLD_NOW
23622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23623 #      else
23624 #        ifdef DL_NOW
23625 #          define LT_DLLAZY_OR_NOW      DL_NOW
23626 #        else
23627 #          define LT_DLLAZY_OR_NOW      0
23628 #        endif
23629 #      endif
23630 #    endif
23631 #  endif
23632 #endif
23633
23634 #ifdef __cplusplus
23635 extern "C" void exit (int);
23636 #endif
23637
23638 void fnord() { int i=42;}
23639 int main ()
23640 {
23641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23642   int status = $lt_dlunknown;
23643
23644   if (self)
23645     {
23646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23648       /* dlclose (self); */
23649     }
23650
23651     exit (status);
23652 }
23653 EOF
23654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655   (eval $ac_link) 2>&5
23656   ac_status=$?
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23659     (./conftest; exit; ) 2>/dev/null
23660     lt_status=$?
23661     case x$lt_status in
23662       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23663       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23664       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23665     esac
23666   else :
23667     # compilation failed
23668     lt_cv_dlopen_self_static=no
23669   fi
23670 fi
23671 rm -fr conftest*
23672
23673
23674 fi
23675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23676 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23677     fi
23678
23679     CPPFLAGS="$save_CPPFLAGS"
23680     LDFLAGS="$save_LDFLAGS"
23681     LIBS="$save_LIBS"
23682     ;;
23683   esac
23684
23685   case $lt_cv_dlopen_self in
23686   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23687   *) enable_dlopen_self=unknown ;;
23688   esac
23689
23690   case $lt_cv_dlopen_self_static in
23691   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23692   *) enable_dlopen_self_static=unknown ;;
23693   esac
23694 fi
23695
23696
23697 # The else clause should only fire when bootstrapping the
23698 # libtool distribution, otherwise you forgot to ship ltmain.sh
23699 # with your package, and you will get complaints that there are
23700 # no rules to generate ltmain.sh.
23701 if test -f "$ltmain"; then
23702   # See if we are running on zsh, and set the options which allow our commands through
23703   # without removal of \ escapes.
23704   if test -n "${ZSH_VERSION+set}" ; then
23705     setopt NO_GLOB_SUBST
23706   fi
23707   # Now quote all the things that may contain metacharacters while being
23708   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23709   # variables and quote the copies for generation of the libtool script.
23710   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23711     SED SHELL STRIP \
23712     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23713     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23714     deplibs_check_method reload_flag reload_cmds need_locks \
23715     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23716     lt_cv_sys_global_symbol_to_c_name_address \
23717     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23718     old_postinstall_cmds old_postuninstall_cmds \
23719     compiler_GCJ \
23720     CC_GCJ \
23721     LD_GCJ \
23722     lt_prog_compiler_wl_GCJ \
23723     lt_prog_compiler_pic_GCJ \
23724     lt_prog_compiler_static_GCJ \
23725     lt_prog_compiler_no_builtin_flag_GCJ \
23726     export_dynamic_flag_spec_GCJ \
23727     thread_safe_flag_spec_GCJ \
23728     whole_archive_flag_spec_GCJ \
23729     enable_shared_with_static_runtimes_GCJ \
23730     old_archive_cmds_GCJ \
23731     old_archive_from_new_cmds_GCJ \
23732     predep_objects_GCJ \
23733     postdep_objects_GCJ \
23734     predeps_GCJ \
23735     postdeps_GCJ \
23736     compiler_lib_search_path_GCJ \
23737     archive_cmds_GCJ \
23738     archive_expsym_cmds_GCJ \
23739     postinstall_cmds_GCJ \
23740     postuninstall_cmds_GCJ \
23741     old_archive_from_expsyms_cmds_GCJ \
23742     allow_undefined_flag_GCJ \
23743     no_undefined_flag_GCJ \
23744     export_symbols_cmds_GCJ \
23745     hardcode_libdir_flag_spec_GCJ \
23746     hardcode_libdir_flag_spec_ld_GCJ \
23747     hardcode_libdir_separator_GCJ \
23748     hardcode_automatic_GCJ \
23749     module_cmds_GCJ \
23750     module_expsym_cmds_GCJ \
23751     lt_cv_prog_compiler_c_o_GCJ \
23752     exclude_expsyms_GCJ \
23753     include_expsyms_GCJ; do
23754
23755     case $var in
23756     old_archive_cmds_GCJ | \
23757     old_archive_from_new_cmds_GCJ | \
23758     archive_cmds_GCJ | \
23759     archive_expsym_cmds_GCJ | \
23760     module_cmds_GCJ | \
23761     module_expsym_cmds_GCJ | \
23762     old_archive_from_expsyms_cmds_GCJ | \
23763     export_symbols_cmds_GCJ | \
23764     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23765     postinstall_cmds | postuninstall_cmds | \
23766     old_postinstall_cmds | old_postuninstall_cmds | \
23767     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23768       # Double-quote double-evaled strings.
23769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23770       ;;
23771     *)
23772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23773       ;;
23774     esac
23775   done
23776
23777   case $lt_echo in
23778   *'\$0 --fallback-echo"')
23779     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23780     ;;
23781   esac
23782
23783 cfgfile="$ofile"
23784
23785   cat <<__EOF__ >> "$cfgfile"
23786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23787
23788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23789
23790 # Shell to use when invoking shell scripts.
23791 SHELL=$lt_SHELL
23792
23793 # Whether or not to build shared libraries.
23794 build_libtool_libs=$enable_shared
23795
23796 # Whether or not to build static libraries.
23797 build_old_libs=$enable_static
23798
23799 # Whether or not to add -lc for building shared libraries.
23800 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23801
23802 # Whether or not to disallow shared libs when runtime libs are static
23803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23804
23805 # Whether or not to optimize for fast installation.
23806 fast_install=$enable_fast_install
23807
23808 # The host system.
23809 host_alias=$host_alias
23810 host=$host
23811
23812 # An echo program that does not interpret backslashes.
23813 echo=$lt_echo
23814
23815 # The archiver.
23816 AR=$lt_AR
23817 AR_FLAGS=$lt_AR_FLAGS
23818
23819 # A C compiler.
23820 LTCC=$lt_LTCC
23821
23822 # A language-specific compiler.
23823 CC=$lt_compiler_GCJ
23824
23825 # Is the compiler the GNU C compiler?
23826 with_gcc=$GCC_GCJ
23827
23828 # An ERE matcher.
23829 EGREP=$lt_EGREP
23830
23831 # The linker used to build libraries.
23832 LD=$lt_LD_GCJ
23833
23834 # Whether we need hard or soft links.
23835 LN_S=$lt_LN_S
23836
23837 # A BSD-compatible nm program.
23838 NM=$lt_NM
23839
23840 # A symbol stripping program
23841 STRIP=$lt_STRIP
23842
23843 # Used to examine libraries when file_magic_cmd begins "file"
23844 MAGIC_CMD=$MAGIC_CMD
23845
23846 # Used on cygwin: DLL creation program.
23847 DLLTOOL="$DLLTOOL"
23848
23849 # Used on cygwin: object dumper.
23850 OBJDUMP="$OBJDUMP"
23851
23852 # Used on cygwin: assembler.
23853 AS="$AS"
23854
23855 # The name of the directory that contains temporary libtool files.
23856 objdir=$objdir
23857
23858 # How to create reloadable object files.
23859 reload_flag=$lt_reload_flag
23860 reload_cmds=$lt_reload_cmds
23861
23862 # How to pass a linker flag through the compiler.
23863 wl=$lt_lt_prog_compiler_wl_GCJ
23864
23865 # Object file suffix (normally "o").
23866 objext="$ac_objext"
23867
23868 # Old archive suffix (normally "a").
23869 libext="$libext"
23870
23871 # Shared library suffix (normally ".so").
23872 shrext_cmds='$shrext_cmds'
23873
23874 # Executable file suffix (normally "").
23875 exeext="$exeext"
23876
23877 # Additional compiler flags for building library objects.
23878 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23879 pic_mode=$pic_mode
23880
23881 # What is the maximum length of a command?
23882 max_cmd_len=$lt_cv_sys_max_cmd_len
23883
23884 # Does compiler simultaneously support -c and -o options?
23885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23886
23887 # Must we lock files when doing compilation ?
23888 need_locks=$lt_need_locks
23889
23890 # Do we need the lib prefix for modules?
23891 need_lib_prefix=$need_lib_prefix
23892
23893 # Do we need a version for libraries?
23894 need_version=$need_version
23895
23896 # Whether dlopen is supported.
23897 dlopen_support=$enable_dlopen
23898
23899 # Whether dlopen of programs is supported.
23900 dlopen_self=$enable_dlopen_self
23901
23902 # Whether dlopen of statically linked programs is supported.
23903 dlopen_self_static=$enable_dlopen_self_static
23904
23905 # Compiler flag to prevent dynamic linking.
23906 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23907
23908 # Compiler flag to turn off builtin functions.
23909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23910
23911 # Compiler flag to allow reflexive dlopens.
23912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23913
23914 # Compiler flag to generate shared objects directly from archives.
23915 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23916
23917 # Compiler flag to generate thread-safe objects.
23918 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23919
23920 # Library versioning type.
23921 version_type=$version_type
23922
23923 # Format of library name prefix.
23924 libname_spec=$lt_libname_spec
23925
23926 # List of archive names.  First name is the real one, the rest are links.
23927 # The last name is the one that the linker finds with -lNAME.
23928 library_names_spec=$lt_library_names_spec
23929
23930 # The coded name of the library, if different from the real name.
23931 soname_spec=$lt_soname_spec
23932
23933 # Commands used to build and install an old-style archive.
23934 RANLIB=$lt_RANLIB
23935 old_archive_cmds=$lt_old_archive_cmds_GCJ
23936 old_postinstall_cmds=$lt_old_postinstall_cmds
23937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23938
23939 # Create an old-style archive from a shared archive.
23940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23941
23942 # Create a temporary old-style archive to link instead of a shared archive.
23943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23944
23945 # Commands used to build and install a shared archive.
23946 archive_cmds=$lt_archive_cmds_GCJ
23947 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23948 postinstall_cmds=$lt_postinstall_cmds
23949 postuninstall_cmds=$lt_postuninstall_cmds
23950
23951 # Commands used to build a loadable module (assumed same as above if empty)
23952 module_cmds=$lt_module_cmds_GCJ
23953 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23954
23955 # Commands to strip libraries.
23956 old_striplib=$lt_old_striplib
23957 striplib=$lt_striplib
23958
23959 # Dependencies to place before the objects being linked to create a
23960 # shared library.
23961 predep_objects=$lt_predep_objects_GCJ
23962
23963 # Dependencies to place after the objects being linked to create a
23964 # shared library.
23965 postdep_objects=$lt_postdep_objects_GCJ
23966
23967 # Dependencies to place before the objects being linked to create a
23968 # shared library.
23969 predeps=$lt_predeps_GCJ
23970
23971 # Dependencies to place after the objects being linked to create a
23972 # shared library.
23973 postdeps=$lt_postdeps_GCJ
23974
23975 # The library search path used internally by the compiler when linking
23976 # a shared library.
23977 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23978
23979 # Method to check whether dependent libraries are shared objects.
23980 deplibs_check_method=$lt_deplibs_check_method
23981
23982 # Command to use when deplibs_check_method == file_magic.
23983 file_magic_cmd=$lt_file_magic_cmd
23984
23985 # Flag that allows shared libraries with undefined symbols to be built.
23986 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23987
23988 # Flag that forces no undefined symbols.
23989 no_undefined_flag=$lt_no_undefined_flag_GCJ
23990
23991 # Commands used to finish a libtool library installation in a directory.
23992 finish_cmds=$lt_finish_cmds
23993
23994 # Same as above, but a single script fragment to be evaled but not shown.
23995 finish_eval=$lt_finish_eval
23996
23997 # Take the output of nm and produce a listing of raw symbols and C names.
23998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23999
24000 # Transform the output of nm in a proper C declaration
24001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24002
24003 # Transform the output of nm in a C name address pair
24004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24005
24006 # This is the shared library runtime path variable.
24007 runpath_var=$runpath_var
24008
24009 # This is the shared library path variable.
24010 shlibpath_var=$shlibpath_var
24011
24012 # Is shlibpath searched before the hard-coded library search path?
24013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24014
24015 # How to hardcode a shared library path into an executable.
24016 hardcode_action=$hardcode_action_GCJ
24017
24018 # Whether we should hardcode library paths into libraries.
24019 hardcode_into_libs=$hardcode_into_libs
24020
24021 # Flag to hardcode \$libdir into a binary during linking.
24022 # This must work even if \$libdir does not exist.
24023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24024
24025 # If ld is used when linking, flag to hardcode \$libdir into
24026 # a binary during linking. This must work even if \$libdir does
24027 # not exist.
24028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24029
24030 # Whether we need a single -rpath flag with a separated argument.
24031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24032
24033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24034 # resulting binary.
24035 hardcode_direct=$hardcode_direct_GCJ
24036
24037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24038 # resulting binary.
24039 hardcode_minus_L=$hardcode_minus_L_GCJ
24040
24041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24042 # the resulting binary.
24043 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24044
24045 # Set to yes if building a shared library automatically hardcodes DIR into the library
24046 # and all subsequent libraries and executables linked against it.
24047 hardcode_automatic=$hardcode_automatic_GCJ
24048
24049 # Variables whose values should be saved in libtool wrapper scripts and
24050 # restored at relink time.
24051 variables_saved_for_relink="$variables_saved_for_relink"
24052
24053 # Whether libtool must link a program against all its dependency libraries.
24054 link_all_deplibs=$link_all_deplibs_GCJ
24055
24056 # Compile-time system search path for libraries
24057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24058
24059 # Run-time system search path for libraries
24060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24061
24062 # Fix the shell variable \$srcfile for the compiler.
24063 fix_srcfile_path="$fix_srcfile_path_GCJ"
24064
24065 # Set to yes if exported symbols are required.
24066 always_export_symbols=$always_export_symbols_GCJ
24067
24068 # The commands to list exported symbols.
24069 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24070
24071 # The commands to extract the exported symbol list from a shared archive.
24072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24073
24074 # Symbols that should not be listed in the preloaded symbols.
24075 exclude_expsyms=$lt_exclude_expsyms_GCJ
24076
24077 # Symbols that must always be exported.
24078 include_expsyms=$lt_include_expsyms_GCJ
24079
24080 # ### END LIBTOOL TAG CONFIG: $tagname
24081
24082 __EOF__
24083
24084
24085 else
24086   # If there is no Makefile yet, we rely on a make rule to execute
24087   # `config.status --recheck' to rerun these tests and create the
24088   # libtool script then.
24089   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24090   if test -f "$ltmain_in"; then
24091     test -f Makefile && make "$ltmain"
24092   fi
24093 fi
24094
24095
24096 ac_ext=c
24097 ac_cpp='$CPP $CPPFLAGS'
24098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24101
24102 CC="$lt_save_CC"
24103
24104         else
24105           tagname=""
24106         fi
24107         ;;
24108
24109       RC)
24110         ac_ext=c
24111 ac_cpp='$CPP $CPPFLAGS'
24112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24115
24116
24117 # Source file extension for RC test sources.
24118 ac_ext=rc
24119
24120 # Object file extension for compiled RC test sources.
24121 objext=o
24122 objext_RC=$objext
24123
24124 # Code to be used in simple compile tests
24125 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24126
24127 # Code to be used in simple link tests
24128 lt_simple_link_test_code="$lt_simple_compile_test_code"
24129
24130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24131
24132 # If no C compiler was specified, use CC.
24133 LTCC=${LTCC-"$CC"}
24134
24135 # Allow CC to be a program name with arguments.
24136 compiler=$CC
24137
24138
24139 # Allow CC to be a program name with arguments.
24140 lt_save_CC="$CC"
24141 CC=${RC-"windres"}
24142 compiler=$CC
24143 compiler_RC=$CC
24144 lt_cv_prog_compiler_c_o_RC=yes
24145
24146 # The else clause should only fire when bootstrapping the
24147 # libtool distribution, otherwise you forgot to ship ltmain.sh
24148 # with your package, and you will get complaints that there are
24149 # no rules to generate ltmain.sh.
24150 if test -f "$ltmain"; then
24151   # See if we are running on zsh, and set the options which allow our commands through
24152   # without removal of \ escapes.
24153   if test -n "${ZSH_VERSION+set}" ; then
24154     setopt NO_GLOB_SUBST
24155   fi
24156   # Now quote all the things that may contain metacharacters while being
24157   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24158   # variables and quote the copies for generation of the libtool script.
24159   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24160     SED SHELL STRIP \
24161     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24162     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24163     deplibs_check_method reload_flag reload_cmds need_locks \
24164     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24165     lt_cv_sys_global_symbol_to_c_name_address \
24166     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24167     old_postinstall_cmds old_postuninstall_cmds \
24168     compiler_RC \
24169     CC_RC \
24170     LD_RC \
24171     lt_prog_compiler_wl_RC \
24172     lt_prog_compiler_pic_RC \
24173     lt_prog_compiler_static_RC \
24174     lt_prog_compiler_no_builtin_flag_RC \
24175     export_dynamic_flag_spec_RC \
24176     thread_safe_flag_spec_RC \
24177     whole_archive_flag_spec_RC \
24178     enable_shared_with_static_runtimes_RC \
24179     old_archive_cmds_RC \
24180     old_archive_from_new_cmds_RC \
24181     predep_objects_RC \
24182     postdep_objects_RC \
24183     predeps_RC \
24184     postdeps_RC \
24185     compiler_lib_search_path_RC \
24186     archive_cmds_RC \
24187     archive_expsym_cmds_RC \
24188     postinstall_cmds_RC \
24189     postuninstall_cmds_RC \
24190     old_archive_from_expsyms_cmds_RC \
24191     allow_undefined_flag_RC \
24192     no_undefined_flag_RC \
24193     export_symbols_cmds_RC \
24194     hardcode_libdir_flag_spec_RC \
24195     hardcode_libdir_flag_spec_ld_RC \
24196     hardcode_libdir_separator_RC \
24197     hardcode_automatic_RC \
24198     module_cmds_RC \
24199     module_expsym_cmds_RC \
24200     lt_cv_prog_compiler_c_o_RC \
24201     exclude_expsyms_RC \
24202     include_expsyms_RC; do
24203
24204     case $var in
24205     old_archive_cmds_RC | \
24206     old_archive_from_new_cmds_RC | \
24207     archive_cmds_RC | \
24208     archive_expsym_cmds_RC | \
24209     module_cmds_RC | \
24210     module_expsym_cmds_RC | \
24211     old_archive_from_expsyms_cmds_RC | \
24212     export_symbols_cmds_RC | \
24213     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24214     postinstall_cmds | postuninstall_cmds | \
24215     old_postinstall_cmds | old_postuninstall_cmds | \
24216     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24217       # Double-quote double-evaled strings.
24218       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24219       ;;
24220     *)
24221       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24222       ;;
24223     esac
24224   done
24225
24226   case $lt_echo in
24227   *'\$0 --fallback-echo"')
24228     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24229     ;;
24230   esac
24231
24232 cfgfile="$ofile"
24233
24234   cat <<__EOF__ >> "$cfgfile"
24235 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24236
24237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24238
24239 # Shell to use when invoking shell scripts.
24240 SHELL=$lt_SHELL
24241
24242 # Whether or not to build shared libraries.
24243 build_libtool_libs=$enable_shared
24244
24245 # Whether or not to build static libraries.
24246 build_old_libs=$enable_static
24247
24248 # Whether or not to add -lc for building shared libraries.
24249 build_libtool_need_lc=$archive_cmds_need_lc_RC
24250
24251 # Whether or not to disallow shared libs when runtime libs are static
24252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24253
24254 # Whether or not to optimize for fast installation.
24255 fast_install=$enable_fast_install
24256
24257 # The host system.
24258 host_alias=$host_alias
24259 host=$host
24260
24261 # An echo program that does not interpret backslashes.
24262 echo=$lt_echo
24263
24264 # The archiver.
24265 AR=$lt_AR
24266 AR_FLAGS=$lt_AR_FLAGS
24267
24268 # A C compiler.
24269 LTCC=$lt_LTCC
24270
24271 # A language-specific compiler.
24272 CC=$lt_compiler_RC
24273
24274 # Is the compiler the GNU C compiler?
24275 with_gcc=$GCC_RC
24276
24277 # An ERE matcher.
24278 EGREP=$lt_EGREP
24279
24280 # The linker used to build libraries.
24281 LD=$lt_LD_RC
24282
24283 # Whether we need hard or soft links.
24284 LN_S=$lt_LN_S
24285
24286 # A BSD-compatible nm program.
24287 NM=$lt_NM
24288
24289 # A symbol stripping program
24290 STRIP=$lt_STRIP
24291
24292 # Used to examine libraries when file_magic_cmd begins "file"
24293 MAGIC_CMD=$MAGIC_CMD
24294
24295 # Used on cygwin: DLL creation program.
24296 DLLTOOL="$DLLTOOL"
24297
24298 # Used on cygwin: object dumper.
24299 OBJDUMP="$OBJDUMP"
24300
24301 # Used on cygwin: assembler.
24302 AS="$AS"
24303
24304 # The name of the directory that contains temporary libtool files.
24305 objdir=$objdir
24306
24307 # How to create reloadable object files.
24308 reload_flag=$lt_reload_flag
24309 reload_cmds=$lt_reload_cmds
24310
24311 # How to pass a linker flag through the compiler.
24312 wl=$lt_lt_prog_compiler_wl_RC
24313
24314 # Object file suffix (normally "o").
24315 objext="$ac_objext"
24316
24317 # Old archive suffix (normally "a").
24318 libext="$libext"
24319
24320 # Shared library suffix (normally ".so").
24321 shrext_cmds='$shrext_cmds'
24322
24323 # Executable file suffix (normally "").
24324 exeext="$exeext"
24325
24326 # Additional compiler flags for building library objects.
24327 pic_flag=$lt_lt_prog_compiler_pic_RC
24328 pic_mode=$pic_mode
24329
24330 # What is the maximum length of a command?
24331 max_cmd_len=$lt_cv_sys_max_cmd_len
24332
24333 # Does compiler simultaneously support -c and -o options?
24334 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24335
24336 # Must we lock files when doing compilation ?
24337 need_locks=$lt_need_locks
24338
24339 # Do we need the lib prefix for modules?
24340 need_lib_prefix=$need_lib_prefix
24341
24342 # Do we need a version for libraries?
24343 need_version=$need_version
24344
24345 # Whether dlopen is supported.
24346 dlopen_support=$enable_dlopen
24347
24348 # Whether dlopen of programs is supported.
24349 dlopen_self=$enable_dlopen_self
24350
24351 # Whether dlopen of statically linked programs is supported.
24352 dlopen_self_static=$enable_dlopen_self_static
24353
24354 # Compiler flag to prevent dynamic linking.
24355 link_static_flag=$lt_lt_prog_compiler_static_RC
24356
24357 # Compiler flag to turn off builtin functions.
24358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24359
24360 # Compiler flag to allow reflexive dlopens.
24361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24362
24363 # Compiler flag to generate shared objects directly from archives.
24364 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24365
24366 # Compiler flag to generate thread-safe objects.
24367 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24368
24369 # Library versioning type.
24370 version_type=$version_type
24371
24372 # Format of library name prefix.
24373 libname_spec=$lt_libname_spec
24374
24375 # List of archive names.  First name is the real one, the rest are links.
24376 # The last name is the one that the linker finds with -lNAME.
24377 library_names_spec=$lt_library_names_spec
24378
24379 # The coded name of the library, if different from the real name.
24380 soname_spec=$lt_soname_spec
24381
24382 # Commands used to build and install an old-style archive.
24383 RANLIB=$lt_RANLIB
24384 old_archive_cmds=$lt_old_archive_cmds_RC
24385 old_postinstall_cmds=$lt_old_postinstall_cmds
24386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24387
24388 # Create an old-style archive from a shared archive.
24389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24390
24391 # Create a temporary old-style archive to link instead of a shared archive.
24392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24393
24394 # Commands used to build and install a shared archive.
24395 archive_cmds=$lt_archive_cmds_RC
24396 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24397 postinstall_cmds=$lt_postinstall_cmds
24398 postuninstall_cmds=$lt_postuninstall_cmds
24399
24400 # Commands used to build a loadable module (assumed same as above if empty)
24401 module_cmds=$lt_module_cmds_RC
24402 module_expsym_cmds=$lt_module_expsym_cmds_RC
24403
24404 # Commands to strip libraries.
24405 old_striplib=$lt_old_striplib
24406 striplib=$lt_striplib
24407
24408 # Dependencies to place before the objects being linked to create a
24409 # shared library.
24410 predep_objects=$lt_predep_objects_RC
24411
24412 # Dependencies to place after the objects being linked to create a
24413 # shared library.
24414 postdep_objects=$lt_postdep_objects_RC
24415
24416 # Dependencies to place before the objects being linked to create a
24417 # shared library.
24418 predeps=$lt_predeps_RC
24419
24420 # Dependencies to place after the objects being linked to create a
24421 # shared library.
24422 postdeps=$lt_postdeps_RC
24423
24424 # The library search path used internally by the compiler when linking
24425 # a shared library.
24426 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24427
24428 # Method to check whether dependent libraries are shared objects.
24429 deplibs_check_method=$lt_deplibs_check_method
24430
24431 # Command to use when deplibs_check_method == file_magic.
24432 file_magic_cmd=$lt_file_magic_cmd
24433
24434 # Flag that allows shared libraries with undefined symbols to be built.
24435 allow_undefined_flag=$lt_allow_undefined_flag_RC
24436
24437 # Flag that forces no undefined symbols.
24438 no_undefined_flag=$lt_no_undefined_flag_RC
24439
24440 # Commands used to finish a libtool library installation in a directory.
24441 finish_cmds=$lt_finish_cmds
24442
24443 # Same as above, but a single script fragment to be evaled but not shown.
24444 finish_eval=$lt_finish_eval
24445
24446 # Take the output of nm and produce a listing of raw symbols and C names.
24447 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24448
24449 # Transform the output of nm in a proper C declaration
24450 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24451
24452 # Transform the output of nm in a C name address pair
24453 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24454
24455 # This is the shared library runtime path variable.
24456 runpath_var=$runpath_var
24457
24458 # This is the shared library path variable.
24459 shlibpath_var=$shlibpath_var
24460
24461 # Is shlibpath searched before the hard-coded library search path?
24462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24463
24464 # How to hardcode a shared library path into an executable.
24465 hardcode_action=$hardcode_action_RC
24466
24467 # Whether we should hardcode library paths into libraries.
24468 hardcode_into_libs=$hardcode_into_libs
24469
24470 # Flag to hardcode \$libdir into a binary during linking.
24471 # This must work even if \$libdir does not exist.
24472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24473
24474 # If ld is used when linking, flag to hardcode \$libdir into
24475 # a binary during linking. This must work even if \$libdir does
24476 # not exist.
24477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24478
24479 # Whether we need a single -rpath flag with a separated argument.
24480 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24481
24482 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24483 # resulting binary.
24484 hardcode_direct=$hardcode_direct_RC
24485
24486 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24487 # resulting binary.
24488 hardcode_minus_L=$hardcode_minus_L_RC
24489
24490 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24491 # the resulting binary.
24492 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24493
24494 # Set to yes if building a shared library automatically hardcodes DIR into the library
24495 # and all subsequent libraries and executables linked against it.
24496 hardcode_automatic=$hardcode_automatic_RC
24497
24498 # Variables whose values should be saved in libtool wrapper scripts and
24499 # restored at relink time.
24500 variables_saved_for_relink="$variables_saved_for_relink"
24501
24502 # Whether libtool must link a program against all its dependency libraries.
24503 link_all_deplibs=$link_all_deplibs_RC
24504
24505 # Compile-time system search path for libraries
24506 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24507
24508 # Run-time system search path for libraries
24509 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24510
24511 # Fix the shell variable \$srcfile for the compiler.
24512 fix_srcfile_path="$fix_srcfile_path_RC"
24513
24514 # Set to yes if exported symbols are required.
24515 always_export_symbols=$always_export_symbols_RC
24516
24517 # The commands to list exported symbols.
24518 export_symbols_cmds=$lt_export_symbols_cmds_RC
24519
24520 # The commands to extract the exported symbol list from a shared archive.
24521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24522
24523 # Symbols that should not be listed in the preloaded symbols.
24524 exclude_expsyms=$lt_exclude_expsyms_RC
24525
24526 # Symbols that must always be exported.
24527 include_expsyms=$lt_include_expsyms_RC
24528
24529 # ### END LIBTOOL TAG CONFIG: $tagname
24530
24531 __EOF__
24532
24533
24534 else
24535   # If there is no Makefile yet, we rely on a make rule to execute
24536   # `config.status --recheck' to rerun these tests and create the
24537   # libtool script then.
24538   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24539   if test -f "$ltmain_in"; then
24540     test -f Makefile && make "$ltmain"
24541   fi
24542 fi
24543
24544
24545 ac_ext=c
24546 ac_cpp='$CPP $CPPFLAGS'
24547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24550
24551 CC="$lt_save_CC"
24552
24553         ;;
24554
24555       *)
24556         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24557 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24558    { (exit 1); exit 1; }; }
24559         ;;
24560       esac
24561
24562       # Append the new tag name to the list of available tags.
24563       if test -n "$tagname" ; then
24564       available_tags="$available_tags $tagname"
24565     fi
24566     fi
24567   done
24568   IFS="$lt_save_ifs"
24569
24570   # Now substitute the updated list of available tags.
24571   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24572     mv "${ofile}T" "$ofile"
24573     chmod +x "$ofile"
24574   else
24575     rm -f "${ofile}T"
24576     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24577 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24578    { (exit 1); exit 1; }; }
24579   fi
24580 fi
24581
24582
24583
24584 # This can be used to rebuild libtool when needed
24585 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24586
24587 # Always use our own libtool.
24588 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24589
24590 # Prevent multiple expansion
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612 if test "$lt_cv_dlopen_self" = "yes" ; then
24613
24614 cat >>confdefs.h <<\_ACEOF
24615 #define CAN_DLOPEN_SELF 1
24616 _ACEOF
24617
24618 fi
24619
24620 etags_version=`$ETAGS --version 2>&1`
24621 case "$etags_version" in
24622         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24623         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24624         *) ETAGSFLAGS="" ;;
24625 esac
24626 ETAGSFLAGS=$ETAGSFLAGS
24627
24628
24629 if test "$WITH_LLVMGCCDIR" = "default" ; then
24630   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24631 set dummy llvm-gcc; ac_word=$2
24632 echo "$as_me:$LINENO: checking for $ac_word" >&5
24633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24634 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24635   echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637   case $LLVMGCC in
24638   [\\/]* | ?:[\\/]*)
24639   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24640   ;;
24641   *)
24642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24643 for as_dir in $PATH
24644 do
24645   IFS=$as_save_IFS
24646   test -z "$as_dir" && as_dir=.
24647   for ac_exec_ext in '' $ac_executable_extensions; do
24648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24649     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24651     break 2
24652   fi
24653 done
24654 done
24655
24656   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24657   ;;
24658 esac
24659 fi
24660 LLVMGCC=$ac_cv_path_LLVMGCC
24661
24662 if test -n "$LLVMGCC"; then
24663   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24664 echo "${ECHO_T}$LLVMGCC" >&6
24665 else
24666   echo "$as_me:$LINENO: result: no" >&5
24667 echo "${ECHO_T}no" >&6
24668 fi
24669
24670   # Extract the first word of "llvm-g++", so it can be a program name with args.
24671 set dummy llvm-g++; ac_word=$2
24672 echo "$as_me:$LINENO: checking for $ac_word" >&5
24673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24674 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24675   echo $ECHO_N "(cached) $ECHO_C" >&6
24676 else
24677   case $LLVMGXX in
24678   [\\/]* | ?:[\\/]*)
24679   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24680   ;;
24681   *)
24682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24683 for as_dir in $PATH
24684 do
24685   IFS=$as_save_IFS
24686   test -z "$as_dir" && as_dir=.
24687   for ac_exec_ext in '' $ac_executable_extensions; do
24688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24689     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24691     break 2
24692   fi
24693 done
24694 done
24695
24696   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24697   ;;
24698 esac
24699 fi
24700 LLVMGXX=$ac_cv_path_LLVMGXX
24701
24702 if test -n "$LLVMGXX"; then
24703   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24704 echo "${ECHO_T}$LLVMGXX" >&6
24705 else
24706   echo "$as_me:$LINENO: result: no" >&5
24707 echo "${ECHO_T}no" >&6
24708 fi
24709
24710 else
24711   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24712   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24713   LLVMGCC=$LLVMGCC
24714
24715   LLVMGXX=$LLVMGXX
24716
24717 fi
24718
24719 echo "$as_me:$LINENO: checking tool compatibility" >&5
24720 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24721
24722 ICC=no
24723 IXX=no
24724 case $CC in
24725   icc*|icpc*)
24726     ICC=yes
24727     IXX=yes
24728     ;;
24729    *)
24730     ;;
24731 esac
24732
24733 if test "$GCC" != "yes" && test "$ICC" != "yes"
24734 then
24735   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24736 echo "$as_me: error: gcc|icc required but not found" >&2;}
24737    { (exit 1); exit 1; }; }
24738 fi
24739
24740 if test "$GXX" != "yes" && test "$IXX" != "yes"
24741 then
24742   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24743 echo "$as_me: error: g++|icc required but not found" >&2;}
24744    { (exit 1); exit 1; }; }
24745 fi
24746
24747 if test "$GCC" = "yes"
24748 then
24749   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24750   if test "$gccmajor" -lt "3"
24751   then
24752     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24753 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24754    { (exit 1); exit 1; }; }
24755   fi
24756 fi
24757
24758 if test -z "$llvm_cv_gnu_make_command"
24759 then
24760   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24761 echo "$as_me: error: GNU Make required but not found" >&2;}
24762    { (exit 1); exit 1; }; }
24763 fi
24764
24765 echo "$as_me:$LINENO: result: ok" >&5
24766 echo "${ECHO_T}ok" >&6
24767
24768
24769
24770 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24771 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24772 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24773   echo $ECHO_N "(cached) $ECHO_C" >&6
24774 else
24775   ac_check_lib_save_LIBS=$LIBS
24776 LIBS="-lelf  $LIBS"
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783
24784 /* Override any gcc2 internal prototype to avoid an error.  */
24785 #ifdef __cplusplus
24786 extern "C"
24787 #endif
24788 /* We use char because int might match the return type of a gcc2
24789    builtin and then its argument prototype would still apply.  */
24790 char elf_begin ();
24791 int
24792 main ()
24793 {
24794 elf_begin ();
24795   ;
24796   return 0;
24797 }
24798 _ACEOF
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24801   (eval $ac_link) 2>conftest.er1
24802   ac_status=$?
24803   grep -v '^ *+' conftest.er1 >conftest.err
24804   rm -f conftest.er1
24805   cat conftest.err >&5
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); } &&
24808          { ac_try='test -z "$ac_c_werror_flag"
24809                          || test ! -s conftest.err'
24810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811   (eval $ac_try) 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; } &&
24815          { ac_try='test -s conftest$ac_exeext'
24816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817   (eval $ac_try) 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; }; then
24821   ac_cv_lib_elf_elf_begin=yes
24822 else
24823   echo "$as_me: failed program was:" >&5
24824 sed 's/^/| /' conftest.$ac_ext >&5
24825
24826 ac_cv_lib_elf_elf_begin=no
24827 fi
24828 rm -f conftest.err conftest.$ac_objext \
24829       conftest$ac_exeext conftest.$ac_ext
24830 LIBS=$ac_check_lib_save_LIBS
24831 fi
24832 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24833 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24834 if test $ac_cv_lib_elf_elf_begin = yes; then
24835   cat >>confdefs.h <<_ACEOF
24836 #define HAVE_LIBELF 1
24837 _ACEOF
24838
24839   LIBS="-lelf $LIBS"
24840
24841 fi
24842
24843
24844 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24845 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24846 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24847   echo $ECHO_N "(cached) $ECHO_C" >&6
24848 else
24849   ac_func_search_save_LIBS=$LIBS
24850 ac_cv_search_lt_dlopen=no
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857
24858 /* Override any gcc2 internal prototype to avoid an error.  */
24859 #ifdef __cplusplus
24860 extern "C"
24861 #endif
24862 /* We use char because int might match the return type of a gcc2
24863    builtin and then its argument prototype would still apply.  */
24864 char lt_dlopen ();
24865 int
24866 main ()
24867 {
24868 lt_dlopen ();
24869   ;
24870   return 0;
24871 }
24872 _ACEOF
24873 rm -f conftest.$ac_objext conftest$ac_exeext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24875   (eval $ac_link) 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -z "$ac_c_werror_flag"
24883                          || test ! -s conftest.err'
24884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885   (eval $ac_try) 2>&5
24886   ac_status=$?
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); }; } &&
24889          { ac_try='test -s conftest$ac_exeext'
24890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; }; then
24895   ac_cv_search_lt_dlopen="none required"
24896 else
24897   echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900 fi
24901 rm -f conftest.err conftest.$ac_objext \
24902       conftest$ac_exeext conftest.$ac_ext
24903 if test "$ac_cv_search_lt_dlopen" = no; then
24904   for ac_lib in ltdl; do
24905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24906     cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h.  */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h.  */
24912
24913 /* Override any gcc2 internal prototype to avoid an error.  */
24914 #ifdef __cplusplus
24915 extern "C"
24916 #endif
24917 /* We use char because int might match the return type of a gcc2
24918    builtin and then its argument prototype would still apply.  */
24919 char lt_dlopen ();
24920 int
24921 main ()
24922 {
24923 lt_dlopen ();
24924   ;
24925   return 0;
24926 }
24927 _ACEOF
24928 rm -f conftest.$ac_objext conftest$ac_exeext
24929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24930   (eval $ac_link) 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } &&
24937          { ac_try='test -z "$ac_c_werror_flag"
24938                          || test ! -s conftest.err'
24939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940   (eval $ac_try) 2>&5
24941   ac_status=$?
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); }; } &&
24944          { ac_try='test -s conftest$ac_exeext'
24945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946   (eval $ac_try) 2>&5
24947   ac_status=$?
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); }; }; then
24950   ac_cv_search_lt_dlopen="-l$ac_lib"
24951 break
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956 fi
24957 rm -f conftest.err conftest.$ac_objext \
24958       conftest$ac_exeext conftest.$ac_ext
24959   done
24960 fi
24961 LIBS=$ac_func_search_save_LIBS
24962 fi
24963 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24964 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24965 if test "$ac_cv_search_lt_dlopen" != no; then
24966   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24967
24968 cat >>confdefs.h <<\_ACEOF
24969 #define HAVE_LT_DLOPEN 1
24970 _ACEOF
24971
24972 else
24973   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24974                            not be available" >&5
24975 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24976                            not be available" >&2;}
24977 fi
24978
24979
24980 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24981 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24982 if test "${ac_cv_search_dlopen+set}" = set; then
24983   echo $ECHO_N "(cached) $ECHO_C" >&6
24984 else
24985   ac_func_search_save_LIBS=$LIBS
24986 ac_cv_search_dlopen=no
24987 cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993
24994 /* Override any gcc2 internal prototype to avoid an error.  */
24995 #ifdef __cplusplus
24996 extern "C"
24997 #endif
24998 /* We use char because int might match the return type of a gcc2
24999    builtin and then its argument prototype would still apply.  */
25000 char dlopen ();
25001 int
25002 main ()
25003 {
25004 dlopen ();
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011   (eval $ac_link) 2>conftest.er1
25012   ac_status=$?
25013   grep -v '^ *+' conftest.er1 >conftest.err
25014   rm -f conftest.er1
25015   cat conftest.err >&5
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); } &&
25018          { ac_try='test -z "$ac_c_werror_flag"
25019                          || test ! -s conftest.err'
25020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021   (eval $ac_try) 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest$ac_exeext'
25026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027   (eval $ac_try) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); }; }; then
25031   ac_cv_search_dlopen="none required"
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036 fi
25037 rm -f conftest.err conftest.$ac_objext \
25038       conftest$ac_exeext conftest.$ac_ext
25039 if test "$ac_cv_search_dlopen" = no; then
25040   for ac_lib in dl; do
25041     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25042     cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048
25049 /* Override any gcc2 internal prototype to avoid an error.  */
25050 #ifdef __cplusplus
25051 extern "C"
25052 #endif
25053 /* We use char because int might match the return type of a gcc2
25054    builtin and then its argument prototype would still apply.  */
25055 char dlopen ();
25056 int
25057 main ()
25058 {
25059 dlopen ();
25060   ;
25061   return 0;
25062 }
25063 _ACEOF
25064 rm -f conftest.$ac_objext conftest$ac_exeext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25066   (eval $ac_link) 2>conftest.er1
25067   ac_status=$?
25068   grep -v '^ *+' conftest.er1 >conftest.err
25069   rm -f conftest.er1
25070   cat conftest.err >&5
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); } &&
25073          { ac_try='test -z "$ac_c_werror_flag"
25074                          || test ! -s conftest.err'
25075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076   (eval $ac_try) 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); }; } &&
25080          { ac_try='test -s conftest$ac_exeext'
25081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082   (eval $ac_try) 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); }; }; then
25086   ac_cv_search_dlopen="-l$ac_lib"
25087 break
25088 else
25089   echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25091
25092 fi
25093 rm -f conftest.err conftest.$ac_objext \
25094       conftest$ac_exeext conftest.$ac_ext
25095   done
25096 fi
25097 LIBS=$ac_func_search_save_LIBS
25098 fi
25099 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25100 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25101 if test "$ac_cv_search_dlopen" != no; then
25102   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25103
25104 cat >>confdefs.h <<\_ACEOF
25105 #define HAVE_DLOPEN 1
25106 _ACEOF
25107
25108 else
25109   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25110 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25111 fi
25112
25113
25114 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25115 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25116 if test "${ac_cv_search_mallinfo+set}" = set; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   ac_func_search_save_LIBS=$LIBS
25120 ac_cv_search_mallinfo=no
25121 cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h.  */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h.  */
25127
25128 /* Override any gcc2 internal prototype to avoid an error.  */
25129 #ifdef __cplusplus
25130 extern "C"
25131 #endif
25132 /* We use char because int might match the return type of a gcc2
25133    builtin and then its argument prototype would still apply.  */
25134 char mallinfo ();
25135 int
25136 main ()
25137 {
25138 mallinfo ();
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 rm -f conftest.$ac_objext conftest$ac_exeext
25144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25145   (eval $ac_link) 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } &&
25152          { ac_try='test -z "$ac_c_werror_flag"
25153                          || test ! -s conftest.err'
25154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155   (eval $ac_try) 2>&5
25156   ac_status=$?
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); }; } &&
25159          { ac_try='test -s conftest$ac_exeext'
25160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161   (eval $ac_try) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); }; }; then
25165   ac_cv_search_mallinfo="none required"
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170 fi
25171 rm -f conftest.err conftest.$ac_objext \
25172       conftest$ac_exeext conftest.$ac_ext
25173 if test "$ac_cv_search_mallinfo" = no; then
25174   for ac_lib in malloc; do
25175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25176     cat >conftest.$ac_ext <<_ACEOF
25177 /* confdefs.h.  */
25178 _ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h.  */
25182
25183 /* Override any gcc2 internal prototype to avoid an error.  */
25184 #ifdef __cplusplus
25185 extern "C"
25186 #endif
25187 /* We use char because int might match the return type of a gcc2
25188    builtin and then its argument prototype would still apply.  */
25189 char mallinfo ();
25190 int
25191 main ()
25192 {
25193 mallinfo ();
25194   ;
25195   return 0;
25196 }
25197 _ACEOF
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25200   (eval $ac_link) 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } &&
25207          { ac_try='test -z "$ac_c_werror_flag"
25208                          || test ! -s conftest.err'
25209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210   (eval $ac_try) 2>&5
25211   ac_status=$?
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); }; } &&
25214          { ac_try='test -s conftest$ac_exeext'
25215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; }; then
25220   ac_cv_search_mallinfo="-l$ac_lib"
25221 break
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 fi
25227 rm -f conftest.err conftest.$ac_objext \
25228       conftest$ac_exeext conftest.$ac_ext
25229   done
25230 fi
25231 LIBS=$ac_func_search_save_LIBS
25232 fi
25233 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25234 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25235 if test "$ac_cv_search_mallinfo" != no; then
25236   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25237
25238 cat >>confdefs.h <<\_ACEOF
25239 #define HAVE_MALLINFO 1
25240 _ACEOF
25241
25242 fi
25243
25244
25245 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25246 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25247 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250   ac_func_search_save_LIBS=$LIBS
25251 ac_cv_search_pthread_mutex_lock=no
25252 cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258
25259 /* Override any gcc2 internal prototype to avoid an error.  */
25260 #ifdef __cplusplus
25261 extern "C"
25262 #endif
25263 /* We use char because int might match the return type of a gcc2
25264    builtin and then its argument prototype would still apply.  */
25265 char pthread_mutex_lock ();
25266 int
25267 main ()
25268 {
25269 pthread_mutex_lock ();
25270   ;
25271   return 0;
25272 }
25273 _ACEOF
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25276   (eval $ac_link) 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } &&
25283          { ac_try='test -z "$ac_c_werror_flag"
25284                          || test ! -s conftest.err'
25285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; } &&
25290          { ac_try='test -s conftest$ac_exeext'
25291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292   (eval $ac_try) 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; }; then
25296   ac_cv_search_pthread_mutex_lock="none required"
25297 else
25298   echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301 fi
25302 rm -f conftest.err conftest.$ac_objext \
25303       conftest$ac_exeext conftest.$ac_ext
25304 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25305   for ac_lib in pthread; do
25306     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25307     cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313
25314 /* Override any gcc2 internal prototype to avoid an error.  */
25315 #ifdef __cplusplus
25316 extern "C"
25317 #endif
25318 /* We use char because int might match the return type of a gcc2
25319    builtin and then its argument prototype would still apply.  */
25320 char pthread_mutex_lock ();
25321 int
25322 main ()
25323 {
25324 pthread_mutex_lock ();
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25331   (eval $ac_link) 2>conftest.er1
25332   ac_status=$?
25333   grep -v '^ *+' conftest.er1 >conftest.err
25334   rm -f conftest.er1
25335   cat conftest.err >&5
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); } &&
25338          { ac_try='test -z "$ac_c_werror_flag"
25339                          || test ! -s conftest.err'
25340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341   (eval $ac_try) 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); }; } &&
25345          { ac_try='test -s conftest$ac_exeext'
25346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347   (eval $ac_try) 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); }; }; then
25351   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25352 break
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357 fi
25358 rm -f conftest.err conftest.$ac_objext \
25359       conftest$ac_exeext conftest.$ac_ext
25360   done
25361 fi
25362 LIBS=$ac_func_search_save_LIBS
25363 fi
25364 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25365 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25366 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25367   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25368
25369 cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_PTHREAD_MUTEX_LOCK 1
25371 _ACEOF
25372
25373 fi
25374
25375
25376
25377
25378
25379
25380
25381
25382 ac_header_dirent=no
25383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25384   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25388   echo $ECHO_N "(cached) $ECHO_C" >&6
25389 else
25390   cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396 #include <sys/types.h>
25397 #include <$ac_hdr>
25398
25399 int
25400 main ()
25401 {
25402 if ((DIR *) 0)
25403 return 0;
25404   ;
25405   return 0;
25406 }
25407 _ACEOF
25408 rm -f conftest.$ac_objext
25409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25410   (eval $ac_compile) 2>conftest.er1
25411   ac_status=$?
25412   grep -v '^ *+' conftest.er1 >conftest.err
25413   rm -f conftest.er1
25414   cat conftest.err >&5
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); } &&
25417          { ac_try='test -z "$ac_c_werror_flag"
25418                          || test ! -s conftest.err'
25419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420   (eval $ac_try) 2>&5
25421   ac_status=$?
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); }; } &&
25424          { ac_try='test -s conftest.$ac_objext'
25425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426   (eval $ac_try) 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); }; }; then
25430   eval "$as_ac_Header=yes"
25431 else
25432   echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25434
25435 eval "$as_ac_Header=no"
25436 fi
25437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25438 fi
25439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442   cat >>confdefs.h <<_ACEOF
25443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25444 _ACEOF
25445
25446 ac_header_dirent=$ac_hdr; break
25447 fi
25448
25449 done
25450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25451 if test $ac_header_dirent = dirent.h; then
25452   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25454 if test "${ac_cv_search_opendir+set}" = set; then
25455   echo $ECHO_N "(cached) $ECHO_C" >&6
25456 else
25457   ac_func_search_save_LIBS=$LIBS
25458 ac_cv_search_opendir=no
25459 cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465
25466 /* Override any gcc2 internal prototype to avoid an error.  */
25467 #ifdef __cplusplus
25468 extern "C"
25469 #endif
25470 /* We use char because int might match the return type of a gcc2
25471    builtin and then its argument prototype would still apply.  */
25472 char opendir ();
25473 int
25474 main ()
25475 {
25476 opendir ();
25477   ;
25478   return 0;
25479 }
25480 _ACEOF
25481 rm -f conftest.$ac_objext conftest$ac_exeext
25482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25483   (eval $ac_link) 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } &&
25490          { ac_try='test -z "$ac_c_werror_flag"
25491                          || test ! -s conftest.err'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; } &&
25497          { ac_try='test -s conftest$ac_exeext'
25498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499   (eval $ac_try) 2>&5
25500   ac_status=$?
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); }; }; then
25503   ac_cv_search_opendir="none required"
25504 else
25505   echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508 fi
25509 rm -f conftest.err conftest.$ac_objext \
25510       conftest$ac_exeext conftest.$ac_ext
25511 if test "$ac_cv_search_opendir" = no; then
25512   for ac_lib in dir; do
25513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25514     cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520
25521 /* Override any gcc2 internal prototype to avoid an error.  */
25522 #ifdef __cplusplus
25523 extern "C"
25524 #endif
25525 /* We use char because int might match the return type of a gcc2
25526    builtin and then its argument prototype would still apply.  */
25527 char opendir ();
25528 int
25529 main ()
25530 {
25531 opendir ();
25532   ;
25533   return 0;
25534 }
25535 _ACEOF
25536 rm -f conftest.$ac_objext conftest$ac_exeext
25537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25538   (eval $ac_link) 2>conftest.er1
25539   ac_status=$?
25540   grep -v '^ *+' conftest.er1 >conftest.err
25541   rm -f conftest.er1
25542   cat conftest.err >&5
25543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544   (exit $ac_status); } &&
25545          { ac_try='test -z "$ac_c_werror_flag"
25546                          || test ! -s conftest.err'
25547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548   (eval $ac_try) 2>&5
25549   ac_status=$?
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); }; } &&
25552          { ac_try='test -s conftest$ac_exeext'
25553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554   (eval $ac_try) 2>&5
25555   ac_status=$?
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); }; }; then
25558   ac_cv_search_opendir="-l$ac_lib"
25559 break
25560 else
25561   echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25563
25564 fi
25565 rm -f conftest.err conftest.$ac_objext \
25566       conftest$ac_exeext conftest.$ac_ext
25567   done
25568 fi
25569 LIBS=$ac_func_search_save_LIBS
25570 fi
25571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25573 if test "$ac_cv_search_opendir" != no; then
25574   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25575
25576 fi
25577
25578 else
25579   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25581 if test "${ac_cv_search_opendir+set}" = set; then
25582   echo $ECHO_N "(cached) $ECHO_C" >&6
25583 else
25584   ac_func_search_save_LIBS=$LIBS
25585 ac_cv_search_opendir=no
25586 cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h.  */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h.  */
25592
25593 /* Override any gcc2 internal prototype to avoid an error.  */
25594 #ifdef __cplusplus
25595 extern "C"
25596 #endif
25597 /* We use char because int might match the return type of a gcc2
25598    builtin and then its argument prototype would still apply.  */
25599 char opendir ();
25600 int
25601 main ()
25602 {
25603 opendir ();
25604   ;
25605   return 0;
25606 }
25607 _ACEOF
25608 rm -f conftest.$ac_objext conftest$ac_exeext
25609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25610   (eval $ac_link) 2>conftest.er1
25611   ac_status=$?
25612   grep -v '^ *+' conftest.er1 >conftest.err
25613   rm -f conftest.er1
25614   cat conftest.err >&5
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); } &&
25617          { ac_try='test -z "$ac_c_werror_flag"
25618                          || test ! -s conftest.err'
25619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620   (eval $ac_try) 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; } &&
25624          { ac_try='test -s conftest$ac_exeext'
25625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626   (eval $ac_try) 2>&5
25627   ac_status=$?
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); }; }; then
25630   ac_cv_search_opendir="none required"
25631 else
25632   echo "$as_me: failed program was:" >&5
25633 sed 's/^/| /' conftest.$ac_ext >&5
25634
25635 fi
25636 rm -f conftest.err conftest.$ac_objext \
25637       conftest$ac_exeext conftest.$ac_ext
25638 if test "$ac_cv_search_opendir" = no; then
25639   for ac_lib in x; do
25640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25641     cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647
25648 /* Override any gcc2 internal prototype to avoid an error.  */
25649 #ifdef __cplusplus
25650 extern "C"
25651 #endif
25652 /* We use char because int might match the return type of a gcc2
25653    builtin and then its argument prototype would still apply.  */
25654 char opendir ();
25655 int
25656 main ()
25657 {
25658 opendir ();
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 rm -f conftest.$ac_objext conftest$ac_exeext
25664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25665   (eval $ac_link) 2>conftest.er1
25666   ac_status=$?
25667   grep -v '^ *+' conftest.er1 >conftest.err
25668   rm -f conftest.er1
25669   cat conftest.err >&5
25670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); } &&
25672          { ac_try='test -z "$ac_c_werror_flag"
25673                          || test ! -s conftest.err'
25674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675   (eval $ac_try) 2>&5
25676   ac_status=$?
25677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678   (exit $ac_status); }; } &&
25679          { ac_try='test -s conftest$ac_exeext'
25680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681   (eval $ac_try) 2>&5
25682   ac_status=$?
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; }; then
25685   ac_cv_search_opendir="-l$ac_lib"
25686 break
25687 else
25688   echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25690
25691 fi
25692 rm -f conftest.err conftest.$ac_objext \
25693       conftest$ac_exeext conftest.$ac_ext
25694   done
25695 fi
25696 LIBS=$ac_func_search_save_LIBS
25697 fi
25698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25700 if test "$ac_cv_search_opendir" != no; then
25701   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25702
25703 fi
25704
25705 fi
25706
25707 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25708 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25709 if test "${ac_cv_header_mmap_anon+set}" = set; then
25710   echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712    ac_ext=c
25713 ac_cpp='$CPP $CPPFLAGS'
25714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25717
25718   cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724 #include <sys/mman.h>
25725 #include <unistd.h>
25726 #include <fcntl.h>
25727 int
25728 main ()
25729 {
25730 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25731   ;
25732   return 0;
25733 }
25734 _ACEOF
25735 rm -f conftest.$ac_objext
25736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25737   (eval $ac_compile) 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } &&
25744          { ac_try='test -z "$ac_c_werror_flag"
25745                          || test ! -s conftest.err'
25746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747   (eval $ac_try) 2>&5
25748   ac_status=$?
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); }; } &&
25751          { ac_try='test -s conftest.$ac_objext'
25752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); }; }; then
25757   ac_cv_header_mmap_anon=yes
25758 else
25759   echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762 ac_cv_header_mmap_anon=no
25763 fi
25764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25765   ac_ext=c
25766 ac_cpp='$CPP $CPPFLAGS'
25767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25770
25771
25772 fi
25773 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25774 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25775 if test "$ac_cv_header_mmap_anon" = yes; then
25776
25777 cat >>confdefs.h <<\_ACEOF
25778 #define HAVE_MMAP_ANONYMOUS 1
25779 _ACEOF
25780
25781 fi
25782
25783 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25784 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25785 if test "${ac_cv_header_stat_broken+set}" = set; then
25786   echo $ECHO_N "(cached) $ECHO_C" >&6
25787 else
25788   cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h.  */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h.  */
25794 #include <sys/types.h>
25795 #include <sys/stat.h>
25796
25797 #if defined(S_ISBLK) && defined(S_IFDIR)
25798 # if S_ISBLK (S_IFDIR)
25799 You lose.
25800 # endif
25801 #endif
25802
25803 #if defined(S_ISBLK) && defined(S_IFCHR)
25804 # if S_ISBLK (S_IFCHR)
25805 You lose.
25806 # endif
25807 #endif
25808
25809 #if defined(S_ISLNK) && defined(S_IFREG)
25810 # if S_ISLNK (S_IFREG)
25811 You lose.
25812 # endif
25813 #endif
25814
25815 #if defined(S_ISSOCK) && defined(S_IFREG)
25816 # if S_ISSOCK (S_IFREG)
25817 You lose.
25818 # endif
25819 #endif
25820
25821 _ACEOF
25822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25823   $EGREP "You lose" >/dev/null 2>&1; then
25824   ac_cv_header_stat_broken=yes
25825 else
25826   ac_cv_header_stat_broken=no
25827 fi
25828 rm -f conftest*
25829
25830 fi
25831 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25832 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25833 if test $ac_cv_header_stat_broken = yes; then
25834
25835 cat >>confdefs.h <<\_ACEOF
25836 #define STAT_MACROS_BROKEN 1
25837 _ACEOF
25838
25839 fi
25840
25841 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25843 if test "${ac_cv_header_stdc+set}" = set; then
25844   echo $ECHO_N "(cached) $ECHO_C" >&6
25845 else
25846   cat >conftest.$ac_ext <<_ACEOF
25847 /* confdefs.h.  */
25848 _ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h.  */
25852 #include <stdlib.h>
25853 #include <stdarg.h>
25854 #include <string.h>
25855 #include <float.h>
25856
25857 int
25858 main ()
25859 {
25860
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext
25866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25867   (eval $ac_compile) 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } &&
25874          { ac_try='test -z "$ac_c_werror_flag"
25875                          || test ! -s conftest.err'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; } &&
25881          { ac_try='test -s conftest.$ac_objext'
25882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883   (eval $ac_try) 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); }; }; then
25887   ac_cv_header_stdc=yes
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892 ac_cv_header_stdc=no
25893 fi
25894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25895
25896 if test $ac_cv_header_stdc = yes; then
25897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25898   cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 #include <string.h>
25905
25906 _ACEOF
25907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25908   $EGREP "memchr" >/dev/null 2>&1; then
25909   :
25910 else
25911   ac_cv_header_stdc=no
25912 fi
25913 rm -f conftest*
25914
25915 fi
25916
25917 if test $ac_cv_header_stdc = yes; then
25918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25919   cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925 #include <stdlib.h>
25926
25927 _ACEOF
25928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25929   $EGREP "free" >/dev/null 2>&1; then
25930   :
25931 else
25932   ac_cv_header_stdc=no
25933 fi
25934 rm -f conftest*
25935
25936 fi
25937
25938 if test $ac_cv_header_stdc = yes; then
25939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25940   if test "$cross_compiling" = yes; then
25941   :
25942 else
25943   cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949 #include <ctype.h>
25950 #if ((' ' & 0x0FF) == 0x020)
25951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25953 #else
25954 # define ISLOWER(c) \
25955                    (('a' <= (c) && (c) <= 'i') \
25956                      || ('j' <= (c) && (c) <= 'r') \
25957                      || ('s' <= (c) && (c) <= 'z'))
25958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25959 #endif
25960
25961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25962 int
25963 main ()
25964 {
25965   int i;
25966   for (i = 0; i < 256; i++)
25967     if (XOR (islower (i), ISLOWER (i))
25968         || toupper (i) != TOUPPER (i))
25969       exit(2);
25970   exit (0);
25971 }
25972 _ACEOF
25973 rm -f conftest$ac_exeext
25974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25975   (eval $ac_link) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980   (eval $ac_try) 2>&5
25981   ac_status=$?
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); }; }; then
25984   :
25985 else
25986   echo "$as_me: program exited with status $ac_status" >&5
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990 ( exit $ac_status )
25991 ac_cv_header_stdc=no
25992 fi
25993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25994 fi
25995 fi
25996 fi
25997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25999 if test $ac_cv_header_stdc = yes; then
26000
26001 cat >>confdefs.h <<\_ACEOF
26002 #define STDC_HEADERS 1
26003 _ACEOF
26004
26005 fi
26006
26007 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26008 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26009 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 #include <sys/types.h>
26019 #include <sys/wait.h>
26020 #ifndef WEXITSTATUS
26021 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26022 #endif
26023 #ifndef WIFEXITED
26024 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26025 #endif
26026
26027 int
26028 main ()
26029 {
26030   int s;
26031   wait (&s);
26032   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26033   ;
26034   return 0;
26035 }
26036 _ACEOF
26037 rm -f conftest.$ac_objext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26039   (eval $ac_compile) 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } &&
26046          { ac_try='test -z "$ac_c_werror_flag"
26047                          || test ! -s conftest.err'
26048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049   (eval $ac_try) 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); }; } &&
26053          { ac_try='test -s conftest.$ac_objext'
26054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055   (eval $ac_try) 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); }; }; then
26059   ac_cv_header_sys_wait_h=yes
26060 else
26061   echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064 ac_cv_header_sys_wait_h=no
26065 fi
26066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26067 fi
26068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26069 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26070 if test $ac_cv_header_sys_wait_h = yes; then
26071
26072 cat >>confdefs.h <<\_ACEOF
26073 #define HAVE_SYS_WAIT_H 1
26074 _ACEOF
26075
26076 fi
26077
26078 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26079 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26080 if test "${ac_cv_header_time+set}" = set; then
26081   echo $ECHO_N "(cached) $ECHO_C" >&6
26082 else
26083   cat >conftest.$ac_ext <<_ACEOF
26084 /* confdefs.h.  */
26085 _ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h.  */
26089 #include <sys/types.h>
26090 #include <sys/time.h>
26091 #include <time.h>
26092
26093 int
26094 main ()
26095 {
26096 if ((struct tm *) 0)
26097 return 0;
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 rm -f conftest.$ac_objext
26103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26104   (eval $ac_compile) 2>conftest.er1
26105   ac_status=$?
26106   grep -v '^ *+' conftest.er1 >conftest.err
26107   rm -f conftest.er1
26108   cat conftest.err >&5
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); } &&
26111          { ac_try='test -z "$ac_c_werror_flag"
26112                          || test ! -s conftest.err'
26113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114   (eval $ac_try) 2>&5
26115   ac_status=$?
26116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117   (exit $ac_status); }; } &&
26118          { ac_try='test -s conftest.$ac_objext'
26119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120   (eval $ac_try) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; }; then
26124   ac_cv_header_time=yes
26125 else
26126   echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26128
26129 ac_cv_header_time=no
26130 fi
26131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26132 fi
26133 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26134 echo "${ECHO_T}$ac_cv_header_time" >&6
26135 if test $ac_cv_header_time = yes; then
26136
26137 cat >>confdefs.h <<\_ACEOF
26138 #define TIME_WITH_SYS_TIME 1
26139 _ACEOF
26140
26141 fi
26142
26143
26144
26145
26146
26147
26148
26149
26150 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26151 do
26152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26154   echo "$as_me:$LINENO: checking for $ac_header" >&5
26155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 fi
26159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26161 else
26162   # Is the header compilable?
26163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26165 cat >conftest.$ac_ext <<_ACEOF
26166 /* confdefs.h.  */
26167 _ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h.  */
26171 $ac_includes_default
26172 #include <$ac_header>
26173 _ACEOF
26174 rm -f conftest.$ac_objext
26175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26176   (eval $ac_compile) 2>conftest.er1
26177   ac_status=$?
26178   grep -v '^ *+' conftest.er1 >conftest.err
26179   rm -f conftest.er1
26180   cat conftest.err >&5
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } &&
26183          { ac_try='test -z "$ac_c_werror_flag"
26184                          || test ! -s conftest.err'
26185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186   (eval $ac_try) 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; } &&
26190          { ac_try='test -s conftest.$ac_objext'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; }; then
26196   ac_header_compiler=yes
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201 ac_header_compiler=no
26202 fi
26203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26205 echo "${ECHO_T}$ac_header_compiler" >&6
26206
26207 # Is the header present?
26208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26210 cat >conftest.$ac_ext <<_ACEOF
26211 /* confdefs.h.  */
26212 _ACEOF
26213 cat confdefs.h >>conftest.$ac_ext
26214 cat >>conftest.$ac_ext <<_ACEOF
26215 /* end confdefs.h.  */
26216 #include <$ac_header>
26217 _ACEOF
26218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } >/dev/null; then
26226   if test -s conftest.err; then
26227     ac_cpp_err=$ac_c_preproc_warn_flag
26228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26229   else
26230     ac_cpp_err=
26231   fi
26232 else
26233   ac_cpp_err=yes
26234 fi
26235 if test -z "$ac_cpp_err"; then
26236   ac_header_preproc=yes
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241   ac_header_preproc=no
26242 fi
26243 rm -f conftest.err conftest.$ac_ext
26244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26245 echo "${ECHO_T}$ac_header_preproc" >&6
26246
26247 # So?  What about this header?
26248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26249   yes:no: )
26250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26254     ac_header_preproc=yes
26255     ;;
26256   no:yes:* )
26257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26269     (
26270       cat <<\_ASBOX
26271 ## ----------------------------------- ##
26272 ## Report this to llvmbugs@cs.uiuc.edu ##
26273 ## ----------------------------------- ##
26274 _ASBOX
26275     ) |
26276       sed "s/^/$as_me: WARNING:     /" >&2
26277     ;;
26278 esac
26279 echo "$as_me:$LINENO: checking for $ac_header" >&5
26280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26282   echo $ECHO_N "(cached) $ECHO_C" >&6
26283 else
26284   eval "$as_ac_Header=\$ac_header_preproc"
26285 fi
26286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26288
26289 fi
26290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26291   cat >>confdefs.h <<_ACEOF
26292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26293 _ACEOF
26294
26295 fi
26296
26297 done
26298
26299
26300
26301
26302
26303
26304
26305 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26306 do
26307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26309   echo "$as_me:$LINENO: checking for $ac_header" >&5
26310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26312   echo $ECHO_N "(cached) $ECHO_C" >&6
26313 fi
26314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26316 else
26317   # Is the header compilable?
26318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h.  */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h.  */
26326 $ac_includes_default
26327 #include <$ac_header>
26328 _ACEOF
26329 rm -f conftest.$ac_objext
26330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26331   (eval $ac_compile) 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } &&
26338          { ac_try='test -z "$ac_c_werror_flag"
26339                          || test ! -s conftest.err'
26340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341   (eval $ac_try) 2>&5
26342   ac_status=$?
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); }; } &&
26345          { ac_try='test -s conftest.$ac_objext'
26346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347   (eval $ac_try) 2>&5
26348   ac_status=$?
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); }; }; then
26351   ac_header_compiler=yes
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356 ac_header_compiler=no
26357 fi
26358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26360 echo "${ECHO_T}$ac_header_compiler" >&6
26361
26362 # Is the header present?
26363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371 #include <$ac_header>
26372 _ACEOF
26373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } >/dev/null; then
26381   if test -s conftest.err; then
26382     ac_cpp_err=$ac_c_preproc_warn_flag
26383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26384   else
26385     ac_cpp_err=
26386   fi
26387 else
26388   ac_cpp_err=yes
26389 fi
26390 if test -z "$ac_cpp_err"; then
26391   ac_header_preproc=yes
26392 else
26393   echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26395
26396   ac_header_preproc=no
26397 fi
26398 rm -f conftest.err conftest.$ac_ext
26399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26400 echo "${ECHO_T}$ac_header_preproc" >&6
26401
26402 # So?  What about this header?
26403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26404   yes:no: )
26405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26409     ac_header_preproc=yes
26410     ;;
26411   no:yes:* )
26412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26424     (
26425       cat <<\_ASBOX
26426 ## ----------------------------------- ##
26427 ## Report this to llvmbugs@cs.uiuc.edu ##
26428 ## ----------------------------------- ##
26429 _ASBOX
26430     ) |
26431       sed "s/^/$as_me: WARNING:     /" >&2
26432     ;;
26433 esac
26434 echo "$as_me:$LINENO: checking for $ac_header" >&5
26435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439   eval "$as_ac_Header=\$ac_header_preproc"
26440 fi
26441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26443
26444 fi
26445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26446   cat >>confdefs.h <<_ACEOF
26447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26448 _ACEOF
26449
26450 fi
26451
26452 done
26453
26454
26455
26456
26457
26458
26459 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26460 do
26461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26463   echo "$as_me:$LINENO: checking for $ac_header" >&5
26464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 fi
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26470 else
26471   # Is the header compilable?
26472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26474 cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480 $ac_includes_default
26481 #include <$ac_header>
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26485   (eval $ac_compile) 2>conftest.er1
26486   ac_status=$?
26487   grep -v '^ *+' conftest.er1 >conftest.err
26488   rm -f conftest.er1
26489   cat conftest.err >&5
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); } &&
26492          { ac_try='test -z "$ac_c_werror_flag"
26493                          || test ! -s conftest.err'
26494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495   (eval $ac_try) 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; } &&
26499          { ac_try='test -s conftest.$ac_objext'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; }; then
26505   ac_header_compiler=yes
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510 ac_header_compiler=no
26511 fi
26512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26514 echo "${ECHO_T}$ac_header_compiler" >&6
26515
26516 # Is the header present?
26517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <$ac_header>
26526 _ACEOF
26527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26529   ac_status=$?
26530   grep -v '^ *+' conftest.er1 >conftest.err
26531   rm -f conftest.er1
26532   cat conftest.err >&5
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); } >/dev/null; then
26535   if test -s conftest.err; then
26536     ac_cpp_err=$ac_c_preproc_warn_flag
26537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26538   else
26539     ac_cpp_err=
26540   fi
26541 else
26542   ac_cpp_err=yes
26543 fi
26544 if test -z "$ac_cpp_err"; then
26545   ac_header_preproc=yes
26546 else
26547   echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26549
26550   ac_header_preproc=no
26551 fi
26552 rm -f conftest.err conftest.$ac_ext
26553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26554 echo "${ECHO_T}$ac_header_preproc" >&6
26555
26556 # So?  What about this header?
26557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26558   yes:no: )
26559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26563     ac_header_preproc=yes
26564     ;;
26565   no:yes:* )
26566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26578     (
26579       cat <<\_ASBOX
26580 ## ----------------------------------- ##
26581 ## Report this to llvmbugs@cs.uiuc.edu ##
26582 ## ----------------------------------- ##
26583 _ASBOX
26584     ) |
26585       sed "s/^/$as_me: WARNING:     /" >&2
26586     ;;
26587 esac
26588 echo "$as_me:$LINENO: checking for $ac_header" >&5
26589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593   eval "$as_ac_Header=\$ac_header_preproc"
26594 fi
26595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26597
26598 fi
26599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26600   cat >>confdefs.h <<_ACEOF
26601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26602 _ACEOF
26603
26604 fi
26605
26606 done
26607
26608
26609
26610 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26611 do
26612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614   echo "$as_me:$LINENO: checking for $ac_header" >&5
26615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26617   echo $ECHO_N "(cached) $ECHO_C" >&6
26618 fi
26619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26621 else
26622   # Is the header compilable?
26623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631 $ac_includes_default
26632 #include <$ac_header>
26633 _ACEOF
26634 rm -f conftest.$ac_objext
26635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636   (eval $ac_compile) 2>conftest.er1
26637   ac_status=$?
26638   grep -v '^ *+' conftest.er1 >conftest.err
26639   rm -f conftest.er1
26640   cat conftest.err >&5
26641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); } &&
26643          { ac_try='test -z "$ac_c_werror_flag"
26644                          || test ! -s conftest.err'
26645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26646   (eval $ac_try) 2>&5
26647   ac_status=$?
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); }; } &&
26650          { ac_try='test -s conftest.$ac_objext'
26651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652   (eval $ac_try) 2>&5
26653   ac_status=$?
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); }; }; then
26656   ac_header_compiler=yes
26657 else
26658   echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26660
26661 ac_header_compiler=no
26662 fi
26663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26665 echo "${ECHO_T}$ac_header_compiler" >&6
26666
26667 # Is the header present?
26668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 #include <$ac_header>
26677 _ACEOF
26678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26680   ac_status=$?
26681   grep -v '^ *+' conftest.er1 >conftest.err
26682   rm -f conftest.er1
26683   cat conftest.err >&5
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); } >/dev/null; then
26686   if test -s conftest.err; then
26687     ac_cpp_err=$ac_c_preproc_warn_flag
26688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26689   else
26690     ac_cpp_err=
26691   fi
26692 else
26693   ac_cpp_err=yes
26694 fi
26695 if test -z "$ac_cpp_err"; then
26696   ac_header_preproc=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701   ac_header_preproc=no
26702 fi
26703 rm -f conftest.err conftest.$ac_ext
26704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26705 echo "${ECHO_T}$ac_header_preproc" >&6
26706
26707 # So?  What about this header?
26708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26709   yes:no: )
26710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26714     ac_header_preproc=yes
26715     ;;
26716   no:yes:* )
26717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26729     (
26730       cat <<\_ASBOX
26731 ## ----------------------------------- ##
26732 ## Report this to llvmbugs@cs.uiuc.edu ##
26733 ## ----------------------------------- ##
26734 _ASBOX
26735     ) |
26736       sed "s/^/$as_me: WARNING:     /" >&2
26737     ;;
26738 esac
26739 echo "$as_me:$LINENO: checking for $ac_header" >&5
26740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26742   echo $ECHO_N "(cached) $ECHO_C" >&6
26743 else
26744   eval "$as_ac_Header=\$ac_header_preproc"
26745 fi
26746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26748
26749 fi
26750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26751   cat >>confdefs.h <<_ACEOF
26752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26753 _ACEOF
26754
26755 fi
26756
26757 done
26758
26759
26760
26761 echo "$as_me:$LINENO: checking for pid_t" >&5
26762 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26763 if test "${ac_cv_type_pid_t+set}" = set; then
26764   echo $ECHO_N "(cached) $ECHO_C" >&6
26765 else
26766   cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772 $ac_includes_default
26773 int
26774 main ()
26775 {
26776 if ((pid_t *) 0)
26777   return 0;
26778 if (sizeof (pid_t))
26779   return 0;
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26786   (eval $ac_compile) 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } &&
26793          { ac_try='test -z "$ac_c_werror_flag"
26794                          || test ! -s conftest.err'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; } &&
26800          { ac_try='test -s conftest.$ac_objext'
26801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802   (eval $ac_try) 2>&5
26803   ac_status=$?
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); }; }; then
26806   ac_cv_type_pid_t=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 ac_cv_type_pid_t=no
26812 fi
26813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26814 fi
26815 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26816 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26817 if test $ac_cv_type_pid_t = yes; then
26818   :
26819 else
26820
26821 cat >>confdefs.h <<_ACEOF
26822 #define pid_t int
26823 _ACEOF
26824
26825 fi
26826
26827 echo "$as_me:$LINENO: checking for size_t" >&5
26828 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26829 if test "${ac_cv_type_size_t+set}" = set; then
26830   echo $ECHO_N "(cached) $ECHO_C" >&6
26831 else
26832   cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838 $ac_includes_default
26839 int
26840 main ()
26841 {
26842 if ((size_t *) 0)
26843   return 0;
26844 if (sizeof (size_t))
26845   return 0;
26846   ;
26847   return 0;
26848 }
26849 _ACEOF
26850 rm -f conftest.$ac_objext
26851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26852   (eval $ac_compile) 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } &&
26859          { ac_try='test -z "$ac_c_werror_flag"
26860                          || test ! -s conftest.err'
26861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862   (eval $ac_try) 2>&5
26863   ac_status=$?
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); }; } &&
26866          { ac_try='test -s conftest.$ac_objext'
26867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868   (eval $ac_try) 2>&5
26869   ac_status=$?
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); }; }; then
26872   ac_cv_type_size_t=yes
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877 ac_cv_type_size_t=no
26878 fi
26879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26880 fi
26881 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26882 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26883 if test $ac_cv_type_size_t = yes; then
26884   :
26885 else
26886
26887 cat >>confdefs.h <<_ACEOF
26888 #define size_t unsigned
26889 _ACEOF
26890
26891 fi
26892
26893 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26894 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26895 if test "${ac_cv_type_signal+set}" = set; then
26896   echo $ECHO_N "(cached) $ECHO_C" >&6
26897 else
26898   cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h.  */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h.  */
26904 #include <sys/types.h>
26905 #include <signal.h>
26906 #ifdef signal
26907 # undef signal
26908 #endif
26909 #ifdef __cplusplus
26910 extern "C" void (*signal (int, void (*)(int)))(int);
26911 #else
26912 void (*signal ()) ();
26913 #endif
26914
26915 int
26916 main ()
26917 {
26918 int i;
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 rm -f conftest.$ac_objext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925   (eval $ac_compile) 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } &&
26932          { ac_try='test -z "$ac_c_werror_flag"
26933                          || test ! -s conftest.err'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; } &&
26939          { ac_try='test -s conftest.$ac_objext'
26940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941   (eval $ac_try) 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; }; then
26945   ac_cv_type_signal=void
26946 else
26947   echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 ac_cv_type_signal=int
26951 fi
26952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953 fi
26954 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26955 echo "${ECHO_T}$ac_cv_type_signal" >&6
26956
26957 cat >>confdefs.h <<_ACEOF
26958 #define RETSIGTYPE $ac_cv_type_signal
26959 _ACEOF
26960
26961
26962 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26963 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26964 if test "${ac_cv_struct_tm+set}" = set; then
26965   echo $ECHO_N "(cached) $ECHO_C" >&6
26966 else
26967   cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 #include <sys/types.h>
26974 #include <time.h>
26975
26976 int
26977 main ()
26978 {
26979 struct tm *tp; tp->tm_sec;
26980   ;
26981   return 0;
26982 }
26983 _ACEOF
26984 rm -f conftest.$ac_objext
26985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26986   (eval $ac_compile) 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } &&
26993          { ac_try='test -z "$ac_c_werror_flag"
26994                          || test ! -s conftest.err'
26995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996   (eval $ac_try) 2>&5
26997   ac_status=$?
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); }; } &&
27000          { ac_try='test -s conftest.$ac_objext'
27001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002   (eval $ac_try) 2>&5
27003   ac_status=$?
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); }; }; then
27006   ac_cv_struct_tm=time.h
27007 else
27008   echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011 ac_cv_struct_tm=sys/time.h
27012 fi
27013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27014 fi
27015 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27016 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27017 if test $ac_cv_struct_tm = sys/time.h; then
27018
27019 cat >>confdefs.h <<\_ACEOF
27020 #define TM_IN_SYS_TIME 1
27021 _ACEOF
27022
27023 fi
27024
27025 echo "$as_me:$LINENO: checking for int64_t" >&5
27026 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27027 if test "${ac_cv_type_int64_t+set}" = set; then
27028   echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030   cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036 $ac_includes_default
27037 int
27038 main ()
27039 {
27040 if ((int64_t *) 0)
27041   return 0;
27042 if (sizeof (int64_t))
27043   return 0;
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27050   (eval $ac_compile) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest.$ac_objext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   ac_cv_type_int64_t=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 ac_cv_type_int64_t=no
27076 fi
27077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27078 fi
27079 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27080 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27081 if test $ac_cv_type_int64_t = yes; then
27082
27083 cat >>confdefs.h <<_ACEOF
27084 #define HAVE_INT64_T 1
27085 _ACEOF
27086
27087
27088 else
27089   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27090 echo "$as_me: error: Type int64_t required but not found" >&2;}
27091    { (exit 1); exit 1; }; }
27092 fi
27093
27094 echo "$as_me:$LINENO: checking for uint64_t" >&5
27095 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27096 if test "${ac_cv_type_uint64_t+set}" = set; then
27097   echo $ECHO_N "(cached) $ECHO_C" >&6
27098 else
27099   cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105 $ac_includes_default
27106 int
27107 main ()
27108 {
27109 if ((uint64_t *) 0)
27110   return 0;
27111 if (sizeof (uint64_t))
27112   return 0;
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext
27118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27119   (eval $ac_compile) 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } &&
27126          { ac_try='test -z "$ac_c_werror_flag"
27127                          || test ! -s conftest.err'
27128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129   (eval $ac_try) 2>&5
27130   ac_status=$?
27131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132   (exit $ac_status); }; } &&
27133          { ac_try='test -s conftest.$ac_objext'
27134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135   (eval $ac_try) 2>&5
27136   ac_status=$?
27137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138   (exit $ac_status); }; }; then
27139   ac_cv_type_uint64_t=yes
27140 else
27141   echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27143
27144 ac_cv_type_uint64_t=no
27145 fi
27146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27147 fi
27148 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27149 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27150 if test $ac_cv_type_uint64_t = yes; then
27151
27152 cat >>confdefs.h <<_ACEOF
27153 #define HAVE_UINT64_T 1
27154 _ACEOF
27155
27156
27157 else
27158   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27159 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27160 if test "${ac_cv_type_u_int64_t+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h.  */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h.  */
27169 $ac_includes_default
27170 int
27171 main ()
27172 {
27173 if ((u_int64_t *) 0)
27174   return 0;
27175 if (sizeof (u_int64_t))
27176   return 0;
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 rm -f conftest.$ac_objext
27182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27183   (eval $ac_compile) 2>conftest.er1
27184   ac_status=$?
27185   grep -v '^ *+' conftest.er1 >conftest.err
27186   rm -f conftest.er1
27187   cat conftest.err >&5
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); } &&
27190          { ac_try='test -z "$ac_c_werror_flag"
27191                          || test ! -s conftest.err'
27192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193   (eval $ac_try) 2>&5
27194   ac_status=$?
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); }; } &&
27197          { ac_try='test -s conftest.$ac_objext'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; }; then
27203   ac_cv_type_u_int64_t=yes
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208 ac_cv_type_u_int64_t=no
27209 fi
27210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27211 fi
27212 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27213 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27214 if test $ac_cv_type_u_int64_t = yes; then
27215
27216 cat >>confdefs.h <<_ACEOF
27217 #define HAVE_U_INT64_T 1
27218 _ACEOF
27219
27220
27221 else
27222   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27223 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27224    { (exit 1); exit 1; }; }
27225 fi
27226
27227 fi
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27238 do
27239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27240 echo "$as_me:$LINENO: checking for $ac_func" >&5
27241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27242 if eval "test \"\${$as_ac_var+set}\" = set"; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   cat >conftest.$ac_ext <<_ACEOF
27246 /* confdefs.h.  */
27247 _ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h.  */
27251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27253 #define $ac_func innocuous_$ac_func
27254
27255 /* System header to define __stub macros and hopefully few prototypes,
27256     which can conflict with char $ac_func (); below.
27257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27258     <limits.h> exists even on freestanding compilers.  */
27259
27260 #ifdef __STDC__
27261 # include <limits.h>
27262 #else
27263 # include <assert.h>
27264 #endif
27265
27266 #undef $ac_func
27267
27268 /* Override any gcc2 internal prototype to avoid an error.  */
27269 #ifdef __cplusplus
27270 extern "C"
27271 {
27272 #endif
27273 /* We use char because int might match the return type of a gcc2
27274    builtin and then its argument prototype would still apply.  */
27275 char $ac_func ();
27276 /* The GNU C library defines this for functions which it implements
27277     to always fail with ENOSYS.  Some functions are actually named
27278     something starting with __ and the normal name is an alias.  */
27279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27280 choke me
27281 #else
27282 char (*f) () = $ac_func;
27283 #endif
27284 #ifdef __cplusplus
27285 }
27286 #endif
27287
27288 int
27289 main ()
27290 {
27291 return f != $ac_func;
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext conftest$ac_exeext
27297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298   (eval $ac_link) 2>conftest.er1
27299   ac_status=$?
27300   grep -v '^ *+' conftest.er1 >conftest.err
27301   rm -f conftest.er1
27302   cat conftest.err >&5
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); } &&
27305          { ac_try='test -z "$ac_c_werror_flag"
27306                          || test ! -s conftest.err'
27307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308   (eval $ac_try) 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; } &&
27312          { ac_try='test -s conftest$ac_exeext'
27313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314   (eval $ac_try) 2>&5
27315   ac_status=$?
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); }; }; then
27318   eval "$as_ac_var=yes"
27319 else
27320   echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 eval "$as_ac_var=no"
27324 fi
27325 rm -f conftest.err conftest.$ac_objext \
27326       conftest$ac_exeext conftest.$ac_ext
27327 fi
27328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27330 if test `eval echo '${'$as_ac_var'}'` = yes; then
27331   cat >>confdefs.h <<_ACEOF
27332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27333 _ACEOF
27334
27335 fi
27336 done
27337
27338
27339
27340
27341 for ac_func in mkdtemp mkstemp mktemp
27342 do
27343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27344 echo "$as_me:$LINENO: checking for $ac_func" >&5
27345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27346 if eval "test \"\${$as_ac_var+set}\" = set"; then
27347   echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349   cat >conftest.$ac_ext <<_ACEOF
27350 /* confdefs.h.  */
27351 _ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h.  */
27355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27357 #define $ac_func innocuous_$ac_func
27358
27359 /* System header to define __stub macros and hopefully few prototypes,
27360     which can conflict with char $ac_func (); below.
27361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27362     <limits.h> exists even on freestanding compilers.  */
27363
27364 #ifdef __STDC__
27365 # include <limits.h>
27366 #else
27367 # include <assert.h>
27368 #endif
27369
27370 #undef $ac_func
27371
27372 /* Override any gcc2 internal prototype to avoid an error.  */
27373 #ifdef __cplusplus
27374 extern "C"
27375 {
27376 #endif
27377 /* We use char because int might match the return type of a gcc2
27378    builtin and then its argument prototype would still apply.  */
27379 char $ac_func ();
27380 /* The GNU C library defines this for functions which it implements
27381     to always fail with ENOSYS.  Some functions are actually named
27382     something starting with __ and the normal name is an alias.  */
27383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27384 choke me
27385 #else
27386 char (*f) () = $ac_func;
27387 #endif
27388 #ifdef __cplusplus
27389 }
27390 #endif
27391
27392 int
27393 main ()
27394 {
27395 return f != $ac_func;
27396   ;
27397   return 0;
27398 }
27399 _ACEOF
27400 rm -f conftest.$ac_objext conftest$ac_exeext
27401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27402   (eval $ac_link) 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } &&
27409          { ac_try='test -z "$ac_c_werror_flag"
27410                          || test ! -s conftest.err'
27411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412   (eval $ac_try) 2>&5
27413   ac_status=$?
27414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415   (exit $ac_status); }; } &&
27416          { ac_try='test -s conftest$ac_exeext'
27417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27418   (eval $ac_try) 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); }; }; then
27422   eval "$as_ac_var=yes"
27423 else
27424   echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27426
27427 eval "$as_ac_var=no"
27428 fi
27429 rm -f conftest.err conftest.$ac_objext \
27430       conftest$ac_exeext conftest.$ac_ext
27431 fi
27432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27434 if test `eval echo '${'$as_ac_var'}'` = yes; then
27435   cat >>confdefs.h <<_ACEOF
27436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27437 _ACEOF
27438
27439 fi
27440 done
27441
27442
27443
27444
27445
27446
27447
27448 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27449 do
27450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27451 echo "$as_me:$LINENO: checking for $ac_func" >&5
27452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27453 if eval "test \"\${$as_ac_var+set}\" = set"; then
27454   echo $ECHO_N "(cached) $ECHO_C" >&6
27455 else
27456   cat >conftest.$ac_ext <<_ACEOF
27457 /* confdefs.h.  */
27458 _ACEOF
27459 cat confdefs.h >>conftest.$ac_ext
27460 cat >>conftest.$ac_ext <<_ACEOF
27461 /* end confdefs.h.  */
27462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27464 #define $ac_func innocuous_$ac_func
27465
27466 /* System header to define __stub macros and hopefully few prototypes,
27467     which can conflict with char $ac_func (); below.
27468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27469     <limits.h> exists even on freestanding compilers.  */
27470
27471 #ifdef __STDC__
27472 # include <limits.h>
27473 #else
27474 # include <assert.h>
27475 #endif
27476
27477 #undef $ac_func
27478
27479 /* Override any gcc2 internal prototype to avoid an error.  */
27480 #ifdef __cplusplus
27481 extern "C"
27482 {
27483 #endif
27484 /* We use char because int might match the return type of a gcc2
27485    builtin and then its argument prototype would still apply.  */
27486 char $ac_func ();
27487 /* The GNU C library defines this for functions which it implements
27488     to always fail with ENOSYS.  Some functions are actually named
27489     something starting with __ and the normal name is an alias.  */
27490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27491 choke me
27492 #else
27493 char (*f) () = $ac_func;
27494 #endif
27495 #ifdef __cplusplus
27496 }
27497 #endif
27498
27499 int
27500 main ()
27501 {
27502 return f != $ac_func;
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 rm -f conftest.$ac_objext conftest$ac_exeext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27509   (eval $ac_link) 2>conftest.er1
27510   ac_status=$?
27511   grep -v '^ *+' conftest.er1 >conftest.err
27512   rm -f conftest.er1
27513   cat conftest.err >&5
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); } &&
27516          { ac_try='test -z "$ac_c_werror_flag"
27517                          || test ! -s conftest.err'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; } &&
27523          { ac_try='test -s conftest$ac_exeext'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; }; then
27529   eval "$as_ac_var=yes"
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 eval "$as_ac_var=no"
27535 fi
27536 rm -f conftest.err conftest.$ac_objext \
27537       conftest$ac_exeext conftest.$ac_ext
27538 fi
27539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27541 if test `eval echo '${'$as_ac_var'}'` = yes; then
27542   cat >>confdefs.h <<_ACEOF
27543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27544 _ACEOF
27545
27546 fi
27547 done
27548
27549
27550
27551
27552 for ac_func in strtoll strtoq sysconf
27553 do
27554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27555 echo "$as_me:$LINENO: checking for $ac_func" >&5
27556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27557 if eval "test \"\${$as_ac_var+set}\" = set"; then
27558   echo $ECHO_N "(cached) $ECHO_C" >&6
27559 else
27560   cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27568 #define $ac_func innocuous_$ac_func
27569
27570 /* System header to define __stub macros and hopefully few prototypes,
27571     which can conflict with char $ac_func (); below.
27572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27573     <limits.h> exists even on freestanding compilers.  */
27574
27575 #ifdef __STDC__
27576 # include <limits.h>
27577 #else
27578 # include <assert.h>
27579 #endif
27580
27581 #undef $ac_func
27582
27583 /* Override any gcc2 internal prototype to avoid an error.  */
27584 #ifdef __cplusplus
27585 extern "C"
27586 {
27587 #endif
27588 /* We use char because int might match the return type of a gcc2
27589    builtin and then its argument prototype would still apply.  */
27590 char $ac_func ();
27591 /* The GNU C library defines this for functions which it implements
27592     to always fail with ENOSYS.  Some functions are actually named
27593     something starting with __ and the normal name is an alias.  */
27594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27595 choke me
27596 #else
27597 char (*f) () = $ac_func;
27598 #endif
27599 #ifdef __cplusplus
27600 }
27601 #endif
27602
27603 int
27604 main ()
27605 {
27606 return f != $ac_func;
27607   ;
27608   return 0;
27609 }
27610 _ACEOF
27611 rm -f conftest.$ac_objext conftest$ac_exeext
27612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27613   (eval $ac_link) 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } &&
27620          { ac_try='test -z "$ac_c_werror_flag"
27621                          || test ! -s conftest.err'
27622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623   (eval $ac_try) 2>&5
27624   ac_status=$?
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); }; } &&
27627          { ac_try='test -s conftest$ac_exeext'
27628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629   (eval $ac_try) 2>&5
27630   ac_status=$?
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); }; }; then
27633   eval "$as_ac_var=yes"
27634 else
27635   echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27637
27638 eval "$as_ac_var=no"
27639 fi
27640 rm -f conftest.err conftest.$ac_objext \
27641       conftest$ac_exeext conftest.$ac_ext
27642 fi
27643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27645 if test `eval echo '${'$as_ac_var'}'` = yes; then
27646   cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27648 _ACEOF
27649
27650 fi
27651 done
27652
27653 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27654 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27655 if test "${llvm_cv_c_printf_a+set}" = set; then
27656   echo $ECHO_N "(cached) $ECHO_C" >&6
27657 else
27658   ac_ext=c
27659 ac_cpp='$CPP $CPPFLAGS'
27660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27663
27664  if test "$cross_compiling" = yes; then
27665   llvmac_cv_c_printf_a=no
27666 else
27667   cat >conftest.$ac_ext <<_ACEOF
27668
27669   /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674
27675 #include <stdio.h>
27676 #include <stdlib.h>
27677
27678 int
27679 main ()
27680 {
27681
27682 volatile double A, B;
27683 char Buffer[100];
27684 A = 1;
27685 A /= 10.0;
27686 sprintf(Buffer, "%a", A);
27687 B = atof(Buffer);
27688 if (A != B)
27689   return (1);
27690 if (A != 0x1.999999999999ap-4)
27691   return (1);
27692 return (0);
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest$ac_exeext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699   (eval $ac_link) 2>&5
27700   ac_status=$?
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704   (eval $ac_try) 2>&5
27705   ac_status=$?
27706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707   (exit $ac_status); }; }; then
27708   llvm_cv_c_printf_a=yes
27709 else
27710   echo "$as_me: program exited with status $ac_status" >&5
27711 echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 ( exit $ac_status )
27715 llvmac_cv_c_printf_a=no
27716 fi
27717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27718 fi
27719  ac_ext=c
27720 ac_cpp='$CPP $CPPFLAGS'
27721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27724
27725 fi
27726 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27727 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27728  if test "$llvm_cv_c_printf_a" = "yes"; then
27729
27730 cat >>confdefs.h <<\_ACEOF
27731 #define HAVE_PRINTF_A 1
27732 _ACEOF
27733
27734  fi
27735
27736 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27737 # for constant arguments.  Useless!
27738 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27739 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27740 if test "${ac_cv_working_alloca_h+set}" = set; then
27741   echo $ECHO_N "(cached) $ECHO_C" >&6
27742 else
27743   cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749 #include <alloca.h>
27750 int
27751 main ()
27752 {
27753 char *p = (char *) alloca (2 * sizeof (int));
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27760   (eval $ac_link) 2>conftest.er1
27761   ac_status=$?
27762   grep -v '^ *+' conftest.er1 >conftest.err
27763   rm -f conftest.er1
27764   cat conftest.err >&5
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); } &&
27767          { ac_try='test -z "$ac_c_werror_flag"
27768                          || test ! -s conftest.err'
27769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770   (eval $ac_try) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; } &&
27774          { ac_try='test -s conftest$ac_exeext'
27775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776   (eval $ac_try) 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; }; then
27780   ac_cv_working_alloca_h=yes
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785 ac_cv_working_alloca_h=no
27786 fi
27787 rm -f conftest.err conftest.$ac_objext \
27788       conftest$ac_exeext conftest.$ac_ext
27789 fi
27790 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27791 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27792 if test $ac_cv_working_alloca_h = yes; then
27793
27794 cat >>confdefs.h <<\_ACEOF
27795 #define HAVE_ALLOCA_H 1
27796 _ACEOF
27797
27798 fi
27799
27800 echo "$as_me:$LINENO: checking for alloca" >&5
27801 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27802 if test "${ac_cv_func_alloca_works+set}" = set; then
27803   echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805   cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811 #ifdef __GNUC__
27812 # define alloca __builtin_alloca
27813 #else
27814 # ifdef _MSC_VER
27815 #  include <malloc.h>
27816 #  define alloca _alloca
27817 # else
27818 #  if HAVE_ALLOCA_H
27819 #   include <alloca.h>
27820 #  else
27821 #   ifdef _AIX
27822  #pragma alloca
27823 #   else
27824 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27825 char *alloca ();
27826 #    endif
27827 #   endif
27828 #  endif
27829 # endif
27830 #endif
27831
27832 int
27833 main ()
27834 {
27835 char *p = (char *) alloca (1);
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext conftest$ac_exeext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27842   (eval $ac_link) 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } &&
27849          { ac_try='test -z "$ac_c_werror_flag"
27850                          || test ! -s conftest.err'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; } &&
27856          { ac_try='test -s conftest$ac_exeext'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; }; then
27862   ac_cv_func_alloca_works=yes
27863 else
27864   echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27866
27867 ac_cv_func_alloca_works=no
27868 fi
27869 rm -f conftest.err conftest.$ac_objext \
27870       conftest$ac_exeext conftest.$ac_ext
27871 fi
27872 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27873 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27874
27875 if test $ac_cv_func_alloca_works = yes; then
27876
27877 cat >>confdefs.h <<\_ACEOF
27878 #define HAVE_ALLOCA 1
27879 _ACEOF
27880
27881 else
27882   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27883 # that cause trouble.  Some versions do not even contain alloca or
27884 # contain a buggy version.  If you still want to use their alloca,
27885 # use ar to extract alloca.o from them instead of compiling alloca.c.
27886
27887 ALLOCA=alloca.$ac_objext
27888
27889 cat >>confdefs.h <<\_ACEOF
27890 #define C_ALLOCA 1
27891 _ACEOF
27892
27893
27894 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27895 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27896 if test "${ac_cv_os_cray+set}" = set; then
27897   echo $ECHO_N "(cached) $ECHO_C" >&6
27898 else
27899   cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905 #if defined(CRAY) && ! defined(CRAY2)
27906 webecray
27907 #else
27908 wenotbecray
27909 #endif
27910
27911 _ACEOF
27912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27913   $EGREP "webecray" >/dev/null 2>&1; then
27914   ac_cv_os_cray=yes
27915 else
27916   ac_cv_os_cray=no
27917 fi
27918 rm -f conftest*
27919
27920 fi
27921 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27922 echo "${ECHO_T}$ac_cv_os_cray" >&6
27923 if test $ac_cv_os_cray = yes; then
27924   for ac_func in _getb67 GETB67 getb67; do
27925     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27926 echo "$as_me:$LINENO: checking for $ac_func" >&5
27927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27928 if eval "test \"\${$as_ac_var+set}\" = set"; then
27929   echo $ECHO_N "(cached) $ECHO_C" >&6
27930 else
27931   cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27939 #define $ac_func innocuous_$ac_func
27940
27941 /* System header to define __stub macros and hopefully few prototypes,
27942     which can conflict with char $ac_func (); below.
27943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27944     <limits.h> exists even on freestanding compilers.  */
27945
27946 #ifdef __STDC__
27947 # include <limits.h>
27948 #else
27949 # include <assert.h>
27950 #endif
27951
27952 #undef $ac_func
27953
27954 /* Override any gcc2 internal prototype to avoid an error.  */
27955 #ifdef __cplusplus
27956 extern "C"
27957 {
27958 #endif
27959 /* We use char because int might match the return type of a gcc2
27960    builtin and then its argument prototype would still apply.  */
27961 char $ac_func ();
27962 /* The GNU C library defines this for functions which it implements
27963     to always fail with ENOSYS.  Some functions are actually named
27964     something starting with __ and the normal name is an alias.  */
27965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27966 choke me
27967 #else
27968 char (*f) () = $ac_func;
27969 #endif
27970 #ifdef __cplusplus
27971 }
27972 #endif
27973
27974 int
27975 main ()
27976 {
27977 return f != $ac_func;
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27984   (eval $ac_link) 2>conftest.er1
27985   ac_status=$?
27986   grep -v '^ *+' conftest.er1 >conftest.err
27987   rm -f conftest.er1
27988   cat conftest.err >&5
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); } &&
27991          { ac_try='test -z "$ac_c_werror_flag"
27992                          || test ! -s conftest.err'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; } &&
27998          { ac_try='test -s conftest$ac_exeext'
27999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000   (eval $ac_try) 2>&5
28001   ac_status=$?
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); }; }; then
28004   eval "$as_ac_var=yes"
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009 eval "$as_ac_var=no"
28010 fi
28011 rm -f conftest.err conftest.$ac_objext \
28012       conftest$ac_exeext conftest.$ac_ext
28013 fi
28014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28016 if test `eval echo '${'$as_ac_var'}'` = yes; then
28017
28018 cat >>confdefs.h <<_ACEOF
28019 #define CRAY_STACKSEG_END $ac_func
28020 _ACEOF
28021
28022     break
28023 fi
28024
28025   done
28026 fi
28027
28028 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28029 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28030 if test "${ac_cv_c_stack_direction+set}" = set; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033   if test "$cross_compiling" = yes; then
28034   ac_cv_c_stack_direction=0
28035 else
28036   cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h.  */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h.  */
28042 int
28043 find_stack_direction ()
28044 {
28045   static char *addr = 0;
28046   auto char dummy;
28047   if (addr == 0)
28048     {
28049       addr = &dummy;
28050       return find_stack_direction ();
28051     }
28052   else
28053     return (&dummy > addr) ? 1 : -1;
28054 }
28055
28056 int
28057 main ()
28058 {
28059   exit (find_stack_direction () < 0);
28060 }
28061 _ACEOF
28062 rm -f conftest$ac_exeext
28063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28064   (eval $ac_link) 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; }; then
28073   ac_cv_c_stack_direction=1
28074 else
28075   echo "$as_me: program exited with status $ac_status" >&5
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079 ( exit $ac_status )
28080 ac_cv_c_stack_direction=-1
28081 fi
28082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28083 fi
28084 fi
28085 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28086 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28087
28088 cat >>confdefs.h <<_ACEOF
28089 #define STACK_DIRECTION $ac_cv_c_stack_direction
28090 _ACEOF
28091
28092
28093 fi
28094
28095
28096 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28097 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28098 if test "${ac_cv_func_rand48+set}" = set; then
28099   echo $ECHO_N "(cached) $ECHO_C" >&6
28100 else
28101   ac_ext=cc
28102 ac_cpp='$CXXCPP $CPPFLAGS'
28103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28106
28107    cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113 #include <stdlib.h>
28114 int
28115 main ()
28116 {
28117 srand48(0);lrand48();drand48();
28118   ;
28119   return 0;
28120 }
28121 _ACEOF
28122 rm -f conftest.$ac_objext
28123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28124   (eval $ac_compile) 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } &&
28131          { ac_try='test -z "$ac_cxx_werror_flag"
28132                          || test ! -s conftest.err'
28133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134   (eval $ac_try) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; } &&
28138          { ac_try='test -s conftest.$ac_objext'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ac_cv_func_rand48=yes
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 ac_cv_func_rand48=no
28150 fi
28151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28152   ac_ext=c
28153 ac_cpp='$CPP $CPPFLAGS'
28154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28157
28158 fi
28159 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28160 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28161
28162 if test "$ac_cv_func_rand48" = "yes" ; then
28163
28164 cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_RAND48 1
28166 _ACEOF
28167
28168 fi
28169
28170
28171 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28172 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28173 if test "${ac_cv_cxx_namespaces+set}" = set; then
28174   echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176   ac_ext=cc
28177 ac_cpp='$CXXCPP $CPPFLAGS'
28178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28181
28182  cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h.  */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h.  */
28188 namespace Outer { namespace Inner { int i = 0; }}
28189 int
28190 main ()
28191 {
28192 using namespace Outer::Inner; return i;
28193   ;
28194   return 0;
28195 }
28196 _ACEOF
28197 rm -f conftest.$ac_objext
28198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28199   (eval $ac_compile) 2>conftest.er1
28200   ac_status=$?
28201   grep -v '^ *+' conftest.er1 >conftest.err
28202   rm -f conftest.er1
28203   cat conftest.err >&5
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); } &&
28206          { ac_try='test -z "$ac_cxx_werror_flag"
28207                          || test ! -s conftest.err'
28208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209   (eval $ac_try) 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; } &&
28213          { ac_try='test -s conftest.$ac_objext'
28214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215   (eval $ac_try) 2>&5
28216   ac_status=$?
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); }; }; then
28219   ac_cv_cxx_namespaces=yes
28220 else
28221   echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28223
28224 ac_cv_cxx_namespaces=no
28225 fi
28226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28227  ac_ext=c
28228 ac_cpp='$CPP $CPPFLAGS'
28229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28232
28233
28234 fi
28235 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28236 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28237 if test "$ac_cv_cxx_namespaces" = yes; then
28238
28239 cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_NAMESPACES
28241 _ACEOF
28242
28243 fi
28244
28245 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28246 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28247 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250
28251   ac_ext=cc
28252 ac_cpp='$CXXCPP $CPPFLAGS'
28253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28256
28257   cat >conftest.$ac_ext <<_ACEOF
28258 /* confdefs.h.  */
28259 _ACEOF
28260 cat confdefs.h >>conftest.$ac_ext
28261 cat >>conftest.$ac_ext <<_ACEOF
28262 /* end confdefs.h.  */
28263 #include <ext/hash_map>
28264 #ifdef HAVE_NAMESPACES
28265 using namespace std;
28266 #endif
28267 int
28268 main ()
28269 {
28270 hash_map<int, int> t;
28271   ;
28272   return 0;
28273 }
28274 _ACEOF
28275 rm -f conftest.$ac_objext
28276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28277   (eval $ac_compile) 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } &&
28284          { ac_try='test -z "$ac_cxx_werror_flag"
28285                          || test ! -s conftest.err'
28286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287   (eval $ac_try) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; } &&
28291          { ac_try='test -s conftest.$ac_objext'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   ac_cv_cxx_have_std_ext_hash_map=yes
28298 else
28299   echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ac_cv_cxx_have_std_ext_hash_map=no
28303 fi
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28305   ac_ext=c
28306 ac_cpp='$CPP $CPPFLAGS'
28307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310
28311 fi
28312 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28313 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28314  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28315  then
28316
28317 cat >>confdefs.h <<\_ACEOF
28318 #define HAVE_STD_EXT_HASH_MAP 1
28319 _ACEOF
28320
28321  else
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_STD_EXT_HASH_MAP 0
28325 _ACEOF
28326
28327  fi
28328
28329  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28330 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28331 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28332   echo $ECHO_N "(cached) $ECHO_C" >&6
28333 else
28334
28335   ac_ext=cc
28336 ac_cpp='$CXXCPP $CPPFLAGS'
28337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28340
28341   cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347 #include <ext/hash_map>
28348 #ifdef HAVE_NAMESPACES
28349 using namespace __gnu_cxx;
28350 #endif
28351 int
28352 main ()
28353 {
28354 hash_map<int,int> t;
28355   ;
28356   return 0;
28357 }
28358 _ACEOF
28359 rm -f conftest.$ac_objext
28360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28361   (eval $ac_compile) 2>conftest.er1
28362   ac_status=$?
28363   grep -v '^ *+' conftest.er1 >conftest.err
28364   rm -f conftest.er1
28365   cat conftest.err >&5
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); } &&
28368          { ac_try='test -z "$ac_cxx_werror_flag"
28369                          || test ! -s conftest.err'
28370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371   (eval $ac_try) 2>&5
28372   ac_status=$?
28373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374   (exit $ac_status); }; } &&
28375          { ac_try='test -s conftest.$ac_objext'
28376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377   (eval $ac_try) 2>&5
28378   ac_status=$?
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); }; }; then
28381   ac_cv_cxx_have_gnu_ext_hash_map=yes
28382 else
28383   echo "$as_me: failed program was:" >&5
28384 sed 's/^/| /' conftest.$ac_ext >&5
28385
28386 ac_cv_cxx_have_gnu_ext_hash_map=no
28387 fi
28388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28389   ac_ext=c
28390 ac_cpp='$CPP $CPPFLAGS'
28391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28394
28395 fi
28396 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28397 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28398  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28399  then
28400
28401 cat >>confdefs.h <<\_ACEOF
28402 #define HAVE_GNU_EXT_HASH_MAP 1
28403 _ACEOF
28404
28405  else
28406
28407 cat >>confdefs.h <<\_ACEOF
28408 #define HAVE_GNU_EXT_HASH_MAP 0
28409 _ACEOF
28410
28411  fi
28412
28413  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28414 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28415 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28416   echo $ECHO_N "(cached) $ECHO_C" >&6
28417 else
28418
28419   ac_ext=cc
28420 ac_cpp='$CXXCPP $CPPFLAGS'
28421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28424
28425   cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431 #include <hash_map>
28432 int
28433 main ()
28434 {
28435 hash_map<int,int> t;
28436   ;
28437   return 0;
28438 }
28439 _ACEOF
28440 rm -f conftest.$ac_objext
28441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28442   (eval $ac_compile) 2>conftest.er1
28443   ac_status=$?
28444   grep -v '^ *+' conftest.er1 >conftest.err
28445   rm -f conftest.er1
28446   cat conftest.err >&5
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); } &&
28449          { ac_try='test -z "$ac_cxx_werror_flag"
28450                          || test ! -s conftest.err'
28451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452   (eval $ac_try) 2>&5
28453   ac_status=$?
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); }; } &&
28456          { ac_try='test -s conftest.$ac_objext'
28457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458   (eval $ac_try) 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); }; }; then
28462   ac_cv_cxx_have_global_hash_map=yes
28463 else
28464   echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28466
28467 ac_cv_cxx_have_global_hash_map=no
28468 fi
28469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28470   ac_ext=c
28471 ac_cpp='$CPP $CPPFLAGS'
28472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28475
28476 fi
28477 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28478 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28479  if test "$ac_cv_cxx_have_global_hash_map" = yes
28480  then
28481
28482 cat >>confdefs.h <<\_ACEOF
28483 #define HAVE_GLOBAL_HASH_MAP 1
28484 _ACEOF
28485
28486  else
28487
28488 cat >>confdefs.h <<\_ACEOF
28489 #define HAVE_GLOBAL_HASH_MAP 0
28490 _ACEOF
28491
28492  fi
28493
28494 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28495 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28496 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28497   echo $ECHO_N "(cached) $ECHO_C" >&6
28498 else
28499
28500   ac_ext=cc
28501 ac_cpp='$CXXCPP $CPPFLAGS'
28502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28505
28506   cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512 #include <ext/hash_set>
28513 #ifdef HAVE_NAMESPACES
28514 using namespace std;
28515 #endif
28516 int
28517 main ()
28518 {
28519 hash_set<int> t;
28520   ;
28521   return 0;
28522 }
28523 _ACEOF
28524 rm -f conftest.$ac_objext
28525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28526   (eval $ac_compile) 2>conftest.er1
28527   ac_status=$?
28528   grep -v '^ *+' conftest.er1 >conftest.err
28529   rm -f conftest.er1
28530   cat conftest.err >&5
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); } &&
28533          { ac_try='test -z "$ac_cxx_werror_flag"
28534                          || test ! -s conftest.err'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; } &&
28540          { ac_try='test -s conftest.$ac_objext'
28541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542   (eval $ac_try) 2>&5
28543   ac_status=$?
28544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545   (exit $ac_status); }; }; then
28546   ac_cv_cxx_have_std_ext_hash_set=yes
28547 else
28548   echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28550
28551 ac_cv_cxx_have_std_ext_hash_set=no
28552 fi
28553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28554   ac_ext=c
28555 ac_cpp='$CPP $CPPFLAGS'
28556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28559
28560 fi
28561 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28562 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28563  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28564  then
28565
28566 cat >>confdefs.h <<\_ACEOF
28567 #define HAVE_STD_EXT_HASH_SET 1
28568 _ACEOF
28569
28570  else
28571
28572 cat >>confdefs.h <<\_ACEOF
28573 #define HAVE_STD_EXT_HASH_SET 0
28574 _ACEOF
28575
28576  fi
28577
28578  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28579 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28580 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28581   echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583
28584   ac_ext=cc
28585 ac_cpp='$CXXCPP $CPPFLAGS'
28586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28589
28590   cat >conftest.$ac_ext <<_ACEOF
28591 /* confdefs.h.  */
28592 _ACEOF
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h.  */
28596 #include <ext/hash_set>
28597 #ifdef HAVE_NAMESPACES
28598 using namespace __gnu_cxx;
28599 #endif
28600 int
28601 main ()
28602 {
28603 hash_set<int> t;
28604   ;
28605   return 0;
28606 }
28607 _ACEOF
28608 rm -f conftest.$ac_objext
28609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28610   (eval $ac_compile) 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } &&
28617          { ac_try='test -z "$ac_cxx_werror_flag"
28618                          || test ! -s conftest.err'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; } &&
28624          { ac_try='test -s conftest.$ac_objext'
28625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626   (eval $ac_try) 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); }; }; then
28630   ac_cv_cxx_have_gnu_ext_hash_set=yes
28631 else
28632   echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28634
28635 ac_cv_cxx_have_gnu_ext_hash_set=no
28636 fi
28637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638   ac_ext=c
28639 ac_cpp='$CPP $CPPFLAGS'
28640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28643
28644 fi
28645 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28646 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28647  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28648  then
28649
28650 cat >>confdefs.h <<\_ACEOF
28651 #define HAVE_GNU_EXT_HASH_SET 1
28652 _ACEOF
28653
28654  else
28655
28656 cat >>confdefs.h <<\_ACEOF
28657 #define HAVE_GNU_EXT_HASH_SET 0
28658 _ACEOF
28659
28660  fi
28661
28662  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28663 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28664 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28665   echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667
28668   ac_ext=cc
28669 ac_cpp='$CXXCPP $CPPFLAGS'
28670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28673
28674   cat >conftest.$ac_ext <<_ACEOF
28675 /* confdefs.h.  */
28676 _ACEOF
28677 cat confdefs.h >>conftest.$ac_ext
28678 cat >>conftest.$ac_ext <<_ACEOF
28679 /* end confdefs.h.  */
28680 #include <hash_set>
28681 int
28682 main ()
28683 {
28684 hash_set<int> t; return 0;
28685   ;
28686   return 0;
28687 }
28688 _ACEOF
28689 rm -f conftest.$ac_objext
28690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28691   (eval $ac_compile) 2>conftest.er1
28692   ac_status=$?
28693   grep -v '^ *+' conftest.er1 >conftest.err
28694   rm -f conftest.er1
28695   cat conftest.err >&5
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); } &&
28698          { ac_try='test -z "$ac_cxx_werror_flag"
28699                          || test ! -s conftest.err'
28700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701   (eval $ac_try) 2>&5
28702   ac_status=$?
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); }; } &&
28705          { ac_try='test -s conftest.$ac_objext'
28706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707   (eval $ac_try) 2>&5
28708   ac_status=$?
28709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710   (exit $ac_status); }; }; then
28711   ac_cv_cxx_have_global_hash_set=yes
28712 else
28713   echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28715
28716 ac_cv_cxx_have_global_hash_set=no
28717 fi
28718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28719   ac_ext=c
28720 ac_cpp='$CPP $CPPFLAGS'
28721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28724
28725 fi
28726 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28727 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28728  if test "$ac_cv_cxx_have_global_hash_set" = yes
28729  then
28730
28731 cat >>confdefs.h <<\_ACEOF
28732 #define HAVE_GLOBAL_HASH_SET 1
28733 _ACEOF
28734
28735  else
28736
28737 cat >>confdefs.h <<\_ACEOF
28738 #define HAVE_GLOBAL_HASH_SET 0
28739 _ACEOF
28740
28741  fi
28742
28743 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28744 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28745 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28746   echo $ECHO_N "(cached) $ECHO_C" >&6
28747 else
28748
28749   ac_ext=cc
28750 ac_cpp='$CXXCPP $CPPFLAGS'
28751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28754
28755   cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h.  */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h.  */
28761 #include <iterator>
28762 #ifdef HAVE_NAMESPACES
28763 using namespace std;
28764 #endif
28765 int
28766 main ()
28767 {
28768 iterator<int,int,int> t; return 0;
28769   ;
28770   return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28775   (eval $ac_compile) 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } &&
28782          { ac_try='test -z "$ac_cxx_werror_flag"
28783                          || test ! -s conftest.err'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; } &&
28789          { ac_try='test -s conftest.$ac_objext'
28790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791   (eval $ac_try) 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   ac_cv_cxx_have_std_iterator=yes
28796 else
28797   echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28799
28800 ac_cv_cxx_have_std_iterator=no
28801 fi
28802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28803   ac_ext=c
28804 ac_cpp='$CPP $CPPFLAGS'
28805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28808
28809
28810 fi
28811 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28812 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28813 if test "$ac_cv_cxx_have_std_iterator" = yes
28814 then
28815
28816 cat >>confdefs.h <<\_ACEOF
28817 #define HAVE_STD_ITERATOR 1
28818 _ACEOF
28819
28820 else
28821
28822 cat >>confdefs.h <<\_ACEOF
28823 #define HAVE_STD_ITERATOR 0
28824 _ACEOF
28825
28826 fi
28827
28828 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28829 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28830 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28831   echo $ECHO_N "(cached) $ECHO_C" >&6
28832 else
28833
28834   ac_ext=cc
28835 ac_cpp='$CXXCPP $CPPFLAGS'
28836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28839
28840   cat >conftest.$ac_ext <<_ACEOF
28841 /* confdefs.h.  */
28842 _ACEOF
28843 cat confdefs.h >>conftest.$ac_ext
28844 cat >>conftest.$ac_ext <<_ACEOF
28845 /* end confdefs.h.  */
28846 #include <iterator>
28847 #ifdef HAVE_NAMESPACES
28848 using namespace std;
28849 #endif
28850 int
28851 main ()
28852 {
28853 bidirectional_iterator<int,int> t; return 0;
28854   ;
28855   return 0;
28856 }
28857 _ACEOF
28858 rm -f conftest.$ac_objext
28859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28860   (eval $ac_compile) 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } &&
28867          { ac_try='test -z "$ac_cxx_werror_flag"
28868                          || test ! -s conftest.err'
28869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870   (eval $ac_try) 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; } &&
28874          { ac_try='test -s conftest.$ac_objext'
28875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876   (eval $ac_try) 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); }; }; then
28880   ac_cv_cxx_have_bi_iterator=yes
28881 else
28882   echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885 ac_cv_cxx_have_bi_iterator=no
28886 fi
28887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28888   ac_ext=c
28889 ac_cpp='$CPP $CPPFLAGS'
28890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28893
28894
28895 fi
28896 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28897 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28898 if test "$ac_cv_cxx_have_bi_iterator" = yes
28899 then
28900
28901 cat >>confdefs.h <<\_ACEOF
28902 #define HAVE_BI_ITERATOR 1
28903 _ACEOF
28904
28905 else
28906
28907 cat >>confdefs.h <<\_ACEOF
28908 #define HAVE_BI_ITERATOR 0
28909 _ACEOF
28910
28911 fi
28912
28913 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28914 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28915 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28916   echo $ECHO_N "(cached) $ECHO_C" >&6
28917 else
28918
28919   ac_ext=cc
28920 ac_cpp='$CXXCPP $CPPFLAGS'
28921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28924
28925   cat >conftest.$ac_ext <<_ACEOF
28926 /* confdefs.h.  */
28927 _ACEOF
28928 cat confdefs.h >>conftest.$ac_ext
28929 cat >>conftest.$ac_ext <<_ACEOF
28930 /* end confdefs.h.  */
28931 #include <iterator>
28932 #ifdef HAVE_NAMESPACES
28933 using namespace std;
28934 #endif
28935 int
28936 main ()
28937 {
28938 forward_iterator<int,int> t; return 0;
28939   ;
28940   return 0;
28941 }
28942 _ACEOF
28943 rm -f conftest.$ac_objext
28944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28945   (eval $ac_compile) 2>conftest.er1
28946   ac_status=$?
28947   grep -v '^ *+' conftest.er1 >conftest.err
28948   rm -f conftest.er1
28949   cat conftest.err >&5
28950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951   (exit $ac_status); } &&
28952          { ac_try='test -z "$ac_cxx_werror_flag"
28953                          || test ! -s conftest.err'
28954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955   (eval $ac_try) 2>&5
28956   ac_status=$?
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); }; } &&
28959          { ac_try='test -s conftest.$ac_objext'
28960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961   (eval $ac_try) 2>&5
28962   ac_status=$?
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); }; }; then
28965   ac_cv_cxx_have_fwd_iterator=yes
28966 else
28967   echo "$as_me: failed program was:" >&5
28968 sed 's/^/| /' conftest.$ac_ext >&5
28969
28970 ac_cv_cxx_have_fwd_iterator=no
28971 fi
28972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28973   ac_ext=c
28974 ac_cpp='$CPP $CPPFLAGS'
28975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28978
28979
28980 fi
28981 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28982 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28983 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28984 then
28985
28986 cat >>confdefs.h <<\_ACEOF
28987 #define HAVE_FWD_ITERATOR 1
28988 _ACEOF
28989
28990 else
28991
28992 cat >>confdefs.h <<\_ACEOF
28993 #define HAVE_FWD_ITERATOR 0
28994 _ACEOF
28995
28996 fi
28997
28998
28999 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29000 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29001 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29002   echo $ECHO_N "(cached) $ECHO_C" >&6
29003 else
29004   ac_ext=cc
29005 ac_cpp='$CXXCPP $CPPFLAGS'
29006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29009
29010    cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h.  */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h.  */
29016 #include <math.h>
29017 int
29018 main ()
29019 {
29020 float f; isnan(f);
29021   ;
29022   return 0;
29023 }
29024 _ACEOF
29025 rm -f conftest.$ac_objext
29026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29027   (eval $ac_compile) 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } &&
29034          { ac_try='test -z "$ac_cxx_werror_flag"
29035                          || test ! -s conftest.err'
29036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037   (eval $ac_try) 2>&5
29038   ac_status=$?
29039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); }; } &&
29041          { ac_try='test -s conftest.$ac_objext'
29042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043   (eval $ac_try) 2>&5
29044   ac_status=$?
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); }; }; then
29047   ac_cv_func_isnan_in_math_h=yes
29048 else
29049   echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052 ac_cv_func_isnan_in_math_h=no
29053 fi
29054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29055   ac_ext=c
29056 ac_cpp='$CPP $CPPFLAGS'
29057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29060
29061 fi
29062 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29063 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29064
29065
29066 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29067
29068 cat >>confdefs.h <<\_ACEOF
29069 #define HAVE_ISNAN_IN_MATH_H 1
29070 _ACEOF
29071
29072 fi
29073
29074 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29075 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29076 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29077   echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079   ac_ext=cc
29080 ac_cpp='$CXXCPP $CPPFLAGS'
29081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29084
29085    cat >conftest.$ac_ext <<_ACEOF
29086 /* confdefs.h.  */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h.  */
29091 #include <cmath>
29092 int
29093 main ()
29094 {
29095 float f; isnan(f);
29096   ;
29097   return 0;
29098 }
29099 _ACEOF
29100 rm -f conftest.$ac_objext
29101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29102   (eval $ac_compile) 2>conftest.er1
29103   ac_status=$?
29104   grep -v '^ *+' conftest.er1 >conftest.err
29105   rm -f conftest.er1
29106   cat conftest.err >&5
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); } &&
29109          { ac_try='test -z "$ac_cxx_werror_flag"
29110                          || test ! -s conftest.err'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; } &&
29116          { ac_try='test -s conftest.$ac_objext'
29117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118   (eval $ac_try) 2>&5
29119   ac_status=$?
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); }; }; then
29122   ac_cv_func_isnan_in_cmath=yes
29123 else
29124   echo "$as_me: failed program was:" >&5
29125 sed 's/^/| /' conftest.$ac_ext >&5
29126
29127 ac_cv_func_isnan_in_cmath=no
29128 fi
29129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29130   ac_ext=c
29131 ac_cpp='$CPP $CPPFLAGS'
29132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29135
29136 fi
29137 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29138 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29139
29140 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29141
29142 cat >>confdefs.h <<\_ACEOF
29143 #define HAVE_ISNAN_IN_CMATH 1
29144 _ACEOF
29145
29146 fi
29147
29148 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29149 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29150 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29151   echo $ECHO_N "(cached) $ECHO_C" >&6
29152 else
29153   ac_ext=cc
29154 ac_cpp='$CXXCPP $CPPFLAGS'
29155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29158
29159    cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 #include <cmath>
29166 int
29167 main ()
29168 {
29169 float f; std::isnan(f);
29170   ;
29171   return 0;
29172 }
29173 _ACEOF
29174 rm -f conftest.$ac_objext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29176   (eval $ac_compile) 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } &&
29183          { ac_try='test -z "$ac_cxx_werror_flag"
29184                          || test ! -s conftest.err'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; } &&
29190          { ac_try='test -s conftest.$ac_objext'
29191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192   (eval $ac_try) 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); }; }; then
29196   ac_cv_func_std_isnan_in_cmath=yes
29197 else
29198   echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29200
29201 ac_cv_func_std_isnan_in_cmath=no
29202 fi
29203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29204   ac_ext=c
29205 ac_cpp='$CPP $CPPFLAGS'
29206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29209
29210 fi
29211 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29212 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29213
29214 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29215
29216 cat >>confdefs.h <<\_ACEOF
29217 #define HAVE_STD_ISNAN_IN_CMATH 1
29218 _ACEOF
29219
29220 fi
29221
29222
29223 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29224 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29225 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228   ac_ext=cc
29229 ac_cpp='$CXXCPP $CPPFLAGS'
29230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29233
29234    cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h.  */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h.  */
29240 #include <math.h>
29241 int
29242 main ()
29243 {
29244 float f; isinf(f);
29245   ;
29246   return 0;
29247 }
29248 _ACEOF
29249 rm -f conftest.$ac_objext
29250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29251   (eval $ac_compile) 2>conftest.er1
29252   ac_status=$?
29253   grep -v '^ *+' conftest.er1 >conftest.err
29254   rm -f conftest.er1
29255   cat conftest.err >&5
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); } &&
29258          { ac_try='test -z "$ac_cxx_werror_flag"
29259                          || test ! -s conftest.err'
29260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261   (eval $ac_try) 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); }; } &&
29265          { ac_try='test -s conftest.$ac_objext'
29266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267   (eval $ac_try) 2>&5
29268   ac_status=$?
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); }; }; then
29271   ac_cv_func_isinf_in_math_h=yes
29272 else
29273   echo "$as_me: failed program was:" >&5
29274 sed 's/^/| /' conftest.$ac_ext >&5
29275
29276 ac_cv_func_isinf_in_math_h=no
29277 fi
29278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29279   ac_ext=c
29280 ac_cpp='$CPP $CPPFLAGS'
29281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29284
29285 fi
29286 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29287 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29288
29289 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29290
29291 cat >>confdefs.h <<\_ACEOF
29292 #define HAVE_ISINF_IN_MATH_H 1
29293 _ACEOF
29294
29295 fi
29296
29297 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29298 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29299 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302   ac_ext=cc
29303 ac_cpp='$CXXCPP $CPPFLAGS'
29304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29307
29308    cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314 #include <cmath>
29315 int
29316 main ()
29317 {
29318 float f; isinf(f);
29319   ;
29320   return 0;
29321 }
29322 _ACEOF
29323 rm -f conftest.$ac_objext
29324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29325   (eval $ac_compile) 2>conftest.er1
29326   ac_status=$?
29327   grep -v '^ *+' conftest.er1 >conftest.err
29328   rm -f conftest.er1
29329   cat conftest.err >&5
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); } &&
29332          { ac_try='test -z "$ac_cxx_werror_flag"
29333                          || test ! -s conftest.err'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; } &&
29339          { ac_try='test -s conftest.$ac_objext'
29340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341   (eval $ac_try) 2>&5
29342   ac_status=$?
29343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344   (exit $ac_status); }; }; then
29345   ac_cv_func_isinf_in_cmath=yes
29346 else
29347   echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350 ac_cv_func_isinf_in_cmath=no
29351 fi
29352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29353   ac_ext=c
29354 ac_cpp='$CPP $CPPFLAGS'
29355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29358
29359 fi
29360 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29361 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29362
29363 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29364
29365 cat >>confdefs.h <<\_ACEOF
29366 #define HAVE_ISINF_IN_CMATH 1
29367 _ACEOF
29368
29369 fi
29370
29371 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29372 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29373 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29374   echo $ECHO_N "(cached) $ECHO_C" >&6
29375 else
29376   ac_ext=cc
29377 ac_cpp='$CXXCPP $CPPFLAGS'
29378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29381
29382    cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h.  */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h.  */
29388 #include <cmath>
29389 int
29390 main ()
29391 {
29392 float f; std::isinf(f)}
29393   ;
29394   return 0;
29395 }
29396 _ACEOF
29397 rm -f conftest.$ac_objext
29398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29399   (eval $ac_compile) 2>conftest.er1
29400   ac_status=$?
29401   grep -v '^ *+' conftest.er1 >conftest.err
29402   rm -f conftest.er1
29403   cat conftest.err >&5
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); } &&
29406          { ac_try='test -z "$ac_cxx_werror_flag"
29407                          || test ! -s conftest.err'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; } &&
29413          { ac_try='test -s conftest.$ac_objext'
29414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415   (eval $ac_try) 2>&5
29416   ac_status=$?
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); }; }; then
29419   ac_cv_func_std_isinf_in_cmath=yes
29420 else
29421   echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29423
29424 ac_cv_func_std_isinf_in_cmath=no
29425 fi
29426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29427   ac_ext=c
29428 ac_cpp='$CPP $CPPFLAGS'
29429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29432
29433 fi
29434 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29435 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29436
29437 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29438
29439 cat >>confdefs.h <<\_ACEOF
29440 #define HAVE_STD_ISINF_IN_CMATH 1
29441 _ACEOF
29442
29443 fi
29444
29445 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29446 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29447 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29448   echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450   ac_ext=cc
29451 ac_cpp='$CXXCPP $CPPFLAGS'
29452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29455
29456    cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 #include <ieeefp.h>
29463 int
29464 main ()
29465 {
29466 float f; finite(f);
29467   ;
29468   return 0;
29469 }
29470 _ACEOF
29471 rm -f conftest.$ac_objext
29472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29473   (eval $ac_compile) 2>conftest.er1
29474   ac_status=$?
29475   grep -v '^ *+' conftest.er1 >conftest.err
29476   rm -f conftest.er1
29477   cat conftest.err >&5
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); } &&
29480          { ac_try='test -z "$ac_cxx_werror_flag"
29481                          || test ! -s conftest.err'
29482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483   (eval $ac_try) 2>&5
29484   ac_status=$?
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); }; } &&
29487          { ac_try='test -s conftest.$ac_objext'
29488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489   (eval $ac_try) 2>&5
29490   ac_status=$?
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); }; }; then
29493   ac_cv_func_finite_in_ieeefp_h=yes
29494 else
29495   echo "$as_me: failed program was:" >&5
29496 sed 's/^/| /' conftest.$ac_ext >&5
29497
29498 ac_cv_func_finite_in_ieeefp_h=no
29499 fi
29500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29501   ac_ext=c
29502 ac_cpp='$CPP $CPPFLAGS'
29503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29506
29507 fi
29508 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29509 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29510
29511 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29512
29513 cat >>confdefs.h <<\_ACEOF
29514 #define HAVE_FINITE_IN_IEEEFP_H 1
29515 _ACEOF
29516
29517 fi
29518
29519
29520
29521
29522
29523 for ac_header in stdlib.h unistd.h
29524 do
29525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29527   echo "$as_me:$LINENO: checking for $ac_header" >&5
29528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29530   echo $ECHO_N "(cached) $ECHO_C" >&6
29531 fi
29532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29534 else
29535   # Is the header compilable?
29536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29538 cat >conftest.$ac_ext <<_ACEOF
29539 /* confdefs.h.  */
29540 _ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h.  */
29544 $ac_includes_default
29545 #include <$ac_header>
29546 _ACEOF
29547 rm -f conftest.$ac_objext
29548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29549   (eval $ac_compile) 2>conftest.er1
29550   ac_status=$?
29551   grep -v '^ *+' conftest.er1 >conftest.err
29552   rm -f conftest.er1
29553   cat conftest.err >&5
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); } &&
29556          { ac_try='test -z "$ac_c_werror_flag"
29557                          || test ! -s conftest.err'
29558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559   (eval $ac_try) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); }; } &&
29563          { ac_try='test -s conftest.$ac_objext'
29564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565   (eval $ac_try) 2>&5
29566   ac_status=$?
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); }; }; then
29569   ac_header_compiler=yes
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574 ac_header_compiler=no
29575 fi
29576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29578 echo "${ECHO_T}$ac_header_compiler" >&6
29579
29580 # Is the header present?
29581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h.  */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h.  */
29589 #include <$ac_header>
29590 _ACEOF
29591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29593   ac_status=$?
29594   grep -v '^ *+' conftest.er1 >conftest.err
29595   rm -f conftest.er1
29596   cat conftest.err >&5
29597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598   (exit $ac_status); } >/dev/null; then
29599   if test -s conftest.err; then
29600     ac_cpp_err=$ac_c_preproc_warn_flag
29601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29602   else
29603     ac_cpp_err=
29604   fi
29605 else
29606   ac_cpp_err=yes
29607 fi
29608 if test -z "$ac_cpp_err"; then
29609   ac_header_preproc=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614   ac_header_preproc=no
29615 fi
29616 rm -f conftest.err conftest.$ac_ext
29617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29618 echo "${ECHO_T}$ac_header_preproc" >&6
29619
29620 # So?  What about this header?
29621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29622   yes:no: )
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29627     ac_header_preproc=yes
29628     ;;
29629   no:yes:* )
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29642     (
29643       cat <<\_ASBOX
29644 ## ----------------------------------- ##
29645 ## Report this to llvmbugs@cs.uiuc.edu ##
29646 ## ----------------------------------- ##
29647 _ASBOX
29648     ) |
29649       sed "s/^/$as_me: WARNING:     /" >&2
29650     ;;
29651 esac
29652 echo "$as_me:$LINENO: checking for $ac_header" >&5
29653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29655   echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29657   eval "$as_ac_Header=\$ac_header_preproc"
29658 fi
29659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29661
29662 fi
29663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29664   cat >>confdefs.h <<_ACEOF
29665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29666 _ACEOF
29667
29668 fi
29669
29670 done
29671
29672
29673 for ac_func in getpagesize
29674 do
29675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29676 echo "$as_me:$LINENO: checking for $ac_func" >&5
29677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29678 if eval "test \"\${$as_ac_var+set}\" = set"; then
29679   echo $ECHO_N "(cached) $ECHO_C" >&6
29680 else
29681   cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29689 #define $ac_func innocuous_$ac_func
29690
29691 /* System header to define __stub macros and hopefully few prototypes,
29692     which can conflict with char $ac_func (); below.
29693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29694     <limits.h> exists even on freestanding compilers.  */
29695
29696 #ifdef __STDC__
29697 # include <limits.h>
29698 #else
29699 # include <assert.h>
29700 #endif
29701
29702 #undef $ac_func
29703
29704 /* Override any gcc2 internal prototype to avoid an error.  */
29705 #ifdef __cplusplus
29706 extern "C"
29707 {
29708 #endif
29709 /* We use char because int might match the return type of a gcc2
29710    builtin and then its argument prototype would still apply.  */
29711 char $ac_func ();
29712 /* The GNU C library defines this for functions which it implements
29713     to always fail with ENOSYS.  Some functions are actually named
29714     something starting with __ and the normal name is an alias.  */
29715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29716 choke me
29717 #else
29718 char (*f) () = $ac_func;
29719 #endif
29720 #ifdef __cplusplus
29721 }
29722 #endif
29723
29724 int
29725 main ()
29726 {
29727 return f != $ac_func;
29728   ;
29729   return 0;
29730 }
29731 _ACEOF
29732 rm -f conftest.$ac_objext conftest$ac_exeext
29733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29734   (eval $ac_link) 2>conftest.er1
29735   ac_status=$?
29736   grep -v '^ *+' conftest.er1 >conftest.err
29737   rm -f conftest.er1
29738   cat conftest.err >&5
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } &&
29741          { ac_try='test -z "$ac_c_werror_flag"
29742                          || test ! -s conftest.err'
29743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744   (eval $ac_try) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; } &&
29748          { ac_try='test -s conftest$ac_exeext'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; }; then
29754   eval "$as_ac_var=yes"
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759 eval "$as_ac_var=no"
29760 fi
29761 rm -f conftest.err conftest.$ac_objext \
29762       conftest$ac_exeext conftest.$ac_ext
29763 fi
29764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29766 if test `eval echo '${'$as_ac_var'}'` = yes; then
29767   cat >>confdefs.h <<_ACEOF
29768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29769 _ACEOF
29770
29771 fi
29772 done
29773
29774 echo "$as_me:$LINENO: checking for working mmap" >&5
29775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29777   echo $ECHO_N "(cached) $ECHO_C" >&6
29778 else
29779   if test "$cross_compiling" = yes; then
29780   ac_cv_func_mmap_fixed_mapped=no
29781 else
29782   cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 $ac_includes_default
29789 /* malloc might have been renamed as rpl_malloc. */
29790 #undef malloc
29791
29792 /* Thanks to Mike Haertel and Jim Avera for this test.
29793    Here is a matrix of mmap possibilities:
29794         mmap private not fixed
29795         mmap private fixed at somewhere currently unmapped
29796         mmap private fixed at somewhere already mapped
29797         mmap shared not fixed
29798         mmap shared fixed at somewhere currently unmapped
29799         mmap shared fixed at somewhere already mapped
29800    For private mappings, we should verify that changes cannot be read()
29801    back from the file, nor mmap's back from the file at a different
29802    address.  (There have been systems where private was not correctly
29803    implemented like the infamous i386 svr4.0, and systems where the
29804    VM page cache was not coherent with the file system buffer cache
29805    like early versions of FreeBSD and possibly contemporary NetBSD.)
29806    For shared mappings, we should conversely verify that changes get
29807    propagated back to all the places they're supposed to be.
29808
29809    Grep wants private fixed already mapped.
29810    The main things grep needs to know about mmap are:
29811    * does it exist and is it safe to write into the mmap'd area
29812    * how to use it (BSD variants)  */
29813
29814 #include <fcntl.h>
29815 #include <sys/mman.h>
29816
29817 #if !STDC_HEADERS && !HAVE_STDLIB_H
29818 char *malloc ();
29819 #endif
29820
29821 /* This mess was copied from the GNU getpagesize.h.  */
29822 #if !HAVE_GETPAGESIZE
29823 /* Assume that all systems that can run configure have sys/param.h.  */
29824 # if !HAVE_SYS_PARAM_H
29825 #  define HAVE_SYS_PARAM_H 1
29826 # endif
29827
29828 # ifdef _SC_PAGESIZE
29829 #  define getpagesize() sysconf(_SC_PAGESIZE)
29830 # else /* no _SC_PAGESIZE */
29831 #  if HAVE_SYS_PARAM_H
29832 #   include <sys/param.h>
29833 #   ifdef EXEC_PAGESIZE
29834 #    define getpagesize() EXEC_PAGESIZE
29835 #   else /* no EXEC_PAGESIZE */
29836 #    ifdef NBPG
29837 #     define getpagesize() NBPG * CLSIZE
29838 #     ifndef CLSIZE
29839 #      define CLSIZE 1
29840 #     endif /* no CLSIZE */
29841 #    else /* no NBPG */
29842 #     ifdef NBPC
29843 #      define getpagesize() NBPC
29844 #     else /* no NBPC */
29845 #      ifdef PAGESIZE
29846 #       define getpagesize() PAGESIZE
29847 #      endif /* PAGESIZE */
29848 #     endif /* no NBPC */
29849 #    endif /* no NBPG */
29850 #   endif /* no EXEC_PAGESIZE */
29851 #  else /* no HAVE_SYS_PARAM_H */
29852 #   define getpagesize() 8192   /* punt totally */
29853 #  endif /* no HAVE_SYS_PARAM_H */
29854 # endif /* no _SC_PAGESIZE */
29855
29856 #endif /* no HAVE_GETPAGESIZE */
29857
29858 int
29859 main ()
29860 {
29861   char *data, *data2, *data3;
29862   int i, pagesize;
29863   int fd;
29864
29865   pagesize = getpagesize ();
29866
29867   /* First, make a file with some known garbage in it. */
29868   data = (char *) malloc (pagesize);
29869   if (!data)
29870     exit (1);
29871   for (i = 0; i < pagesize; ++i)
29872     *(data + i) = rand ();
29873   umask (0);
29874   fd = creat ("conftest.mmap", 0600);
29875   if (fd < 0)
29876     exit (1);
29877   if (write (fd, data, pagesize) != pagesize)
29878     exit (1);
29879   close (fd);
29880
29881   /* Next, try to mmap the file at a fixed address which already has
29882      something else allocated at it.  If we can, also make sure that
29883      we see the same garbage.  */
29884   fd = open ("conftest.mmap", O_RDWR);
29885   if (fd < 0)
29886     exit (1);
29887   data2 = (char *) malloc (2 * pagesize);
29888   if (!data2)
29889     exit (1);
29890   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29891   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29892                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29893     exit (1);
29894   for (i = 0; i < pagesize; ++i)
29895     if (*(data + i) != *(data2 + i))
29896       exit (1);
29897
29898   /* Finally, make sure that changes to the mapped area do not
29899      percolate back to the file as seen by read().  (This is a bug on
29900      some variants of i386 svr4.0.)  */
29901   for (i = 0; i < pagesize; ++i)
29902     *(data2 + i) = *(data2 + i) + 1;
29903   data3 = (char *) malloc (pagesize);
29904   if (!data3)
29905     exit (1);
29906   if (read (fd, data3, pagesize) != pagesize)
29907     exit (1);
29908   for (i = 0; i < pagesize; ++i)
29909     if (*(data + i) != *(data3 + i))
29910       exit (1);
29911   close (fd);
29912   exit (0);
29913 }
29914 _ACEOF
29915 rm -f conftest$ac_exeext
29916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29917   (eval $ac_link) 2>&5
29918   ac_status=$?
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29922   (eval $ac_try) 2>&5
29923   ac_status=$?
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); }; }; then
29926   ac_cv_func_mmap_fixed_mapped=yes
29927 else
29928   echo "$as_me: program exited with status $ac_status" >&5
29929 echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 ( exit $ac_status )
29933 ac_cv_func_mmap_fixed_mapped=no
29934 fi
29935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29936 fi
29937 fi
29938 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29939 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29940 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29941
29942 cat >>confdefs.h <<\_ACEOF
29943 #define HAVE_MMAP 1
29944 _ACEOF
29945
29946 fi
29947 rm -f conftest.mmap
29948
29949 echo "$as_me:$LINENO: checking for mmap of files" >&5
29950 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29951 if test "${ac_cv_func_mmap_file+set}" = set; then
29952   echo $ECHO_N "(cached) $ECHO_C" >&6
29953 else
29954    ac_ext=c
29955 ac_cpp='$CPP $CPPFLAGS'
29956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29959
29960   if test "$cross_compiling" = yes; then
29961   ac_cv_func_mmap_file=no
29962 else
29963   cat >conftest.$ac_ext <<_ACEOF
29964
29965     /* confdefs.h.  */
29966 _ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h.  */
29970
29971 #include <sys/types.h>
29972 #include <sys/mman.h>
29973 #include <fcntl.h>
29974
29975 int
29976 main ()
29977 {
29978
29979   int fd;
29980   fd = creat ("foo",0777);
29981   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29982   unlink ("foo");
29983   return (fd != (int) MAP_FAILED);
29984   ;
29985   return 0;
29986 }
29987 _ACEOF
29988 rm -f conftest$ac_exeext
29989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29990   (eval $ac_link) 2>&5
29991   ac_status=$?
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995   (eval $ac_try) 2>&5
29996   ac_status=$?
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); }; }; then
29999   ac_cv_func_mmap_file=yes
30000 else
30001   echo "$as_me: program exited with status $ac_status" >&5
30002 echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30004
30005 ( exit $ac_status )
30006 ac_cv_func_mmap_file=no
30007 fi
30008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30009 fi
30010   ac_ext=c
30011 ac_cpp='$CPP $CPPFLAGS'
30012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015
30016
30017 fi
30018 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30019 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30020 if test "$ac_cv_func_mmap_file" = yes; then
30021
30022 cat >>confdefs.h <<\_ACEOF
30023 #define HAVE_MMAP_FILE
30024 _ACEOF
30025
30026    MMAP_FILE=yes
30027
30028 fi
30029
30030 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30031 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30032 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30033   echo $ECHO_N "(cached) $ECHO_C" >&6
30034 else
30035   if test "$llvm_cv_os_type" = "Interix" ; then
30036    ac_cv_need_dev_zero_for_mmap=yes
30037  else
30038    ac_cv_need_dev_zero_for_mmap=no
30039  fi
30040
30041 fi
30042 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30043 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30044 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30045
30046 cat >>confdefs.h <<\_ACEOF
30047 #define NEED_DEV_ZERO_FOR_MMAP 1
30048 _ACEOF
30049
30050 fi
30051 echo "$as_me:$LINENO: checking for mprotect" >&5
30052 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30053 if test "${ac_cv_func_mprotect+set}" = set; then
30054   echo $ECHO_N "(cached) $ECHO_C" >&6
30055 else
30056   cat >conftest.$ac_ext <<_ACEOF
30057 /* confdefs.h.  */
30058 _ACEOF
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h.  */
30062 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30064 #define mprotect innocuous_mprotect
30065
30066 /* System header to define __stub macros and hopefully few prototypes,
30067     which can conflict with char mprotect (); below.
30068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30069     <limits.h> exists even on freestanding compilers.  */
30070
30071 #ifdef __STDC__
30072 # include <limits.h>
30073 #else
30074 # include <assert.h>
30075 #endif
30076
30077 #undef mprotect
30078
30079 /* Override any gcc2 internal prototype to avoid an error.  */
30080 #ifdef __cplusplus
30081 extern "C"
30082 {
30083 #endif
30084 /* We use char because int might match the return type of a gcc2
30085    builtin and then its argument prototype would still apply.  */
30086 char mprotect ();
30087 /* The GNU C library defines this for functions which it implements
30088     to always fail with ENOSYS.  Some functions are actually named
30089     something starting with __ and the normal name is an alias.  */
30090 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30091 choke me
30092 #else
30093 char (*f) () = mprotect;
30094 #endif
30095 #ifdef __cplusplus
30096 }
30097 #endif
30098
30099 int
30100 main ()
30101 {
30102 return f != mprotect;
30103   ;
30104   return 0;
30105 }
30106 _ACEOF
30107 rm -f conftest.$ac_objext conftest$ac_exeext
30108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30109   (eval $ac_link) 2>conftest.er1
30110   ac_status=$?
30111   grep -v '^ *+' conftest.er1 >conftest.err
30112   rm -f conftest.er1
30113   cat conftest.err >&5
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); } &&
30116          { ac_try='test -z "$ac_c_werror_flag"
30117                          || test ! -s conftest.err'
30118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119   (eval $ac_try) 2>&5
30120   ac_status=$?
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); }; } &&
30123          { ac_try='test -s conftest$ac_exeext'
30124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125   (eval $ac_try) 2>&5
30126   ac_status=$?
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); }; }; then
30129   ac_cv_func_mprotect=yes
30130 else
30131   echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30133
30134 ac_cv_func_mprotect=no
30135 fi
30136 rm -f conftest.err conftest.$ac_objext \
30137       conftest$ac_exeext conftest.$ac_ext
30138 fi
30139 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30140 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30141 if test $ac_cv_func_mprotect = yes; then
30142   :
30143 else
30144   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30145 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30146    { (exit 1); exit 1; }; }
30147 fi
30148
30149
30150 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30151 then
30152   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30153 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30154 fi
30155 if test "$ac_cv_func_mmap_file" = "no"
30156 then
30157   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30158 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30159 fi
30160
30161
30162 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30163 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30164 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30165   echo $ECHO_N "(cached) $ECHO_C" >&6
30166 else
30167   llvm_cv_llvmgcc_sanity="no"
30168 if test -x "$LLVMGCC" ; then
30169   cp /dev/null conftest.c
30170   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30171   if test $? -eq 0 ; then
30172     llvm_cv_llvmgcc_sanity="yes"
30173   fi
30174   rm conftest.c
30175 fi
30176 fi
30177 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30178 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30179
30180 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30181   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30182   LLVMCC1=$llvmcc1path
30183
30184   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30185   LLVMCC1PLUS=$llvmcc1pluspath
30186
30187   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30188   LLVMGCCDIR=$llvmgccdir
30189
30190 fi
30191
30192 SHLIBEXT=$libltdl_cv_shlibext
30193
30194
30195 # Translate the various configuration directories and other basic
30196 # information into substitutions that will end up in Makefile.config.in
30197 # that these configured values can be used by the makefiles
30198 eval LLVM_PREFIX="${prefix}";
30199 eval LLVM_BINDIR="${prefix}/bin";
30200 eval LLVM_LIBDIR="${prefix}/lib";
30201 eval LLVM_DATADIR="${prefix}/share/llvm";
30202 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30203 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30204 eval LLVM_INCLUDEDIR="${prefix}/include";
30205 eval LLVM_INFODIR="${prefix}/info";
30206 eval LLVM_MANDIR="${prefix}/man";
30207 LLVM_CONFIGTIME=`date`
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219 # Place the various directores into the config.h file as #defines so that we
30220 # can know about the installation paths within LLVM.
30221
30222 cat >>confdefs.h <<_ACEOF
30223 #define LLVM_PREFIX "$LLVM_PREFIX"
30224 _ACEOF
30225
30226
30227 cat >>confdefs.h <<_ACEOF
30228 #define LLVM_BINDIR "$LLVM_BINDIR"
30229 _ACEOF
30230
30231
30232 cat >>confdefs.h <<_ACEOF
30233 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30234 _ACEOF
30235
30236
30237 cat >>confdefs.h <<_ACEOF
30238 #define LLVM_DATADIR "$LLVM_DATADIR"
30239 _ACEOF
30240
30241
30242 cat >>confdefs.h <<_ACEOF
30243 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30244 _ACEOF
30245
30246
30247 cat >>confdefs.h <<_ACEOF
30248 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30249 _ACEOF
30250
30251
30252 cat >>confdefs.h <<_ACEOF
30253 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30254 _ACEOF
30255
30256
30257 cat >>confdefs.h <<_ACEOF
30258 #define LLVM_INFODIR "$LLVM_INFODIR"
30259 _ACEOF
30260
30261
30262 cat >>confdefs.h <<_ACEOF
30263 #define LLVM_MANDIR "$LLVM_MANDIR"
30264 _ACEOF
30265
30266
30267 cat >>confdefs.h <<_ACEOF
30268 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30269 _ACEOF
30270
30271
30272
30273           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30274
30275
30276           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30277
30278           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30279
30280           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30281
30282           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30283
30284           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30285
30286
30287           ac_config_files="$ac_config_files Makefile.config"
30288
30289
30290                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30291
30292
30293           ac_config_files="$ac_config_files docs/doxygen.cfg"
30294
30295
30296           ac_config_commands="$ac_config_commands setup"
30297
30298           ac_config_commands="$ac_config_commands Makefile"
30299
30300
30301           ac_config_commands="$ac_config_commands Makefile.common"
30302
30303
30304           ac_config_commands="$ac_config_commands examples/Makefile"
30305
30306
30307           ac_config_commands="$ac_config_commands lib/Makefile"
30308
30309
30310           ac_config_commands="$ac_config_commands runtime/Makefile"
30311
30312
30313           ac_config_commands="$ac_config_commands test/Makefile"
30314
30315
30316           ac_config_commands="$ac_config_commands test/Makefile.tests"
30317
30318
30319           ac_config_commands="$ac_config_commands tools/Makefile"
30320
30321
30322           ac_config_commands="$ac_config_commands utils/Makefile"
30323
30324
30325           ac_config_commands="$ac_config_commands projects/Makefile"
30326
30327
30328
30329 cat >confcache <<\_ACEOF
30330 # This file is a shell script that caches the results of configure
30331 # tests run on this system so they can be shared between configure
30332 # scripts and configure runs, see configure's option --config-cache.
30333 # It is not useful on other systems.  If it contains results you don't
30334 # want to keep, you may remove or edit it.
30335 #
30336 # config.status only pays attention to the cache file if you give it
30337 # the --recheck option to rerun configure.
30338 #
30339 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30341 # following values.
30342
30343 _ACEOF
30344
30345 # The following way of writing the cache mishandles newlines in values,
30346 # but we know of no workaround that is simple, portable, and efficient.
30347 # So, don't put newlines in cache variables' values.
30348 # Ultrix sh set writes to stderr and can't be redirected directly,
30349 # and sets the high bit in the cache file unless we assign to the vars.
30350 {
30351   (set) 2>&1 |
30352     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30353     *ac_space=\ *)
30354       # `set' does not quote correctly, so add quotes (double-quote
30355       # substitution turns \\\\ into \\, and sed turns \\ into \).
30356       sed -n \
30357         "s/'/'\\\\''/g;
30358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30359       ;;
30360     *)
30361       # `set' quotes correctly as required by POSIX, so do not add quotes.
30362       sed -n \
30363         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30364       ;;
30365     esac;
30366 } |
30367   sed '
30368      t clear
30369      : clear
30370      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30371      t end
30372      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30373      : end' >>confcache
30374 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30375   if test -w $cache_file; then
30376     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30377     cat confcache >$cache_file
30378   else
30379     echo "not updating unwritable cache $cache_file"
30380   fi
30381 fi
30382 rm -f confcache
30383
30384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30385 # Let make expand exec_prefix.
30386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30387
30388 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30389 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30390 # trailing colons and then remove the whole line if VPATH becomes empty
30391 # (actually we leave an empty line to preserve line numbers).
30392 if test "x$srcdir" = x.; then
30393   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30394 s/:*\$(srcdir):*/:/;
30395 s/:*\${srcdir}:*/:/;
30396 s/:*@srcdir@:*/:/;
30397 s/^\([^=]*=[     ]*\):*/\1/;
30398 s/:*$//;
30399 s/^[^=]*=[       ]*$//;
30400 }'
30401 fi
30402
30403 DEFS=-DHAVE_CONFIG_H
30404
30405 ac_libobjs=
30406 ac_ltlibobjs=
30407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30408   # 1. Remove the extension, and $U if already installed.
30409   ac_i=`echo "$ac_i" |
30410          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30411   # 2. Add them.
30412   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30413   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30414 done
30415 LIBOBJS=$ac_libobjs
30416
30417 LTLIBOBJS=$ac_ltlibobjs
30418
30419
30420 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30421   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30422 Usually this means the macro was only invoked conditionally." >&5
30423 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30424 Usually this means the macro was only invoked conditionally." >&2;}
30425    { (exit 1); exit 1; }; }
30426 fi
30427 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30428   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30429 Usually this means the macro was only invoked conditionally." >&5
30430 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30431 Usually this means the macro was only invoked conditionally." >&2;}
30432    { (exit 1); exit 1; }; }
30433 fi
30434
30435 : ${CONFIG_STATUS=./config.status}
30436 ac_clean_files_save=$ac_clean_files
30437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30438 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30439 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30440 cat >$CONFIG_STATUS <<_ACEOF
30441 #! $SHELL
30442 # Generated by $as_me.
30443 # Run this file to recreate the current configuration.
30444 # Compiler output produced by configure, useful for debugging
30445 # configure, is in config.log if it exists.
30446
30447 debug=false
30448 ac_cs_recheck=false
30449 ac_cs_silent=false
30450 SHELL=\${CONFIG_SHELL-$SHELL}
30451 _ACEOF
30452
30453 cat >>$CONFIG_STATUS <<\_ACEOF
30454 ## --------------------- ##
30455 ## M4sh Initialization.  ##
30456 ## --------------------- ##
30457
30458 # Be Bourne compatible
30459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30460   emulate sh
30461   NULLCMD=:
30462   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30463   # is contrary to our usage.  Disable this feature.
30464   alias -g '${1+"$@"}'='"$@"'
30465 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30466   set -o posix
30467 fi
30468 DUALCASE=1; export DUALCASE # for MKS sh
30469
30470 # Support unset when possible.
30471 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30472   as_unset=unset
30473 else
30474   as_unset=false
30475 fi
30476
30477
30478 # Work around bugs in pre-3.0 UWIN ksh.
30479 $as_unset ENV MAIL MAILPATH
30480 PS1='$ '
30481 PS2='> '
30482 PS4='+ '
30483
30484 # NLS nuisances.
30485 for as_var in \
30486   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30487   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30488   LC_TELEPHONE LC_TIME
30489 do
30490   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30491     eval $as_var=C; export $as_var
30492   else
30493     $as_unset $as_var
30494   fi
30495 done
30496
30497 # Required to use basename.
30498 if expr a : '\(a\)' >/dev/null 2>&1; then
30499   as_expr=expr
30500 else
30501   as_expr=false
30502 fi
30503
30504 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30505   as_basename=basename
30506 else
30507   as_basename=false
30508 fi
30509
30510
30511 # Name of the executable.
30512 as_me=`$as_basename "$0" ||
30513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30514          X"$0" : 'X\(//\)$' \| \
30515          X"$0" : 'X\(/\)$' \| \
30516          .     : '\(.\)' 2>/dev/null ||
30517 echo X/"$0" |
30518     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30519           /^X\/\(\/\/\)$/{ s//\1/; q; }
30520           /^X\/\(\/\).*/{ s//\1/; q; }
30521           s/.*/./; q'`
30522
30523
30524 # PATH needs CR, and LINENO needs CR and PATH.
30525 # Avoid depending upon Character Ranges.
30526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30529 as_cr_digits='0123456789'
30530 as_cr_alnum=$as_cr_Letters$as_cr_digits
30531
30532 # The user is always right.
30533 if test "${PATH_SEPARATOR+set}" != set; then
30534   echo "#! /bin/sh" >conf$$.sh
30535   echo  "exit 0"   >>conf$$.sh
30536   chmod +x conf$$.sh
30537   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30538     PATH_SEPARATOR=';'
30539   else
30540     PATH_SEPARATOR=:
30541   fi
30542   rm -f conf$$.sh
30543 fi
30544
30545
30546   as_lineno_1=$LINENO
30547   as_lineno_2=$LINENO
30548   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30549   test "x$as_lineno_1" != "x$as_lineno_2" &&
30550   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30551   # Find who we are.  Look in the path if we contain no path at all
30552   # relative or not.
30553   case $0 in
30554     *[\\/]* ) as_myself=$0 ;;
30555     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30556 for as_dir in $PATH
30557 do
30558   IFS=$as_save_IFS
30559   test -z "$as_dir" && as_dir=.
30560   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30561 done
30562
30563        ;;
30564   esac
30565   # We did not find ourselves, most probably we were run as `sh COMMAND'
30566   # in which case we are not to be found in the path.
30567   if test "x$as_myself" = x; then
30568     as_myself=$0
30569   fi
30570   if test ! -f "$as_myself"; then
30571     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30572 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30573    { (exit 1); exit 1; }; }
30574   fi
30575   case $CONFIG_SHELL in
30576   '')
30577     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30578 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30579 do
30580   IFS=$as_save_IFS
30581   test -z "$as_dir" && as_dir=.
30582   for as_base in sh bash ksh sh5; do
30583          case $as_dir in
30584          /*)
30585            if ("$as_dir/$as_base" -c '
30586   as_lineno_1=$LINENO
30587   as_lineno_2=$LINENO
30588   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30589   test "x$as_lineno_1" != "x$as_lineno_2" &&
30590   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30591              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30592              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30593              CONFIG_SHELL=$as_dir/$as_base
30594              export CONFIG_SHELL
30595              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30596            fi;;
30597          esac
30598        done
30599 done
30600 ;;
30601   esac
30602
30603   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30604   # uniformly replaced by the line number.  The first 'sed' inserts a
30605   # line-number line before each line; the second 'sed' does the real
30606   # work.  The second script uses 'N' to pair each line-number line
30607   # with the numbered line, and appends trailing '-' during
30608   # substitution so that $LINENO is not a special case at line end.
30609   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30610   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30611   sed '=' <$as_myself |
30612     sed '
30613       N
30614       s,$,-,
30615       : loop
30616       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30617       t loop
30618       s,-$,,
30619       s,^['$as_cr_digits']*\n,,
30620     ' >$as_me.lineno &&
30621   chmod +x $as_me.lineno ||
30622     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30623 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30624    { (exit 1); exit 1; }; }
30625
30626   # Don't try to exec as it changes $[0], causing all sort of problems
30627   # (the dirname of $[0] is not the place where we might find the
30628   # original and so on.  Autoconf is especially sensible to this).
30629   . ./$as_me.lineno
30630   # Exit status is that of the last command.
30631   exit
30632 }
30633
30634
30635 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30636   *c*,-n*) ECHO_N= ECHO_C='
30637 ' ECHO_T='      ' ;;
30638   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30639   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30640 esac
30641
30642 if expr a : '\(a\)' >/dev/null 2>&1; then
30643   as_expr=expr
30644 else
30645   as_expr=false
30646 fi
30647
30648 rm -f conf$$ conf$$.exe conf$$.file
30649 echo >conf$$.file
30650 if ln -s conf$$.file conf$$ 2>/dev/null; then
30651   # We could just check for DJGPP; but this test a) works b) is more generic
30652   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30653   if test -f conf$$.exe; then
30654     # Don't use ln at all; we don't have any links
30655     as_ln_s='cp -p'
30656   else
30657     as_ln_s='ln -s'
30658   fi
30659 elif ln conf$$.file conf$$ 2>/dev/null; then
30660   as_ln_s=ln
30661 else
30662   as_ln_s='cp -p'
30663 fi
30664 rm -f conf$$ conf$$.exe conf$$.file
30665
30666 if mkdir -p . 2>/dev/null; then
30667   as_mkdir_p=:
30668 else
30669   test -d ./-p && rmdir ./-p
30670   as_mkdir_p=false
30671 fi
30672
30673 as_executable_p="test -f"
30674
30675 # Sed expression to map a string onto a valid CPP name.
30676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30677
30678 # Sed expression to map a string onto a valid variable name.
30679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30680
30681
30682 # IFS
30683 # We need space, tab and new line, in precisely that order.
30684 as_nl='
30685 '
30686 IFS="   $as_nl"
30687
30688 # CDPATH.
30689 $as_unset CDPATH
30690
30691 exec 6>&1
30692
30693 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30694 # report actual input values of CONFIG_FILES etc. instead of their
30695 # values after options handling.  Logging --version etc. is OK.
30696 exec 5>>config.log
30697 {
30698   echo
30699   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30700 ## Running $as_me. ##
30701 _ASBOX
30702 } >&5
30703 cat >&5 <<_CSEOF
30704
30705 This file was extended by llvm $as_me 1.5cvs, which was
30706 generated by GNU Autoconf 2.59.  Invocation command line was
30707
30708   CONFIG_FILES    = $CONFIG_FILES
30709   CONFIG_HEADERS  = $CONFIG_HEADERS
30710   CONFIG_LINKS    = $CONFIG_LINKS
30711   CONFIG_COMMANDS = $CONFIG_COMMANDS
30712   $ $0 $@
30713
30714 _CSEOF
30715 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30716 echo >&5
30717 _ACEOF
30718
30719 # Files that config.status was made for.
30720 if test -n "$ac_config_files"; then
30721   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30722 fi
30723
30724 if test -n "$ac_config_headers"; then
30725   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30726 fi
30727
30728 if test -n "$ac_config_links"; then
30729   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30730 fi
30731
30732 if test -n "$ac_config_commands"; then
30733   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30734 fi
30735
30736 cat >>$CONFIG_STATUS <<\_ACEOF
30737
30738 ac_cs_usage="\
30739 \`$as_me' instantiates files from templates according to the
30740 current configuration.
30741
30742 Usage: $0 [OPTIONS] [FILE]...
30743
30744   -h, --help       print this help, then exit
30745   -V, --version    print version number, then exit
30746   -q, --quiet      do not print progress messages
30747   -d, --debug      don't remove temporary files
30748       --recheck    update $as_me by reconfiguring in the same conditions
30749   --file=FILE[:TEMPLATE]
30750                    instantiate the configuration file FILE
30751   --header=FILE[:TEMPLATE]
30752                    instantiate the configuration header FILE
30753
30754 Configuration files:
30755 $config_files
30756
30757 Configuration headers:
30758 $config_headers
30759
30760 Configuration commands:
30761 $config_commands
30762
30763 Report bugs to <bug-autoconf@gnu.org>."
30764 _ACEOF
30765
30766 cat >>$CONFIG_STATUS <<_ACEOF
30767 ac_cs_version="\\
30768 llvm config.status 1.5cvs
30769 configured by $0, generated by GNU Autoconf 2.59,
30770   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30771
30772 Copyright (C) 2003 Free Software Foundation, Inc.
30773 This config.status script is free software; the Free Software Foundation
30774 gives unlimited permission to copy, distribute and modify it."
30775 srcdir=$srcdir
30776 INSTALL="$INSTALL"
30777 _ACEOF
30778
30779 cat >>$CONFIG_STATUS <<\_ACEOF
30780 # If no file are specified by the user, then we need to provide default
30781 # value.  By we need to know if files were specified by the user.
30782 ac_need_defaults=:
30783 while test $# != 0
30784 do
30785   case $1 in
30786   --*=*)
30787     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30788     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30789     ac_shift=:
30790     ;;
30791   -*)
30792     ac_option=$1
30793     ac_optarg=$2
30794     ac_shift=shift
30795     ;;
30796   *) # This is not an option, so the user has probably given explicit
30797      # arguments.
30798      ac_option=$1
30799      ac_need_defaults=false;;
30800   esac
30801
30802   case $ac_option in
30803   # Handling of the options.
30804 _ACEOF
30805 cat >>$CONFIG_STATUS <<\_ACEOF
30806   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30807     ac_cs_recheck=: ;;
30808   --version | --vers* | -V )
30809     echo "$ac_cs_version"; exit 0 ;;
30810   --he | --h)
30811     # Conflict between --help and --header
30812     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30813 Try \`$0 --help' for more information." >&5
30814 echo "$as_me: error: ambiguous option: $1
30815 Try \`$0 --help' for more information." >&2;}
30816    { (exit 1); exit 1; }; };;
30817   --help | --hel | -h )
30818     echo "$ac_cs_usage"; exit 0 ;;
30819   --debug | --d* | -d )
30820     debug=: ;;
30821   --file | --fil | --fi | --f )
30822     $ac_shift
30823     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30824     ac_need_defaults=false;;
30825   --header | --heade | --head | --hea )
30826     $ac_shift
30827     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30828     ac_need_defaults=false;;
30829   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30830   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30831     ac_cs_silent=: ;;
30832
30833   # This is an error.
30834   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30835 Try \`$0 --help' for more information." >&5
30836 echo "$as_me: error: unrecognized option: $1
30837 Try \`$0 --help' for more information." >&2;}
30838    { (exit 1); exit 1; }; } ;;
30839
30840   *) ac_config_targets="$ac_config_targets $1" ;;
30841
30842   esac
30843   shift
30844 done
30845
30846 ac_configure_extra_args=
30847
30848 if $ac_cs_silent; then
30849   exec 6>/dev/null
30850   ac_configure_extra_args="$ac_configure_extra_args --silent"
30851 fi
30852
30853 _ACEOF
30854 cat >>$CONFIG_STATUS <<_ACEOF
30855 if \$ac_cs_recheck; then
30856   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30857   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30858 fi
30859
30860 _ACEOF
30861
30862 cat >>$CONFIG_STATUS <<_ACEOF
30863 #
30864 # INIT-COMMANDS section.
30865 #
30866
30867 llvm_src="${srcdir}"
30868
30869 _ACEOF
30870
30871
30872
30873 cat >>$CONFIG_STATUS <<\_ACEOF
30874 for ac_config_target in $ac_config_targets
30875 do
30876   case "$ac_config_target" in
30877   # Handling of arguments.
30878   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30879   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30880   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30881   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30882   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30883   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30884   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30885   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30886   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30887   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30888   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30889   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30890   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30891   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30892   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30893   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30894   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30895   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30896   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30897   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30898   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30899   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30900   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30901   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30902 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30903    { (exit 1); exit 1; }; };;
30904   esac
30905 done
30906
30907 # If the user did not use the arguments to specify the items to instantiate,
30908 # then the envvar interface is used.  Set only those that are not.
30909 # We use the long form for the default assignment because of an extremely
30910 # bizarre bug on SunOS 4.1.3.
30911 if $ac_need_defaults; then
30912   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30913   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30914   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30915 fi
30916
30917 # Have a temporary directory for convenience.  Make it in the build tree
30918 # simply because there is no reason to put it here, and in addition,
30919 # creating and moving files from /tmp can sometimes cause problems.
30920 # Create a temporary directory, and hook for its removal unless debugging.
30921 $debug ||
30922 {
30923   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30924   trap '{ (exit 1); exit 1; }' 1 2 13 15
30925 }
30926
30927 # Create a (secure) tmp directory for tmp files.
30928
30929 {
30930   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30931   test -n "$tmp" && test -d "$tmp"
30932 }  ||
30933 {
30934   tmp=./confstat$$-$RANDOM
30935   (umask 077 && mkdir $tmp)
30936 } ||
30937 {
30938    echo "$me: cannot create a temporary directory in ." >&2
30939    { (exit 1); exit 1; }
30940 }
30941
30942 _ACEOF
30943
30944 cat >>$CONFIG_STATUS <<_ACEOF
30945
30946 #
30947 # CONFIG_FILES section.
30948 #
30949
30950 # No need to generate the scripts if there are no CONFIG_FILES.
30951 # This happens for instance when ./config.status config.h
30952 if test -n "\$CONFIG_FILES"; then
30953   # Protect against being on the right side of a sed subst in config.status.
30954   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30955    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30956 s,@SHELL@,$SHELL,;t t
30957 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30958 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30959 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30960 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30961 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30962 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30963 s,@exec_prefix@,$exec_prefix,;t t
30964 s,@prefix@,$prefix,;t t
30965 s,@program_transform_name@,$program_transform_name,;t t
30966 s,@bindir@,$bindir,;t t
30967 s,@sbindir@,$sbindir,;t t
30968 s,@libexecdir@,$libexecdir,;t t
30969 s,@datadir@,$datadir,;t t
30970 s,@sysconfdir@,$sysconfdir,;t t
30971 s,@sharedstatedir@,$sharedstatedir,;t t
30972 s,@localstatedir@,$localstatedir,;t t
30973 s,@libdir@,$libdir,;t t
30974 s,@includedir@,$includedir,;t t
30975 s,@oldincludedir@,$oldincludedir,;t t
30976 s,@infodir@,$infodir,;t t
30977 s,@mandir@,$mandir,;t t
30978 s,@build_alias@,$build_alias,;t t
30979 s,@host_alias@,$host_alias,;t t
30980 s,@target_alias@,$target_alias,;t t
30981 s,@DEFS@,$DEFS,;t t
30982 s,@ECHO_C@,$ECHO_C,;t t
30983 s,@ECHO_N@,$ECHO_N,;t t
30984 s,@ECHO_T@,$ECHO_T,;t t
30985 s,@LIBS@,$LIBS,;t t
30986 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30987 s,@subdirs@,$subdirs,;t t
30988 s,@build@,$build,;t t
30989 s,@build_cpu@,$build_cpu,;t t
30990 s,@build_vendor@,$build_vendor,;t t
30991 s,@build_os@,$build_os,;t t
30992 s,@host@,$host,;t t
30993 s,@host_cpu@,$host_cpu,;t t
30994 s,@host_vendor@,$host_vendor,;t t
30995 s,@host_os@,$host_os,;t t
30996 s,@target@,$target,;t t
30997 s,@target_cpu@,$target_cpu,;t t
30998 s,@target_vendor@,$target_vendor,;t t
30999 s,@target_os@,$target_os,;t t
31000 s,@OS@,$OS,;t t
31001 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31002 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31003 s,@ARCH@,$ARCH,;t t
31004 s,@ENDIAN@,$ENDIAN,;t t
31005 s,@CC@,$CC,;t t
31006 s,@CFLAGS@,$CFLAGS,;t t
31007 s,@LDFLAGS@,$LDFLAGS,;t t
31008 s,@CPPFLAGS@,$CPPFLAGS,;t t
31009 s,@ac_ct_CC@,$ac_ct_CC,;t t
31010 s,@EXEEXT@,$EXEEXT,;t t
31011 s,@OBJEXT@,$OBJEXT,;t t
31012 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31013 s,@JIT@,$JIT,;t t
31014 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31015 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31016 s,@CPP@,$CPP,;t t
31017 s,@CXX@,$CXX,;t t
31018 s,@CXXFLAGS@,$CXXFLAGS,;t t
31019 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31020 s,@LEX@,$LEX,;t t
31021 s,@LEXLIB@,$LEXLIB,;t t
31022 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31023 s,@FLEX@,$FLEX,;t t
31024 s,@YACC@,$YACC,;t t
31025 s,@BISON@,$BISON,;t t
31026 s,@ifGNUmake@,$ifGNUmake,;t t
31027 s,@LN_S@,$LN_S,;t t
31028 s,@CMP@,$CMP,;t t
31029 s,@CP@,$CP,;t t
31030 s,@DATE@,$DATE,;t t
31031 s,@FIND@,$FIND,;t t
31032 s,@GREP@,$GREP,;t t
31033 s,@MKDIR@,$MKDIR,;t t
31034 s,@MV@,$MV,;t t
31035 s,@RANLIB@,$RANLIB,;t t
31036 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31037 s,@RM@,$RM,;t t
31038 s,@SED@,$SED,;t t
31039 s,@TAR@,$TAR,;t t
31040 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31041 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31042 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31043 s,@BZIP2@,$BZIP2,;t t
31044 s,@DOT@,$DOT,;t t
31045 s,@DOXYGEN@,$DOXYGEN,;t t
31046 s,@ETAGS@,$ETAGS,;t t
31047 s,@GROFF@,$GROFF,;t t
31048 s,@GZIP@,$GZIP,;t t
31049 s,@POD2HTML@,$POD2HTML,;t t
31050 s,@POD2MAN@,$POD2MAN,;t t
31051 s,@RUNTEST@,$RUNTEST,;t t
31052 s,@TCLSH@,$TCLSH,;t t
31053 s,@ZIP@,$ZIP,;t t
31054 s,@EGREP@,$EGREP,;t t
31055 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31056 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31057 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31058 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31059 s,@LIBADD_DL@,$LIBADD_DL,;t t
31060 s,@ECHO@,$ECHO,;t t
31061 s,@AR@,$AR,;t t
31062 s,@ac_ct_AR@,$ac_ct_AR,;t t
31063 s,@STRIP@,$STRIP,;t t
31064 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31065 s,@CXXCPP@,$CXXCPP,;t t
31066 s,@F77@,$F77,;t t
31067 s,@FFLAGS@,$FFLAGS,;t t
31068 s,@ac_ct_F77@,$ac_ct_F77,;t t
31069 s,@LIBTOOL@,$LIBTOOL,;t t
31070 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31071 s,@LLVMGCC@,$LLVMGCC,;t t
31072 s,@LLVMGXX@,$LLVMGXX,;t t
31073 s,@ALLOCA@,$ALLOCA,;t t
31074 s,@MMAP_FILE@,$MMAP_FILE,;t t
31075 s,@LLVMCC1@,$LLVMCC1,;t t
31076 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31077 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31078 s,@SHLIBEXT@,$SHLIBEXT,;t t
31079 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31080 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31081 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31082 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31083 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31084 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31085 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31086 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31087 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31088 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31089 s,@LIBOBJS@,$LIBOBJS,;t t
31090 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31091 CEOF
31092
31093 _ACEOF
31094
31095   cat >>$CONFIG_STATUS <<\_ACEOF
31096   # Split the substitutions into bite-sized pieces for seds with
31097   # small command number limits, like on Digital OSF/1 and HP-UX.
31098   ac_max_sed_lines=48
31099   ac_sed_frag=1 # Number of current file.
31100   ac_beg=1 # First line for current file.
31101   ac_end=$ac_max_sed_lines # Line after last line for current file.
31102   ac_more_lines=:
31103   ac_sed_cmds=
31104   while $ac_more_lines; do
31105     if test $ac_beg -gt 1; then
31106       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31107     else
31108       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31109     fi
31110     if test ! -s $tmp/subs.frag; then
31111       ac_more_lines=false
31112     else
31113       # The purpose of the label and of the branching condition is to
31114       # speed up the sed processing (if there are no `@' at all, there
31115       # is no need to browse any of the substitutions).
31116       # These are the two extra sed commands mentioned above.
31117       (echo ':t
31118   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31119       if test -z "$ac_sed_cmds"; then
31120         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31121       else
31122         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31123       fi
31124       ac_sed_frag=`expr $ac_sed_frag + 1`
31125       ac_beg=$ac_end
31126       ac_end=`expr $ac_end + $ac_max_sed_lines`
31127     fi
31128   done
31129   if test -z "$ac_sed_cmds"; then
31130     ac_sed_cmds=cat
31131   fi
31132 fi # test -n "$CONFIG_FILES"
31133
31134 _ACEOF
31135 cat >>$CONFIG_STATUS <<\_ACEOF
31136 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31137   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31138   case $ac_file in
31139   - | *:- | *:-:* ) # input from stdin
31140         cat >$tmp/stdin
31141         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31142         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31143   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31145   * )   ac_file_in=$ac_file.in ;;
31146   esac
31147
31148   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31149   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31151          X"$ac_file" : 'X\(//\)[^/]' \| \
31152          X"$ac_file" : 'X\(//\)$' \| \
31153          X"$ac_file" : 'X\(/\)' \| \
31154          .     : '\(.\)' 2>/dev/null ||
31155 echo X"$ac_file" |
31156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31158           /^X\(\/\/\)$/{ s//\1/; q; }
31159           /^X\(\/\).*/{ s//\1/; q; }
31160           s/.*/./; q'`
31161   { if $as_mkdir_p; then
31162     mkdir -p "$ac_dir"
31163   else
31164     as_dir="$ac_dir"
31165     as_dirs=
31166     while test ! -d "$as_dir"; do
31167       as_dirs="$as_dir $as_dirs"
31168       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31170          X"$as_dir" : 'X\(//\)[^/]' \| \
31171          X"$as_dir" : 'X\(//\)$' \| \
31172          X"$as_dir" : 'X\(/\)' \| \
31173          .     : '\(.\)' 2>/dev/null ||
31174 echo X"$as_dir" |
31175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31176           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31177           /^X\(\/\/\)$/{ s//\1/; q; }
31178           /^X\(\/\).*/{ s//\1/; q; }
31179           s/.*/./; q'`
31180     done
31181     test ! -n "$as_dirs" || mkdir $as_dirs
31182   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31183 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31184    { (exit 1); exit 1; }; }; }
31185
31186   ac_builddir=.
31187
31188 if test "$ac_dir" != .; then
31189   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31190   # A "../" for each directory in $ac_dir_suffix.
31191   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31192 else
31193   ac_dir_suffix= ac_top_builddir=
31194 fi
31195
31196 case $srcdir in
31197   .)  # No --srcdir option.  We are building in place.
31198     ac_srcdir=.
31199     if test -z "$ac_top_builddir"; then
31200        ac_top_srcdir=.
31201     else
31202        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31203     fi ;;
31204   [\\/]* | ?:[\\/]* )  # Absolute path.
31205     ac_srcdir=$srcdir$ac_dir_suffix;
31206     ac_top_srcdir=$srcdir ;;
31207   *) # Relative path.
31208     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31209     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31210 esac
31211
31212 # Do not use `cd foo && pwd` to compute absolute paths, because
31213 # the directories may not exist.
31214 case `pwd` in
31215 .) ac_abs_builddir="$ac_dir";;
31216 *)
31217   case "$ac_dir" in
31218   .) ac_abs_builddir=`pwd`;;
31219   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31220   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31221   esac;;
31222 esac
31223 case $ac_abs_builddir in
31224 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31225 *)
31226   case ${ac_top_builddir}. in
31227   .) ac_abs_top_builddir=$ac_abs_builddir;;
31228   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31229   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31230   esac;;
31231 esac
31232 case $ac_abs_builddir in
31233 .) ac_abs_srcdir=$ac_srcdir;;
31234 *)
31235   case $ac_srcdir in
31236   .) ac_abs_srcdir=$ac_abs_builddir;;
31237   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31238   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31239   esac;;
31240 esac
31241 case $ac_abs_builddir in
31242 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31243 *)
31244   case $ac_top_srcdir in
31245   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31246   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31247   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31248   esac;;
31249 esac
31250
31251
31252   case $INSTALL in
31253   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31254   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31255   esac
31256
31257   if test x"$ac_file" != x-; then
31258     { echo "$as_me:$LINENO: creating $ac_file" >&5
31259 echo "$as_me: creating $ac_file" >&6;}
31260     rm -f "$ac_file"
31261   fi
31262   # Let's still pretend it is `configure' which instantiates (i.e., don't
31263   # use $as_me), people would be surprised to read:
31264   #    /* config.h.  Generated by config.status.  */
31265   if test x"$ac_file" = x-; then
31266     configure_input=
31267   else
31268     configure_input="$ac_file.  "
31269   fi
31270   configure_input=$configure_input"Generated from `echo $ac_file_in |
31271                                      sed 's,.*/,,'` by configure."
31272
31273   # First look for the input files in the build tree, otherwise in the
31274   # src tree.
31275   ac_file_inputs=`IFS=:
31276     for f in $ac_file_in; do
31277       case $f in
31278       -) echo $tmp/stdin ;;
31279       [\\/$]*)
31280          # Absolute (can't be DOS-style, as IFS=:)
31281          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31282 echo "$as_me: error: cannot find input file: $f" >&2;}
31283    { (exit 1); exit 1; }; }
31284          echo "$f";;
31285       *) # Relative
31286          if test -f "$f"; then
31287            # Build tree
31288            echo "$f"
31289          elif test -f "$srcdir/$f"; then
31290            # Source tree
31291            echo "$srcdir/$f"
31292          else
31293            # /dev/null tree
31294            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31295 echo "$as_me: error: cannot find input file: $f" >&2;}
31296    { (exit 1); exit 1; }; }
31297          fi;;
31298       esac
31299     done` || { (exit 1); exit 1; }
31300 _ACEOF
31301 cat >>$CONFIG_STATUS <<_ACEOF
31302   sed "$ac_vpsub
31303 $extrasub
31304 _ACEOF
31305 cat >>$CONFIG_STATUS <<\_ACEOF
31306 :t
31307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31308 s,@configure_input@,$configure_input,;t t
31309 s,@srcdir@,$ac_srcdir,;t t
31310 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31311 s,@top_srcdir@,$ac_top_srcdir,;t t
31312 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31313 s,@builddir@,$ac_builddir,;t t
31314 s,@abs_builddir@,$ac_abs_builddir,;t t
31315 s,@top_builddir@,$ac_top_builddir,;t t
31316 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31317 s,@INSTALL@,$ac_INSTALL,;t t
31318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31319   rm -f $tmp/stdin
31320   if test x"$ac_file" != x-; then
31321     mv $tmp/out $ac_file
31322   else
31323     cat $tmp/out
31324     rm -f $tmp/out
31325   fi
31326
31327 done
31328 _ACEOF
31329 cat >>$CONFIG_STATUS <<\_ACEOF
31330
31331 #
31332 # CONFIG_HEADER section.
31333 #
31334
31335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31337 #
31338 # ac_d sets the value in "#define NAME VALUE" lines.
31339 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31340 ac_dB='[         ].*$,\1#\2'
31341 ac_dC=' '
31342 ac_dD=',;t'
31343 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31344 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31345 ac_uB='$,\1#\2define\3'
31346 ac_uC=' '
31347 ac_uD=',;t'
31348
31349 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31350   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31351   case $ac_file in
31352   - | *:- | *:-:* ) # input from stdin
31353         cat >$tmp/stdin
31354         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31356   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31357         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31358   * )   ac_file_in=$ac_file.in ;;
31359   esac
31360
31361   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31362 echo "$as_me: creating $ac_file" >&6;}
31363
31364   # First look for the input files in the build tree, otherwise in the
31365   # src tree.
31366   ac_file_inputs=`IFS=:
31367     for f in $ac_file_in; do
31368       case $f in
31369       -) echo $tmp/stdin ;;
31370       [\\/$]*)
31371          # Absolute (can't be DOS-style, as IFS=:)
31372          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31373 echo "$as_me: error: cannot find input file: $f" >&2;}
31374    { (exit 1); exit 1; }; }
31375          # Do quote $f, to prevent DOS paths from being IFS'd.
31376          echo "$f";;
31377       *) # Relative
31378          if test -f "$f"; then
31379            # Build tree
31380            echo "$f"
31381          elif test -f "$srcdir/$f"; then
31382            # Source tree
31383            echo "$srcdir/$f"
31384          else
31385            # /dev/null tree
31386            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31387 echo "$as_me: error: cannot find input file: $f" >&2;}
31388    { (exit 1); exit 1; }; }
31389          fi;;
31390       esac
31391     done` || { (exit 1); exit 1; }
31392   # Remove the trailing spaces.
31393   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31394
31395 _ACEOF
31396
31397 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31398 # `conftest.undefs', that substitutes the proper values into
31399 # config.h.in to produce config.h.  The first handles `#define'
31400 # templates, and the second `#undef' templates.
31401 # And first: Protect against being on the right side of a sed subst in
31402 # config.status.  Protect against being in an unquoted here document
31403 # in config.status.
31404 rm -f conftest.defines conftest.undefs
31405 # Using a here document instead of a string reduces the quoting nightmare.
31406 # Putting comments in sed scripts is not portable.
31407 #
31408 # `end' is used to avoid that the second main sed command (meant for
31409 # 0-ary CPP macros) applies to n-ary macro definitions.
31410 # See the Autoconf documentation for `clear'.
31411 cat >confdef2sed.sed <<\_ACEOF
31412 s/[\\&,]/\\&/g
31413 s,[\\$`],\\&,g
31414 t clear
31415 : clear
31416 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31417 t end
31418 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31419 : end
31420 _ACEOF
31421 # If some macros were called several times there might be several times
31422 # the same #defines, which is useless.  Nevertheless, we may not want to
31423 # sort them, since we want the *last* AC-DEFINE to be honored.
31424 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31425 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31426 rm -f confdef2sed.sed
31427
31428 # This sed command replaces #undef with comments.  This is necessary, for
31429 # example, in the case of _POSIX_SOURCE, which is predefined and required
31430 # on some systems where configure will not decide to define it.
31431 cat >>conftest.undefs <<\_ACEOF
31432 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31433 _ACEOF
31434
31435 # Break up conftest.defines because some shells have a limit on the size
31436 # of here documents, and old seds have small limits too (100 cmds).
31437 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31438 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31439 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31440 echo '  :' >>$CONFIG_STATUS
31441 rm -f conftest.tail
31442 while grep . conftest.defines >/dev/null
31443 do
31444   # Write a limited-size here document to $tmp/defines.sed.
31445   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31446   # Speed up: don't consider the non `#define' lines.
31447   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31448   # Work around the forget-to-reset-the-flag bug.
31449   echo 't clr' >>$CONFIG_STATUS
31450   echo ': clr' >>$CONFIG_STATUS
31451   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31452   echo 'CEOF
31453   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31454   rm -f $tmp/in
31455   mv $tmp/out $tmp/in
31456 ' >>$CONFIG_STATUS
31457   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31458   rm -f conftest.defines
31459   mv conftest.tail conftest.defines
31460 done
31461 rm -f conftest.defines
31462 echo '  fi # grep' >>$CONFIG_STATUS
31463 echo >>$CONFIG_STATUS
31464
31465 # Break up conftest.undefs because some shells have a limit on the size
31466 # of here documents, and old seds have small limits too (100 cmds).
31467 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31468 rm -f conftest.tail
31469 while grep . conftest.undefs >/dev/null
31470 do
31471   # Write a limited-size here document to $tmp/undefs.sed.
31472   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31473   # Speed up: don't consider the non `#undef'
31474   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31475   # Work around the forget-to-reset-the-flag bug.
31476   echo 't clr' >>$CONFIG_STATUS
31477   echo ': clr' >>$CONFIG_STATUS
31478   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31479   echo 'CEOF
31480   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31481   rm -f $tmp/in
31482   mv $tmp/out $tmp/in
31483 ' >>$CONFIG_STATUS
31484   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31485   rm -f conftest.undefs
31486   mv conftest.tail conftest.undefs
31487 done
31488 rm -f conftest.undefs
31489
31490 cat >>$CONFIG_STATUS <<\_ACEOF
31491   # Let's still pretend it is `configure' which instantiates (i.e., don't
31492   # use $as_me), people would be surprised to read:
31493   #    /* config.h.  Generated by config.status.  */
31494   if test x"$ac_file" = x-; then
31495     echo "/* Generated by configure.  */" >$tmp/config.h
31496   else
31497     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31498   fi
31499   cat $tmp/in >>$tmp/config.h
31500   rm -f $tmp/in
31501   if test x"$ac_file" != x-; then
31502     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31503       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31504 echo "$as_me: $ac_file is unchanged" >&6;}
31505     else
31506       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31508          X"$ac_file" : 'X\(//\)[^/]' \| \
31509          X"$ac_file" : 'X\(//\)$' \| \
31510          X"$ac_file" : 'X\(/\)' \| \
31511          .     : '\(.\)' 2>/dev/null ||
31512 echo X"$ac_file" |
31513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31515           /^X\(\/\/\)$/{ s//\1/; q; }
31516           /^X\(\/\).*/{ s//\1/; q; }
31517           s/.*/./; q'`
31518       { if $as_mkdir_p; then
31519     mkdir -p "$ac_dir"
31520   else
31521     as_dir="$ac_dir"
31522     as_dirs=
31523     while test ! -d "$as_dir"; do
31524       as_dirs="$as_dir $as_dirs"
31525       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31527          X"$as_dir" : 'X\(//\)[^/]' \| \
31528          X"$as_dir" : 'X\(//\)$' \| \
31529          X"$as_dir" : 'X\(/\)' \| \
31530          .     : '\(.\)' 2>/dev/null ||
31531 echo X"$as_dir" |
31532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31533           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31534           /^X\(\/\/\)$/{ s//\1/; q; }
31535           /^X\(\/\).*/{ s//\1/; q; }
31536           s/.*/./; q'`
31537     done
31538     test ! -n "$as_dirs" || mkdir $as_dirs
31539   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31541    { (exit 1); exit 1; }; }; }
31542
31543       rm -f $ac_file
31544       mv $tmp/config.h $ac_file
31545     fi
31546   else
31547     cat $tmp/config.h
31548     rm -f $tmp/config.h
31549   fi
31550 done
31551 _ACEOF
31552 cat >>$CONFIG_STATUS <<\_ACEOF
31553
31554 #
31555 # CONFIG_COMMANDS section.
31556 #
31557 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31558   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31559   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31560   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31561 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31562          X"$ac_dest" : 'X\(//\)[^/]' \| \
31563          X"$ac_dest" : 'X\(//\)$' \| \
31564          X"$ac_dest" : 'X\(/\)' \| \
31565          .     : '\(.\)' 2>/dev/null ||
31566 echo X"$ac_dest" |
31567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31569           /^X\(\/\/\)$/{ s//\1/; q; }
31570           /^X\(\/\).*/{ s//\1/; q; }
31571           s/.*/./; q'`
31572   { if $as_mkdir_p; then
31573     mkdir -p "$ac_dir"
31574   else
31575     as_dir="$ac_dir"
31576     as_dirs=
31577     while test ! -d "$as_dir"; do
31578       as_dirs="$as_dir $as_dirs"
31579       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31581          X"$as_dir" : 'X\(//\)[^/]' \| \
31582          X"$as_dir" : 'X\(//\)$' \| \
31583          X"$as_dir" : 'X\(/\)' \| \
31584          .     : '\(.\)' 2>/dev/null ||
31585 echo X"$as_dir" |
31586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31587           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31588           /^X\(\/\/\)$/{ s//\1/; q; }
31589           /^X\(\/\).*/{ s//\1/; q; }
31590           s/.*/./; q'`
31591     done
31592     test ! -n "$as_dirs" || mkdir $as_dirs
31593   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31594 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31595    { (exit 1); exit 1; }; }; }
31596
31597   ac_builddir=.
31598
31599 if test "$ac_dir" != .; then
31600   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31601   # A "../" for each directory in $ac_dir_suffix.
31602   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31603 else
31604   ac_dir_suffix= ac_top_builddir=
31605 fi
31606
31607 case $srcdir in
31608   .)  # No --srcdir option.  We are building in place.
31609     ac_srcdir=.
31610     if test -z "$ac_top_builddir"; then
31611        ac_top_srcdir=.
31612     else
31613        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31614     fi ;;
31615   [\\/]* | ?:[\\/]* )  # Absolute path.
31616     ac_srcdir=$srcdir$ac_dir_suffix;
31617     ac_top_srcdir=$srcdir ;;
31618   *) # Relative path.
31619     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31620     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31621 esac
31622
31623 # Do not use `cd foo && pwd` to compute absolute paths, because
31624 # the directories may not exist.
31625 case `pwd` in
31626 .) ac_abs_builddir="$ac_dir";;
31627 *)
31628   case "$ac_dir" in
31629   .) ac_abs_builddir=`pwd`;;
31630   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31631   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31632   esac;;
31633 esac
31634 case $ac_abs_builddir in
31635 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31636 *)
31637   case ${ac_top_builddir}. in
31638   .) ac_abs_top_builddir=$ac_abs_builddir;;
31639   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31640   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31641   esac;;
31642 esac
31643 case $ac_abs_builddir in
31644 .) ac_abs_srcdir=$ac_srcdir;;
31645 *)
31646   case $ac_srcdir in
31647   .) ac_abs_srcdir=$ac_abs_builddir;;
31648   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31649   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31650   esac;;
31651 esac
31652 case $ac_abs_builddir in
31653 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31654 *)
31655   case $ac_top_srcdir in
31656   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31657   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31658   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31659   esac;;
31660 esac
31661
31662
31663   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31664 echo "$as_me: executing $ac_dest commands" >&6;}
31665   case $ac_dest in
31666     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31667    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31668     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31669    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31670     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31671    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31672     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31673    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31674     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31675    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31676     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31677    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31678     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31679    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31680     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31681    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31682     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31683    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31684     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31685    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31686   esac
31687 done
31688 _ACEOF
31689
31690 cat >>$CONFIG_STATUS <<\_ACEOF
31691
31692 { (exit 0); exit 0; }
31693 _ACEOF
31694 chmod +x $CONFIG_STATUS
31695 ac_clean_files=$ac_clean_files_save
31696
31697
31698 # configure is writing to config.log, and then calls config.status.
31699 # config.status does its own redirection, appending to config.log.
31700 # Unfortunately, on DOS this fails, as config.log is still kept open
31701 # by configure, so config.status won't be able to write to it; its
31702 # output is simply discarded.  So we exec the FD to /dev/null,
31703 # effectively closing config.log, so it can be properly (re)opened and
31704 # appended to by config.status.  When coming back to configure, we
31705 # need to make the FD available again.
31706 if test "$no_create" != yes; then
31707   ac_cs_success=:
31708   ac_config_status_args=
31709   test "$silent" = yes &&
31710     ac_config_status_args="$ac_config_status_args --quiet"
31711   exec 5>/dev/null
31712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31713   exec 5>>config.log
31714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31715   # would make configure fail if this is the last instruction.
31716   $ac_cs_success || { (exit 1); exit 1; }
31717 fi
31718
31719 #
31720 # CONFIG_SUBDIRS section.
31721 #
31722 if test "$no_recursion" != yes; then
31723
31724   # Remove --cache-file and --srcdir arguments so they do not pile up.
31725   ac_sub_configure_args=
31726   ac_prev=
31727   for ac_arg in $ac_configure_args; do
31728     if test -n "$ac_prev"; then
31729       ac_prev=
31730       continue
31731     fi
31732     case $ac_arg in
31733     -cache-file | --cache-file | --cache-fil | --cache-fi \
31734     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31735       ac_prev=cache_file ;;
31736     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31737     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31738     | --c=*)
31739       ;;
31740     --config-cache | -C)
31741       ;;
31742     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31743       ac_prev=srcdir ;;
31744     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31745       ;;
31746     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31747       ac_prev=prefix ;;
31748     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31749       ;;
31750     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31751     esac
31752   done
31753
31754   # Always prepend --prefix to ensure using the same prefix
31755   # in subdir configurations.
31756   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31757
31758   ac_popdir=`pwd`
31759   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31760
31761     # Do not complain, so a configure script can configure whichever
31762     # parts of a large source tree are present.
31763     test -d $srcdir/$ac_dir || continue
31764
31765     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31766 echo "$as_me: configuring in $ac_dir" >&6;}
31767     { if $as_mkdir_p; then
31768     mkdir -p "$ac_dir"
31769   else
31770     as_dir="$ac_dir"
31771     as_dirs=
31772     while test ! -d "$as_dir"; do
31773       as_dirs="$as_dir $as_dirs"
31774       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31776          X"$as_dir" : 'X\(//\)[^/]' \| \
31777          X"$as_dir" : 'X\(//\)$' \| \
31778          X"$as_dir" : 'X\(/\)' \| \
31779          .     : '\(.\)' 2>/dev/null ||
31780 echo X"$as_dir" |
31781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31783           /^X\(\/\/\)$/{ s//\1/; q; }
31784           /^X\(\/\).*/{ s//\1/; q; }
31785           s/.*/./; q'`
31786     done
31787     test ! -n "$as_dirs" || mkdir $as_dirs
31788   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31790    { (exit 1); exit 1; }; }; }
31791
31792     ac_builddir=.
31793
31794 if test "$ac_dir" != .; then
31795   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31796   # A "../" for each directory in $ac_dir_suffix.
31797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31798 else
31799   ac_dir_suffix= ac_top_builddir=
31800 fi
31801
31802 case $srcdir in
31803   .)  # No --srcdir option.  We are building in place.
31804     ac_srcdir=.
31805     if test -z "$ac_top_builddir"; then
31806        ac_top_srcdir=.
31807     else
31808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31809     fi ;;
31810   [\\/]* | ?:[\\/]* )  # Absolute path.
31811     ac_srcdir=$srcdir$ac_dir_suffix;
31812     ac_top_srcdir=$srcdir ;;
31813   *) # Relative path.
31814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31816 esac
31817
31818 # Do not use `cd foo && pwd` to compute absolute paths, because
31819 # the directories may not exist.
31820 case `pwd` in
31821 .) ac_abs_builddir="$ac_dir";;
31822 *)
31823   case "$ac_dir" in
31824   .) ac_abs_builddir=`pwd`;;
31825   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31826   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31827   esac;;
31828 esac
31829 case $ac_abs_builddir in
31830 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31831 *)
31832   case ${ac_top_builddir}. in
31833   .) ac_abs_top_builddir=$ac_abs_builddir;;
31834   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31835   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31836   esac;;
31837 esac
31838 case $ac_abs_builddir in
31839 .) ac_abs_srcdir=$ac_srcdir;;
31840 *)
31841   case $ac_srcdir in
31842   .) ac_abs_srcdir=$ac_abs_builddir;;
31843   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31844   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31845   esac;;
31846 esac
31847 case $ac_abs_builddir in
31848 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31849 *)
31850   case $ac_top_srcdir in
31851   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31852   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31853   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31854   esac;;
31855 esac
31856
31857
31858     cd $ac_dir
31859
31860     # Check for guested configure; otherwise get Cygnus style configure.
31861     if test -f $ac_srcdir/configure.gnu; then
31862       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31863     elif test -f $ac_srcdir/configure; then
31864       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31865     elif test -f $ac_srcdir/configure.in; then
31866       ac_sub_configure=$ac_configure
31867     else
31868       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31870       ac_sub_configure=
31871     fi
31872
31873     # The recursion is here.
31874     if test -n "$ac_sub_configure"; then
31875       # Make the cache file name correct relative to the subdirectory.
31876       case $cache_file in
31877       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31878       *) # Relative path.
31879         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31880       esac
31881
31882       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31883 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31884       # The eval makes quoting arguments work.
31885       eval $ac_sub_configure $ac_sub_configure_args \
31886            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31887         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31889    { (exit 1); exit 1; }; }
31890     fi
31891
31892     cd $ac_popdir
31893   done
31894 fi
31895
31896
31897 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31898  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31899 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31900  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31901 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31902  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31903 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31904  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31905 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31906  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31907 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31908 fi