For PR633:
[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.8cvs.
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 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
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.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
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-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
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 CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS 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 GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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 LLVMGCC_VERSION LLVMGCC_MAJVERS 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.8cvs 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.8cvs:";;
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-assertions
1039   --enable-debug-runtime
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041   --enable-doxygen        Build doxygen documentation (default is NO)
1042   --enable-threads        Use threads if available (default is YES)
1043   --enable-target         Build specific host targets:
1044                           all,host-only,{target-name} (default=all)
1045   --enable-ltdl-install   install libltdl
1046   --enable-shared[=PKGS]
1047                           build shared libraries [default=yes]
1048   --enable-static[=PKGS]
1049                           build static libraries [default=yes]
1050   --enable-fast-install[=PKGS]
1051                           optimize for fast installation [default=yes]
1052   --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                           searches PATH)
1059   --with-tclinclude       directory where tcl headers are
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd $ac_popdir
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1530
1531
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542   if test -f $ac_dir/install-sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install-sh -c"
1545     break
1546   elif test -f $ac_dir/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566 if test ${srcdir} != "." ; then
1567   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570    { (exit 1); exit 1; }; }
1571   fi
1572 fi
1573
1574 for i in `ls ${srcdir}/projects`
1575 do
1576   if test -d ${srcdir}/projects/${i} ; then
1577     case ${i} in
1578       "CVS") ;;
1579       "sample")
1580
1581 subdirs="$subdirs projects/sample"
1582     ;;
1583       "Stacker")
1584
1585 subdirs="$subdirs projects/Stacker"
1586    ;;
1587       "llvm-test")
1588
1589 subdirs="$subdirs projects/llvm-test"
1590  ;;
1591       "llvm-reopt")
1592
1593 subdirs="$subdirs projects/llvm-reopt"
1594 ;;
1595       "llvm-gcc")
1596
1597 subdirs="$subdirs projects/llvm-gcc"
1598   ;;
1599       "llvm-java")
1600
1601 subdirs="$subdirs projects/llvm-java"
1602  ;;
1603       "llvm-tv")
1604
1605 subdirs="$subdirs projects/llvm-tv"
1606    ;;
1607       "llvm-poolalloc")
1608
1609 subdirs="$subdirs projects/llvm-poolalloc"
1610  ;;
1611       "llvm-kernel")
1612
1613 subdirs="$subdirs projects/llvm-kernel"
1614  ;;
1615       *)
1616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618         ;;
1619     esac
1620   fi
1621 done
1622
1623
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637   ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641    { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645    { (exit 1); exit 1; }; }
1646
1647 fi
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1650 build=$ac_cv_build
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663   ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 fi
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1672 host=$ac_cv_host
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685   ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 fi
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703   test "$program_prefix$program_suffix$program_transform_name" = \
1704     NONENONEs,x,x, &&
1705   program_prefix=${target_alias}-
1706
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   case $build in
1713   *-*-aix*)
1714     llvm_cv_os_type="AIX"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-cygwin*)
1717     llvm_cv_os_type="Cygwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-darwin*)
1720     llvm_cv_os_type="Darwin"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-freebsd*)
1723     llvm_cv_os_type="FreeBSD"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-openbsd*)
1726     llvm_cv_os_type="OpenBSD"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-hpux*)
1729     llvm_cv_os_type="HP-UX"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-interix*)
1732     llvm_cv_os_type="Interix"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-linux*)
1735     llvm_cv_os_type="Linux"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-solaris*)
1738     llvm_cv_os_type="SunOS"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-win32*)
1741     llvm_cv_os_type="Win32"
1742     llvm_cv_platform_type="Win32" ;;
1743   *-*-mingw*)
1744     llvm_cv_os_type="MingW"
1745     llvm_cv_platform_type="Win32" ;;
1746   *)
1747     llvm_cv_os_type="Unknown"
1748     llvm_cv_platform_type="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1753
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759
1760 OS=$llvm_cv_os_type
1761
1762
1763 case $llvm_cv_platform_type in
1764   Unix)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=1
1771
1772     LLVM_ON_WIN32=0
1773
1774     ;;
1775   Win32)
1776
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1779 _ACEOF
1780
1781     LLVM_ON_UNIX=0
1782
1783     LLVM_ON_WIN32=1
1784
1785     ;;
1786 esac
1787
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   case $target in
1794   i?86-*)                 llvm_cv_target_arch="x86" ;;
1795   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1796   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1797   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1798   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1799   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1800   *)                      llvm_cv_target_arch="Unknown" ;;
1801 esac
1802 fi
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1805
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809 fi
1810
1811 ARCH=$llvm_cv_target_arch
1812
1813
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$CC"; then
1828   ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848   echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_CC"; then
1857   ac_ct_CC=$CC
1858   # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="gcc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   CC=$ac_ct_CC
1894 else
1895   CC="$ac_cv_prog_CC"
1896 fi
1897
1898 if test -z "$CC"; then
1899   if test -n "$ac_tool_prefix"; then
1900   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$CC"; then
1908   ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913   IFS=$as_save_IFS
1914   test -z "$as_dir" && as_dir=.
1915   for ac_exec_ext in '' $ac_executable_extensions; do
1916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917     ac_cv_prog_CC="${ac_tool_prefix}cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 CC=$ac_cv_prog_CC
1927 if test -n "$CC"; then
1928   echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 fi
1936 if test -z "$ac_cv_prog_CC"; then
1937   ac_ct_CC=$CC
1938   # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$ac_ct_CC"; then
1946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     ac_cv_prog_ac_ct_CC="cc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973   CC=$ac_ct_CC
1974 else
1975   CC="$ac_cv_prog_CC"
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980   # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$CC"; then
1988   ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990   ac_prog_rejected=no
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999        ac_prog_rejected=yes
2000        continue
2001      fi
2002     ac_cv_prog_CC="cc"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 if test $ac_prog_rejected = yes; then
2010   # We found a bogon in the path, so make sure we never use it.
2011   set dummy $ac_cv_prog_CC
2012   shift
2013   if test $# != 0; then
2014     # We chose a different compiler from the bogus one.
2015     # However, it has the same basename, so the bogon will be chosen
2016     # first if we set CC to just the basename; use the full file name.
2017     shift
2018     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019   fi
2020 fi
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025   echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   if test -n "$ac_tool_prefix"; then
2035   for ac_prog in cl
2036   do
2037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$CC"; then
2045   ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072     test -n "$CC" && break
2073   done
2074 fi
2075 if test -z "$CC"; then
2076   ac_ct_CC=$CC
2077   for ac_prog in cl
2078 do
2079   # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$ac_ct_CC"; then
2087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_ac_ct_CC="$ac_prog"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   test -n "$ac_ct_CC" && break
2115 done
2116
2117   CC=$ac_ct_CC
2118 fi
2119
2120 fi
2121
2122
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131      "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134   (eval $ac_compiler --version </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139   (eval $ac_compiler -v </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144   (eval $ac_compiler -V </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173   (eval $ac_link_default) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # Find the output, starting from the most likely.  This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # resort.
2180
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183 ac_cv_exeext=
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186 do
2187   test -f "$ac_file" || continue
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190         ;;
2191     conftest.$ac_ext )
2192         # This is the source file.
2193         ;;
2194     [ab].out )
2195         # We found the default executable, but exeext='' is most
2196         # certainly right.
2197         break;;
2198     *.* )
2199         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200         # FIXME: I believe we export ac_cv_exeext for Libtool,
2201         # but it would be cool to find out if it's true.  Does anybody
2202         # maintain Libtool? --akim.
2203         export ac_cv_exeext
2204         break;;
2205     * )
2206         break;;
2207   esac
2208 done
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217    { (exit 77); exit 77; }; }
2218 fi
2219
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2223
2224 # Check the compiler produces executables we can run.  If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231   if { ac_try='./$ac_file'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237     cross_compiling=no
2238   else
2239     if test "$cross_compiling" = maybe; then
2240         cross_compiling=yes
2241     else
2242         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi
2250   fi
2251 fi
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2254
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run.  If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2263
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267   (eval $ac_link) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276   test -f "$ac_file" || continue
2277   case $ac_file in
2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280           export ac_cv_exeext
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330        break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365 #ifndef __GNUC__
2366        choke me
2367 #endif
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375   (eval $ac_compile) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } &&
2382          { ac_try='test -z "$ac_c_werror_flag"
2383                          || test ! -s conftest.err'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; } &&
2389          { ac_try='test -s conftest.$ac_objext'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; }; then
2395   ac_compiler_gnu=yes
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_compiler_gnu=no
2401 fi
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405 fi
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423
2424 int
2425 main ()
2426 {
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_cv_prog_cc_g=yes
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_cv_prog_cc_g=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466   CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468   if test "$GCC" = yes; then
2469     CFLAGS="-g -O2"
2470   else
2471     CFLAGS="-g"
2472   fi
2473 else
2474   if test "$GCC" = yes; then
2475     CFLAGS="-O2"
2476   else
2477     CFLAGS=
2478   fi
2479 fi
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501      char **p;
2502      int i;
2503 {
2504   return p[i];
2505 }
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2507 {
2508   char *s;
2509   va_list v;
2510   va_start (v,p);
2511   s = g (p, va_arg (v,int));
2512   va_end (v);
2513   return s;
2514 }
2515
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517    function prototypes and stuff, but not '\xHH' hex character constants.
2518    These don't provoke an error unfortunately, instead are silently treated
2519    as 'x'.  The following induces an error, until -std1 is added to get
2520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521    array size at least.  It's necessary to write '\x00'==0 to get something
2522    that's true only with -std1.  */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2531 int
2532 main ()
2533 {
2534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX                   -qlanglvl=ansi
2542 # Ultrix and OSF/1      -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2545 # SVR4                  -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547 do
2548   CC="$ac_save_CC $ac_arg"
2549   rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 fi
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2582
2583 fi
2584
2585 case "x$ac_cv_prog_cc_stdc" in
2586   x|xno)
2587     echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2589   *)
2590     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592     CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2594
2595 # Some people use a C++ compiler to compile C.  Since we use `exit',
2596 # in C++ we need to declare it.  In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601   choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   for ac_declaration in \
2627    '' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 $ac_declaration
2641 #include <stdlib.h>
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -z "$ac_c_werror_flag"
2660                          || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 continue
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 $ac_declaration
2687 int
2688 main ()
2689 {
2690 exit (42);
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"
2705                          || test ! -s conftest.err'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727   echo '#ifdef __cplusplus' >>confdefs.h
2728   echo $ac_declaration      >>confdefs.h
2729   echo '#endif'             >>confdefs.h
2730 fi
2731
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2759
2760 int
2761 main ()
2762 {
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764  bogus endian macros
2765 #endif
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"
2781                          || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2802
2803 int
2804 main ()
2805 {
2806 #if BYTE_ORDER != BIG_ENDIAN
2807  not big endian
2808 #endif
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816   (eval $ac_compile) 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823          { ac_try='test -z "$ac_c_werror_flag"
2824                          || test ! -s conftest.err'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; } &&
2830          { ac_try='test -s conftest.$ac_objext'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; }; then
2836   ac_cv_c_bigendian=yes
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 ac_cv_c_bigendian=no
2842 fi
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850   # try to guess the endianness by grepping values into an object file
2851   ac_cv_c_bigendian=unknown
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864 int
2865 main ()
2866 {
2867  _ascii (); _ebcdic ();
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895   ac_cv_c_bigendian=yes
2896 fi
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898   if test "$ac_cv_c_bigendian" = unknown; then
2899     ac_cv_c_bigendian=no
2900   else
2901     # finding both strings is unlikely to happen, but who knows?
2902     ac_cv_c_bigendian=unknown
2903   fi
2904 fi
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 int
2919 main ()
2920 {
2921   /* Are we little or big endian?  From Harbison&Steele.  */
2922   union
2923   {
2924     long l;
2925     char c[sizeof (long)];
2926   } u;
2927   u.l = 1;
2928   exit (u.c[sizeof (long) - 1] == 1);
2929 }
2930 _ACEOF
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933   (eval $ac_link) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_c_bigendian=no
2943 else
2944   echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ( exit $ac_status )
2949 ac_cv_c_bigendian=yes
2950 fi
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2959   yes)
2960     ENDIAN=big
2961  ;;
2962   no)
2963     ENDIAN=little
2964  ;;
2965   *)
2966     { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970    { (exit 1); exit 1; }; } ;;
2971 esac
2972
2973
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2975   cvsbuild="yes"
2976   optimize="no"
2977   CVSBUILD=CVSBUILD=1
2978
2979 else
2980   cvsbuild="no"
2981   optimize="yes"
2982 fi
2983
2984
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987   enableval="$enable_optimized"
2988
2989 else
2990   enableval=$optimize
2991 fi;
2992 if test ${enableval} = "no" ; then
2993   ENABLE_OPTIMIZED=
2994
2995 else
2996   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998 fi
2999
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002   enableval="$enable_assertions"
3003
3004 else
3005   enableval="yes"
3006 fi;
3007 if test ${enableval} = "yes" ; then
3008   DISABLE_ASSERTIONS=
3009
3010 else
3011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012
3013 fi
3014
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017   enableval="$enable_debug_runtime"
3018
3019 else
3020   enableval=no
3021 fi;
3022 if test ${enableval} = "no" ; then
3023   DEBUG_RUNTIME=
3024
3025 else
3026   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028 fi
3029
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032   enableval="$enable_jit"
3033
3034 else
3035   enableval=default
3036 fi;
3037 if test ${enableval} = "no"
3038 then
3039   JIT=
3040
3041 else
3042   case "$llvm_cv_target_arch" in
3043     x86)     TARGET_HAS_JIT=1
3044  ;;
3045     Sparc)   TARGET_HAS_JIT=1
3046  ;;
3047     PowerPC) TARGET_HAS_JIT=1
3048  ;;
3049     x86_64)  TARGET_HAS_JIT=0
3050  ;;
3051     Alpha)   TARGET_HAS_JIT=1
3052  ;;
3053     IA64)    TARGET_HAS_JIT=0
3054  ;;
3055     *)       TARGET_HAS_JIT=0
3056  ;;
3057   esac
3058 fi
3059
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062   enableval="$enable_doxygen"
3063
3064 else
3065   enableval=default
3066 fi;
3067 case "$enableval" in
3068   yes) ENABLE_DOXYGEN=1
3069  ;;
3070   no)  ENABLE_DOXYGEN=0
3071  ;;
3072   default) ENABLE_DOXYGEN=0
3073  ;;
3074   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076    { (exit 1); exit 1; }; } ;;
3077 esac
3078
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081   enableval="$enable_threads"
3082
3083 else
3084   enableval=yes
3085 fi;
3086 case "$enableval" in
3087   yes) ENABLE_THREADS=1
3088  ;;
3089   no)  ENABLE_THREADS=0
3090  ;;
3091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093    { (exit 1); exit 1; }; } ;;
3094 esac
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3098 _ACEOF
3099
3100
3101 TARGETS_TO_BUILD=""
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104   enableval="$enable_targets"
3105
3106 else
3107   enableval=all
3108 fi;
3109 case "$enableval" in
3110   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3111   host-only)
3112     case "$llvm_cv_target_arch" in
3113       x86)     TARGETS_TO_BUILD="X86" ;;
3114       x86_64)  TARGETS_TO_BUILD="X86" ;;
3115       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3116       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3118       IA64)    TARGETS_TO_BUILD="IA64" ;;
3119       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121    { (exit 1); exit 1; }; } ;;
3122     esac
3123     ;;
3124   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125       case "$a_target" in
3126         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134    { (exit 1); exit 1; }; } ;;
3135       esac
3136   done
3137   ;;
3138 esac
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
3143
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146   withval="$with_llvmgccdir"
3147
3148 else
3149   withval=default
3150 fi;
3151 case "$withval" in
3152   default) WITH_LLVMGCCDIR=default ;;
3153   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3154   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156    { (exit 1); exit 1; }; } ;;
3157 esac
3158
3159
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3170   CPP=
3171 fi
3172 if test -z "$CPP"; then
3173   if test "${ac_cv_prog_CPP+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176       # Double quotes because CPP needs to be expanded
3177     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178     do
3179       ac_preproc_ok=false
3180 for ac_c_preproc_warn_flag in '' yes
3181 do
3182   # Use a header file that comes with gcc, so configuring glibc
3183   # with a fresh cross-compiler works.
3184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185   # <limits.h> exists even on freestanding compilers.
3186   # On the NeXT, cc -E runs the code through the compiler's parser,
3187   # not just through cpp. "Syntax error" is here to catch this case.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #ifdef __STDC__
3195 # include <limits.h>
3196 #else
3197 # include <assert.h>
3198 #endif
3199                      Syntax error
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212   else
3213     ac_cpp_err=
3214   fi
3215 else
3216   ac_cpp_err=yes
3217 fi
3218 if test -z "$ac_cpp_err"; then
3219   :
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether non-existent headers
3230   # can be detected and how.
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 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # Broken: success on invalid input.
3258 continue
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3266 fi
3267 rm -f conftest.err conftest.$ac_ext
3268
3269 done
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3273   break
3274 fi
3275
3276     done
3277     ac_cv_prog_CPP=$CPP
3278
3279 fi
3280   CPP=$ac_cv_prog_CPP
3281 else
3282   ac_cv_prog_CPP=$CPP
3283 fi
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3288 do
3289   # Use a header file that comes with gcc, so configuring glibc
3290   # with a fresh cross-compiler works.
3291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292   # <limits.h> exists even on freestanding compilers.
3293   # On the NeXT, cc -E runs the code through the compiler's parser,
3294   # not just through cpp. "Syntax error" is here to catch this case.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306                      Syntax error
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   :
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Broken: fails on valid input.
3332 continue
3333 fi
3334 rm -f conftest.err conftest.$ac_ext
3335
3336   # OK, works on sane cases.  Now check whether non-existent headers
3337   # can be detected and how.
3338   cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } >/dev/null; then
3354   if test -s conftest.err; then
3355     ac_cpp_err=$ac_c_preproc_warn_flag
3356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357   else
3358     ac_cpp_err=
3359   fi
3360 else
3361   ac_cpp_err=yes
3362 fi
3363 if test -z "$ac_cpp_err"; then
3364   # Broken: success on invalid input.
3365 continue
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370   # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380   :
3381 else
3382   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }
3387 fi
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3401   for ac_prog in gcc
3402   do
3403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   if test -n "$CC"; then
3411   ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3433 else
3434   echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438     test -n "$CC" && break
3439   done
3440 fi
3441 if test -z "$CC"; then
3442   ac_ct_CC=$CC
3443   for ac_prog in gcc
3444 do
3445   # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_CC"; then
3453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_CC="$ac_prog"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   test -n "$ac_ct_CC" && break
3481 done
3482
3483   CC=$ac_ct_CC
3484 fi
3485
3486
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }
3492
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495      "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498   (eval $ac_compiler --version </dev/null >&5) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503   (eval $ac_compiler -v </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508   (eval $ac_compiler -V </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529        choke me
3530 #endif
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538   (eval $ac_compile) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_compiler_gnu=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_compiler_gnu=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 CFLAGS="-g"
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597   (eval $ac_compile) 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -z "$ac_c_werror_flag"
3605                          || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_prog_cc_g=no
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_cv_prog_cc_stdc=no
3649 ac_save_CC=$CC
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std1 is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std1.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX                   -qlanglvl=ansi
3705 # Ultrix and OSF/1      -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3708 # SVR4                  -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711   CC="$ac_save_CC $ac_arg"
3712   rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -z "$ac_c_werror_flag"
3722                          || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_prog_cc_stdc=$ac_arg
3735 break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext
3742 done
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3744 CC=$ac_save_CC
3745
3746 fi
3747
3748 case "x$ac_cv_prog_cc_stdc" in
3749   x|xno)
3750     echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3752   *)
3753     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755     CC="$CC $ac_cv_prog_cc_stdc" ;;
3756 esac
3757
3758 # Some people use a C++ compiler to compile C.  Since we use `exit',
3759 # in C++ we need to declare it.  In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #ifndef __cplusplus
3764   choke me
3765 #endif
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   for ac_declaration in \
3790    '' \
3791    'extern "C" void std::exit (int) throw (); using std::exit;' \
3792    'extern "C" void std::exit (int); using std::exit;' \
3793    'extern "C" void exit (int) throw ();' \
3794    'extern "C" void exit (int);' \
3795    'void exit (int);'
3796 do
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 $ac_declaration
3804 #include <stdlib.h>
3805 int
3806 main ()
3807 {
3808 exit (42);
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815   (eval $ac_compile) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } &&
3822          { ac_try='test -z "$ac_c_werror_flag"
3823                          || test ! -s conftest.err'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; } &&
3829          { ac_try='test -s conftest.$ac_objext'
3830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831   (eval $ac_try) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; }; then
3835   :
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 $ac_declaration
3850 int
3851 main ()
3852 {
3853 exit (42);
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   break
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 done
3888 rm -f conftest*
3889 if test -n "$ac_declaration"; then
3890   echo '#ifdef __cplusplus' >>confdefs.h
3891   echo $ac_declaration      >>confdefs.h
3892   echo '#endif'             >>confdefs.h
3893 fi
3894
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 ac_ext=cc
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913   for ac_prog in $CCC g++
3914   do
3915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$CXX"; then
3923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 CXX=$ac_cv_prog_CXX
3942 if test -n "$CXX"; then
3943   echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950     test -n "$CXX" && break
3951   done
3952 fi
3953 if test -z "$CXX"; then
3954   ac_ct_CXX=$CXX
3955   for ac_prog in $CCC g++
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_CXX"; then
3965   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_CXX="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$ac_ct_CXX" && break
3993 done
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996   CXX=$ac_ct_CXX
3997 fi
3998
3999
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002      "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005   (eval $ac_compiler --version </dev/null >&5) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010   (eval $ac_compiler -v </dev/null >&5) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015   (eval $ac_compiler -V </dev/null >&5) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }
4019
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036        choke me
4037 #endif
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_compiler_gnu=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_compiler_gnu=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4081 CXXFLAGS="-g"
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_cxx_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_prog_cxx_g=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_prog_cxx_g=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136   CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138   if test "$GXX" = yes; then
4139     CXXFLAGS="-g -O2"
4140   else
4141     CXXFLAGS="-g"
4142   fi
4143 else
4144   if test "$GXX" = yes; then
4145     CXXFLAGS="-O2"
4146   else
4147     CXXFLAGS=
4148   fi
4149 fi
4150 for ac_declaration in \
4151    '' \
4152    'extern "C" void std::exit (int) throw (); using std::exit;' \
4153    'extern "C" void std::exit (int); using std::exit;' \
4154    'extern "C" void exit (int) throw ();' \
4155    'extern "C" void exit (int);' \
4156    'void exit (int);'
4157 do
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 $ac_declaration
4165 #include <stdlib.h>
4166 int
4167 main ()
4168 {
4169 exit (42);
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_cxx_werror_flag"
4184                          || test ! -s conftest.err'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_declaration
4211 int
4212 main ()
4213 {
4214 exit (42);
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_cxx_werror_flag"
4229                          || test ! -s conftest.err'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   break
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 rm -f conftest*
4250 if test -n "$ac_declaration"; then
4251   echo '#ifdef __cplusplus' >>confdefs.h
4252   echo $ac_declaration      >>confdefs.h
4253   echo '#endif'             >>confdefs.h
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   for ac_prog in flex lex
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$LEX"; then
4277   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_LEX="$ac_prog"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293 fi
4294 fi
4295 LEX=$ac_cv_prog_LEX
4296 if test -n "$LEX"; then
4297   echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$LEX" && break
4305 done
4306 test -n "$LEX" || LEX=":"
4307
4308 if test -z "$LEXLIB"
4309 then
4310   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   ac_check_lib_save_LIBS=$LIBS
4316 LIBS="-lfl  $LIBS"
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 #ifdef __cplusplus
4326 extern "C"
4327 #endif
4328 /* We use char because int might match the return type of a gcc2
4329    builtin and then its argument prototype would still apply.  */
4330 char yywrap ();
4331 int
4332 main ()
4333 {
4334 yywrap ();
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"
4349                          || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_lib_fl_yywrap=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_lib_fl_yywrap=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4375   LEXLIB="-lfl"
4376 else
4377   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ll  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397 char yywrap ();
4398 int
4399 main ()
4400 {
4401 yywrap ();
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag"
4416                          || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest$ac_exeext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_lib_l_yywrap=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_lib_l_yywrap=no
4434 fi
4435 rm -f conftest.err conftest.$ac_objext \
4436       conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4442   LEXLIB="-ll"
4443 fi
4444
4445 fi
4446
4447 fi
4448
4449 if test "x$LEX" != "x:"; then
4450   echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   # The minimal lex program is just a single line: %%.  But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4458 %%
4459 %%
4460 _ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462   (eval $LEX conftest.l) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467   ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469   ac_cv_prog_lex_root=lexyy
4470 else
4471   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473    { (exit 1); exit 1; }; }
4474 fi
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478 rm -f conftest.l
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491 ac_save_LIBS=$LIBS
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_prog_lex_yytext_pointer=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 fi
4524 rm -f conftest.err conftest.$ac_objext \
4525       conftest$ac_exeext conftest.$ac_ext
4526 LIBS=$ac_save_LIBS
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529 fi
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4536 _ACEOF
4537
4538 fi
4539
4540 fi
4541
4542 fi
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548    { (exit 1); exit 1; }; }
4549 else
4550   FLEX=flex
4551
4552 fi
4553
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   for ac_prog in 'bison -y' byacc
4560 do
4561   # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   if test -n "$YACC"; then
4569   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_prog_YACC="$ac_prog"
4579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583 done
4584
4585 fi
4586 fi
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589   echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596   test -n "$YACC" && break
4597 done
4598 test -n "$YACC" || YACC="yacc"
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606    { (exit 1); exit 1; }; }
4607 else
4608   BISON=bison
4609
4610 fi
4611
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   llvm_cv_gnu_make_command=''
4618  for a in "$MAKE" make gmake gnumake ; do
4619   if test -z "$a" ; then continue ; fi ;
4620   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621   then
4622    llvm_cv_gnu_make_command=$a ;
4623    break;
4624   fi
4625  done
4626 fi
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4630    ifGNUmake='' ;
4631  else
4632    ifGNUmake='#' ;
4633    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4635  fi
4636
4637
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642   echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4647 fi
4648
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $CMP in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676   ;;
4677 esac
4678 fi
4679 CMP=$ac_cv_path_CMP
4680
4681 if test -n "$CMP"; then
4682   echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4684 else
4685   echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 fi
4688
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $CP in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716   ;;
4717 esac
4718 fi
4719 CP=$ac_cv_path_CP
4720
4721 if test -n "$CP"; then
4722   echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4724 else
4725   echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4727 fi
4728
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   case $DATE in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754
4755   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756   ;;
4757 esac
4758 fi
4759 DATE=$ac_cv_path_DATE
4760
4761 if test -n "$DATE"; then
4762   echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4764 else
4765   echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   case $FIND in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794
4795   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796   ;;
4797 esac
4798 fi
4799 FIND=$ac_cv_path_FIND
4800
4801 if test -n "$FIND"; then
4802   echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4804 else
4805   echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   case $GREP in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836   ;;
4837 esac
4838 fi
4839 GREP=$ac_cv_path_GREP
4840
4841 if test -n "$GREP"; then
4842   echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case $MKDIR in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874
4875   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876   ;;
4877 esac
4878 fi
4879 MKDIR=$ac_cv_path_MKDIR
4880
4881 if test -n "$MKDIR"; then
4882   echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $MV in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916   ;;
4917 esac
4918 fi
4919 MV=$ac_cv_path_MV
4920
4921 if test -n "$MV"; then
4922   echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$RANLIB"; then
4938   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954 fi
4955 fi
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958   echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4960 else
4961   echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 fi
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967   ac_ct_RANLIB=$RANLIB
4968   # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$ac_ct_RANLIB"; then
4976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985     ac_cv_prog_ac_ct_RANLIB="ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991
4992   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993 fi
4994 fi
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 else
5000   echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004   RANLIB=$ac_ct_RANLIB
5005 else
5006   RANLIB="$ac_cv_prog_RANLIB"
5007 fi
5008
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $RM in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036   ;;
5037 esac
5038 fi
5039 RM=$ac_cv_path_RM
5040
5041 if test -n "$RM"; then
5042   echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   case $SED in
5057   [\\/]* | ?:[\\/]*)
5058   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059   ;;
5060   *)
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076   ;;
5077 esac
5078 fi
5079 SED=$ac_cv_path_SED
5080
5081 if test -n "$SED"; then
5082   echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $TAR in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114
5115   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116   ;;
5117 esac
5118 fi
5119 TAR=$ac_cv_path_TAR
5120
5121 if test -n "$TAR"; then
5122   echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5124 else
5125   echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127 fi
5128
5129
5130 # Extract the first word of "Graphviz", so it can be a program name with args.
5131 set dummy Graphviz; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $GRAPHVIZ in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155
5156   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5157   ;;
5158 esac
5159 fi
5160 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5161
5162 if test -n "$GRAPHVIZ"; then
5163   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5164 echo "${ECHO_T}$GRAPHVIZ" >&6
5165 else
5166   echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5168 fi
5169
5170 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_GRAPHVIZ 1
5174 _ACEOF
5175
5176     if test "$llvm_cv_os_type" == "MingW" ; then
5177     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5178   fi
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5182 _ACEOF
5183
5184 fi
5185 # Extract the first word of "dot", so it can be a program name with args.
5186 set dummy dot; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_path_DOT+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   case $DOT in
5193   [\\/]* | ?:[\\/]*)
5194   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5195   ;;
5196   *)
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202   for ac_exec_ext in '' $ac_executable_extensions; do
5203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209 done
5210
5211   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5212   ;;
5213 esac
5214 fi
5215 DOT=$ac_cv_path_DOT
5216
5217 if test -n "$DOT"; then
5218   echo "$as_me:$LINENO: result: $DOT" >&5
5219 echo "${ECHO_T}$DOT" >&6
5220 else
5221   echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5223 fi
5224
5225 if test "$DOT" != "echo dot" ; then
5226
5227 cat >>confdefs.h <<\_ACEOF
5228 #define HAVE_DOT 1
5229 _ACEOF
5230
5231     if test "$llvm_cv_os_type" == "MingW" ; then
5232     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5233   fi
5234
5235 cat >>confdefs.h <<_ACEOF
5236 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5237 _ACEOF
5238
5239 fi
5240 for ac_prog in gv gsview32
5241 do
5242   # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_path_GV+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   case $GV in
5250   [\\/]* | ?:[\\/]*)
5251   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5252   ;;
5253   *)
5254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259   for ac_exec_ext in '' $ac_executable_extensions; do
5260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267
5268   ;;
5269 esac
5270 fi
5271 GV=$ac_cv_path_GV
5272
5273 if test -n "$GV"; then
5274   echo "$as_me:$LINENO: result: $GV" >&5
5275 echo "${ECHO_T}$GV" >&6
5276 else
5277   echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5279 fi
5280
5281   test -n "$GV" && break
5282 done
5283 test -n "$GV" || GV="echo gv"
5284
5285 if test "$GV" != "echo gv" ; then
5286
5287 cat >>confdefs.h <<\_ACEOF
5288 #define HAVE_GV 1
5289 _ACEOF
5290
5291     if test "$llvm_cv_os_type" == "MingW" ; then
5292     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5293   fi
5294
5295 cat >>confdefs.h <<_ACEOF
5296 #define LLVM_PATH_GV "$GV${EXEEXT}"
5297 _ACEOF
5298
5299 fi
5300 # Extract the first word of "dotty", so it can be a program name with args.
5301 set dummy dotty; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_path_DOTTY+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   case $DOTTY in
5308   [\\/]* | ?:[\\/]*)
5309   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5310   ;;
5311   *)
5312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317   for ac_exec_ext in '' $ac_executable_extensions; do
5318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324 done
5325
5326   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5327   ;;
5328 esac
5329 fi
5330 DOTTY=$ac_cv_path_DOTTY
5331
5332 if test -n "$DOTTY"; then
5333   echo "$as_me:$LINENO: result: $DOTTY" >&5
5334 echo "${ECHO_T}$DOTTY" >&6
5335 else
5336   echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5338 fi
5339
5340 if test "$DOTTY" != "echo dotty" ; then
5341
5342 cat >>confdefs.h <<\_ACEOF
5343 #define HAVE_DOTTY 1
5344 _ACEOF
5345
5346     if test "$llvm_cv_os_type" == "MingW" ; then
5347     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5348   fi
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5352 _ACEOF
5353
5354 fi
5355
5356
5357 # Extract the first word of "perl", so it can be a program name with args.
5358 set dummy perl; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_path_PERL+set}" = set; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364   case $PERL in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374   for ac_exec_ext in '' $ac_executable_extensions; do
5375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381 done
5382
5383   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5384   ;;
5385 esac
5386 fi
5387 PERL=$ac_cv_path_PERL
5388
5389 if test -n "$PERL"; then
5390   echo "$as_me:$LINENO: result: $PERL" >&5
5391 echo "${ECHO_T}$PERL" >&6
5392 else
5393   echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5395 fi
5396
5397 if test "$PERL" != "none"; then
5398   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5399 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5400   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5401     echo "$as_me:$LINENO: result: yes" >&5
5402 echo "${ECHO_T}yes" >&6
5403   else
5404     PERL=none
5405     echo "$as_me:$LINENO: result: not found" >&5
5406 echo "${ECHO_T}not found" >&6
5407   fi
5408 fi
5409
5410
5411 if test x"$PERL" = xnone; then
5412    HAVE_PERL=0
5413
5414 else
5415    HAVE_PERL=1
5416
5417 fi
5418
5419 # Find a good install program.  We prefer a C program (faster),
5420 # so one script is as good as another.  But avoid the broken or
5421 # incompatible versions:
5422 # SysV /etc/install, /usr/sbin/install
5423 # SunOS /usr/etc/install
5424 # IRIX /sbin/install
5425 # AIX /bin/install
5426 # AmigaOS /C/install, which installs bootblocks on floppy discs
5427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5430 # OS/2's system install, which has a completely different semantic
5431 # ./install, which can be erroneously created by make from ./install.sh.
5432 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5434 if test -z "$INSTALL"; then
5435 if test "${ac_cv_path_install+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
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   # Account for people who put trailing slashes in PATH elements.
5444 case $as_dir/ in
5445   ./ | .// | /cC/* | \
5446   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5447   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5448   /usr/ucb/* ) ;;
5449   *)
5450     # OSF1 and SCO ODT 3.0 have their own names for install.
5451     # Don't use installbsd from OSF since it installs stuff as root
5452     # by default.
5453     for ac_prog in ginstall scoinst install; do
5454       for ac_exec_ext in '' $ac_executable_extensions; do
5455         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5456           if test $ac_prog = install &&
5457             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5458             # AIX install.  It has an incompatible calling convention.
5459             :
5460           elif test $ac_prog = install &&
5461             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5462             # program-specific install script used by HP pwplus--don't use.
5463             :
5464           else
5465             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5466             break 3
5467           fi
5468         fi
5469       done
5470     done
5471     ;;
5472 esac
5473 done
5474
5475
5476 fi
5477   if test "${ac_cv_path_install+set}" = set; then
5478     INSTALL=$ac_cv_path_install
5479   else
5480     # As a last resort, use the slow shell script.  We don't cache a
5481     # path for INSTALL within a source directory, because that will
5482     # break other packages using the cache if that directory is
5483     # removed, or if the path is relative.
5484     INSTALL=$ac_install_sh
5485   fi
5486 fi
5487 echo "$as_me:$LINENO: result: $INSTALL" >&5
5488 echo "${ECHO_T}$INSTALL" >&6
5489
5490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5491 # It thinks the first close brace ends the variable substitution.
5492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5493
5494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5495
5496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5497
5498
5499 # Extract the first word of "bzip2", so it can be a program name with args.
5500 set dummy bzip2; ac_word=$2
5501 echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503 if test "${ac_cv_path_BZIP2+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   case $BZIP2 in
5507   [\\/]* | ?:[\\/]*)
5508   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5509   ;;
5510   *)
5511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_exec_ext in '' $ac_executable_extensions; do
5517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523 done
5524
5525   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5526   ;;
5527 esac
5528 fi
5529 BZIP2=$ac_cv_path_BZIP2
5530
5531 if test -n "$BZIP2"; then
5532   echo "$as_me:$LINENO: result: $BZIP2" >&5
5533 echo "${ECHO_T}$BZIP2" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 # Extract the first word of "doxygen", so it can be a program name with args.
5540 set dummy doxygen; 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_DOXYGEN+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   case $DOXYGEN in
5547   [\\/]* | ?:[\\/]*)
5548   ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5566   ;;
5567 esac
5568 fi
5569 DOXYGEN=$ac_cv_path_DOXYGEN
5570
5571 if test -n "$DOXYGEN"; then
5572   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5573 echo "${ECHO_T}$DOXYGEN" >&6
5574 else
5575   echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5577 fi
5578
5579 # Extract the first word of "etags", so it can be a program name with args.
5580 set dummy etags; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_path_ETAGS+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   case $ETAGS in
5587   [\\/]* | ?:[\\/]*)
5588   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5589   ;;
5590   *)
5591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604
5605   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5606   ;;
5607 esac
5608 fi
5609 ETAGS=$ac_cv_path_ETAGS
5610
5611 if test -n "$ETAGS"; then
5612   echo "$as_me:$LINENO: result: $ETAGS" >&5
5613 echo "${ECHO_T}$ETAGS" >&6
5614 else
5615   echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5617 fi
5618
5619 # Extract the first word of "groff", so it can be a program name with args.
5620 set dummy groff; ac_word=$2
5621 echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623 if test "${ac_cv_path_GROFF+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   case $GROFF in
5627   [\\/]* | ?:[\\/]*)
5628   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5629   ;;
5630   *)
5631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636   for ac_exec_ext in '' $ac_executable_extensions; do
5637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643 done
5644
5645   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5646   ;;
5647 esac
5648 fi
5649 GROFF=$ac_cv_path_GROFF
5650
5651 if test -n "$GROFF"; then
5652   echo "$as_me:$LINENO: result: $GROFF" >&5
5653 echo "${ECHO_T}$GROFF" >&6
5654 else
5655   echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5657 fi
5658
5659 # Extract the first word of "gzip", so it can be a program name with args.
5660 set dummy gzip; ac_word=$2
5661 echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663 if test "${ac_cv_path_GZIP+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   case $GZIP in
5667   [\\/]* | ?:[\\/]*)
5668   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5669   ;;
5670   *)
5671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676   for ac_exec_ext in '' $ac_executable_extensions; do
5677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683 done
5684
5685   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5686   ;;
5687 esac
5688 fi
5689 GZIP=$ac_cv_path_GZIP
5690
5691 if test -n "$GZIP"; then
5692   echo "$as_me:$LINENO: result: $GZIP" >&5
5693 echo "${ECHO_T}$GZIP" >&6
5694 else
5695   echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 fi
5698
5699 # Extract the first word of "pod2html", so it can be a program name with args.
5700 set dummy pod2html; ac_word=$2
5701 echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5703 if test "${ac_cv_path_POD2HTML+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   case $POD2HTML in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716   for ac_exec_ext in '' $ac_executable_extensions; do
5717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723 done
5724
5725   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5726   ;;
5727 esac
5728 fi
5729 POD2HTML=$ac_cv_path_POD2HTML
5730
5731 if test -n "$POD2HTML"; then
5732   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5733 echo "${ECHO_T}$POD2HTML" >&6
5734 else
5735   echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5737 fi
5738
5739 # Extract the first word of "pod2man", so it can be a program name with args.
5740 set dummy pod2man; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_path_POD2MAN+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   case $POD2MAN in
5747   [\\/]* | ?:[\\/]*)
5748   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5749   ;;
5750   *)
5751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756   for ac_exec_ext in '' $ac_executable_extensions; do
5757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763 done
5764
5765   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5766   ;;
5767 esac
5768 fi
5769 POD2MAN=$ac_cv_path_POD2MAN
5770
5771 if test -n "$POD2MAN"; then
5772   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5773 echo "${ECHO_T}$POD2MAN" >&6
5774 else
5775   echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6
5777 fi
5778
5779 # Extract the first word of "runtest", so it can be a program name with args.
5780 set dummy runtest; ac_word=$2
5781 echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5783 if test "${ac_cv_path_RUNTEST+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   case $RUNTEST in
5787   [\\/]* | ?:[\\/]*)
5788   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5789   ;;
5790   *)
5791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804
5805   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5806   ;;
5807 esac
5808 fi
5809 RUNTEST=$ac_cv_path_RUNTEST
5810
5811 if test -n "$RUNTEST"; then
5812   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5813 echo "${ECHO_T}$RUNTEST" >&6
5814 else
5815   echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6
5817 fi
5818
5819
5820 no_itcl=true
5821 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5822 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5823
5824 # Check whether --with-tclinclude or --without-tclinclude was given.
5825 if test "${with_tclinclude+set}" = set; then
5826   withval="$with_tclinclude"
5827   with_tclinclude=${withval}
5828 else
5829   with_tclinclude=''
5830 fi;
5831 if test "${ac_cv_path_tclsh+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834
5835 if test x"${with_tclinclude}" != x ; then
5836   if test -f ${with_tclinclude}/tclsh ; then
5837     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5838   elif test -f ${with_tclinclude}/src/tclsh ; then
5839     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5840   else
5841     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5842 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5843    { (exit 1); exit 1; }; }
5844   fi
5845 fi
5846
5847 if test x"${ac_cv_path_tclsh}" = x ; then
5848   echo "$as_me:$LINENO: result: none" >&5
5849 echo "${ECHO_T}none" >&6
5850   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
5851 do
5852   # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856 if test "${ac_cv_path_TCLSH+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   case $TCLSH in
5860   [\\/]* | ?:[\\/]*)
5861   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5862   ;;
5863   *)
5864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877
5878   ;;
5879 esac
5880 fi
5881 TCLSH=$ac_cv_path_TCLSH
5882
5883 if test -n "$TCLSH"; then
5884   echo "$as_me:$LINENO: result: $TCLSH" >&5
5885 echo "${ECHO_T}$TCLSH" >&6
5886 else
5887   echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6
5889 fi
5890
5891   test -n "$TCLSH" && break
5892 done
5893
5894   if test x"${TCLSH}" = x ; then
5895     ac_cv_path_tclsh='';
5896   else
5897     ac_cv_path_tclsh="${TCLSH}";
5898   fi
5899 else
5900   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5901 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5902   TCLSH="${ac_cv_path_tclsh}"
5903
5904 fi
5905
5906 fi
5907
5908 # Extract the first word of "zip", so it can be a program name with args.
5909 set dummy zip; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_path_ZIP+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   case $ZIP in
5916   [\\/]* | ?:[\\/]*)
5917   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5918   ;;
5919   *)
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933
5934   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5935   ;;
5936 esac
5937 fi
5938 ZIP=$ac_cv_path_ZIP
5939
5940 if test -n "$ZIP"; then
5941   echo "$as_me:$LINENO: result: $ZIP" >&5
5942 echo "${ECHO_T}$ZIP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948
5949 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5950 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5951 if test "${llvm_cv_link_use_r+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954    ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960   oldcflags="$CFLAGS"
5961   CFLAGS="$CFLAGS -Wl,-R."
5962   cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968
5969 int
5970 main ()
5971 {
5972 int main() { return 0; }
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979   (eval $ac_link) 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } &&
5986          { ac_try='test -z "$ac_c_werror_flag"
5987                          || test ! -s conftest.err'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; } &&
5993          { ac_try='test -s conftest$ac_exeext'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; }; then
5999   llvm_cv_link_use_r=yes
6000 else
6001   echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004 llvm_cv_link_use_r=no
6005 fi
6006 rm -f conftest.err conftest.$ac_objext \
6007       conftest$ac_exeext conftest.$ac_ext
6008   CFLAGS="$oldcflags"
6009   ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
6016 fi
6017 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6018 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6019 if test "$llvm_cv_link_use_r" = yes ; then
6020
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_LINK_R 1
6023 _ACEOF
6024
6025   fi
6026
6027
6028
6029
6030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6032 if test "${ac_cv_c_const+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041
6042 int
6043 main ()
6044 {
6045 /* FIXME: Include the comments suggested by Paul. */
6046 #ifndef __cplusplus
6047   /* Ultrix mips cc rejects this.  */
6048   typedef int charset[2];
6049   const charset x;
6050   /* SunOS 4.1.1 cc rejects this.  */
6051   char const *const *ccp;
6052   char **p;
6053   /* NEC SVR4.0.2 mips cc rejects this.  */
6054   struct point {int x, y;};
6055   static struct point const zero = {0,0};
6056   /* AIX XL C 1.02.0.0 rejects this.
6057      It does not let you subtract one const X* pointer from another in
6058      an arm of an if-expression whose if-part is not a constant
6059      expression */
6060   const char *g = "string";
6061   ccp = &g + (g ? g-g : 0);
6062   /* HPUX 7.0 cc rejects these. */
6063   ++ccp;
6064   p = (char**) ccp;
6065   ccp = (char const *const *) p;
6066   { /* SCO 3.2v4 cc rejects this.  */
6067     char *t;
6068     char const *s = 0 ? (char *) 0 : (char const *) 0;
6069
6070     *t++ = 0;
6071   }
6072   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6073     int x[] = {25, 17};
6074     const int *foo = &x[0];
6075     ++foo;
6076   }
6077   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6078     typedef const int *iptr;
6079     iptr p = 0;
6080     ++p;
6081   }
6082   { /* AIX XL C 1.02.0.0 rejects this saying
6083        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6084     struct s { int j; const int *ap[3]; };
6085     struct s *b; b->j = 5;
6086   }
6087   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6088     const int foo = 10;
6089   }
6090 #endif
6091
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098   (eval $ac_compile) 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_c_werror_flag"
6106                          || test ! -s conftest.err'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; } &&
6112          { ac_try='test -s conftest.$ac_objext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_c_const=yes
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_c_const=no
6124 fi
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6128 echo "${ECHO_T}$ac_cv_c_const" >&6
6129 if test $ac_cv_c_const = no; then
6130
6131 cat >>confdefs.h <<\_ACEOF
6132 #define const
6133 _ACEOF
6134
6135 fi
6136
6137
6138 echo "$as_me:$LINENO: checking for egrep" >&5
6139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6140 if test "${ac_cv_prog_egrep+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6144     then ac_cv_prog_egrep='grep -E'
6145     else ac_cv_prog_egrep='egrep'
6146     fi
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6150  EGREP=$ac_cv_prog_egrep
6151
6152
6153 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6155 if test "${ac_cv_header_stdc+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h.  */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h.  */
6164 #include <stdlib.h>
6165 #include <stdarg.h>
6166 #include <string.h>
6167 #include <float.h>
6168
6169 int
6170 main ()
6171 {
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_cv_header_stdc=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_cv_header_stdc=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207
6208 if test $ac_cv_header_stdc = yes; then
6209   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6210   cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 #include <string.h>
6217
6218 _ACEOF
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220   $EGREP "memchr" >/dev/null 2>&1; then
6221   :
6222 else
6223   ac_cv_header_stdc=no
6224 fi
6225 rm -f conftest*
6226
6227 fi
6228
6229 if test $ac_cv_header_stdc = yes; then
6230   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231   cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 #include <stdlib.h>
6238
6239 _ACEOF
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241   $EGREP "free" >/dev/null 2>&1; then
6242   :
6243 else
6244   ac_cv_header_stdc=no
6245 fi
6246 rm -f conftest*
6247
6248 fi
6249
6250 if test $ac_cv_header_stdc = yes; then
6251   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6252   if test "$cross_compiling" = yes; then
6253   :
6254 else
6255   cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261 #include <ctype.h>
6262 #if ((' ' & 0x0FF) == 0x020)
6263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6265 #else
6266 # define ISLOWER(c) \
6267                    (('a' <= (c) && (c) <= 'i') \
6268                      || ('j' <= (c) && (c) <= 'r') \
6269                      || ('s' <= (c) && (c) <= 'z'))
6270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6271 #endif
6272
6273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6274 int
6275 main ()
6276 {
6277   int i;
6278   for (i = 0; i < 256; i++)
6279     if (XOR (islower (i), ISLOWER (i))
6280         || toupper (i) != TOUPPER (i))
6281       exit(2);
6282   exit (0);
6283 }
6284 _ACEOF
6285 rm -f conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287   (eval $ac_link) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; }; then
6296   :
6297 else
6298   echo "$as_me: program exited with status $ac_status" >&5
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ( exit $ac_status )
6303 ac_cv_header_stdc=no
6304 fi
6305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 fi
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6310 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6311 if test $ac_cv_header_stdc = yes; then
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define STDC_HEADERS 1
6315 _ACEOF
6316
6317 fi
6318
6319
6320
6321
6322
6323
6324 ac_header_dirent=no
6325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6326   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6327 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <sys/types.h>
6339 #include <$ac_hdr>
6340
6341 int
6342 main ()
6343 {
6344 if ((DIR *) 0)
6345 return 0;
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352   (eval $ac_compile) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest.$ac_objext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   eval "$as_ac_Header=yes"
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 eval "$as_ac_Header=no"
6378 fi
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384   cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 ac_header_dirent=$ac_hdr; break
6389 fi
6390
6391 done
6392 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6393 if test $ac_header_dirent = dirent.h; then
6394   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6396 if test "${ac_cv_search_opendir+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   ac_func_search_save_LIBS=$LIBS
6400 ac_cv_search_opendir=no
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char opendir ();
6415 int
6416 main ()
6417 {
6418 opendir ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"
6433                          || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest$ac_exeext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_search_opendir="none required"
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 fi
6451 rm -f conftest.err conftest.$ac_objext \
6452       conftest$ac_exeext conftest.$ac_ext
6453 if test "$ac_cv_search_opendir" = no; then
6454   for ac_lib in dir; do
6455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6456     cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462
6463 /* Override any gcc2 internal prototype to avoid an error.  */
6464 #ifdef __cplusplus
6465 extern "C"
6466 #endif
6467 /* We use char because int might match the return type of a gcc2
6468    builtin and then its argument prototype would still apply.  */
6469 char opendir ();
6470 int
6471 main ()
6472 {
6473 opendir ();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480   (eval $ac_link) 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } &&
6487          { ac_try='test -z "$ac_c_werror_flag"
6488                          || test ! -s conftest.err'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; } &&
6494          { ac_try='test -s conftest$ac_exeext'
6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496   (eval $ac_try) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; }; then
6500   ac_cv_search_opendir="-l$ac_lib"
6501 break
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 fi
6507 rm -f conftest.err conftest.$ac_objext \
6508       conftest$ac_exeext conftest.$ac_ext
6509   done
6510 fi
6511 LIBS=$ac_func_search_save_LIBS
6512 fi
6513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6515 if test "$ac_cv_search_opendir" != no; then
6516   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6517
6518 fi
6519
6520 else
6521   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6523 if test "${ac_cv_search_opendir+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   ac_func_search_save_LIBS=$LIBS
6527 ac_cv_search_opendir=no
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534
6535 /* Override any gcc2 internal prototype to avoid an error.  */
6536 #ifdef __cplusplus
6537 extern "C"
6538 #endif
6539 /* We use char because int might match the return type of a gcc2
6540    builtin and then its argument prototype would still apply.  */
6541 char opendir ();
6542 int
6543 main ()
6544 {
6545 opendir ();
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552   (eval $ac_link) 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } &&
6559          { ac_try='test -z "$ac_c_werror_flag"
6560                          || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest$ac_exeext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_cv_search_opendir="none required"
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 fi
6578 rm -f conftest.err conftest.$ac_objext \
6579       conftest$ac_exeext conftest.$ac_ext
6580 if test "$ac_cv_search_opendir" = no; then
6581   for ac_lib in x; do
6582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6583     cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589
6590 /* Override any gcc2 internal prototype to avoid an error.  */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595    builtin and then its argument prototype would still apply.  */
6596 char opendir ();
6597 int
6598 main ()
6599 {
6600 opendir ();
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607   (eval $ac_link) 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } &&
6614          { ac_try='test -z "$ac_c_werror_flag"
6615                          || test ! -s conftest.err'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; } &&
6621          { ac_try='test -s conftest$ac_exeext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   ac_cv_search_opendir="-l$ac_lib"
6628 break
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 fi
6634 rm -f conftest.err conftest.$ac_objext \
6635       conftest$ac_exeext conftest.$ac_ext
6636   done
6637 fi
6638 LIBS=$ac_func_search_save_LIBS
6639 fi
6640 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6641 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6642 if test "$ac_cv_search_opendir" != no; then
6643   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6644
6645 fi
6646
6647 fi
6648
6649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6660                   inttypes.h stdint.h unistd.h
6661 do
6662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_header" >&5
6664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 $ac_includes_default
6675
6676 #include <$ac_header>
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680   (eval $ac_compile) 2>conftest.er1
6681   ac_status=$?
6682   grep -v '^ *+' conftest.er1 >conftest.err
6683   rm -f conftest.er1
6684   cat conftest.err >&5
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } &&
6687          { ac_try='test -z "$ac_c_werror_flag"
6688                          || test ! -s conftest.err'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; } &&
6694          { ac_try='test -s conftest.$ac_objext'
6695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696   (eval $ac_try) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); }; }; then
6700   eval "$as_ac_Header=yes"
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 eval "$as_ac_Header=no"
6706 fi
6707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712   cat >>confdefs.h <<_ACEOF
6713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714 _ACEOF
6715
6716 fi
6717
6718 done
6719
6720
6721
6722 for ac_header in dlfcn.h
6723 do
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726   echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 fi
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6733 else
6734   # Is the header compilable?
6735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743 $ac_includes_default
6744 #include <$ac_header>
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748   (eval $ac_compile) 2>conftest.er1
6749   ac_status=$?
6750   grep -v '^ *+' conftest.er1 >conftest.err
6751   rm -f conftest.er1
6752   cat conftest.err >&5
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -z "$ac_c_werror_flag"
6756                          || test ! -s conftest.err'
6757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758   (eval $ac_try) 2>&5
6759   ac_status=$?
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); }; } &&
6762          { ac_try='test -s conftest.$ac_objext'
6763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; }; then
6768   ac_header_compiler=yes
6769 else
6770   echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 ac_header_compiler=no
6774 fi
6775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6777 echo "${ECHO_T}$ac_header_compiler" >&6
6778
6779 # Is the header present?
6780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788 #include <$ac_header>
6789 _ACEOF
6790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } >/dev/null; then
6798   if test -s conftest.err; then
6799     ac_cpp_err=$ac_c_preproc_warn_flag
6800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6801   else
6802     ac_cpp_err=
6803   fi
6804 else
6805   ac_cpp_err=yes
6806 fi
6807 if test -z "$ac_cpp_err"; then
6808   ac_header_preproc=yes
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813   ac_header_preproc=no
6814 fi
6815 rm -f conftest.err conftest.$ac_ext
6816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6817 echo "${ECHO_T}$ac_header_preproc" >&6
6818
6819 # So?  What about this header?
6820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6821   yes:no: )
6822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6826     ac_header_preproc=yes
6827     ;;
6828   no:yes:* )
6829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6841     (
6842       cat <<\_ASBOX
6843 ## ----------------------------------- ##
6844 ## Report this to llvmbugs@cs.uiuc.edu ##
6845 ## ----------------------------------- ##
6846 _ASBOX
6847     ) |
6848       sed "s/^/$as_me: WARNING:     /" >&2
6849     ;;
6850 esac
6851 echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   eval "$as_ac_Header=\$ac_header_preproc"
6857 fi
6858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6860
6861 fi
6862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863   cat >>confdefs.h <<_ACEOF
6864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6865 _ACEOF
6866
6867 fi
6868
6869 done
6870
6871 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6872 if test "${enable_ltdl_install+set}" = set; then
6873   enableval="$enable_ltdl_install"
6874
6875 fi;
6876
6877
6878
6879 if test x"${enable_ltdl_install-no}" != xno; then
6880   INSTALL_LTDL_TRUE=
6881   INSTALL_LTDL_FALSE='#'
6882 else
6883   INSTALL_LTDL_TRUE='#'
6884   INSTALL_LTDL_FALSE=
6885 fi
6886
6887
6888
6889 if test x"${enable_ltdl_convenience-no}" != xno; then
6890   CONVENIENCE_LTDL_TRUE=
6891   CONVENIENCE_LTDL_FALSE='#'
6892 else
6893   CONVENIENCE_LTDL_TRUE='#'
6894   CONVENIENCE_LTDL_FALSE=
6895 fi
6896
6897
6898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6900 library_names_spec=
6901 libname_spec='lib$name'
6902 soname_spec=
6903 shrext_cmds=".so"
6904 postinstall_cmds=
6905 postuninstall_cmds=
6906 finish_cmds=
6907 finish_eval=
6908 shlibpath_var=
6909 shlibpath_overrides_runpath=unknown
6910 version_type=none
6911 dynamic_linker="$host_os ld.so"
6912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6913 if test "$GCC" = yes; then
6914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6916     # if the path contains ";" then we assume it to be the separator
6917     # otherwise default to the standard path separator (i.e. ":") - it is
6918     # assumed that no part of a normal pathname contains ";" but that should
6919     # okay in the real world where ";" in dirpaths is itself problematic.
6920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6921   else
6922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6923   fi
6924 else
6925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6926 fi
6927 need_lib_prefix=unknown
6928 hardcode_into_libs=no
6929
6930 # when you set need_version to no, make sure it does not cause -set_version
6931 # flags to be left without arguments
6932 need_version=unknown
6933
6934 case $host_os in
6935 aix3*)
6936   version_type=linux
6937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6938   shlibpath_var=LIBPATH
6939
6940   # AIX 3 has no versioning support, so we append a major version to the name.
6941   soname_spec='${libname}${release}${shared_ext}$major'
6942   ;;
6943
6944 aix4* | aix5*)
6945   version_type=linux
6946   need_lib_prefix=no
6947   need_version=no
6948   hardcode_into_libs=yes
6949   if test "$host_cpu" = ia64; then
6950     # AIX 5 supports IA64
6951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6952     shlibpath_var=LD_LIBRARY_PATH
6953   else
6954     # With GCC up to 2.95.x, collect2 would create an import file
6955     # for dependence libraries.  The import file would start with
6956     # the line `#! .'.  This would cause the generated library to
6957     # depend on `.', always an invalid library.  This was fixed in
6958     # development snapshots of GCC prior to 3.0.
6959     case $host_os in
6960       aix4 | aix4.[01] | aix4.[01].*)
6961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6962            echo ' yes '
6963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6964         :
6965       else
6966         can_build_shared=no
6967       fi
6968       ;;
6969     esac
6970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6971     # soname into executable. Probably we can add versioning support to
6972     # collect2, so additional links can be useful in future.
6973     if test "$aix_use_runtimelinking" = yes; then
6974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6975       # instead of lib<name>.a to let people know that these are not
6976       # typical AIX shared libraries.
6977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6978     else
6979       # We preserve .a as extension for shared libraries through AIX4.2
6980       # and later when we are not doing run time linking.
6981       library_names_spec='${libname}${release}.a $libname.a'
6982       soname_spec='${libname}${release}${shared_ext}$major'
6983     fi
6984     shlibpath_var=LIBPATH
6985   fi
6986   ;;
6987
6988 amigaos*)
6989   library_names_spec='$libname.ixlibrary $libname.a'
6990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6991   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'
6992   ;;
6993
6994 beos*)
6995   library_names_spec='${libname}${shared_ext}'
6996   dynamic_linker="$host_os ld.so"
6997   shlibpath_var=LIBRARY_PATH
6998   ;;
6999
7000 bsdi[45]*)
7001   version_type=linux
7002   need_version=no
7003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7004   soname_spec='${libname}${release}${shared_ext}$major'
7005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7006   shlibpath_var=LD_LIBRARY_PATH
7007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7009   # the default ld.so.conf also contains /usr/contrib/lib and
7010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7011   # libtool to hard-code these into programs
7012   ;;
7013
7014 cygwin* | mingw* | pw32*)
7015   version_type=windows
7016   shrext_cmds=".dll"
7017   need_version=no
7018   need_lib_prefix=no
7019
7020   case $GCC,$host_os in
7021   yes,cygwin* | yes,mingw* | yes,pw32*)
7022     library_names_spec='$libname.dll.a'
7023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7024     postinstall_cmds='base_file=`basename \${file}`~
7025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7026       dldir=$destdir/`dirname \$dlpath`~
7027       test -d \$dldir || mkdir -p \$dldir~
7028       $install_prog $dir/$dlname \$dldir/$dlname'
7029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7030       dlpath=$dir/\$dldll~
7031        $rm \$dlpath'
7032     shlibpath_overrides_runpath=yes
7033
7034     case $host_os in
7035     cygwin*)
7036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7039       ;;
7040     mingw*)
7041       # MinGW DLLs use traditional 'lib' prefix
7042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7045         # It is most probably a Windows format PATH printed by
7046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7047         # path with ; separators, and with drive letters. We can handle the
7048         # drive letters (cygwin fileutils understands them), so leave them,
7049         # especially as we might pass files found there to a mingw objdump,
7050         # which wouldn't understand a cygwinified path. Ahh.
7051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7052       else
7053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7054       fi
7055       ;;
7056     pw32*)
7057       # pw32 DLLs use 'pw' prefix rather than 'lib'
7058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7059       ;;
7060     esac
7061     ;;
7062
7063   *)
7064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7065     ;;
7066   esac
7067   dynamic_linker='Win32 ld.exe'
7068   # FIXME: first we should search . and the directory the executable is in
7069   shlibpath_var=PATH
7070   ;;
7071
7072 darwin* | rhapsody*)
7073   dynamic_linker="$host_os dyld"
7074   version_type=darwin
7075   need_lib_prefix=no
7076   need_version=no
7077   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7078   soname_spec='${libname}${release}${major}$shared_ext'
7079   shlibpath_overrides_runpath=yes
7080   shlibpath_var=DYLD_LIBRARY_PATH
7081   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7082   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7083   if test "$GCC" = yes; then
7084     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"`
7085   else
7086     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7087   fi
7088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7089   ;;
7090
7091 dgux*)
7092   version_type=linux
7093   need_lib_prefix=no
7094   need_version=no
7095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7096   soname_spec='${libname}${release}${shared_ext}$major'
7097   shlibpath_var=LD_LIBRARY_PATH
7098   ;;
7099
7100 freebsd1*)
7101   dynamic_linker=no
7102   ;;
7103
7104 kfreebsd*-gnu)
7105   version_type=linux
7106   need_lib_prefix=no
7107   need_version=no
7108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7109   soname_spec='${libname}${release}${shared_ext}$major'
7110   shlibpath_var=LD_LIBRARY_PATH
7111   shlibpath_overrides_runpath=no
7112   hardcode_into_libs=yes
7113   dynamic_linker='GNU ld.so'
7114   ;;
7115
7116 freebsd*)
7117   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118   version_type=freebsd-$objformat
7119   case $version_type in
7120     freebsd-elf*)
7121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7122       need_version=no
7123       need_lib_prefix=no
7124       ;;
7125     freebsd-*)
7126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7127       need_version=yes
7128       ;;
7129   esac
7130   shlibpath_var=LD_LIBRARY_PATH
7131   case $host_os in
7132   freebsd2*)
7133     shlibpath_overrides_runpath=yes
7134     ;;
7135   freebsd3.01* | freebsdelf3.01*)
7136     shlibpath_overrides_runpath=yes
7137     hardcode_into_libs=yes
7138     ;;
7139   *) # from 3.2 on
7140     shlibpath_overrides_runpath=no
7141     hardcode_into_libs=yes
7142     ;;
7143   esac
7144   ;;
7145
7146 gnu*)
7147   version_type=linux
7148   need_lib_prefix=no
7149   need_version=no
7150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151   soname_spec='${libname}${release}${shared_ext}$major'
7152   shlibpath_var=LD_LIBRARY_PATH
7153   hardcode_into_libs=yes
7154   ;;
7155
7156 hpux9* | hpux10* | hpux11*)
7157   # Give a soname corresponding to the major version so that dld.sl refuses to
7158   # link against other versions.
7159   version_type=sunos
7160   need_lib_prefix=no
7161   need_version=no
7162   case "$host_cpu" in
7163   ia64*)
7164     shrext_cmds='.so'
7165     hardcode_into_libs=yes
7166     dynamic_linker="$host_os dld.so"
7167     shlibpath_var=LD_LIBRARY_PATH
7168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170     soname_spec='${libname}${release}${shared_ext}$major'
7171     if test "X$HPUX_IA64_MODE" = X32; then
7172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7173     else
7174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7175     fi
7176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7177     ;;
7178    hppa*64*)
7179      shrext_cmds='.sl'
7180      hardcode_into_libs=yes
7181      dynamic_linker="$host_os dld.sl"
7182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185      soname_spec='${libname}${release}${shared_ext}$major'
7186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7188      ;;
7189    *)
7190     shrext_cmds='.sl'
7191     dynamic_linker="$host_os dld.sl"
7192     shlibpath_var=SHLIB_PATH
7193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195     soname_spec='${libname}${release}${shared_ext}$major'
7196     ;;
7197   esac
7198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199   postinstall_cmds='chmod 555 $lib'
7200   ;;
7201
7202 irix5* | irix6* | nonstopux*)
7203   case $host_os in
7204     nonstopux*) version_type=nonstopux ;;
7205     *)
7206         if test "$lt_cv_prog_gnu_ld" = yes; then
7207                 version_type=linux
7208         else
7209                 version_type=irix
7210         fi ;;
7211   esac
7212   need_lib_prefix=no
7213   need_version=no
7214   soname_spec='${libname}${release}${shared_ext}$major'
7215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7216   case $host_os in
7217   irix5* | nonstopux*)
7218     libsuff= shlibsuff=
7219     ;;
7220   *)
7221     case $LD in # libtool.m4 will add one of these switches to LD
7222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223       libsuff= shlibsuff= libmagic=32-bit;;
7224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225       libsuff=32 shlibsuff=N32 libmagic=N32;;
7226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228     *) libsuff= shlibsuff= libmagic=never-match;;
7229     esac
7230     ;;
7231   esac
7232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233   shlibpath_overrides_runpath=no
7234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236   hardcode_into_libs=yes
7237   ;;
7238
7239 # No shared lib support for Linux oldld, aout, or coff.
7240 linux*oldld* | linux*aout* | linux*coff*)
7241   dynamic_linker=no
7242   ;;
7243
7244 # This must be Linux ELF.
7245 linux*)
7246   version_type=linux
7247   need_lib_prefix=no
7248   need_version=no
7249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250   soname_spec='${libname}${release}${shared_ext}$major'
7251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252   shlibpath_var=LD_LIBRARY_PATH
7253   shlibpath_overrides_runpath=no
7254   # This implies no fast_install, which is unacceptable.
7255   # Some rework will be needed to allow for fast_install
7256   # before this can be enabled.
7257   hardcode_into_libs=yes
7258
7259   # Append ld.so.conf contents to the search path
7260   if test -f /etc/ld.so.conf; then
7261     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7263   fi
7264
7265   # We used to test for /lib/ld.so.1 and disable shared libraries on
7266   # powerpc, because MkLinux only supported shared libraries with the
7267   # GNU dynamic linker.  Since this was broken with cross compilers,
7268   # most powerpc-linux boxes support dynamic linking these days and
7269   # people can always --disable-shared, the test was removed, and we
7270   # assume the GNU/Linux dynamic linker is in use.
7271   dynamic_linker='GNU/Linux ld.so'
7272   ;;
7273
7274 knetbsd*-gnu)
7275   version_type=linux
7276   need_lib_prefix=no
7277   need_version=no
7278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7279   soname_spec='${libname}${release}${shared_ext}$major'
7280   shlibpath_var=LD_LIBRARY_PATH
7281   shlibpath_overrides_runpath=no
7282   hardcode_into_libs=yes
7283   dynamic_linker='GNU ld.so'
7284   ;;
7285
7286 netbsd*)
7287   version_type=sunos
7288   need_lib_prefix=no
7289   need_version=no
7290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7293     dynamic_linker='NetBSD (a.out) ld.so'
7294   else
7295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7296     soname_spec='${libname}${release}${shared_ext}$major'
7297     dynamic_linker='NetBSD ld.elf_so'
7298   fi
7299   shlibpath_var=LD_LIBRARY_PATH
7300   shlibpath_overrides_runpath=yes
7301   hardcode_into_libs=yes
7302   ;;
7303
7304 newsos6)
7305   version_type=linux
7306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7307   shlibpath_var=LD_LIBRARY_PATH
7308   shlibpath_overrides_runpath=yes
7309   ;;
7310
7311 nto-qnx*)
7312   version_type=linux
7313   need_lib_prefix=no
7314   need_version=no
7315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316   soname_spec='${libname}${release}${shared_ext}$major'
7317   shlibpath_var=LD_LIBRARY_PATH
7318   shlibpath_overrides_runpath=yes
7319   ;;
7320
7321 openbsd*)
7322   version_type=sunos
7323   need_lib_prefix=no
7324   need_version=no
7325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7327   shlibpath_var=LD_LIBRARY_PATH
7328   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7329     case $host_os in
7330       openbsd2.[89] | openbsd2.[89].*)
7331         shlibpath_overrides_runpath=no
7332         ;;
7333       *)
7334         shlibpath_overrides_runpath=yes
7335         ;;
7336       esac
7337   else
7338     shlibpath_overrides_runpath=yes
7339   fi
7340   ;;
7341
7342 os2*)
7343   libname_spec='$name'
7344   shrext_cmds=".dll"
7345   need_lib_prefix=no
7346   library_names_spec='$libname${shared_ext} $libname.a'
7347   dynamic_linker='OS/2 ld.exe'
7348   shlibpath_var=LIBPATH
7349   ;;
7350
7351 osf3* | osf4* | osf5*)
7352   version_type=osf
7353   need_lib_prefix=no
7354   need_version=no
7355   soname_spec='${libname}${release}${shared_ext}$major'
7356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7357   shlibpath_var=LD_LIBRARY_PATH
7358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7360   ;;
7361
7362 sco3.2v5*)
7363   version_type=osf
7364   soname_spec='${libname}${release}${shared_ext}$major'
7365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366   shlibpath_var=LD_LIBRARY_PATH
7367   ;;
7368
7369 solaris*)
7370   version_type=linux
7371   need_lib_prefix=no
7372   need_version=no
7373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7374   soname_spec='${libname}${release}${shared_ext}$major'
7375   shlibpath_var=LD_LIBRARY_PATH
7376   shlibpath_overrides_runpath=yes
7377   hardcode_into_libs=yes
7378   # ldd complains unless libraries are executable
7379   postinstall_cmds='chmod +x $lib'
7380   ;;
7381
7382 sunos4*)
7383   version_type=sunos
7384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7386   shlibpath_var=LD_LIBRARY_PATH
7387   shlibpath_overrides_runpath=yes
7388   if test "$with_gnu_ld" = yes; then
7389     need_lib_prefix=no
7390   fi
7391   need_version=yes
7392   ;;
7393
7394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7395   version_type=linux
7396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7397   soname_spec='${libname}${release}${shared_ext}$major'
7398   shlibpath_var=LD_LIBRARY_PATH
7399   case $host_vendor in
7400     sni)
7401       shlibpath_overrides_runpath=no
7402       need_lib_prefix=no
7403       export_dynamic_flag_spec='${wl}-Blargedynsym'
7404       runpath_var=LD_RUN_PATH
7405       ;;
7406     siemens)
7407       need_lib_prefix=no
7408       ;;
7409     motorola)
7410       need_lib_prefix=no
7411       need_version=no
7412       shlibpath_overrides_runpath=no
7413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7414       ;;
7415   esac
7416   ;;
7417
7418 sysv4*MP*)
7419   if test -d /usr/nec ;then
7420     version_type=linux
7421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7422     soname_spec='$libname${shared_ext}.$major'
7423     shlibpath_var=LD_LIBRARY_PATH
7424   fi
7425   ;;
7426
7427 uts4*)
7428   version_type=linux
7429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7430   soname_spec='${libname}${release}${shared_ext}$major'
7431   shlibpath_var=LD_LIBRARY_PATH
7432   ;;
7433
7434 *)
7435   dynamic_linker=no
7436   ;;
7437 esac
7438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7439 echo "${ECHO_T}$dynamic_linker" >&6
7440 test "$dynamic_linker" = no && can_build_shared=no
7441
7442
7443 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7444 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7445 if test "${libltdl_cv_shlibext+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448
7449 module=yes
7450 eval libltdl_cv_shlibext=$shrext_cmds
7451
7452 fi
7453 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7454 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7455 if test -n "$libltdl_cv_shlibext"; then
7456
7457 cat >>confdefs.h <<_ACEOF
7458 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7459 _ACEOF
7460
7461 fi
7462
7463
7464 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7465 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7466 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   libltdl_cv_shlibpath_var="$shlibpath_var"
7470 fi
7471 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7472 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7473 if test -n "$libltdl_cv_shlibpath_var"; then
7474
7475 cat >>confdefs.h <<_ACEOF
7476 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7477 _ACEOF
7478
7479 fi
7480
7481
7482 echo "$as_me:$LINENO: checking for the default library search path" >&5
7483 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7484 if test "${libltdl_cv_sys_search_path+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7488 fi
7489 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7490 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7491 if test -n "$libltdl_cv_sys_search_path"; then
7492   sys_search_path=
7493   for dir in $libltdl_cv_sys_search_path; do
7494     if test -z "$sys_search_path"; then
7495       sys_search_path="$dir"
7496     else
7497       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7498     fi
7499   done
7500
7501 cat >>confdefs.h <<_ACEOF
7502 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7503 _ACEOF
7504
7505 fi
7506
7507 echo "$as_me:$LINENO: checking for objdir" >&5
7508 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7509 if test "${libltdl_cv_objdir+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   libltdl_cv_objdir="$objdir"
7513   if test -n "$objdir"; then
7514     :
7515   else
7516     rm -f .libs 2>/dev/null
7517     mkdir .libs 2>/dev/null
7518     if test -d .libs; then
7519       libltdl_cv_objdir=.libs
7520     else
7521       # MS-DOS does not allow filenames that begin with a dot.
7522       libltdl_cv_objdir=_libs
7523     fi
7524   rmdir .libs 2>/dev/null
7525   fi
7526
7527 fi
7528 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7529 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7530
7531 cat >>confdefs.h <<_ACEOF
7532 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7533 _ACEOF
7534
7535
7536 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7537 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7538 if test "${lt_cv_path_NM+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   if test -n "$NM"; then
7542   # Let the user override the test.
7543   lt_cv_path_NM="$NM"
7544 else
7545   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7546   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7547     IFS="$lt_save_ifs"
7548     test -z "$ac_dir" && ac_dir=.
7549     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7550     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7551       # Check to see if the nm accepts a BSD-compat flag.
7552       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7553       #   nm: unknown option "B" ignored
7554       # Tru64's nm complains that /dev/null is an invalid object file
7555       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7556       */dev/null* | *'Invalid file or object type'*)
7557         lt_cv_path_NM="$tmp_nm -B"
7558         break
7559         ;;
7560       *)
7561         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7562         */dev/null*)
7563           lt_cv_path_NM="$tmp_nm -p"
7564           break
7565           ;;
7566         *)
7567           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7568           continue # so that we can try to find one that supports BSD flags
7569           ;;
7570         esac
7571       esac
7572     fi
7573   done
7574   IFS="$lt_save_ifs"
7575   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7576 fi
7577 fi
7578 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7579 echo "${ECHO_T}$lt_cv_path_NM" >&6
7580 NM="$lt_cv_path_NM"
7581
7582
7583
7584
7585
7586 # Check for command to grab the raw symbol name followed by C symbol from nm.
7587 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7588 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7589 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592
7593 # These are sane defaults that work on at least a few old systems.
7594 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7595
7596 # Character class describing NM global symbol codes.
7597 symcode='[BCDEGRST]'
7598
7599 # Regexp to match symbols that can be accessed directly from C.
7600 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7601
7602 # Transform the above into a raw symbol and a C symbol.
7603 symxfrm='\1 \2\3 \3'
7604
7605 # Transform an extracted symbol line into a proper C declaration
7606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7607
7608 # Transform an extracted symbol line into symbol name and symbol address
7609 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'"
7610
7611 # Define system-specific variables.
7612 case $host_os in
7613 aix*)
7614   symcode='[BCDT]'
7615   ;;
7616 cygwin* | mingw* | pw32*)
7617   symcode='[ABCDGISTW]'
7618   ;;
7619 hpux*) # Its linker distinguishes data from code symbols
7620   if test "$host_cpu" = ia64; then
7621     symcode='[ABCDEGRST]'
7622   fi
7623   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7624   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'"
7625   ;;
7626 linux*)
7627   if test "$host_cpu" = ia64; then
7628     symcode='[ABCDGIRSTW]'
7629     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7630     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'"
7631   fi
7632   ;;
7633 irix* | nonstopux*)
7634   symcode='[BCDEGRST]'
7635   ;;
7636 osf*)
7637   symcode='[BCDEGQRST]'
7638   ;;
7639 solaris* | sysv5*)
7640   symcode='[BDRT]'
7641   ;;
7642 sysv4)
7643   symcode='[DFNSTU]'
7644   ;;
7645 esac
7646
7647 # Handle CRLF in mingw tool chain
7648 opt_cr=
7649 case $build_os in
7650 mingw*)
7651   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7652   ;;
7653 esac
7654
7655 # If we're using GNU nm, then use its standard symbol codes.
7656 case `$NM -V 2>&1` in
7657 *GNU* | *'with BFD'*)
7658   symcode='[ABCDGIRSTW]' ;;
7659 esac
7660
7661 # Try without a prefix undercore, then with it.
7662 for ac_symprfx in "" "_"; do
7663
7664   # Write the raw and C identifiers.
7665   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7666
7667   # Check to see that the pipe works correctly.
7668   pipe_works=no
7669
7670   rm -f conftest*
7671   cat > conftest.$ac_ext <<EOF
7672 #ifdef __cplusplus
7673 extern "C" {
7674 #endif
7675 char nm_test_var;
7676 void nm_test_func(){}
7677 #ifdef __cplusplus
7678 }
7679 #endif
7680 int main(){nm_test_var='a';nm_test_func();return(0);}
7681 EOF
7682
7683   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684   (eval $ac_compile) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; then
7688     # Now try to grab the symbols.
7689     nlist=conftest.nm
7690     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7691   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } && test -s "$nlist"; then
7695       # Try sorting and uniquifying the output.
7696       if sort "$nlist" | uniq > "$nlist"T; then
7697         mv -f "$nlist"T "$nlist"
7698       else
7699         rm -f "$nlist"T
7700       fi
7701
7702       # Make sure that we snagged all the symbols we need.
7703       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7704         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7705           cat <<EOF > conftest.$ac_ext
7706 #ifdef __cplusplus
7707 extern "C" {
7708 #endif
7709
7710 EOF
7711           # Now generate the symbol file.
7712           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7713
7714           cat <<EOF >> conftest.$ac_ext
7715 #if defined (__STDC__) && __STDC__
7716 # define lt_ptr_t void *
7717 #else
7718 # define lt_ptr_t char *
7719 # define const
7720 #endif
7721
7722 /* The mapping between symbol names and symbols. */
7723 const struct {
7724   const char *name;
7725   lt_ptr_t address;
7726 }
7727 lt_preloaded_symbols[] =
7728 {
7729 EOF
7730           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7731           cat <<\EOF >> conftest.$ac_ext
7732   {0, (lt_ptr_t) 0}
7733 };
7734
7735 #ifdef __cplusplus
7736 }
7737 #endif
7738 EOF
7739           # Now try linking the two files.
7740           mv conftest.$ac_objext conftstm.$ac_objext
7741           lt_save_LIBS="$LIBS"
7742           lt_save_CFLAGS="$CFLAGS"
7743           LIBS="conftstm.$ac_objext"
7744           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7745           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7750             pipe_works=yes
7751           fi
7752           LIBS="$lt_save_LIBS"
7753           CFLAGS="$lt_save_CFLAGS"
7754         else
7755           echo "cannot find nm_test_func in $nlist" >&5
7756         fi
7757       else
7758         echo "cannot find nm_test_var in $nlist" >&5
7759       fi
7760     else
7761       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7762     fi
7763   else
7764     echo "$progname: failed program was:" >&5
7765     cat conftest.$ac_ext >&5
7766   fi
7767   rm -f conftest* conftst*
7768
7769   # Do not use the global_symbol_pipe unless it works.
7770   if test "$pipe_works" = yes; then
7771     break
7772   else
7773     lt_cv_sys_global_symbol_pipe=
7774   fi
7775 done
7776
7777 fi
7778
7779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7780   lt_cv_sys_global_symbol_to_cdecl=
7781 fi
7782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7783   echo "$as_me:$LINENO: result: failed" >&5
7784 echo "${ECHO_T}failed" >&6
7785 else
7786   echo "$as_me:$LINENO: result: ok" >&5
7787 echo "${ECHO_T}ok" >&6
7788 fi
7789
7790
7791 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7792 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7793 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7797     libltdl_cv_preloaded_symbols=yes
7798   else
7799     libltdl_cv_preloaded_symbols=no
7800   fi
7801
7802 fi
7803 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7804 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7805 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7806
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_PRELOADED_SYMBOLS 1
7809 _ACEOF
7810
7811 fi
7812
7813 LIBADD_DL=
7814
7815 ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822 echo "$as_me:$LINENO: checking for shl_load" >&5
7823 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7824 if test "${ac_cv_func_shl_load+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h.  */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h.  */
7833 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7835 #define shl_load innocuous_shl_load
7836
7837 /* System header to define __stub macros and hopefully few prototypes,
7838     which can conflict with char shl_load (); below.
7839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840     <limits.h> exists even on freestanding compilers.  */
7841
7842 #ifdef __STDC__
7843 # include <limits.h>
7844 #else
7845 # include <assert.h>
7846 #endif
7847
7848 #undef shl_load
7849
7850 /* Override any gcc2 internal prototype to avoid an error.  */
7851 #ifdef __cplusplus
7852 extern "C"
7853 {
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856    builtin and then its argument prototype would still apply.  */
7857 char shl_load ();
7858 /* The GNU C library defines this for functions which it implements
7859     to always fail with ENOSYS.  Some functions are actually named
7860     something starting with __ and the normal name is an alias.  */
7861 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7862 choke me
7863 #else
7864 char (*f) () = shl_load;
7865 #endif
7866 #ifdef __cplusplus
7867 }
7868 #endif
7869
7870 int
7871 main ()
7872 {
7873 return f != shl_load;
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880   (eval $ac_link) 2>conftest.er1
7881   ac_status=$?
7882   grep -v '^ *+' conftest.er1 >conftest.err
7883   rm -f conftest.er1
7884   cat conftest.err >&5
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); } &&
7887          { ac_try='test -z "$ac_c_werror_flag"
7888                          || test ! -s conftest.err'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; } &&
7894          { ac_try='test -s conftest$ac_exeext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   ac_cv_func_shl_load=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_func_shl_load=no
7906 fi
7907 rm -f conftest.err conftest.$ac_objext \
7908       conftest$ac_exeext conftest.$ac_ext
7909 fi
7910 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7912 if test $ac_cv_func_shl_load = yes; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_SHL_LOAD 1
7916 _ACEOF
7917
7918 else
7919   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   ac_check_lib_save_LIBS=$LIBS
7925 LIBS="-ldld  $LIBS"
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932
7933 /* Override any gcc2 internal prototype to avoid an error.  */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 /* We use char because int might match the return type of a gcc2
7938    builtin and then its argument prototype would still apply.  */
7939 char shl_load ();
7940 int
7941 main ()
7942 {
7943 shl_load ();
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950   (eval $ac_link) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag"
7958                          || test ! -s conftest.err'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_lib_dld_shl_load=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_lib_dld_shl_load=no
7976 fi
7977 rm -f conftest.err conftest.$ac_objext \
7978       conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7980 fi
7981 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7982 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7983 if test $ac_cv_lib_dld_shl_load = yes; then
7984
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_SHL_LOAD 1
7987 _ACEOF
7988
7989         LIBADD_DL="$LIBADD_DL -ldld"
7990 else
7991   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   ac_check_lib_save_LIBS=$LIBS
7997 LIBS="-ldl  $LIBS"
7998 cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h.  */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h.  */
8004
8005 /* Override any gcc2 internal prototype to avoid an error.  */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010    builtin and then its argument prototype would still apply.  */
8011 char dlopen ();
8012 int
8013 main ()
8014 {
8015 dlopen ();
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022   (eval $ac_link) 2>conftest.er1
8023   ac_status=$?
8024   grep -v '^ *+' conftest.er1 >conftest.err
8025   rm -f conftest.er1
8026   cat conftest.err >&5
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); } &&
8029          { ac_try='test -z "$ac_c_werror_flag"
8030                          || test ! -s conftest.err'
8031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032   (eval $ac_try) 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; } &&
8036          { ac_try='test -s conftest$ac_exeext'
8037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038   (eval $ac_try) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; }; then
8042   ac_cv_lib_dl_dlopen=yes
8043 else
8044   echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 ac_cv_lib_dl_dlopen=no
8048 fi
8049 rm -f conftest.err conftest.$ac_objext \
8050       conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8052 fi
8053 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8055 if test $ac_cv_lib_dl_dlopen = yes; then
8056
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_LIBDL 1
8059 _ACEOF
8060
8061                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8062 else
8063   cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 #if HAVE_DLFCN_H
8070 #  include <dlfcn.h>
8071 #endif
8072
8073 int
8074 main ()
8075 {
8076 dlopen(0, 0);
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083   (eval $ac_link) 2>conftest.er1
8084   ac_status=$?
8085   grep -v '^ *+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } &&
8090          { ac_try='test -z "$ac_c_werror_flag"
8091                          || test ! -s conftest.err'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; } &&
8097          { ac_try='test -s conftest$ac_exeext'
8098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099   (eval $ac_try) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; }; then
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_LIBDL 1
8106 _ACEOF
8107  libltdl_cv_func_dlopen="yes"
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8113 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8114 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   ac_check_lib_save_LIBS=$LIBS
8118 LIBS="-lsvld  $LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125
8126 /* Override any gcc2 internal prototype to avoid an error.  */
8127 #ifdef __cplusplus
8128 extern "C"
8129 #endif
8130 /* We use char because int might match the return type of a gcc2
8131    builtin and then its argument prototype would still apply.  */
8132 char dlopen ();
8133 int
8134 main ()
8135 {
8136 dlopen ();
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143   (eval $ac_link) 2>conftest.er1
8144   ac_status=$?
8145   grep -v '^ *+' conftest.er1 >conftest.err
8146   rm -f conftest.er1
8147   cat conftest.err >&5
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } &&
8150          { ac_try='test -z "$ac_c_werror_flag"
8151                          || test ! -s conftest.err'
8152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153   (eval $ac_try) 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; } &&
8157          { ac_try='test -s conftest$ac_exeext'
8158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159   (eval $ac_try) 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); }; }; then
8163   ac_cv_lib_svld_dlopen=yes
8164 else
8165   echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8167
8168 ac_cv_lib_svld_dlopen=no
8169 fi
8170 rm -f conftest.err conftest.$ac_objext \
8171       conftest$ac_exeext conftest.$ac_ext
8172 LIBS=$ac_check_lib_save_LIBS
8173 fi
8174 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8175 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8176 if test $ac_cv_lib_svld_dlopen = yes; then
8177
8178 cat >>confdefs.h <<\_ACEOF
8179 #define HAVE_LIBDL 1
8180 _ACEOF
8181
8182                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8183 else
8184   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8187   echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189   ac_check_lib_save_LIBS=$LIBS
8190 LIBS="-ldld  $LIBS"
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h.  */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h.  */
8197
8198 /* Override any gcc2 internal prototype to avoid an error.  */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 /* We use char because int might match the return type of a gcc2
8203    builtin and then its argument prototype would still apply.  */
8204 char dld_link ();
8205 int
8206 main ()
8207 {
8208 dld_link ();
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215   (eval $ac_link) 2>conftest.er1
8216   ac_status=$?
8217   grep -v '^ *+' conftest.er1 >conftest.err
8218   rm -f conftest.er1
8219   cat conftest.err >&5
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } &&
8222          { ac_try='test -z "$ac_c_werror_flag"
8223                          || test ! -s conftest.err'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest$ac_exeext'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   ac_cv_lib_dld_dld_link=yes
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240 ac_cv_lib_dld_dld_link=no
8241 fi
8242 rm -f conftest.err conftest.$ac_objext \
8243       conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8245 fi
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8248 if test $ac_cv_lib_dld_dld_link = yes; then
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define HAVE_DLD 1
8252 _ACEOF
8253
8254                 LIBADD_DL="$LIBADD_DL -ldld"
8255 else
8256   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8257 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8258 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8269 #define _dyld_func_lookup innocuous__dyld_func_lookup
8270
8271 /* System header to define __stub macros and hopefully few prototypes,
8272     which can conflict with char _dyld_func_lookup (); below.
8273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274     <limits.h> exists even on freestanding compilers.  */
8275
8276 #ifdef __STDC__
8277 # include <limits.h>
8278 #else
8279 # include <assert.h>
8280 #endif
8281
8282 #undef _dyld_func_lookup
8283
8284 /* Override any gcc2 internal prototype to avoid an error.  */
8285 #ifdef __cplusplus
8286 extern "C"
8287 {
8288 #endif
8289 /* We use char because int might match the return type of a gcc2
8290    builtin and then its argument prototype would still apply.  */
8291 char _dyld_func_lookup ();
8292 /* The GNU C library defines this for functions which it implements
8293     to always fail with ENOSYS.  Some functions are actually named
8294     something starting with __ and the normal name is an alias.  */
8295 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8296 choke me
8297 #else
8298 char (*f) () = _dyld_func_lookup;
8299 #endif
8300 #ifdef __cplusplus
8301 }
8302 #endif
8303
8304 int
8305 main ()
8306 {
8307 return f != _dyld_func_lookup;
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag"
8322                          || test ! -s conftest.err'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_func__dyld_func_lookup=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_func__dyld_func_lookup=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext conftest.$ac_ext
8343 fi
8344 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8345 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8346 if test $ac_cv_func__dyld_func_lookup = yes; then
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define HAVE_DYLD 1
8350 _ACEOF
8351
8352 fi
8353
8354
8355 fi
8356
8357
8358 fi
8359
8360
8361 fi
8362 rm -f conftest.err conftest.$ac_objext \
8363       conftest$ac_exeext conftest.$ac_ext
8364
8365 fi
8366
8367
8368 fi
8369
8370
8371 fi
8372
8373
8374 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8375 then
8376   lt_save_LIBS="$LIBS"
8377   LIBS="$LIBS $LIBADD_DL"
8378
8379 for ac_func in dlerror
8380 do
8381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8382 echo "$as_me:$LINENO: checking for $ac_func" >&5
8383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8384 if eval "test \"\${$as_ac_var+set}\" = set"; then
8385   echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387   cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8395 #define $ac_func innocuous_$ac_func
8396
8397 /* System header to define __stub macros and hopefully few prototypes,
8398     which can conflict with char $ac_func (); below.
8399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400     <limits.h> exists even on freestanding compilers.  */
8401
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407
8408 #undef $ac_func
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 {
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416    builtin and then its argument prototype would still apply.  */
8417 char $ac_func ();
8418 /* The GNU C library defines this for functions which it implements
8419     to always fail with ENOSYS.  Some functions are actually named
8420     something starting with __ and the normal name is an alias.  */
8421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8422 choke me
8423 #else
8424 char (*f) () = $ac_func;
8425 #endif
8426 #ifdef __cplusplus
8427 }
8428 #endif
8429
8430 int
8431 main ()
8432 {
8433 return f != $ac_func;
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag"
8448                          || test ! -s conftest.err'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; } &&
8454          { ac_try='test -s conftest$ac_exeext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   eval "$as_ac_var=yes"
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 eval "$as_ac_var=no"
8466 fi
8467 rm -f conftest.err conftest.$ac_objext \
8468       conftest$ac_exeext conftest.$ac_ext
8469 fi
8470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8472 if test `eval echo '${'$as_ac_var'}'` = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8475 _ACEOF
8476
8477 fi
8478 done
8479
8480   LIBS="$lt_save_LIBS"
8481 fi
8482 ac_ext=c
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488
8489
8490 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8491 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8492 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   ac_cv_sys_symbol_underscore=no
8496   cat > conftest.$ac_ext <<EOF
8497 void nm_test_func(){}
8498 int main(){nm_test_func;return 0;}
8499 EOF
8500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501   (eval $ac_compile) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; then
8505     # Now try to grab the symbols.
8506     ac_nlist=conftest.nm
8507     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8508   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } && test -s "$ac_nlist"; then
8512       # See whether the symbols have a leading underscore.
8513       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8514         ac_cv_sys_symbol_underscore=yes
8515       else
8516         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8517           :
8518         else
8519           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8520         fi
8521       fi
8522     else
8523       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8524     fi
8525   else
8526     echo "configure: failed program was:" >&5
8527     cat conftest.c >&5
8528   fi
8529   rm -rf conftest*
8530
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8533 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8534
8535
8536 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8537   if test x"$libltdl_cv_func_dlopen" = xyes ||
8538      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8539         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8540 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8541 if test "${libltdl_cv_need_uscore+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   libltdl_cv_need_uscore=unknown
8545           save_LIBS="$LIBS"
8546           LIBS="$LIBS $LIBADD_DL"
8547           if test "$cross_compiling" = yes; then :
8548   libltdl_cv_need_uscore=cross
8549 else
8550   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8551   lt_status=$lt_dlunknown
8552   cat > conftest.$ac_ext <<EOF
8553 #line 8553 "configure"
8554 #include "confdefs.h"
8555
8556 #if HAVE_DLFCN_H
8557 #include <dlfcn.h>
8558 #endif
8559
8560 #include <stdio.h>
8561
8562 #ifdef RTLD_GLOBAL
8563 #  define LT_DLGLOBAL           RTLD_GLOBAL
8564 #else
8565 #  ifdef DL_GLOBAL
8566 #    define LT_DLGLOBAL         DL_GLOBAL
8567 #  else
8568 #    define LT_DLGLOBAL         0
8569 #  endif
8570 #endif
8571
8572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8573    find out it does not work in some platform. */
8574 #ifndef LT_DLLAZY_OR_NOW
8575 #  ifdef RTLD_LAZY
8576 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8577 #  else
8578 #    ifdef DL_LAZY
8579 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8580 #    else
8581 #      ifdef RTLD_NOW
8582 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8583 #      else
8584 #        ifdef DL_NOW
8585 #          define LT_DLLAZY_OR_NOW      DL_NOW
8586 #        else
8587 #          define LT_DLLAZY_OR_NOW      0
8588 #        endif
8589 #      endif
8590 #    endif
8591 #  endif
8592 #endif
8593
8594 #ifdef __cplusplus
8595 extern "C" void exit (int);
8596 #endif
8597
8598 void fnord() { int i=42;}
8599 int main ()
8600 {
8601   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8602   int status = $lt_dlunknown;
8603
8604   if (self)
8605     {
8606       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8607       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8608       /* dlclose (self); */
8609     }
8610
8611     exit (status);
8612 }
8613 EOF
8614   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615   (eval $ac_link) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8619     (./conftest; exit; ) 2>/dev/null
8620     lt_status=$?
8621     case x$lt_status in
8622       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8623       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8624       x$lt_unknown|x*)  ;;
8625     esac
8626   else :
8627     # compilation failed
8628
8629   fi
8630 fi
8631 rm -fr conftest*
8632
8633           LIBS="$save_LIBS"
8634
8635 fi
8636 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8637 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8638   fi
8639 fi
8640
8641 if test x"$libltdl_cv_need_uscore" = xyes; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define NEED_USCORE 1
8645 _ACEOF
8646
8647 fi
8648
8649
8650 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8651 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8652 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655   # PORTME does your system automatically load deplibs for dlopen?
8656   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8657   # For now, we just catch OSes we know something about -- in the
8658   # future, we'll try test this programmatically.
8659   libltdl_cv_sys_dlopen_deplibs=unknown
8660   case "$host_os" in
8661   aix3*|aix4.1.*|aix4.2.*)
8662     # Unknown whether this is true for these versions of AIX, but
8663     # we want this `case' here to explicitly catch those versions.
8664     libltdl_cv_sys_dlopen_deplibs=unknown
8665     ;;
8666   aix[45]*)
8667     libltdl_cv_sys_dlopen_deplibs=yes
8668     ;;
8669   darwin*)
8670     # Assuming the user has installed a libdl from somewhere, this is true
8671     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8672     libltdl_cv_sys_dlopen_deplibs=yes
8673     ;;
8674   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8675     # GNU and its variants, using gnu ld.so (Glibc)
8676     libltdl_cv_sys_dlopen_deplibs=yes
8677     ;;
8678   hpux10*|hpux11*)
8679     libltdl_cv_sys_dlopen_deplibs=yes
8680     ;;
8681   irix[12345]*|irix6.[01]*)
8682     # Catch all versions of IRIX before 6.2, and indicate that we don't
8683     # know how it worked for any of those versions.
8684     libltdl_cv_sys_dlopen_deplibs=unknown
8685     ;;
8686   irix*)
8687     # The case above catches anything before 6.2, and it's known that
8688     # at 6.2 and later dlopen does load deplibs.
8689     libltdl_cv_sys_dlopen_deplibs=yes
8690     ;;
8691   netbsd*)
8692     libltdl_cv_sys_dlopen_deplibs=yes
8693     ;;
8694   openbsd*)
8695     libltdl_cv_sys_dlopen_deplibs=yes
8696     ;;
8697   osf[1234]*)
8698     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8699     # it did *not* use an RPATH in a shared library to find objects the
8700     # library depends on, so we explictly say `no'.
8701     libltdl_cv_sys_dlopen_deplibs=no
8702     ;;
8703   osf5.0|osf5.0a|osf5.1)
8704     # dlopen *does* load deplibs and with the right loader patch applied
8705     # it even uses RPATH in a shared library to search for shared objects
8706     # that the library depends on, but there's no easy way to know if that
8707     # patch is installed.  Since this is the case, all we can really
8708     # say is unknown -- it depends on the patch being installed.  If
8709     # it is, this changes to `yes'.  Without it, it would be `no'.
8710     libltdl_cv_sys_dlopen_deplibs=unknown
8711     ;;
8712   osf*)
8713     # the two cases above should catch all versions of osf <= 5.1.  Read
8714     # the comments above for what we know about them.
8715     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8716     # is used to find them so we can finally say `yes'.
8717     libltdl_cv_sys_dlopen_deplibs=yes
8718     ;;
8719   solaris*)
8720     libltdl_cv_sys_dlopen_deplibs=yes
8721     ;;
8722   esac
8723
8724 fi
8725 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8726 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8727 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8728
8729 cat >>confdefs.h <<\_ACEOF
8730 #define LTDL_DLOPEN_DEPLIBS 1
8731 _ACEOF
8732
8733 fi
8734
8735
8736 for ac_header in argz.h
8737 do
8738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740   echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 fi
8745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747 else
8748   # Is the header compilable?
8749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h.  */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h.  */
8757 $ac_includes_default
8758 #include <$ac_header>
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762   (eval $ac_compile) 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -z "$ac_c_werror_flag"
8770                          || test ! -s conftest.err'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; } &&
8776          { ac_try='test -s conftest.$ac_objext'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   ac_header_compiler=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_header_compiler=no
8788 fi
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8791 echo "${ECHO_T}$ac_header_compiler" >&6
8792
8793 # Is the header present?
8794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 #include <$ac_header>
8803 _ACEOF
8804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8806   ac_status=$?
8807   grep -v '^ *+' conftest.er1 >conftest.err
8808   rm -f conftest.er1
8809   cat conftest.err >&5
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } >/dev/null; then
8812   if test -s conftest.err; then
8813     ac_cpp_err=$ac_c_preproc_warn_flag
8814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8815   else
8816     ac_cpp_err=
8817   fi
8818 else
8819   ac_cpp_err=yes
8820 fi
8821 if test -z "$ac_cpp_err"; then
8822   ac_header_preproc=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827   ac_header_preproc=no
8828 fi
8829 rm -f conftest.err conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8831 echo "${ECHO_T}$ac_header_preproc" >&6
8832
8833 # So?  What about this header?
8834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8835   yes:no: )
8836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8840     ac_header_preproc=yes
8841     ;;
8842   no:yes:* )
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8855     (
8856       cat <<\_ASBOX
8857 ## ----------------------------------- ##
8858 ## Report this to llvmbugs@cs.uiuc.edu ##
8859 ## ----------------------------------- ##
8860 _ASBOX
8861     ) |
8862       sed "s/^/$as_me: WARNING:     /" >&2
8863     ;;
8864 esac
8865 echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   eval "$as_ac_Header=\$ac_header_preproc"
8871 fi
8872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8874
8875 fi
8876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8877   cat >>confdefs.h <<_ACEOF
8878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879 _ACEOF
8880
8881 fi
8882
8883 done
8884
8885
8886 echo "$as_me:$LINENO: checking for error_t" >&5
8887 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8888 if test "${ac_cv_type_error_t+set}" = set; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891   cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h.  */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h.  */
8897 #if HAVE_ARGZ_H
8898 #  include <argz.h>
8899 #endif
8900
8901 int
8902 main ()
8903 {
8904 if ((error_t *) 0)
8905   return 0;
8906 if (sizeof (error_t))
8907   return 0;
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914   (eval $ac_compile) 2>conftest.er1
8915   ac_status=$?
8916   grep -v '^ *+' conftest.er1 >conftest.err
8917   rm -f conftest.er1
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } &&
8921          { ac_try='test -z "$ac_c_werror_flag"
8922                          || test ! -s conftest.err'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; } &&
8928          { ac_try='test -s conftest.$ac_objext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_cv_type_error_t=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_cv_type_error_t=no
8940 fi
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 fi
8943 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8944 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8945 if test $ac_cv_type_error_t = yes; then
8946
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_ERROR_T 1
8949 _ACEOF
8950
8951
8952 else
8953
8954 cat >>confdefs.h <<\_ACEOF
8955 #define error_t int
8956 _ACEOF
8957
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8967 do
8968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_func" >&5
8970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_var+set}\" = set"; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8982 #define $ac_func innocuous_$ac_func
8983
8984 /* System header to define __stub macros and hopefully few prototypes,
8985     which can conflict with char $ac_func (); below.
8986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987     <limits.h> exists even on freestanding compilers.  */
8988
8989 #ifdef __STDC__
8990 # include <limits.h>
8991 #else
8992 # include <assert.h>
8993 #endif
8994
8995 #undef $ac_func
8996
8997 /* Override any gcc2 internal prototype to avoid an error.  */
8998 #ifdef __cplusplus
8999 extern "C"
9000 {
9001 #endif
9002 /* We use char because int might match the return type of a gcc2
9003    builtin and then its argument prototype would still apply.  */
9004 char $ac_func ();
9005 /* The GNU C library defines this for functions which it implements
9006     to always fail with ENOSYS.  Some functions are actually named
9007     something starting with __ and the normal name is an alias.  */
9008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9009 choke me
9010 #else
9011 char (*f) () = $ac_func;
9012 #endif
9013 #ifdef __cplusplus
9014 }
9015 #endif
9016
9017 int
9018 main ()
9019 {
9020 return f != $ac_func;
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } &&
9034          { ac_try='test -z "$ac_c_werror_flag"
9035                          || test ! -s conftest.err'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; } &&
9041          { ac_try='test -s conftest$ac_exeext'
9042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043   (eval $ac_try) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); }; }; then
9047   eval "$as_ac_var=yes"
9048 else
9049   echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 eval "$as_ac_var=no"
9053 fi
9054 rm -f conftest.err conftest.$ac_objext \
9055       conftest$ac_exeext conftest.$ac_ext
9056 fi
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9059 if test `eval echo '${'$as_ac_var'}'` = yes; then
9060   cat >>confdefs.h <<_ACEOF
9061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9062 _ACEOF
9063
9064 fi
9065 done
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9095                   stdio.h unistd.h
9096 do
9097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099   echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 fi
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 else
9107   # Is the header compilable?
9108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116 $ac_includes_default
9117 #include <$ac_header>
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"
9129                          || test ! -s conftest.err'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_header_compiler=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_header_compiler=no
9147 fi
9148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9150 echo "${ECHO_T}$ac_header_compiler" >&6
9151
9152 # Is the header present?
9153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h.  */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h.  */
9161 #include <$ac_header>
9162 _ACEOF
9163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } >/dev/null; then
9171   if test -s conftest.err; then
9172     ac_cpp_err=$ac_c_preproc_warn_flag
9173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9174   else
9175     ac_cpp_err=
9176   fi
9177 else
9178   ac_cpp_err=yes
9179 fi
9180 if test -z "$ac_cpp_err"; then
9181   ac_header_preproc=yes
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186   ac_header_preproc=no
9187 fi
9188 rm -f conftest.err conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9190 echo "${ECHO_T}$ac_header_preproc" >&6
9191
9192 # So?  What about this header?
9193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9194   yes:no: )
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9199     ac_header_preproc=yes
9200     ;;
9201   no:yes:* )
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9214     (
9215       cat <<\_ASBOX
9216 ## ----------------------------------- ##
9217 ## Report this to llvmbugs@cs.uiuc.edu ##
9218 ## ----------------------------------- ##
9219 _ASBOX
9220     ) |
9221       sed "s/^/$as_me: WARNING:     /" >&2
9222     ;;
9223 esac
9224 echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   eval "$as_ac_Header=\$ac_header_preproc"
9230 fi
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233
9234 fi
9235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9236   cat >>confdefs.h <<_ACEOF
9237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9238 _ACEOF
9239
9240 fi
9241
9242 done
9243
9244
9245
9246
9247
9248 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9249 do
9250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252   echo "$as_me:$LINENO: checking for $ac_header" >&5
9253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 fi
9257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9259 else
9260   # Is the header compilable?
9261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269 $ac_includes_default
9270 #include <$ac_header>
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274   (eval $ac_compile) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -z "$ac_c_werror_flag"
9282                          || test ! -s conftest.err'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; } &&
9288          { ac_try='test -s conftest.$ac_objext'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   ac_header_compiler=yes
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ac_header_compiler=no
9300 fi
9301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9303 echo "${ECHO_T}$ac_header_compiler" >&6
9304
9305 # Is the header present?
9306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314 #include <$ac_header>
9315 _ACEOF
9316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } >/dev/null; then
9324   if test -s conftest.err; then
9325     ac_cpp_err=$ac_c_preproc_warn_flag
9326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9327   else
9328     ac_cpp_err=
9329   fi
9330 else
9331   ac_cpp_err=yes
9332 fi
9333 if test -z "$ac_cpp_err"; then
9334   ac_header_preproc=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339   ac_header_preproc=no
9340 fi
9341 rm -f conftest.err conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9343 echo "${ECHO_T}$ac_header_preproc" >&6
9344
9345 # So?  What about this header?
9346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9347   yes:no: )
9348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9352     ac_header_preproc=yes
9353     ;;
9354   no:yes:* )
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9367     (
9368       cat <<\_ASBOX
9369 ## ----------------------------------- ##
9370 ## Report this to llvmbugs@cs.uiuc.edu ##
9371 ## ----------------------------------- ##
9372 _ASBOX
9373     ) |
9374       sed "s/^/$as_me: WARNING:     /" >&2
9375     ;;
9376 esac
9377 echo "$as_me:$LINENO: checking for $ac_header" >&5
9378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   eval "$as_ac_Header=\$ac_header_preproc"
9383 fi
9384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9386
9387 fi
9388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9389   cat >>confdefs.h <<_ACEOF
9390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9391 _ACEOF
9392
9393 fi
9394
9395 done
9396
9397
9398
9399 for ac_header in string.h strings.h
9400 do
9401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9403   echo "$as_me:$LINENO: checking for $ac_header" >&5
9404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 fi
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9410 else
9411   # Is the header compilable?
9412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420 $ac_includes_default
9421 #include <$ac_header>
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9425   (eval $ac_compile) 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -z "$ac_c_werror_flag"
9433                          || test ! -s conftest.err'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_header_compiler=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 ac_header_compiler=no
9451 fi
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9454 echo "${ECHO_T}$ac_header_compiler" >&6
9455
9456 # Is the header present?
9457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h.  */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h.  */
9465 #include <$ac_header>
9466 _ACEOF
9467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9469   ac_status=$?
9470   grep -v '^ *+' conftest.er1 >conftest.err
9471   rm -f conftest.er1
9472   cat conftest.err >&5
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } >/dev/null; then
9475   if test -s conftest.err; then
9476     ac_cpp_err=$ac_c_preproc_warn_flag
9477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9478   else
9479     ac_cpp_err=
9480   fi
9481 else
9482   ac_cpp_err=yes
9483 fi
9484 if test -z "$ac_cpp_err"; then
9485   ac_header_preproc=yes
9486 else
9487   echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490   ac_header_preproc=no
9491 fi
9492 rm -f conftest.err conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9494 echo "${ECHO_T}$ac_header_preproc" >&6
9495
9496 # So?  What about this header?
9497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9498   yes:no: )
9499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9503     ac_header_preproc=yes
9504     ;;
9505   no:yes:* )
9506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9518     (
9519       cat <<\_ASBOX
9520 ## ----------------------------------- ##
9521 ## Report this to llvmbugs@cs.uiuc.edu ##
9522 ## ----------------------------------- ##
9523 _ASBOX
9524     ) |
9525       sed "s/^/$as_me: WARNING:     /" >&2
9526     ;;
9527 esac
9528 echo "$as_me:$LINENO: checking for $ac_header" >&5
9529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   eval "$as_ac_Header=\$ac_header_preproc"
9534 fi
9535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9537
9538 fi
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540   cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9542 _ACEOF
9543  break
9544 fi
9545
9546 done
9547
9548
9549
9550
9551 for ac_func in strchr index
9552 do
9553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9554 echo "$as_me:$LINENO: checking for $ac_func" >&5
9555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9556 if eval "test \"\${$as_ac_var+set}\" = set"; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9567 #define $ac_func innocuous_$ac_func
9568
9569 /* System header to define __stub macros and hopefully few prototypes,
9570     which can conflict with char $ac_func (); below.
9571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572     <limits.h> exists even on freestanding compilers.  */
9573
9574 #ifdef __STDC__
9575 # include <limits.h>
9576 #else
9577 # include <assert.h>
9578 #endif
9579
9580 #undef $ac_func
9581
9582 /* Override any gcc2 internal prototype to avoid an error.  */
9583 #ifdef __cplusplus
9584 extern "C"
9585 {
9586 #endif
9587 /* We use char because int might match the return type of a gcc2
9588    builtin and then its argument prototype would still apply.  */
9589 char $ac_func ();
9590 /* The GNU C library defines this for functions which it implements
9591     to always fail with ENOSYS.  Some functions are actually named
9592     something starting with __ and the normal name is an alias.  */
9593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9594 choke me
9595 #else
9596 char (*f) () = $ac_func;
9597 #endif
9598 #ifdef __cplusplus
9599 }
9600 #endif
9601
9602 int
9603 main ()
9604 {
9605 return f != $ac_func;
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612   (eval $ac_link) 2>conftest.er1
9613   ac_status=$?
9614   grep -v '^ *+' conftest.er1 >conftest.err
9615   rm -f conftest.er1
9616   cat conftest.err >&5
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } &&
9619          { ac_try='test -z "$ac_c_werror_flag"
9620                          || test ! -s conftest.err'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; } &&
9626          { ac_try='test -s conftest$ac_exeext'
9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628   (eval $ac_try) 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   eval "$as_ac_var=yes"
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 eval "$as_ac_var=no"
9638 fi
9639 rm -f conftest.err conftest.$ac_objext \
9640       conftest$ac_exeext conftest.$ac_ext
9641 fi
9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9644 if test `eval echo '${'$as_ac_var'}'` = yes; then
9645   cat >>confdefs.h <<_ACEOF
9646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9647 _ACEOF
9648  break
9649 fi
9650 done
9651
9652
9653
9654 for ac_func in strrchr rindex
9655 do
9656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9657 echo "$as_me:$LINENO: checking for $ac_func" >&5
9658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9659 if eval "test \"\${$as_ac_var+set}\" = set"; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9670 #define $ac_func innocuous_$ac_func
9671
9672 /* System header to define __stub macros and hopefully few prototypes,
9673     which can conflict with char $ac_func (); below.
9674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9675     <limits.h> exists even on freestanding compilers.  */
9676
9677 #ifdef __STDC__
9678 # include <limits.h>
9679 #else
9680 # include <assert.h>
9681 #endif
9682
9683 #undef $ac_func
9684
9685 /* Override any gcc2 internal prototype to avoid an error.  */
9686 #ifdef __cplusplus
9687 extern "C"
9688 {
9689 #endif
9690 /* We use char because int might match the return type of a gcc2
9691    builtin and then its argument prototype would still apply.  */
9692 char $ac_func ();
9693 /* The GNU C library defines this for functions which it implements
9694     to always fail with ENOSYS.  Some functions are actually named
9695     something starting with __ and the normal name is an alias.  */
9696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9697 choke me
9698 #else
9699 char (*f) () = $ac_func;
9700 #endif
9701 #ifdef __cplusplus
9702 }
9703 #endif
9704
9705 int
9706 main ()
9707 {
9708 return f != $ac_func;
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   eval "$as_ac_var=yes"
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 eval "$as_ac_var=no"
9741 fi
9742 rm -f conftest.err conftest.$ac_objext \
9743       conftest$ac_exeext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748   cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750 _ACEOF
9751  break
9752 fi
9753 done
9754
9755
9756
9757 for ac_func in memcpy bcopy
9758 do
9759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9760 echo "$as_me:$LINENO: checking for $ac_func" >&5
9761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9762 if eval "test \"\${$as_ac_var+set}\" = set"; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9773 #define $ac_func innocuous_$ac_func
9774
9775 /* System header to define __stub macros and hopefully few prototypes,
9776     which can conflict with char $ac_func (); below.
9777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778     <limits.h> exists even on freestanding compilers.  */
9779
9780 #ifdef __STDC__
9781 # include <limits.h>
9782 #else
9783 # include <assert.h>
9784 #endif
9785
9786 #undef $ac_func
9787
9788 /* Override any gcc2 internal prototype to avoid an error.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 {
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794    builtin and then its argument prototype would still apply.  */
9795 char $ac_func ();
9796 /* The GNU C library defines this for functions which it implements
9797     to always fail with ENOSYS.  Some functions are actually named
9798     something starting with __ and the normal name is an alias.  */
9799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9800 choke me
9801 #else
9802 char (*f) () = $ac_func;
9803 #endif
9804 #ifdef __cplusplus
9805 }
9806 #endif
9807
9808 int
9809 main ()
9810 {
9811 return f != $ac_func;
9812   ;
9813   return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818   (eval $ac_link) 2>conftest.er1
9819   ac_status=$?
9820   grep -v '^ *+' conftest.er1 >conftest.err
9821   rm -f conftest.er1
9822   cat conftest.err >&5
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); } &&
9825          { ac_try='test -z "$ac_c_werror_flag"
9826                          || test ! -s conftest.err'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; } &&
9832          { ac_try='test -s conftest$ac_exeext'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; }; then
9838   eval "$as_ac_var=yes"
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843 eval "$as_ac_var=no"
9844 fi
9845 rm -f conftest.err conftest.$ac_objext \
9846       conftest$ac_exeext conftest.$ac_ext
9847 fi
9848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9850 if test `eval echo '${'$as_ac_var'}'` = yes; then
9851   cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 _ACEOF
9854  break
9855 fi
9856 done
9857
9858
9859
9860 for ac_func in memmove strcmp
9861 do
9862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 echo "$as_me:$LINENO: checking for $ac_func" >&5
9864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9865 if eval "test \"\${$as_ac_var+set}\" = set"; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9876 #define $ac_func innocuous_$ac_func
9877
9878 /* System header to define __stub macros and hopefully few prototypes,
9879     which can conflict with char $ac_func (); below.
9880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881     <limits.h> exists even on freestanding compilers.  */
9882
9883 #ifdef __STDC__
9884 # include <limits.h>
9885 #else
9886 # include <assert.h>
9887 #endif
9888
9889 #undef $ac_func
9890
9891 /* Override any gcc2 internal prototype to avoid an error.  */
9892 #ifdef __cplusplus
9893 extern "C"
9894 {
9895 #endif
9896 /* We use char because int might match the return type of a gcc2
9897    builtin and then its argument prototype would still apply.  */
9898 char $ac_func ();
9899 /* The GNU C library defines this for functions which it implements
9900     to always fail with ENOSYS.  Some functions are actually named
9901     something starting with __ and the normal name is an alias.  */
9902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9903 choke me
9904 #else
9905 char (*f) () = $ac_func;
9906 #endif
9907 #ifdef __cplusplus
9908 }
9909 #endif
9910
9911 int
9912 main ()
9913 {
9914 return f != $ac_func;
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -z "$ac_c_werror_flag"
9929                          || test ! -s conftest.err'
9930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; } &&
9935          { ac_try='test -s conftest$ac_exeext'
9936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; }; then
9941   eval "$as_ac_var=yes"
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 eval "$as_ac_var=no"
9947 fi
9948 rm -f conftest.err conftest.$ac_objext \
9949       conftest$ac_exeext conftest.$ac_ext
9950 fi
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9953 if test `eval echo '${'$as_ac_var'}'` = yes; then
9954   cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959 done
9960
9961
9962
9963
9964 for ac_func in closedir opendir readdir
9965 do
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9980 #define $ac_func innocuous_$ac_func
9981
9982 /* System header to define __stub macros and hopefully few prototypes,
9983     which can conflict with char $ac_func (); below.
9984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985     <limits.h> exists even on freestanding compilers.  */
9986
9987 #ifdef __STDC__
9988 # include <limits.h>
9989 #else
9990 # include <assert.h>
9991 #endif
9992
9993 #undef $ac_func
9994
9995 /* Override any gcc2 internal prototype to avoid an error.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 {
9999 #endif
10000 /* We use char because int might match the return type of a gcc2
10001    builtin and then its argument prototype would still apply.  */
10002 char $ac_func ();
10003 /* The GNU C library defines this for functions which it implements
10004     to always fail with ENOSYS.  Some functions are actually named
10005     something starting with __ and the normal name is an alias.  */
10006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10007 choke me
10008 #else
10009 char (*f) () = $ac_func;
10010 #endif
10011 #ifdef __cplusplus
10012 }
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 return f != $ac_func;
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   eval "$as_ac_var=yes"
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 eval "$as_ac_var=no"
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10057 if test `eval echo '${'$as_ac_var'}'` = yes; then
10058   cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10060 _ACEOF
10061
10062 fi
10063 done
10064
10065
10066 # Check whether --enable-shared or --disable-shared was given.
10067 if test "${enable_shared+set}" = set; then
10068   enableval="$enable_shared"
10069   p=${PACKAGE-default}
10070     case $enableval in
10071     yes) enable_shared=yes ;;
10072     no) enable_shared=no ;;
10073     *)
10074       enable_shared=no
10075       # Look at the argument we got.  We use all the common list separators.
10076       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10077       for pkg in $enableval; do
10078         IFS="$lt_save_ifs"
10079         if test "X$pkg" = "X$p"; then
10080           enable_shared=yes
10081         fi
10082       done
10083       IFS="$lt_save_ifs"
10084       ;;
10085     esac
10086 else
10087   enable_shared=yes
10088 fi;
10089
10090 # Check whether --enable-static or --disable-static was given.
10091 if test "${enable_static+set}" = set; then
10092   enableval="$enable_static"
10093   p=${PACKAGE-default}
10094     case $enableval in
10095     yes) enable_static=yes ;;
10096     no) enable_static=no ;;
10097     *)
10098      enable_static=no
10099       # Look at the argument we got.  We use all the common list separators.
10100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10101       for pkg in $enableval; do
10102         IFS="$lt_save_ifs"
10103         if test "X$pkg" = "X$p"; then
10104           enable_static=yes
10105         fi
10106       done
10107       IFS="$lt_save_ifs"
10108       ;;
10109     esac
10110 else
10111   enable_static=yes
10112 fi;
10113
10114 # Check whether --enable-fast-install or --disable-fast-install was given.
10115 if test "${enable_fast_install+set}" = set; then
10116   enableval="$enable_fast_install"
10117   p=${PACKAGE-default}
10118     case $enableval in
10119     yes) enable_fast_install=yes ;;
10120     no) enable_fast_install=no ;;
10121     *)
10122       enable_fast_install=no
10123       # Look at the argument we got.  We use all the common list separators.
10124       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10125       for pkg in $enableval; do
10126         IFS="$lt_save_ifs"
10127         if test "X$pkg" = "X$p"; then
10128           enable_fast_install=yes
10129         fi
10130       done
10131       IFS="$lt_save_ifs"
10132       ;;
10133     esac
10134 else
10135   enable_fast_install=yes
10136 fi;
10137
10138 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10139 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10140 if test "${lt_cv_path_SED+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   # Loop through the user's path and test for sed and gsed.
10144 # Then use that list of sed's as ones to test for truncation.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148   IFS=$as_save_IFS
10149   test -z "$as_dir" && as_dir=.
10150   for lt_ac_prog in sed gsed; do
10151     for ac_exec_ext in '' $ac_executable_extensions; do
10152       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10153         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10154       fi
10155     done
10156   done
10157 done
10158 lt_ac_max=0
10159 lt_ac_count=0
10160 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10161 # along with /bin/sed that truncates output.
10162 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10163   test ! -f $lt_ac_sed && break
10164   cat /dev/null > conftest.in
10165   lt_ac_count=0
10166   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10167   # Check for GNU sed and select it if it is found.
10168   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10169     lt_cv_path_SED=$lt_ac_sed
10170     break
10171   fi
10172   while true; do
10173     cat conftest.in conftest.in >conftest.tmp
10174     mv conftest.tmp conftest.in
10175     cp conftest.in conftest.nl
10176     echo >>conftest.nl
10177     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10178     cmp -s conftest.out conftest.nl || break
10179     # 10000 chars as input seems more than enough
10180     test $lt_ac_count -gt 10 && break
10181     lt_ac_count=`expr $lt_ac_count + 1`
10182     if test $lt_ac_count -gt $lt_ac_max; then
10183       lt_ac_max=$lt_ac_count
10184       lt_cv_path_SED=$lt_ac_sed
10185     fi
10186   done
10187 done
10188
10189 fi
10190
10191 SED=$lt_cv_path_SED
10192 echo "$as_me:$LINENO: result: $SED" >&5
10193 echo "${ECHO_T}$SED" >&6
10194
10195
10196 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10197 if test "${with_gnu_ld+set}" = set; then
10198   withval="$with_gnu_ld"
10199   test "$withval" = no || with_gnu_ld=yes
10200 else
10201   with_gnu_ld=no
10202 fi;
10203 ac_prog=ld
10204 if test "$GCC" = yes; then
10205   # Check if gcc -print-prog-name=ld gives a path.
10206   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10207 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10208   case $host in
10209   *-*-mingw*)
10210     # gcc leaves a trailing carriage return which upsets mingw
10211     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10212   *)
10213     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10214   esac
10215   case $ac_prog in
10216     # Accept absolute paths.
10217     [\\/]* | ?:[\\/]*)
10218       re_direlt='/[^/][^/]*/\.\./'
10219       # Canonicalize the pathname of ld
10220       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10221       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10222         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10223       done
10224       test -z "$LD" && LD="$ac_prog"
10225       ;;
10226   "")
10227     # If it fails, then pretend we aren't using GCC.
10228     ac_prog=ld
10229     ;;
10230   *)
10231     # If it is relative, then search for the first ld in PATH.
10232     with_gnu_ld=unknown
10233     ;;
10234   esac
10235 elif test "$with_gnu_ld" = yes; then
10236   echo "$as_me:$LINENO: checking for GNU ld" >&5
10237 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10238 else
10239   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10240 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10241 fi
10242 if test "${lt_cv_path_LD+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   if test -z "$LD"; then
10246   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10247   for ac_dir in $PATH; do
10248     IFS="$lt_save_ifs"
10249     test -z "$ac_dir" && ac_dir=.
10250     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10251       lt_cv_path_LD="$ac_dir/$ac_prog"
10252       # Check to see if the program is GNU ld.  I'd rather use --version,
10253       # but apparently some GNU ld's only accept -v.
10254       # Break only if it was the GNU/non-GNU ld that we prefer.
10255       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10256       *GNU* | *'with BFD'*)
10257         test "$with_gnu_ld" != no && break
10258         ;;
10259       *)
10260         test "$with_gnu_ld" != yes && break
10261         ;;
10262       esac
10263     fi
10264   done
10265   IFS="$lt_save_ifs"
10266 else
10267   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10268 fi
10269 fi
10270
10271 LD="$lt_cv_path_LD"
10272 if test -n "$LD"; then
10273   echo "$as_me:$LINENO: result: $LD" >&5
10274 echo "${ECHO_T}$LD" >&6
10275 else
10276   echo "$as_me:$LINENO: result: no" >&5
10277 echo "${ECHO_T}no" >&6
10278 fi
10279 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10280 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10281    { (exit 1); exit 1; }; }
10282 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10283 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10284 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10285   echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10288 case `$LD -v 2>&1 </dev/null` in
10289 *GNU* | *'with BFD'*)
10290   lt_cv_prog_gnu_ld=yes
10291   ;;
10292 *)
10293   lt_cv_prog_gnu_ld=no
10294   ;;
10295 esac
10296 fi
10297 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10298 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10299 with_gnu_ld=$lt_cv_prog_gnu_ld
10300
10301
10302 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10303 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10304 if test "${lt_cv_ld_reload_flag+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   lt_cv_ld_reload_flag='-r'
10308 fi
10309 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10310 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10311 reload_flag=$lt_cv_ld_reload_flag
10312 case $reload_flag in
10313 "" | " "*) ;;
10314 *) reload_flag=" $reload_flag" ;;
10315 esac
10316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10317 case $host_os in
10318   darwin*)
10319     if test "$GCC" = yes; then
10320       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10321     else
10322       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10323     fi
10324     ;;
10325 esac
10326
10327 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10328 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10329 if test "${lt_cv_deplibs_check_method+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   lt_cv_file_magic_cmd='$MAGIC_CMD'
10333 lt_cv_file_magic_test_file=
10334 lt_cv_deplibs_check_method='unknown'
10335 # Need to set the preceding variable on all platforms that support
10336 # interlibrary dependencies.
10337 # 'none' -- dependencies not supported.
10338 # `unknown' -- same as none, but documents that we really don't know.
10339 # 'pass_all' -- all dependencies passed with no checks.
10340 # 'test_compile' -- check by making test program.
10341 # 'file_magic [[regex]]' -- check by looking for files in library path
10342 # which responds to the $file_magic_cmd with a given extended regex.
10343 # If you have `file' or equivalent on your system and you're not sure
10344 # whether `pass_all' will *always* work, you probably want this one.
10345
10346 case $host_os in
10347 aix4* | aix5*)
10348   lt_cv_deplibs_check_method=pass_all
10349   ;;
10350
10351 beos*)
10352   lt_cv_deplibs_check_method=pass_all
10353   ;;
10354
10355 bsdi[45]*)
10356   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10357   lt_cv_file_magic_cmd='/usr/bin/file -L'
10358   lt_cv_file_magic_test_file=/shlib/libc.so
10359   ;;
10360
10361 cygwin*)
10362   # func_win32_libid is a shell function defined in ltmain.sh
10363   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10364   lt_cv_file_magic_cmd='func_win32_libid'
10365   ;;
10366
10367 mingw* | pw32*)
10368   # Base MSYS/MinGW do not provide the 'file' command needed by
10369   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10370   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10371   lt_cv_file_magic_cmd='$OBJDUMP -f'
10372   ;;
10373
10374 darwin* | rhapsody*)
10375   lt_cv_deplibs_check_method=pass_all
10376   ;;
10377
10378 freebsd* | kfreebsd*-gnu)
10379   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10380     case $host_cpu in
10381     i*86 )
10382       # Not sure whether the presence of OpenBSD here was a mistake.
10383       # Let's accept both of them until this is cleared up.
10384       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10385       lt_cv_file_magic_cmd=/usr/bin/file
10386       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10387       ;;
10388     esac
10389   else
10390     lt_cv_deplibs_check_method=pass_all
10391   fi
10392   ;;
10393
10394 gnu*)
10395   lt_cv_deplibs_check_method=pass_all
10396   ;;
10397
10398 hpux10.20* | hpux11*)
10399   lt_cv_file_magic_cmd=/usr/bin/file
10400   case "$host_cpu" in
10401   ia64*)
10402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10403     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10404     ;;
10405   hppa*64*)
10406     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]'
10407     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10408     ;;
10409   *)
10410     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10411     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10412     ;;
10413   esac
10414   ;;
10415
10416 irix5* | irix6* | nonstopux*)
10417   case $LD in
10418   *-32|*"-32 ") libmagic=32-bit;;
10419   *-n32|*"-n32 ") libmagic=N32;;
10420   *-64|*"-64 ") libmagic=64-bit;;
10421   *) libmagic=never-match;;
10422   esac
10423   lt_cv_deplibs_check_method=pass_all
10424   ;;
10425
10426 # This must be Linux ELF.
10427 linux*)
10428   lt_cv_deplibs_check_method=pass_all
10429   ;;
10430
10431 netbsd*)
10432   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10433     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10434   else
10435     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10436   fi
10437   ;;
10438
10439 newos6*)
10440   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10441   lt_cv_file_magic_cmd=/usr/bin/file
10442   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10443   ;;
10444
10445 nto-qnx*)
10446   lt_cv_deplibs_check_method=unknown
10447   ;;
10448
10449 openbsd*)
10450   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10451     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10452   else
10453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10454   fi
10455   ;;
10456
10457 osf3* | osf4* | osf5*)
10458   lt_cv_deplibs_check_method=pass_all
10459   ;;
10460
10461 sco3.2v5*)
10462   lt_cv_deplibs_check_method=pass_all
10463   ;;
10464
10465 solaris*)
10466   lt_cv_deplibs_check_method=pass_all
10467   ;;
10468
10469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10470   case $host_vendor in
10471   motorola)
10472     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]'
10473     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10474     ;;
10475   ncr)
10476     lt_cv_deplibs_check_method=pass_all
10477     ;;
10478   sequent)
10479     lt_cv_file_magic_cmd='/bin/file'
10480     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10481     ;;
10482   sni)
10483     lt_cv_file_magic_cmd='/bin/file'
10484     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10485     lt_cv_file_magic_test_file=/lib/libc.so
10486     ;;
10487   siemens)
10488     lt_cv_deplibs_check_method=pass_all
10489     ;;
10490   esac
10491   ;;
10492
10493 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10494   lt_cv_deplibs_check_method=pass_all
10495   ;;
10496 esac
10497
10498 fi
10499 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10500 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10501 file_magic_cmd=$lt_cv_file_magic_cmd
10502 deplibs_check_method=$lt_cv_deplibs_check_method
10503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10504
10505
10506
10507 # If no C compiler was specified, use CC.
10508 LTCC=${LTCC-"$CC"}
10509
10510 # Allow CC to be a program name with arguments.
10511 compiler=$CC
10512
10513 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10514 if test "${enable_libtool_lock+set}" = set; then
10515   enableval="$enable_libtool_lock"
10516
10517 fi;
10518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10519
10520 # Some flags need to be propagated to the compiler or linker for good
10521 # libtool support.
10522 case $host in
10523 ia64-*-hpux*)
10524   # Find out which ABI we are using.
10525   echo 'int i;' > conftest.$ac_ext
10526   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527   (eval $ac_compile) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; then
10531     case `/usr/bin/file conftest.$ac_objext` in
10532     *ELF-32*)
10533       HPUX_IA64_MODE="32"
10534       ;;
10535     *ELF-64*)
10536       HPUX_IA64_MODE="64"
10537       ;;
10538     esac
10539   fi
10540   rm -rf conftest*
10541   ;;
10542 *-*-irix6*)
10543   # Find out which ABI we are using.
10544   echo '#line 10544 "configure"' > conftest.$ac_ext
10545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; then
10550    if test "$lt_cv_prog_gnu_ld" = yes; then
10551     case `/usr/bin/file conftest.$ac_objext` in
10552     *32-bit*)
10553       LD="${LD-ld} -melf32bsmip"
10554       ;;
10555     *N32*)
10556       LD="${LD-ld} -melf32bmipn32"
10557       ;;
10558     *64-bit*)
10559       LD="${LD-ld} -melf64bmip"
10560       ;;
10561     esac
10562    else
10563     case `/usr/bin/file conftest.$ac_objext` in
10564     *32-bit*)
10565       LD="${LD-ld} -32"
10566       ;;
10567     *N32*)
10568       LD="${LD-ld} -n32"
10569       ;;
10570     *64-bit*)
10571       LD="${LD-ld} -64"
10572       ;;
10573     esac
10574    fi
10575   fi
10576   rm -rf conftest*
10577   ;;
10578
10579 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10580   # Find out which ABI we are using.
10581   echo 'int i;' > conftest.$ac_ext
10582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583   (eval $ac_compile) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; then
10587     case "`/usr/bin/file conftest.o`" in
10588     *32-bit*)
10589       case $host in
10590         x86_64-*linux*)
10591           LD="${LD-ld} -m elf_i386"
10592           ;;
10593         ppc64-*linux*|powerpc64-*linux*)
10594           LD="${LD-ld} -m elf32ppclinux"
10595           ;;
10596         s390x-*linux*)
10597           LD="${LD-ld} -m elf_s390"
10598           ;;
10599         sparc64-*linux*)
10600           LD="${LD-ld} -m elf32_sparc"
10601           ;;
10602       esac
10603       ;;
10604     *64-bit*)
10605       case $host in
10606         x86_64-*linux*)
10607           LD="${LD-ld} -m elf_x86_64"
10608           ;;
10609         ppc*-*linux*|powerpc*-*linux*)
10610           LD="${LD-ld} -m elf64ppc"
10611           ;;
10612         s390*-*linux*)
10613           LD="${LD-ld} -m elf64_s390"
10614           ;;
10615         sparc*-*linux*)
10616           LD="${LD-ld} -m elf64_sparc"
10617           ;;
10618       esac
10619       ;;
10620     esac
10621   fi
10622   rm -rf conftest*
10623   ;;
10624
10625 *-*-sco3.2v5*)
10626   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10627   SAVE_CFLAGS="$CFLAGS"
10628   CFLAGS="$CFLAGS -belf"
10629   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10630 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10631 if test "${lt_cv_cc_needs_belf+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   ac_ext=c
10635 ac_cpp='$CPP $CPPFLAGS'
10636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640      cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650   (eval $ac_link) 2>conftest.er1
10651   ac_status=$?
10652   grep -v '^ *+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } &&
10657          { ac_try='test -z "$ac_c_werror_flag"
10658                          || test ! -s conftest.err'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   lt_cv_cc_needs_belf=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 lt_cv_cc_needs_belf=no
10676 fi
10677 rm -f conftest.err conftest.$ac_objext \
10678       conftest$ac_exeext conftest.$ac_ext
10679      ac_ext=c
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685 fi
10686 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10688   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10689     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10690     CFLAGS="$SAVE_CFLAGS"
10691   fi
10692   ;;
10693
10694 esac
10695
10696 need_locks="$enable_libtool_lock"
10697
10698
10699
10700
10701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10702     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10703     (test "X$CXX" != "Xg++"))) ; then
10704   ac_ext=cc
10705 ac_cpp='$CXXCPP $CPPFLAGS'
10706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10709 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10711 if test -z "$CXXCPP"; then
10712   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715       # Double quotes because CXXCPP needs to be expanded
10716     for CXXCPP in "$CXX -E" "/lib/cpp"
10717     do
10718       ac_preproc_ok=false
10719 for ac_cxx_preproc_warn_flag in '' yes
10720 do
10721   # Use a header file that comes with gcc, so configuring glibc
10722   # with a fresh cross-compiler works.
10723   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724   # <limits.h> exists even on freestanding compilers.
10725   # On the NeXT, cc -E runs the code through the compiler's parser,
10726   # not just through cpp. "Syntax error" is here to catch this case.
10727   cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 #ifdef __STDC__
10734 # include <limits.h>
10735 #else
10736 # include <assert.h>
10737 #endif
10738                      Syntax error
10739 _ACEOF
10740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10742   ac_status=$?
10743   grep -v '^ *+' conftest.er1 >conftest.err
10744   rm -f conftest.er1
10745   cat conftest.err >&5
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } >/dev/null; then
10748   if test -s conftest.err; then
10749     ac_cpp_err=$ac_cxx_preproc_warn_flag
10750     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10751   else
10752     ac_cpp_err=
10753   fi
10754 else
10755   ac_cpp_err=yes
10756 fi
10757 if test -z "$ac_cpp_err"; then
10758   :
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763   # Broken: fails on valid input.
10764 continue
10765 fi
10766 rm -f conftest.err conftest.$ac_ext
10767
10768   # OK, works on sane cases.  Now check whether non-existent headers
10769   # can be detected and how.
10770   cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <ac_nonexistent.h>
10777 _ACEOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_cxx_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   # Broken: success on invalid input.
10797 continue
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802   # Passes both tests.
10803 ac_preproc_ok=:
10804 break
10805 fi
10806 rm -f conftest.err conftest.$ac_ext
10807
10808 done
10809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10810 rm -f conftest.err conftest.$ac_ext
10811 if $ac_preproc_ok; then
10812   break
10813 fi
10814
10815     done
10816     ac_cv_prog_CXXCPP=$CXXCPP
10817
10818 fi
10819   CXXCPP=$ac_cv_prog_CXXCPP
10820 else
10821   ac_cv_prog_CXXCPP=$CXXCPP
10822 fi
10823 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10824 echo "${ECHO_T}$CXXCPP" >&6
10825 ac_preproc_ok=false
10826 for ac_cxx_preproc_warn_flag in '' yes
10827 do
10828   # Use a header file that comes with gcc, so configuring glibc
10829   # with a fresh cross-compiler works.
10830   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831   # <limits.h> exists even on freestanding compilers.
10832   # On the NeXT, cc -E runs the code through the compiler's parser,
10833   # not just through cpp. "Syntax error" is here to catch this case.
10834   cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h.  */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h.  */
10840 #ifdef __STDC__
10841 # include <limits.h>
10842 #else
10843 # include <assert.h>
10844 #endif
10845                      Syntax error
10846 _ACEOF
10847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10849   ac_status=$?
10850   grep -v '^ *+' conftest.er1 >conftest.err
10851   rm -f conftest.er1
10852   cat conftest.err >&5
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } >/dev/null; then
10855   if test -s conftest.err; then
10856     ac_cpp_err=$ac_cxx_preproc_warn_flag
10857     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10858   else
10859     ac_cpp_err=
10860   fi
10861 else
10862   ac_cpp_err=yes
10863 fi
10864 if test -z "$ac_cpp_err"; then
10865   :
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870   # Broken: fails on valid input.
10871 continue
10872 fi
10873 rm -f conftest.err conftest.$ac_ext
10874
10875   # OK, works on sane cases.  Now check whether non-existent headers
10876   # can be detected and how.
10877   cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <ac_nonexistent.h>
10884 _ACEOF
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } >/dev/null; then
10893   if test -s conftest.err; then
10894     ac_cpp_err=$ac_cxx_preproc_warn_flag
10895     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10896   else
10897     ac_cpp_err=
10898   fi
10899 else
10900   ac_cpp_err=yes
10901 fi
10902 if test -z "$ac_cpp_err"; then
10903   # Broken: success on invalid input.
10904 continue
10905 else
10906   echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909   # Passes both tests.
10910 ac_preproc_ok=:
10911 break
10912 fi
10913 rm -f conftest.err conftest.$ac_ext
10914
10915 done
10916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10917 rm -f conftest.err conftest.$ac_ext
10918 if $ac_preproc_ok; then
10919   :
10920 else
10921   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10922 See \`config.log' for more details." >&5
10923 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10924 See \`config.log' for more details." >&2;}
10925    { (exit 1); exit 1; }; }
10926 fi
10927
10928 ac_ext=cc
10929 ac_cpp='$CXXCPP $CPPFLAGS'
10930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10933
10934 fi
10935
10936
10937 ac_ext=f
10938 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10939 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10941 if test -n "$ac_tool_prefix"; then
10942   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10943   do
10944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10946 echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948 if test "${ac_cv_prog_F77+set}" = set; then
10949   echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951   if test -n "$F77"; then
10952   ac_cv_prog_F77="$F77" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957   IFS=$as_save_IFS
10958   test -z "$as_dir" && as_dir=.
10959   for ac_exec_ext in '' $ac_executable_extensions; do
10960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963     break 2
10964   fi
10965 done
10966 done
10967
10968 fi
10969 fi
10970 F77=$ac_cv_prog_F77
10971 if test -n "$F77"; then
10972   echo "$as_me:$LINENO: result: $F77" >&5
10973 echo "${ECHO_T}$F77" >&6
10974 else
10975   echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6
10977 fi
10978
10979     test -n "$F77" && break
10980   done
10981 fi
10982 if test -z "$F77"; then
10983   ac_ct_F77=$F77
10984   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10985 do
10986   # Extract the first word of "$ac_prog", so it can be a program name with args.
10987 set dummy $ac_prog; ac_word=$2
10988 echo "$as_me:$LINENO: checking for $ac_word" >&5
10989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   if test -n "$ac_ct_F77"; then
10994   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10995 else
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999   IFS=$as_save_IFS
11000   test -z "$as_dir" && as_dir=.
11001   for ac_exec_ext in '' $ac_executable_extensions; do
11002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003     ac_cv_prog_ac_ct_F77="$ac_prog"
11004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11005     break 2
11006   fi
11007 done
11008 done
11009
11010 fi
11011 fi
11012 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11013 if test -n "$ac_ct_F77"; then
11014   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11015 echo "${ECHO_T}$ac_ct_F77" >&6
11016 else
11017   echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6
11019 fi
11020
11021   test -n "$ac_ct_F77" && break
11022 done
11023
11024   F77=$ac_ct_F77
11025 fi
11026
11027
11028 # Provide some information about the compiler.
11029 echo "$as_me:11029:" \
11030      "checking for Fortran 77 compiler version" >&5
11031 ac_compiler=`set X $ac_compile; echo $2`
11032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11033   (eval $ac_compiler --version </dev/null >&5) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }
11037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11038   (eval $ac_compiler -v </dev/null >&5) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }
11042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11043   (eval $ac_compiler -V </dev/null >&5) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }
11047 rm -f a.out
11048
11049 # If we don't use `.F' as extension, the preprocessor is not run on the
11050 # input file.  (Note that this only needs to work for GNU compilers.)
11051 ac_save_ext=$ac_ext
11052 ac_ext=F
11053 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11054 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11055 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   cat >conftest.$ac_ext <<_ACEOF
11059       program main
11060 #ifndef __GNUC__
11061        choke me
11062 #endif
11063
11064       end
11065 _ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068   (eval $ac_compile) 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -z "$ac_f77_werror_flag"
11076                          || test ! -s conftest.err'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; } &&
11082          { ac_try='test -s conftest.$ac_objext'
11083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084   (eval $ac_try) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; }; then
11088   ac_compiler_gnu=yes
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 ac_compiler_gnu=no
11094 fi
11095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11096 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11097
11098 fi
11099 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11100 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11101 ac_ext=$ac_save_ext
11102 ac_test_FFLAGS=${FFLAGS+set}
11103 ac_save_FFLAGS=$FFLAGS
11104 FFLAGS=
11105 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11106 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11107 if test "${ac_cv_prog_f77_g+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   FFLAGS=-g
11111 cat >conftest.$ac_ext <<_ACEOF
11112       program main
11113
11114       end
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11118   (eval $ac_compile) 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } &&
11125          { ac_try='test -z "$ac_f77_werror_flag"
11126                          || test ! -s conftest.err'
11127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128   (eval $ac_try) 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; } &&
11132          { ac_try='test -s conftest.$ac_objext'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   ac_cv_prog_f77_g=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 ac_cv_prog_f77_g=no
11144 fi
11145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11146
11147 fi
11148 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11149 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11150 if test "$ac_test_FFLAGS" = set; then
11151   FFLAGS=$ac_save_FFLAGS
11152 elif test $ac_cv_prog_f77_g = yes; then
11153   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11154     FFLAGS="-g -O2"
11155   else
11156     FFLAGS="-g"
11157   fi
11158 else
11159   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11160     FFLAGS="-O2"
11161   else
11162     FFLAGS=
11163   fi
11164 fi
11165
11166 G77=`test $ac_compiler_gnu = yes && echo yes`
11167 ac_ext=c
11168 ac_cpp='$CPP $CPPFLAGS'
11169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172
11173
11174
11175 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11176
11177 # find the maximum length of command line arguments
11178 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11179 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11180 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183     i=0
11184   teststring="ABCD"
11185
11186   case $build_os in
11187   msdosdjgpp*)
11188     # On DJGPP, this test can blow up pretty badly due to problems in libc
11189     # (any single argument exceeding 2000 bytes causes a buffer overrun
11190     # during glob expansion).  Even if it were fixed, the result of this
11191     # check would be larger than it should be.
11192     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11193     ;;
11194
11195   gnu*)
11196     # Under GNU Hurd, this test is not required because there is
11197     # no limit to the length of command line arguments.
11198     # Libtool will interpret -1 as no limit whatsoever
11199     lt_cv_sys_max_cmd_len=-1;
11200     ;;
11201
11202   cygwin* | mingw*)
11203     # On Win9x/ME, this test blows up -- it succeeds, but takes
11204     # about 5 minutes as the teststring grows exponentially.
11205     # Worse, since 9x/ME are not pre-emptively multitasking,
11206     # you end up with a "frozen" computer, even though with patience
11207     # the test eventually succeeds (with a max line length of 256k).
11208     # Instead, let's just punt: use the minimum linelength reported by
11209     # all of the supported platforms: 8192 (on NT/2K/XP).
11210     lt_cv_sys_max_cmd_len=8192;
11211     ;;
11212
11213   amigaos*)
11214     # On AmigaOS with pdksh, this test takes hours, literally.
11215     # So we just punt and use a minimum line length of 8192.
11216     lt_cv_sys_max_cmd_len=8192;
11217     ;;
11218
11219   netbsd* | freebsd* | openbsd* | darwin* )
11220     # This has been around since 386BSD, at least.  Likely further.
11221     if test -x /sbin/sysctl; then
11222       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11223     elif test -x /usr/sbin/sysctl; then
11224       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11225     else
11226       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11227     fi
11228     # And add a safety zone
11229     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11230     ;;
11231
11232  *)
11233     # If test is not a shell built-in, we'll probably end up computing a
11234     # maximum length that is only half of the actual maximum length, but
11235     # we can't tell.
11236     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11237     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11238                = "XX$teststring") >/dev/null 2>&1 &&
11239             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11240             lt_cv_sys_max_cmd_len=$new_result &&
11241             test $i != 17 # 1/2 MB should be enough
11242     do
11243       i=`expr $i + 1`
11244       teststring=$teststring$teststring
11245     done
11246     teststring=
11247     # Add a significant safety factor because C++ compilers can tack on massive
11248     # amounts of additional arguments before passing them to the linker.
11249     # It appears as though 1/2 is a usable value.
11250     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11251     ;;
11252   esac
11253
11254 fi
11255
11256 if test -n $lt_cv_sys_max_cmd_len ; then
11257   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11258 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11259 else
11260   echo "$as_me:$LINENO: result: none" >&5
11261 echo "${ECHO_T}none" >&6
11262 fi
11263
11264
11265
11266
11267 # Check for command to grab the raw symbol name followed by C symbol from nm.
11268 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273
11274 # These are sane defaults that work on at least a few old systems.
11275 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11276
11277 # Character class describing NM global symbol codes.
11278 symcode='[BCDEGRST]'
11279
11280 # Regexp to match symbols that can be accessed directly from C.
11281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11282
11283 # Transform the above into a raw symbol and a C symbol.
11284 symxfrm='\1 \2\3 \3'
11285
11286 # Transform an extracted symbol line into a proper C declaration
11287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11288
11289 # Transform an extracted symbol line into symbol name and symbol address
11290 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'"
11291
11292 # Define system-specific variables.
11293 case $host_os in
11294 aix*)
11295   symcode='[BCDT]'
11296   ;;
11297 cygwin* | mingw* | pw32*)
11298   symcode='[ABCDGISTW]'
11299   ;;
11300 hpux*) # Its linker distinguishes data from code symbols
11301   if test "$host_cpu" = ia64; then
11302     symcode='[ABCDEGRST]'
11303   fi
11304   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11305   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'"
11306   ;;
11307 linux*)
11308   if test "$host_cpu" = ia64; then
11309     symcode='[ABCDGIRSTW]'
11310     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11311     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'"
11312   fi
11313   ;;
11314 irix* | nonstopux*)
11315   symcode='[BCDEGRST]'
11316   ;;
11317 osf*)
11318   symcode='[BCDEGQRST]'
11319   ;;
11320 solaris* | sysv5*)
11321   symcode='[BDRT]'
11322   ;;
11323 sysv4)
11324   symcode='[DFNSTU]'
11325   ;;
11326 esac
11327
11328 # Handle CRLF in mingw tool chain
11329 opt_cr=
11330 case $build_os in
11331 mingw*)
11332   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11333   ;;
11334 esac
11335
11336 # If we're using GNU nm, then use its standard symbol codes.
11337 case `$NM -V 2>&1` in
11338 *GNU* | *'with BFD'*)
11339   symcode='[ABCDGIRSTW]' ;;
11340 esac
11341
11342 # Try without a prefix undercore, then with it.
11343 for ac_symprfx in "" "_"; do
11344
11345   # Write the raw and C identifiers.
11346   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11347
11348   # Check to see that the pipe works correctly.
11349   pipe_works=no
11350
11351   rm -f conftest*
11352   cat > conftest.$ac_ext <<EOF
11353 #ifdef __cplusplus
11354 extern "C" {
11355 #endif
11356 char nm_test_var;
11357 void nm_test_func(){}
11358 #ifdef __cplusplus
11359 }
11360 #endif
11361 int main(){nm_test_var='a';nm_test_func();return(0);}
11362 EOF
11363
11364   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365   (eval $ac_compile) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; then
11369     # Now try to grab the symbols.
11370     nlist=conftest.nm
11371     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11372   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } && test -s "$nlist"; then
11376       # Try sorting and uniquifying the output.
11377       if sort "$nlist" | uniq > "$nlist"T; then
11378         mv -f "$nlist"T "$nlist"
11379       else
11380         rm -f "$nlist"T
11381       fi
11382
11383       # Make sure that we snagged all the symbols we need.
11384       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11385         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11386           cat <<EOF > conftest.$ac_ext
11387 #ifdef __cplusplus
11388 extern "C" {
11389 #endif
11390
11391 EOF
11392           # Now generate the symbol file.
11393           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11394
11395           cat <<EOF >> conftest.$ac_ext
11396 #if defined (__STDC__) && __STDC__
11397 # define lt_ptr_t void *
11398 #else
11399 # define lt_ptr_t char *
11400 # define const
11401 #endif
11402
11403 /* The mapping between symbol names and symbols. */
11404 const struct {
11405   const char *name;
11406   lt_ptr_t address;
11407 }
11408 lt_preloaded_symbols[] =
11409 {
11410 EOF
11411           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11412           cat <<\EOF >> conftest.$ac_ext
11413   {0, (lt_ptr_t) 0}
11414 };
11415
11416 #ifdef __cplusplus
11417 }
11418 #endif
11419 EOF
11420           # Now try linking the two files.
11421           mv conftest.$ac_objext conftstm.$ac_objext
11422           lt_save_LIBS="$LIBS"
11423           lt_save_CFLAGS="$CFLAGS"
11424           LIBS="conftstm.$ac_objext"
11425           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11426           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427   (eval $ac_link) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11431             pipe_works=yes
11432           fi
11433           LIBS="$lt_save_LIBS"
11434           CFLAGS="$lt_save_CFLAGS"
11435         else
11436           echo "cannot find nm_test_func in $nlist" >&5
11437         fi
11438       else
11439         echo "cannot find nm_test_var in $nlist" >&5
11440       fi
11441     else
11442       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11443     fi
11444   else
11445     echo "$progname: failed program was:" >&5
11446     cat conftest.$ac_ext >&5
11447   fi
11448   rm -f conftest* conftst*
11449
11450   # Do not use the global_symbol_pipe unless it works.
11451   if test "$pipe_works" = yes; then
11452     break
11453   else
11454     lt_cv_sys_global_symbol_pipe=
11455   fi
11456 done
11457
11458 fi
11459
11460 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11461   lt_cv_sys_global_symbol_to_cdecl=
11462 fi
11463 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11464   echo "$as_me:$LINENO: result: failed" >&5
11465 echo "${ECHO_T}failed" >&6
11466 else
11467   echo "$as_me:$LINENO: result: ok" >&5
11468 echo "${ECHO_T}ok" >&6
11469 fi
11470
11471 echo "$as_me:$LINENO: checking for objdir" >&5
11472 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11473 if test "${lt_cv_objdir+set}" = set; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   rm -f .libs 2>/dev/null
11477 mkdir .libs 2>/dev/null
11478 if test -d .libs; then
11479   lt_cv_objdir=.libs
11480 else
11481   # MS-DOS does not allow filenames that begin with a dot.
11482   lt_cv_objdir=_libs
11483 fi
11484 rmdir .libs 2>/dev/null
11485 fi
11486 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11487 echo "${ECHO_T}$lt_cv_objdir" >&6
11488 objdir=$lt_cv_objdir
11489
11490
11491
11492
11493
11494 case $host_os in
11495 aix3*)
11496   # AIX sometimes has problems with the GCC collect2 program.  For some
11497   # reason, if we set the COLLECT_NAMES environment variable, the problems
11498   # vanish in a puff of smoke.
11499   if test "X${COLLECT_NAMES+set}" != Xset; then
11500     COLLECT_NAMES=
11501     export COLLECT_NAMES
11502   fi
11503   ;;
11504 esac
11505
11506 # Sed substitution that helps us do robust quoting.  It backslashifies
11507 # metacharacters that are still active within double-quoted strings.
11508 Xsed='sed -e s/^X//'
11509 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11510
11511 # Same as above, but do not quote variable references.
11512 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11513
11514 # Sed substitution to delay expansion of an escaped shell variable in a
11515 # double_quote_subst'ed string.
11516 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11517
11518 # Sed substitution to avoid accidental globbing in evaled expressions
11519 no_glob_subst='s/\*/\\\*/g'
11520
11521 # Constants:
11522 rm="rm -f"
11523
11524 # Global variables:
11525 default_ofile=mklib
11526 can_build_shared=yes
11527
11528 # All known linkers require a `.a' archive for static linking (except M$VC,
11529 # which needs '.lib').
11530 libext=a
11531 ltmain="$ac_aux_dir/ltmain.sh"
11532 ofile="$default_ofile"
11533 with_gnu_ld="$lt_cv_prog_gnu_ld"
11534
11535 if test -n "$ac_tool_prefix"; then
11536   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11537 set dummy ${ac_tool_prefix}ar; ac_word=$2
11538 echo "$as_me:$LINENO: checking for $ac_word" >&5
11539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11540 if test "${ac_cv_prog_AR+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   if test -n "$AR"; then
11544   ac_cv_prog_AR="$AR" # Let the user override the test.
11545 else
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11548 do
11549   IFS=$as_save_IFS
11550   test -z "$as_dir" && as_dir=.
11551   for ac_exec_ext in '' $ac_executable_extensions; do
11552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553     ac_cv_prog_AR="${ac_tool_prefix}ar"
11554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11555     break 2
11556   fi
11557 done
11558 done
11559
11560 fi
11561 fi
11562 AR=$ac_cv_prog_AR
11563 if test -n "$AR"; then
11564   echo "$as_me:$LINENO: result: $AR" >&5
11565 echo "${ECHO_T}$AR" >&6
11566 else
11567   echo "$as_me:$LINENO: result: no" >&5
11568 echo "${ECHO_T}no" >&6
11569 fi
11570
11571 fi
11572 if test -z "$ac_cv_prog_AR"; then
11573   ac_ct_AR=$AR
11574   # Extract the first word of "ar", so it can be a program name with args.
11575 set dummy ar; ac_word=$2
11576 echo "$as_me:$LINENO: checking for $ac_word" >&5
11577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11578 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   if test -n "$ac_ct_AR"; then
11582   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587   IFS=$as_save_IFS
11588   test -z "$as_dir" && as_dir=.
11589   for ac_exec_ext in '' $ac_executable_extensions; do
11590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591     ac_cv_prog_ac_ct_AR="ar"
11592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593     break 2
11594   fi
11595 done
11596 done
11597
11598   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11599 fi
11600 fi
11601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11602 if test -n "$ac_ct_AR"; then
11603   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11604 echo "${ECHO_T}$ac_ct_AR" >&6
11605 else
11606   echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6
11608 fi
11609
11610   AR=$ac_ct_AR
11611 else
11612   AR="$ac_cv_prog_AR"
11613 fi
11614
11615 if test -n "$ac_tool_prefix"; then
11616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11618 echo "$as_me:$LINENO: checking for $ac_word" >&5
11619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11620 if test "${ac_cv_prog_RANLIB+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   if test -n "$RANLIB"; then
11624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11625 else
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631   for ac_exec_ext in '' $ac_executable_extensions; do
11632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635     break 2
11636   fi
11637 done
11638 done
11639
11640 fi
11641 fi
11642 RANLIB=$ac_cv_prog_RANLIB
11643 if test -n "$RANLIB"; then
11644   echo "$as_me:$LINENO: result: $RANLIB" >&5
11645 echo "${ECHO_T}$RANLIB" >&6
11646 else
11647   echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6
11649 fi
11650
11651 fi
11652 if test -z "$ac_cv_prog_RANLIB"; then
11653   ac_ct_RANLIB=$RANLIB
11654   # Extract the first word of "ranlib", so it can be a program name with args.
11655 set dummy ranlib; ac_word=$2
11656 echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   if test -n "$ac_ct_RANLIB"; then
11662   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11663 else
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667   IFS=$as_save_IFS
11668   test -z "$as_dir" && as_dir=.
11669   for ac_exec_ext in '' $ac_executable_extensions; do
11670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671     ac_cv_prog_ac_ct_RANLIB="ranlib"
11672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673     break 2
11674   fi
11675 done
11676 done
11677
11678   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11679 fi
11680 fi
11681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11682 if test -n "$ac_ct_RANLIB"; then
11683   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11685 else
11686   echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11688 fi
11689
11690   RANLIB=$ac_ct_RANLIB
11691 else
11692   RANLIB="$ac_cv_prog_RANLIB"
11693 fi
11694
11695 if test -n "$ac_tool_prefix"; then
11696   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}strip; ac_word=$2
11698 echo "$as_me:$LINENO: checking for $ac_word" >&5
11699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700 if test "${ac_cv_prog_STRIP+set}" = set; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   if test -n "$STRIP"; then
11704   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711   for ac_exec_ext in '' $ac_executable_extensions; do
11712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718 done
11719
11720 fi
11721 fi
11722 STRIP=$ac_cv_prog_STRIP
11723 if test -n "$STRIP"; then
11724   echo "$as_me:$LINENO: result: $STRIP" >&5
11725 echo "${ECHO_T}$STRIP" >&6
11726 else
11727   echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6
11729 fi
11730
11731 fi
11732 if test -z "$ac_cv_prog_STRIP"; then
11733   ac_ct_STRIP=$STRIP
11734   # Extract the first word of "strip", so it can be a program name with args.
11735 set dummy strip; ac_word=$2
11736 echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11739   echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741   if test -n "$ac_ct_STRIP"; then
11742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11746 do
11747   IFS=$as_save_IFS
11748   test -z "$as_dir" && as_dir=.
11749   for ac_exec_ext in '' $ac_executable_extensions; do
11750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751     ac_cv_prog_ac_ct_STRIP="strip"
11752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753     break 2
11754   fi
11755 done
11756 done
11757
11758   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11759 fi
11760 fi
11761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11762 if test -n "$ac_ct_STRIP"; then
11763   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11764 echo "${ECHO_T}$ac_ct_STRIP" >&6
11765 else
11766   echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11768 fi
11769
11770   STRIP=$ac_ct_STRIP
11771 else
11772   STRIP="$ac_cv_prog_STRIP"
11773 fi
11774
11775
11776 old_CC="$CC"
11777 old_CFLAGS="$CFLAGS"
11778
11779 # Set sane defaults for various variables
11780 test -z "$AR" && AR=ar
11781 test -z "$AR_FLAGS" && AR_FLAGS=cru
11782 test -z "$AS" && AS=as
11783 test -z "$CC" && CC=cc
11784 test -z "$LTCC" && LTCC=$CC
11785 test -z "$DLLTOOL" && DLLTOOL=dlltool
11786 test -z "$LD" && LD=ld
11787 test -z "$LN_S" && LN_S="ln -s"
11788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11789 test -z "$NM" && NM=nm
11790 test -z "$SED" && SED=sed
11791 test -z "$OBJDUMP" && OBJDUMP=objdump
11792 test -z "$RANLIB" && RANLIB=:
11793 test -z "$STRIP" && STRIP=:
11794 test -z "$ac_objext" && ac_objext=o
11795
11796 # Determine commands to create old-style static archives.
11797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11798 old_postinstall_cmds='chmod 644 $oldlib'
11799 old_postuninstall_cmds=
11800
11801 if test -n "$RANLIB"; then
11802   case $host_os in
11803   openbsd*)
11804     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11805     ;;
11806   *)
11807     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11808     ;;
11809   esac
11810   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11811 fi
11812
11813 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11814
11815 # Only perform the check for file, if the check method requires it
11816 case $deplibs_check_method in
11817 file_magic*)
11818   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11819     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11820 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   case $MAGIC_CMD in
11825 [\\/*] |  ?:[\\/]*)
11826   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11827   ;;
11828 *)
11829   lt_save_MAGIC_CMD="$MAGIC_CMD"
11830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11831   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11832   for ac_dir in $ac_dummy; do
11833     IFS="$lt_save_ifs"
11834     test -z "$ac_dir" && ac_dir=.
11835     if test -f $ac_dir/${ac_tool_prefix}file; then
11836       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11837       if test -n "$file_magic_test_file"; then
11838         case $deplibs_check_method in
11839         "file_magic "*)
11840           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11841           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11843             $EGREP "$file_magic_regex" > /dev/null; then
11844             :
11845           else
11846             cat <<EOF 1>&2
11847
11848 *** Warning: the command libtool uses to detect shared libraries,
11849 *** $file_magic_cmd, produces output that libtool cannot recognize.
11850 *** The result is that libtool may fail to recognize shared libraries
11851 *** as such.  This will affect the creation of libtool libraries that
11852 *** depend on shared libraries, but programs linked with such libtool
11853 *** libraries will work regardless of this problem.  Nevertheless, you
11854 *** may want to report the problem to your system manager and/or to
11855 *** bug-libtool@gnu.org
11856
11857 EOF
11858           fi ;;
11859         esac
11860       fi
11861       break
11862     fi
11863   done
11864   IFS="$lt_save_ifs"
11865   MAGIC_CMD="$lt_save_MAGIC_CMD"
11866   ;;
11867 esac
11868 fi
11869
11870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11871 if test -n "$MAGIC_CMD"; then
11872   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11873 echo "${ECHO_T}$MAGIC_CMD" >&6
11874 else
11875   echo "$as_me:$LINENO: result: no" >&5
11876 echo "${ECHO_T}no" >&6
11877 fi
11878
11879 if test -z "$lt_cv_path_MAGIC_CMD"; then
11880   if test -n "$ac_tool_prefix"; then
11881     echo "$as_me:$LINENO: checking for file" >&5
11882 echo $ECHO_N "checking for file... $ECHO_C" >&6
11883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   case $MAGIC_CMD in
11887 [\\/*] |  ?:[\\/]*)
11888   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11889   ;;
11890 *)
11891   lt_save_MAGIC_CMD="$MAGIC_CMD"
11892   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11893   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11894   for ac_dir in $ac_dummy; do
11895     IFS="$lt_save_ifs"
11896     test -z "$ac_dir" && ac_dir=.
11897     if test -f $ac_dir/file; then
11898       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11899       if test -n "$file_magic_test_file"; then
11900         case $deplibs_check_method in
11901         "file_magic "*)
11902           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11903           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11905             $EGREP "$file_magic_regex" > /dev/null; then
11906             :
11907           else
11908             cat <<EOF 1>&2
11909
11910 *** Warning: the command libtool uses to detect shared libraries,
11911 *** $file_magic_cmd, produces output that libtool cannot recognize.
11912 *** The result is that libtool may fail to recognize shared libraries
11913 *** as such.  This will affect the creation of libtool libraries that
11914 *** depend on shared libraries, but programs linked with such libtool
11915 *** libraries will work regardless of this problem.  Nevertheless, you
11916 *** may want to report the problem to your system manager and/or to
11917 *** bug-libtool@gnu.org
11918
11919 EOF
11920           fi ;;
11921         esac
11922       fi
11923       break
11924     fi
11925   done
11926   IFS="$lt_save_ifs"
11927   MAGIC_CMD="$lt_save_MAGIC_CMD"
11928   ;;
11929 esac
11930 fi
11931
11932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11933 if test -n "$MAGIC_CMD"; then
11934   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11935 echo "${ECHO_T}$MAGIC_CMD" >&6
11936 else
11937   echo "$as_me:$LINENO: result: no" >&5
11938 echo "${ECHO_T}no" >&6
11939 fi
11940
11941   else
11942     MAGIC_CMD=:
11943   fi
11944 fi
11945
11946   fi
11947   ;;
11948 esac
11949
11950 enable_dlopen=yes
11951 enable_win32_dll=no
11952
11953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11954 if test "${enable_libtool_lock+set}" = set; then
11955   enableval="$enable_libtool_lock"
11956
11957 fi;
11958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11959
11960
11961 # Check whether --with-pic or --without-pic was given.
11962 if test "${with_pic+set}" = set; then
11963   withval="$with_pic"
11964   pic_mode="$withval"
11965 else
11966   pic_mode=default
11967 fi;
11968 test -z "$pic_mode" && pic_mode=default
11969
11970 # Use C for the default configuration in the libtool script
11971 tagname=
11972 lt_save_CC="$CC"
11973 ac_ext=c
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978
11979
11980 # Source file extension for C test sources.
11981 ac_ext=c
11982
11983 # Object file extension for compiled C test sources.
11984 objext=o
11985 objext=$objext
11986
11987 # Code to be used in simple compile tests
11988 lt_simple_compile_test_code="int some_variable = 0;\n"
11989
11990 # Code to be used in simple link tests
11991 lt_simple_link_test_code='int main(){return(0);}\n'
11992
11993
11994 # If no C compiler was specified, use CC.
11995 LTCC=${LTCC-"$CC"}
11996
11997 # Allow CC to be a program name with arguments.
11998 compiler=$CC
11999
12000
12001 #
12002 # Check for any special shared library compilation flags.
12003 #
12004 lt_prog_cc_shlib=
12005 if test "$GCC" = no; then
12006   case $host_os in
12007   sco3.2v5*)
12008     lt_prog_cc_shlib='-belf'
12009     ;;
12010   esac
12011 fi
12012 if test -n "$lt_prog_cc_shlib"; then
12013   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12014 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12015   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12016   else
12017     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12018 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12019     lt_cv_prog_cc_can_build_shared=no
12020   fi
12021 fi
12022
12023
12024 #
12025 # Check to make sure the static flag actually works.
12026 #
12027 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12028 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12029 if test "${lt_prog_compiler_static_works+set}" = set; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   lt_prog_compiler_static_works=no
12033    save_LDFLAGS="$LDFLAGS"
12034    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12035    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12036    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12037      # The compiler can only warn and ignore the option if not recognized
12038      # So say no if there are warnings
12039      if test -s conftest.err; then
12040        # Append any errors to the config.log.
12041        cat conftest.err 1>&5
12042      else
12043        lt_prog_compiler_static_works=yes
12044      fi
12045    fi
12046    $rm conftest*
12047    LDFLAGS="$save_LDFLAGS"
12048
12049 fi
12050 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12051 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12052
12053 if test x"$lt_prog_compiler_static_works" = xyes; then
12054     :
12055 else
12056     lt_prog_compiler_static=
12057 fi
12058
12059
12060
12061
12062 lt_prog_compiler_no_builtin_flag=
12063
12064 if test "$GCC" = yes; then
12065   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12066
12067
12068 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12069 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12070 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   lt_cv_prog_compiler_rtti_exceptions=no
12074   ac_outfile=conftest.$ac_objext
12075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12076    lt_compiler_flag="-fno-rtti -fno-exceptions"
12077    # Insert the option either (1) after the last *FLAGS variable, or
12078    # (2) before a word containing "conftest.", or (3) at the end.
12079    # Note that $ac_compile itself does not contain backslashes and begins
12080    # with a dollar sign (not a hyphen), so the echo should work correctly.
12081    # The option is referenced via a variable to avoid confusing sed.
12082    lt_compile=`echo "$ac_compile" | $SED \
12083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12085    -e 's:$: $lt_compiler_flag:'`
12086    (eval echo "\"\$as_me:12086: $lt_compile\"" >&5)
12087    (eval "$lt_compile" 2>conftest.err)
12088    ac_status=$?
12089    cat conftest.err >&5
12090    echo "$as_me:12090: \$? = $ac_status" >&5
12091    if (exit $ac_status) && test -s "$ac_outfile"; then
12092      # The compiler can only warn and ignore the option if not recognized
12093      # So say no if there are warnings
12094      if test ! -s conftest.err; then
12095        lt_cv_prog_compiler_rtti_exceptions=yes
12096      fi
12097    fi
12098    $rm conftest*
12099
12100 fi
12101 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12103
12104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12105     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12106 else
12107     :
12108 fi
12109
12110 fi
12111
12112 lt_prog_compiler_wl=
12113 lt_prog_compiler_pic=
12114 lt_prog_compiler_static=
12115
12116 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12117 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12118
12119   if test "$GCC" = yes; then
12120     lt_prog_compiler_wl='-Wl,'
12121     lt_prog_compiler_static='-static'
12122
12123     case $host_os in
12124       aix*)
12125       # All AIX code is PIC.
12126       if test "$host_cpu" = ia64; then
12127         # AIX 5 now supports IA64 processor
12128         lt_prog_compiler_static='-Bstatic'
12129       fi
12130       ;;
12131
12132     amigaos*)
12133       # FIXME: we need at least 68020 code to build shared libraries, but
12134       # adding the `-m68020' flag to GCC prevents building anything better,
12135       # like `-m68040'.
12136       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12137       ;;
12138
12139     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12140       # PIC is the default for these OSes.
12141       ;;
12142
12143     mingw* | pw32* | os2*)
12144       # This hack is so that the source file can tell whether it is being
12145       # built for inclusion in a dll (and should export symbols for example).
12146       lt_prog_compiler_pic='-DDLL_EXPORT'
12147       ;;
12148
12149     darwin* | rhapsody*)
12150       # PIC is the default on this platform
12151       # Common symbols not allowed in MH_DYLIB files
12152       lt_prog_compiler_pic='-fno-common'
12153       ;;
12154
12155     msdosdjgpp*)
12156       # Just because we use GCC doesn't mean we suddenly get shared libraries
12157       # on systems that don't support them.
12158       lt_prog_compiler_can_build_shared=no
12159       enable_shared=no
12160       ;;
12161
12162     sysv4*MP*)
12163       if test -d /usr/nec; then
12164         lt_prog_compiler_pic=-Kconform_pic
12165       fi
12166       ;;
12167
12168     hpux*)
12169       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12170       # not for PA HP-UX.
12171       case "$host_cpu" in
12172       hppa*64*|ia64*)
12173         # +Z the default
12174         ;;
12175       *)
12176         lt_prog_compiler_pic='-fPIC'
12177         ;;
12178       esac
12179       ;;
12180
12181     *)
12182       lt_prog_compiler_pic='-fPIC'
12183       ;;
12184     esac
12185   else
12186     # PORTME Check for flag to pass linker flags through the system compiler.
12187     case $host_os in
12188     aix*)
12189       lt_prog_compiler_wl='-Wl,'
12190       if test "$host_cpu" = ia64; then
12191         # AIX 5 now supports IA64 processor
12192         lt_prog_compiler_static='-Bstatic'
12193       else
12194         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12195       fi
12196       ;;
12197       darwin*)
12198         # PIC is the default on this platform
12199         # Common symbols not allowed in MH_DYLIB files
12200        case "$cc_basename" in
12201          xlc*)
12202          lt_prog_compiler_pic='-qnocommon'
12203          lt_prog_compiler_wl='-Wl,'
12204          ;;
12205        esac
12206        ;;
12207
12208     mingw* | pw32* | os2*)
12209       # This hack is so that the source file can tell whether it is being
12210       # built for inclusion in a dll (and should export symbols for example).
12211       lt_prog_compiler_pic='-DDLL_EXPORT'
12212       ;;
12213
12214     hpux9* | hpux10* | hpux11*)
12215       lt_prog_compiler_wl='-Wl,'
12216       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12217       # not for PA HP-UX.
12218       case "$host_cpu" in
12219       hppa*64*|ia64*)
12220         # +Z the default
12221         ;;
12222       *)
12223         lt_prog_compiler_pic='+Z'
12224         ;;
12225       esac
12226       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12227       lt_prog_compiler_static='${wl}-a ${wl}archive'
12228       ;;
12229
12230     irix5* | irix6* | nonstopux*)
12231       lt_prog_compiler_wl='-Wl,'
12232       # PIC (with -KPIC) is the default.
12233       lt_prog_compiler_static='-non_shared'
12234       ;;
12235
12236     newsos6)
12237       lt_prog_compiler_pic='-KPIC'
12238       lt_prog_compiler_static='-Bstatic'
12239       ;;
12240
12241     linux*)
12242       case $CC in
12243       icc* | ecc*)
12244         lt_prog_compiler_wl='-Wl,'
12245         lt_prog_compiler_pic='-KPIC'
12246         lt_prog_compiler_static='-static'
12247         ;;
12248       ccc*)
12249         lt_prog_compiler_wl='-Wl,'
12250         # All Alpha code is PIC.
12251         lt_prog_compiler_static='-non_shared'
12252         ;;
12253       esac
12254       ;;
12255
12256     osf3* | osf4* | osf5*)
12257       lt_prog_compiler_wl='-Wl,'
12258       # All OSF/1 code is PIC.
12259       lt_prog_compiler_static='-non_shared'
12260       ;;
12261
12262     sco3.2v5*)
12263       lt_prog_compiler_pic='-Kpic'
12264       lt_prog_compiler_static='-dn'
12265       ;;
12266
12267     solaris*)
12268       lt_prog_compiler_wl='-Wl,'
12269       lt_prog_compiler_pic='-KPIC'
12270       lt_prog_compiler_static='-Bstatic'
12271       ;;
12272
12273     sunos4*)
12274       lt_prog_compiler_wl='-Qoption ld '
12275       lt_prog_compiler_pic='-PIC'
12276       lt_prog_compiler_static='-Bstatic'
12277       ;;
12278
12279     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12280       lt_prog_compiler_wl='-Wl,'
12281       lt_prog_compiler_pic='-KPIC'
12282       lt_prog_compiler_static='-Bstatic'
12283       ;;
12284
12285     sysv4*MP*)
12286       if test -d /usr/nec ;then
12287         lt_prog_compiler_pic='-Kconform_pic'
12288         lt_prog_compiler_static='-Bstatic'
12289       fi
12290       ;;
12291
12292     uts4*)
12293       lt_prog_compiler_pic='-pic'
12294       lt_prog_compiler_static='-Bstatic'
12295       ;;
12296
12297     *)
12298       lt_prog_compiler_can_build_shared=no
12299       ;;
12300     esac
12301   fi
12302
12303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12304 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12305
12306 #
12307 # Check to make sure the PIC flag actually works.
12308 #
12309 if test -n "$lt_prog_compiler_pic"; then
12310
12311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12313 if test "${lt_prog_compiler_pic_works+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   lt_prog_compiler_pic_works=no
12317   ac_outfile=conftest.$ac_objext
12318    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12319    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12320    # Insert the option either (1) after the last *FLAGS variable, or
12321    # (2) before a word containing "conftest.", or (3) at the end.
12322    # Note that $ac_compile itself does not contain backslashes and begins
12323    # with a dollar sign (not a hyphen), so the echo should work correctly.
12324    # The option is referenced via a variable to avoid confusing sed.
12325    lt_compile=`echo "$ac_compile" | $SED \
12326    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328    -e 's:$: $lt_compiler_flag:'`
12329    (eval echo "\"\$as_me:12329: $lt_compile\"" >&5)
12330    (eval "$lt_compile" 2>conftest.err)
12331    ac_status=$?
12332    cat conftest.err >&5
12333    echo "$as_me:12333: \$? = $ac_status" >&5
12334    if (exit $ac_status) && test -s "$ac_outfile"; then
12335      # The compiler can only warn and ignore the option if not recognized
12336      # So say no if there are warnings
12337      if test ! -s conftest.err; then
12338        lt_prog_compiler_pic_works=yes
12339      fi
12340    fi
12341    $rm conftest*
12342
12343 fi
12344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12345 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12346
12347 if test x"$lt_prog_compiler_pic_works" = xyes; then
12348     case $lt_prog_compiler_pic in
12349      "" | " "*) ;;
12350      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12351      esac
12352 else
12353     lt_prog_compiler_pic=
12354      lt_prog_compiler_can_build_shared=no
12355 fi
12356
12357 fi
12358 case "$host_os" in
12359   # For platforms which do not support PIC, -DPIC is meaningless:
12360   *djgpp*)
12361     lt_prog_compiler_pic=
12362     ;;
12363   *)
12364     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12365     ;;
12366 esac
12367
12368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   lt_cv_prog_compiler_c_o=no
12374    $rm -r conftest 2>/dev/null
12375    mkdir conftest
12376    cd conftest
12377    mkdir out
12378    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12379
12380    lt_compiler_flag="-o out/conftest2.$ac_objext"
12381    # Insert the option either (1) after the last *FLAGS variable, or
12382    # (2) before a word containing "conftest.", or (3) at the end.
12383    # Note that $ac_compile itself does not contain backslashes and begins
12384    # with a dollar sign (not a hyphen), so the echo should work correctly.
12385    lt_compile=`echo "$ac_compile" | $SED \
12386    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388    -e 's:$: $lt_compiler_flag:'`
12389    (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
12390    (eval "$lt_compile" 2>out/conftest.err)
12391    ac_status=$?
12392    cat out/conftest.err >&5
12393    echo "$as_me:12393: \$? = $ac_status" >&5
12394    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12395    then
12396      # The compiler can only warn and ignore the option if not recognized
12397      # So say no if there are warnings
12398      if test ! -s out/conftest.err; then
12399        lt_cv_prog_compiler_c_o=yes
12400      fi
12401    fi
12402    chmod u+w .
12403    $rm conftest*
12404    # SGI C++ compiler will create directory out/ii_files/ for
12405    # template instantiation
12406    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12407    $rm out/* && rmdir out
12408    cd ..
12409    rmdir conftest
12410    $rm conftest*
12411
12412 fi
12413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12415
12416
12417 hard_links="nottested"
12418 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12419   # do not overwrite the value of need_locks provided by the user
12420   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12422   hard_links=yes
12423   $rm conftest*
12424   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12425   touch conftest.a
12426   ln conftest.a conftest.b 2>&5 || hard_links=no
12427   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12428   echo "$as_me:$LINENO: result: $hard_links" >&5
12429 echo "${ECHO_T}$hard_links" >&6
12430   if test "$hard_links" = no; then
12431     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12433     need_locks=warn
12434   fi
12435 else
12436   need_locks=no
12437 fi
12438
12439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12441
12442   runpath_var=
12443   allow_undefined_flag=
12444   enable_shared_with_static_runtimes=no
12445   archive_cmds=
12446   archive_expsym_cmds=
12447   old_archive_From_new_cmds=
12448   old_archive_from_expsyms_cmds=
12449   export_dynamic_flag_spec=
12450   whole_archive_flag_spec=
12451   thread_safe_flag_spec=
12452   hardcode_libdir_flag_spec=
12453   hardcode_libdir_flag_spec_ld=
12454   hardcode_libdir_separator=
12455   hardcode_direct=no
12456   hardcode_minus_L=no
12457   hardcode_shlibpath_var=unsupported
12458   link_all_deplibs=unknown
12459   hardcode_automatic=no
12460   module_cmds=
12461   module_expsym_cmds=
12462   always_export_symbols=no
12463   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464   # include_expsyms should be a list of space-separated symbols to be *always*
12465   # included in the symbol list
12466   include_expsyms=
12467   # exclude_expsyms can be an extended regexp of symbols to exclude
12468   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12469   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12470   # as well as any symbol that contains `d'.
12471   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12472   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12473   # platforms (ab)use it in PIC code, but their linkers get confused if
12474   # the symbol is explicitly referenced.  Since portable code cannot
12475   # rely on this symbol name, it's probably fine to never include it in
12476   # preloaded symbol tables.
12477   extract_expsyms_cmds=
12478
12479   case $host_os in
12480   cygwin* | mingw* | pw32*)
12481     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12482     # When not using gcc, we currently assume that we are using
12483     # Microsoft Visual C++.
12484     if test "$GCC" != yes; then
12485       with_gnu_ld=no
12486     fi
12487     ;;
12488   openbsd*)
12489     with_gnu_ld=no
12490     ;;
12491   esac
12492
12493   ld_shlibs=yes
12494   if test "$with_gnu_ld" = yes; then
12495     # If archive_cmds runs LD, not CC, wlarc should be empty
12496     wlarc='${wl}'
12497
12498     # See if GNU ld supports shared libraries.
12499     case $host_os in
12500     aix3* | aix4* | aix5*)
12501       # On AIX/PPC, the GNU linker is very broken
12502       if test "$host_cpu" != ia64; then
12503         ld_shlibs=no
12504         cat <<EOF 1>&2
12505
12506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12507 *** to be unable to reliably create shared libraries on AIX.
12508 *** Therefore, libtool is disabling shared libraries support.  If you
12509 *** really care for shared libraries, you may want to modify your PATH
12510 *** so that a non-GNU linker is found, and then restart.
12511
12512 EOF
12513       fi
12514       ;;
12515
12516     amigaos*)
12517       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)'
12518       hardcode_libdir_flag_spec='-L$libdir'
12519       hardcode_minus_L=yes
12520
12521       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12522       # that the semantics of dynamic libraries on AmigaOS, at least up
12523       # to version 4, is to share data among multiple programs linked
12524       # with the same dynamic library.  Since this doesn't match the
12525       # behavior of shared libraries on other platforms, we can't use
12526       # them.
12527       ld_shlibs=no
12528       ;;
12529
12530     beos*)
12531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12532         allow_undefined_flag=unsupported
12533         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12534         # support --undefined.  This deserves some investigation.  FIXME
12535         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12536       else
12537         ld_shlibs=no
12538       fi
12539       ;;
12540
12541     cygwin* | mingw* | pw32*)
12542       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12543       # as there is no search path for DLLs.
12544       hardcode_libdir_flag_spec='-L$libdir'
12545       allow_undefined_flag=unsupported
12546       always_export_symbols=no
12547       enable_shared_with_static_runtimes=yes
12548       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12549
12550       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12551         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12552         # If the export-symbols file already is a .def file (1st line
12553         # is EXPORTS), use it as is; otherwise, prepend...
12554         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12555           cp $export_symbols $output_objdir/$soname.def;
12556         else
12557           echo EXPORTS > $output_objdir/$soname.def;
12558           cat $export_symbols >> $output_objdir/$soname.def;
12559         fi~
12560         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12561       else
12562         ld_shlibs=no
12563       fi
12564       ;;
12565
12566     netbsd*)
12567       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12568         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12569         wlarc=
12570       else
12571         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12573       fi
12574       ;;
12575
12576     solaris* | sysv5*)
12577       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12578         ld_shlibs=no
12579         cat <<EOF 1>&2
12580
12581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12582 *** create shared libraries on Solaris systems.  Therefore, libtool
12583 *** is disabling shared libraries support.  We urge you to upgrade GNU
12584 *** binutils to release 2.9.1 or newer.  Another option is to modify
12585 *** your PATH or compiler configuration so that the native linker is
12586 *** used, and then restart.
12587
12588 EOF
12589       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12591         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12592       else
12593         ld_shlibs=no
12594       fi
12595       ;;
12596
12597     sunos4*)
12598       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12599       wlarc=
12600       hardcode_direct=yes
12601       hardcode_shlibpath_var=no
12602       ;;
12603
12604   linux*)
12605     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12606         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12607         archive_cmds="$tmp_archive_cmds"
12608       supports_anon_versioning=no
12609       case `$LD -v 2>/dev/null` in
12610         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12611         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12612         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12613         *\ 2.11.*) ;; # other 2.11 versions
12614         *) supports_anon_versioning=yes ;;
12615       esac
12616       if test $supports_anon_versioning = yes; then
12617         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12619 $echo "local: *; };" >> $output_objdir/$libname.ver~
12620         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12621       else
12622         archive_expsym_cmds="$tmp_archive_cmds"
12623       fi
12624     else
12625       ld_shlibs=no
12626     fi
12627     ;;
12628
12629     *)
12630       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12631         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12633       else
12634         ld_shlibs=no
12635       fi
12636       ;;
12637     esac
12638
12639     if test "$ld_shlibs" = yes; then
12640       runpath_var=LD_RUN_PATH
12641       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12642       export_dynamic_flag_spec='${wl}--export-dynamic'
12643       # ancient GNU ld didn't support --whole-archive et. al.
12644       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12645         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646       else
12647         whole_archive_flag_spec=
12648       fi
12649     fi
12650   else
12651     # PORTME fill in a description of your system's linker (not GNU ld)
12652     case $host_os in
12653     aix3*)
12654       allow_undefined_flag=unsupported
12655       always_export_symbols=yes
12656       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'
12657       # Note: this linker hardcodes the directories in LIBPATH if there
12658       # are no directories specified by -L.
12659       hardcode_minus_L=yes
12660       if test "$GCC" = yes && test -z "$link_static_flag"; then
12661         # Neither direct hardcoding nor static linking is supported with a
12662         # broken collect2.
12663         hardcode_direct=unsupported
12664       fi
12665       ;;
12666
12667     aix4* | aix5*)
12668       if test "$host_cpu" = ia64; then
12669         # On IA64, the linker does run time linking by default, so we don't
12670         # have to do anything special.
12671         aix_use_runtimelinking=no
12672         exp_sym_flag='-Bexport'
12673         no_entry_flag=""
12674       else
12675         # If we're using GNU nm, then we don't want the "-C" option.
12676         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12677         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12678           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'
12679         else
12680           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'
12681         fi
12682         aix_use_runtimelinking=no
12683
12684         # Test if we are trying to use run time linking or normal
12685         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12686         # need to do runtime linking.
12687         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12688           for ld_flag in $LDFLAGS; do
12689           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12690             aix_use_runtimelinking=yes
12691             break
12692           fi
12693           done
12694         esac
12695
12696         exp_sym_flag='-bexport'
12697         no_entry_flag='-bnoentry'
12698       fi
12699
12700       # When large executables or shared objects are built, AIX ld can
12701       # have problems creating the table of contents.  If linking a library
12702       # or program results in "error TOC overflow" add -mminimal-toc to
12703       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12704       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12705
12706       archive_cmds=''
12707       hardcode_direct=yes
12708       hardcode_libdir_separator=':'
12709       link_all_deplibs=yes
12710
12711       if test "$GCC" = yes; then
12712         case $host_os in aix4.012|aix4.012.*)
12713         # We only want to do this on AIX 4.2 and lower, the check
12714         # below for broken collect2 doesn't work under 4.3+
12715           collect2name=`${CC} -print-prog-name=collect2`
12716           if test -f "$collect2name" && \
12717            strings "$collect2name" | grep resolve_lib_name >/dev/null
12718           then
12719           # We have reworked collect2
12720           hardcode_direct=yes
12721           else
12722           # We have old collect2
12723           hardcode_direct=unsupported
12724           # It fails to find uninstalled libraries when the uninstalled
12725           # path is not listed in the libpath.  Setting hardcode_minus_L
12726           # to unsupported forces relinking
12727           hardcode_minus_L=yes
12728           hardcode_libdir_flag_spec='-L$libdir'
12729           hardcode_libdir_separator=
12730           fi
12731         esac
12732         shared_flag='-shared'
12733       else
12734         # not using gcc
12735         if test "$host_cpu" = ia64; then
12736         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12737         # chokes on -Wl,-G. The following line is correct:
12738           shared_flag='-G'
12739         else
12740         if test "$aix_use_runtimelinking" = yes; then
12741             shared_flag='${wl}-G'
12742           else
12743             shared_flag='${wl}-bM:SRE'
12744         fi
12745         fi
12746       fi
12747
12748       # It seems that -bexpall does not export symbols beginning with
12749       # underscore (_), so it is better to generate a list of symbols to export.
12750       always_export_symbols=yes
12751       if test "$aix_use_runtimelinking" = yes; then
12752         # Warning - without using the other runtime loading flags (-brtl),
12753         # -berok will link without error, but may produce a broken library.
12754         allow_undefined_flag='-berok'
12755        # Determine the default libpath from the value encoded in an empty executable.
12756        cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 int
12764 main ()
12765 {
12766
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773   (eval $ac_link) 2>conftest.er1
12774   ac_status=$?
12775   grep -v '^ *+' conftest.er1 >conftest.err
12776   rm -f conftest.er1
12777   cat conftest.err >&5
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); } &&
12780          { ac_try='test -z "$ac_c_werror_flag"
12781                          || test ! -s conftest.err'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; } &&
12787          { ac_try='test -s conftest$ac_exeext'
12788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789   (eval $ac_try) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; }; then
12793
12794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12795 }'`
12796 # Check for a 64-bit object if we didn't find anything.
12797 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; }
12798 }'`; fi
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803 fi
12804 rm -f conftest.err conftest.$ac_objext \
12805       conftest$ac_exeext conftest.$ac_ext
12806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12807
12808        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12809         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"
12810        else
12811         if test "$host_cpu" = ia64; then
12812           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12813           allow_undefined_flag="-z nodefs"
12814           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"
12815         else
12816          # Determine the default libpath from the value encoded in an empty executable.
12817          cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823
12824 int
12825 main ()
12826 {
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834   (eval $ac_link) 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -z "$ac_c_werror_flag"
12842                          || test ! -s conftest.err'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; } &&
12848          { ac_try='test -s conftest$ac_exeext'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; }; then
12854
12855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12856 }'`
12857 # Check for a 64-bit object if we didn't find anything.
12858 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; }
12859 }'`; fi
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 fi
12865 rm -f conftest.err conftest.$ac_objext \
12866       conftest$ac_exeext conftest.$ac_ext
12867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12868
12869          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12870           # Warning - without using the other run time loading flags,
12871           # -berok will link without error, but may produce a broken library.
12872           no_undefined_flag=' ${wl}-bernotok'
12873           allow_undefined_flag=' ${wl}-berok'
12874           # -bexpall does not export symbols beginning with underscore (_)
12875           always_export_symbols=yes
12876           # Exported symbols can be pulled into shared objects from archives
12877           whole_archive_flag_spec=' '
12878           archive_cmds_need_lc=yes
12879           # This is similar to how AIX traditionally builds it's shared libraries.
12880           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'
12881         fi
12882       fi
12883       ;;
12884
12885     amigaos*)
12886       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)'
12887       hardcode_libdir_flag_spec='-L$libdir'
12888       hardcode_minus_L=yes
12889       # see comment about different semantics on the GNU ld section
12890       ld_shlibs=no
12891       ;;
12892
12893     bsdi[45]*)
12894       export_dynamic_flag_spec=-rdynamic
12895       ;;
12896
12897     cygwin* | mingw* | pw32*)
12898       # When not using gcc, we currently assume that we are using
12899       # Microsoft Visual C++.
12900       # hardcode_libdir_flag_spec is actually meaningless, as there is
12901       # no search path for DLLs.
12902       hardcode_libdir_flag_spec=' '
12903       allow_undefined_flag=unsupported
12904       # Tell ltmain to make .lib files, not .a files.
12905       libext=lib
12906       # Tell ltmain to make .dll files, not .so files.
12907       shrext_cmds=".dll"
12908       # FIXME: Setting linknames here is a bad hack.
12909       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12910       # The linker will automatically build a .lib file if we build a DLL.
12911       old_archive_From_new_cmds='true'
12912       # FIXME: Should let the user specify the lib program.
12913       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12914       fix_srcfile_path='`cygpath -w "$srcfile"`'
12915       enable_shared_with_static_runtimes=yes
12916       ;;
12917
12918     darwin* | rhapsody*)
12919       case "$host_os" in
12920         rhapsody* | darwin1.[012])
12921          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12922          ;;
12923        *) # Darwin 1.3 on
12924          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12925            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12926          else
12927            case ${MACOSX_DEPLOYMENT_TARGET} in
12928              10.[012])
12929                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12930                ;;
12931              10.*)
12932                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12933                ;;
12934            esac
12935          fi
12936          ;;
12937       esac
12938       archive_cmds_need_lc=no
12939       hardcode_direct=no
12940       hardcode_automatic=yes
12941       hardcode_shlibpath_var=unsupported
12942       whole_archive_flag_spec=''
12943       link_all_deplibs=yes
12944     if test "$GCC" = yes ; then
12945         output_verbose_link_cmd='echo'
12946         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12947       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12948       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12949       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}'
12950       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}'
12951     else
12952       case "$cc_basename" in
12953         xlc*)
12954          output_verbose_link_cmd='echo'
12955          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12956          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12957           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12958          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}'
12959           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}'
12960           ;;
12961        *)
12962          ld_shlibs=no
12963           ;;
12964       esac
12965     fi
12966       ;;
12967
12968     dgux*)
12969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970       hardcode_libdir_flag_spec='-L$libdir'
12971       hardcode_shlibpath_var=no
12972       ;;
12973
12974     freebsd1*)
12975       ld_shlibs=no
12976       ;;
12977
12978     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12979     # support.  Future versions do this automatically, but an explicit c++rt0.o
12980     # does not break anything, and helps significantly (at the cost of a little
12981     # extra space).
12982     freebsd2.2*)
12983       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12984       hardcode_libdir_flag_spec='-R$libdir'
12985       hardcode_direct=yes
12986       hardcode_shlibpath_var=no
12987       ;;
12988
12989     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12990     freebsd2*)
12991       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12992       hardcode_direct=yes
12993       hardcode_minus_L=yes
12994       hardcode_shlibpath_var=no
12995       ;;
12996
12997     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12998     freebsd* | kfreebsd*-gnu)
12999       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13000       hardcode_libdir_flag_spec='-R$libdir'
13001       hardcode_direct=yes
13002       hardcode_shlibpath_var=no
13003       ;;
13004
13005     hpux9*)
13006       if test "$GCC" = yes; then
13007         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'
13008       else
13009         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'
13010       fi
13011       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13012       hardcode_libdir_separator=:
13013       hardcode_direct=yes
13014
13015       # hardcode_minus_L: Not really in the search PATH,
13016       # but as the default location of the library.
13017       hardcode_minus_L=yes
13018       export_dynamic_flag_spec='${wl}-E'
13019       ;;
13020
13021     hpux10* | hpux11*)
13022       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13023         case "$host_cpu" in
13024         hppa*64*|ia64*)
13025           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13026           ;;
13027         *)
13028           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13029           ;;
13030         esac
13031       else
13032         case "$host_cpu" in
13033         hppa*64*|ia64*)
13034           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13035           ;;
13036         *)
13037           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13038           ;;
13039         esac
13040       fi
13041       if test "$with_gnu_ld" = no; then
13042         case "$host_cpu" in
13043         hppa*64*)
13044           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13045           hardcode_libdir_flag_spec_ld='+b $libdir'
13046           hardcode_libdir_separator=:
13047           hardcode_direct=no
13048           hardcode_shlibpath_var=no
13049           ;;
13050         ia64*)
13051           hardcode_libdir_flag_spec='-L$libdir'
13052           hardcode_direct=no
13053           hardcode_shlibpath_var=no
13054
13055           # hardcode_minus_L: Not really in the search PATH,
13056           # but as the default location of the library.
13057           hardcode_minus_L=yes
13058           ;;
13059         *)
13060           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13061           hardcode_libdir_separator=:
13062           hardcode_direct=yes
13063           export_dynamic_flag_spec='${wl}-E'
13064
13065           # hardcode_minus_L: Not really in the search PATH,
13066           # but as the default location of the library.
13067           hardcode_minus_L=yes
13068           ;;
13069         esac
13070       fi
13071       ;;
13072
13073     irix5* | irix6* | nonstopux*)
13074       if test "$GCC" = yes; then
13075         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'
13076       else
13077         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'
13078         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13079       fi
13080       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13081       hardcode_libdir_separator=:
13082       link_all_deplibs=yes
13083       ;;
13084
13085     netbsd*)
13086       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13087         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13088       else
13089         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13090       fi
13091       hardcode_libdir_flag_spec='-R$libdir'
13092       hardcode_direct=yes
13093       hardcode_shlibpath_var=no
13094       ;;
13095
13096     newsos6)
13097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13098       hardcode_direct=yes
13099       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13100       hardcode_libdir_separator=:
13101       hardcode_shlibpath_var=no
13102       ;;
13103
13104     openbsd*)
13105       hardcode_direct=yes
13106       hardcode_shlibpath_var=no
13107       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13108         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13109         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13110         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13111         export_dynamic_flag_spec='${wl}-E'
13112       else
13113        case $host_os in
13114          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13115            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13116            hardcode_libdir_flag_spec='-R$libdir'
13117            ;;
13118          *)
13119            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13120            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13121            ;;
13122        esac
13123       fi
13124       ;;
13125
13126     os2*)
13127       hardcode_libdir_flag_spec='-L$libdir'
13128       hardcode_minus_L=yes
13129       allow_undefined_flag=unsupported
13130       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'
13131       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13132       ;;
13133
13134     osf3*)
13135       if test "$GCC" = yes; then
13136         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13137         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'
13138       else
13139         allow_undefined_flag=' -expect_unresolved \*'
13140         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'
13141       fi
13142       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13143       hardcode_libdir_separator=:
13144       ;;
13145
13146     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13147       if test "$GCC" = yes; then
13148         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13149         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'
13150         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13151       else
13152         allow_undefined_flag=' -expect_unresolved \*'
13153         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'
13154         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13155         $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'
13156
13157         # Both c and cxx compiler support -rpath directly
13158         hardcode_libdir_flag_spec='-rpath $libdir'
13159       fi
13160       hardcode_libdir_separator=:
13161       ;;
13162
13163     sco3.2v5*)
13164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165       hardcode_shlibpath_var=no
13166       export_dynamic_flag_spec='${wl}-Bexport'
13167       runpath_var=LD_RUN_PATH
13168       hardcode_runpath_var=yes
13169       ;;
13170
13171     solaris*)
13172       no_undefined_flag=' -z text'
13173       if test "$GCC" = yes; then
13174         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13176           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13177       else
13178         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13180         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13181       fi
13182       hardcode_libdir_flag_spec='-R$libdir'
13183       hardcode_shlibpath_var=no
13184       case $host_os in
13185       solaris2.[0-5] | solaris2.[0-5].*) ;;
13186       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13187         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13188       esac
13189       link_all_deplibs=yes
13190       ;;
13191
13192     sunos4*)
13193       if test "x$host_vendor" = xsequent; then
13194         # Use $CC to link under sequent, because it throws in some extra .o
13195         # files that make .init and .fini sections work.
13196         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13197       else
13198         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13199       fi
13200       hardcode_libdir_flag_spec='-L$libdir'
13201       hardcode_direct=yes
13202       hardcode_minus_L=yes
13203       hardcode_shlibpath_var=no
13204       ;;
13205
13206     sysv4)
13207       case $host_vendor in
13208         sni)
13209           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13210           hardcode_direct=yes # is this really true???
13211         ;;
13212         siemens)
13213           ## LD is ld it makes a PLAMLIB
13214           ## CC just makes a GrossModule.
13215           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13216           reload_cmds='$CC -r -o $output$reload_objs'
13217           hardcode_direct=no
13218         ;;
13219         motorola)
13220           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13222         ;;
13223       esac
13224       runpath_var='LD_RUN_PATH'
13225       hardcode_shlibpath_var=no
13226       ;;
13227
13228     sysv4.3*)
13229       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230       hardcode_shlibpath_var=no
13231       export_dynamic_flag_spec='-Bexport'
13232       ;;
13233
13234     sysv4*MP*)
13235       if test -d /usr/nec; then
13236         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237         hardcode_shlibpath_var=no
13238         runpath_var=LD_RUN_PATH
13239         hardcode_runpath_var=yes
13240         ld_shlibs=yes
13241       fi
13242       ;;
13243
13244     sysv4.2uw2*)
13245       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13246       hardcode_direct=yes
13247       hardcode_minus_L=no
13248       hardcode_shlibpath_var=no
13249       hardcode_runpath_var=yes
13250       runpath_var=LD_RUN_PATH
13251       ;;
13252
13253    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13254       no_undefined_flag='${wl}-z ${wl}text'
13255       if test "$GCC" = yes; then
13256         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13257       else
13258         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13259       fi
13260       runpath_var='LD_RUN_PATH'
13261       hardcode_shlibpath_var=no
13262       ;;
13263
13264     sysv5*)
13265       no_undefined_flag=' -z text'
13266       # $CC -shared without GNU ld will not create a library from C++
13267       # object files and a static libstdc++, better avoid it by now
13268       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13269       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13270                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13271       hardcode_libdir_flag_spec=
13272       hardcode_shlibpath_var=no
13273       runpath_var='LD_RUN_PATH'
13274       ;;
13275
13276     uts4*)
13277       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13278       hardcode_libdir_flag_spec='-L$libdir'
13279       hardcode_shlibpath_var=no
13280       ;;
13281
13282     *)
13283       ld_shlibs=no
13284       ;;
13285     esac
13286   fi
13287
13288 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13289 echo "${ECHO_T}$ld_shlibs" >&6
13290 test "$ld_shlibs" = no && can_build_shared=no
13291
13292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13293 if test "$GCC" = yes; then
13294   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13295 fi
13296
13297 #
13298 # Do we need to explicitly link libc?
13299 #
13300 case "x$archive_cmds_need_lc" in
13301 x|xyes)
13302   # Assume -lc should be added
13303   archive_cmds_need_lc=yes
13304
13305   if test "$enable_shared" = yes && test "$GCC" = yes; then
13306     case $archive_cmds in
13307     *'~'*)
13308       # FIXME: we may have to deal with multi-command sequences.
13309       ;;
13310     '$CC '*)
13311       # Test whether the compiler implicitly links with -lc since on some
13312       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13313       # to ld, don't add -lc before -lgcc.
13314       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13315 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13316       $rm conftest*
13317       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13318
13319       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320   (eval $ac_compile) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } 2>conftest.err; then
13324         soname=conftest
13325         lib=conftest
13326         libobjs=conftest.$ac_objext
13327         deplibs=
13328         wl=$lt_prog_compiler_wl
13329         compiler_flags=-v
13330         linker_flags=-v
13331         verstring=
13332         output_objdir=.
13333         libname=conftest
13334         lt_save_allow_undefined_flag=$allow_undefined_flag
13335         allow_undefined_flag=
13336         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13337   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }
13341         then
13342           archive_cmds_need_lc=no
13343         else
13344           archive_cmds_need_lc=yes
13345         fi
13346         allow_undefined_flag=$lt_save_allow_undefined_flag
13347       else
13348         cat conftest.err 1>&5
13349       fi
13350       $rm conftest*
13351       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13352 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13353       ;;
13354     esac
13355   fi
13356   ;;
13357 esac
13358
13359 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13360 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13361 library_names_spec=
13362 libname_spec='lib$name'
13363 soname_spec=
13364 shrext_cmds=".so"
13365 postinstall_cmds=
13366 postuninstall_cmds=
13367 finish_cmds=
13368 finish_eval=
13369 shlibpath_var=
13370 shlibpath_overrides_runpath=unknown
13371 version_type=none
13372 dynamic_linker="$host_os ld.so"
13373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13374 if test "$GCC" = yes; then
13375   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13376   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13377     # if the path contains ";" then we assume it to be the separator
13378     # otherwise default to the standard path separator (i.e. ":") - it is
13379     # assumed that no part of a normal pathname contains ";" but that should
13380     # okay in the real world where ";" in dirpaths is itself problematic.
13381     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13382   else
13383     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13384   fi
13385 else
13386   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13387 fi
13388 need_lib_prefix=unknown
13389 hardcode_into_libs=no
13390
13391 # when you set need_version to no, make sure it does not cause -set_version
13392 # flags to be left without arguments
13393 need_version=unknown
13394
13395 case $host_os in
13396 aix3*)
13397   version_type=linux
13398   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13399   shlibpath_var=LIBPATH
13400
13401   # AIX 3 has no versioning support, so we append a major version to the name.
13402   soname_spec='${libname}${release}${shared_ext}$major'
13403   ;;
13404
13405 aix4* | aix5*)
13406   version_type=linux
13407   need_lib_prefix=no
13408   need_version=no
13409   hardcode_into_libs=yes
13410   if test "$host_cpu" = ia64; then
13411     # AIX 5 supports IA64
13412     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13413     shlibpath_var=LD_LIBRARY_PATH
13414   else
13415     # With GCC up to 2.95.x, collect2 would create an import file
13416     # for dependence libraries.  The import file would start with
13417     # the line `#! .'.  This would cause the generated library to
13418     # depend on `.', always an invalid library.  This was fixed in
13419     # development snapshots of GCC prior to 3.0.
13420     case $host_os in
13421       aix4 | aix4.[01] | aix4.[01].*)
13422       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13423            echo ' yes '
13424            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13425         :
13426       else
13427         can_build_shared=no
13428       fi
13429       ;;
13430     esac
13431     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13432     # soname into executable. Probably we can add versioning support to
13433     # collect2, so additional links can be useful in future.
13434     if test "$aix_use_runtimelinking" = yes; then
13435       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13436       # instead of lib<name>.a to let people know that these are not
13437       # typical AIX shared libraries.
13438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439     else
13440       # We preserve .a as extension for shared libraries through AIX4.2
13441       # and later when we are not doing run time linking.
13442       library_names_spec='${libname}${release}.a $libname.a'
13443       soname_spec='${libname}${release}${shared_ext}$major'
13444     fi
13445     shlibpath_var=LIBPATH
13446   fi
13447   ;;
13448
13449 amigaos*)
13450   library_names_spec='$libname.ixlibrary $libname.a'
13451   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13452   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'
13453   ;;
13454
13455 beos*)
13456   library_names_spec='${libname}${shared_ext}'
13457   dynamic_linker="$host_os ld.so"
13458   shlibpath_var=LIBRARY_PATH
13459   ;;
13460
13461 bsdi[45]*)
13462   version_type=linux
13463   need_version=no
13464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13469   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13470   # the default ld.so.conf also contains /usr/contrib/lib and
13471   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13472   # libtool to hard-code these into programs
13473   ;;
13474
13475 cygwin* | mingw* | pw32*)
13476   version_type=windows
13477   shrext_cmds=".dll"
13478   need_version=no
13479   need_lib_prefix=no
13480
13481   case $GCC,$host_os in
13482   yes,cygwin* | yes,mingw* | yes,pw32*)
13483     library_names_spec='$libname.dll.a'
13484     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13485     postinstall_cmds='base_file=`basename \${file}`~
13486       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13487       dldir=$destdir/`dirname \$dlpath`~
13488       test -d \$dldir || mkdir -p \$dldir~
13489       $install_prog $dir/$dlname \$dldir/$dlname'
13490     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13491       dlpath=$dir/\$dldll~
13492        $rm \$dlpath'
13493     shlibpath_overrides_runpath=yes
13494
13495     case $host_os in
13496     cygwin*)
13497       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13498       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13499       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13500       ;;
13501     mingw*)
13502       # MinGW DLLs use traditional 'lib' prefix
13503       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13504       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13505       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13506         # It is most probably a Windows format PATH printed by
13507         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13508         # path with ; separators, and with drive letters. We can handle the
13509         # drive letters (cygwin fileutils understands them), so leave them,
13510         # especially as we might pass files found there to a mingw objdump,
13511         # which wouldn't understand a cygwinified path. Ahh.
13512         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13513       else
13514         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13515       fi
13516       ;;
13517     pw32*)
13518       # pw32 DLLs use 'pw' prefix rather than 'lib'
13519       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13520       ;;
13521     esac
13522     ;;
13523
13524   *)
13525     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13526     ;;
13527   esac
13528   dynamic_linker='Win32 ld.exe'
13529   # FIXME: first we should search . and the directory the executable is in
13530   shlibpath_var=PATH
13531   ;;
13532
13533 darwin* | rhapsody*)
13534   dynamic_linker="$host_os dyld"
13535   version_type=darwin
13536   need_lib_prefix=no
13537   need_version=no
13538   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13539   soname_spec='${libname}${release}${major}$shared_ext'
13540   shlibpath_overrides_runpath=yes
13541   shlibpath_var=DYLD_LIBRARY_PATH
13542   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13543   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13544   if test "$GCC" = yes; then
13545     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"`
13546   else
13547     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13548   fi
13549   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13550   ;;
13551
13552 dgux*)
13553   version_type=linux
13554   need_lib_prefix=no
13555   need_version=no
13556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13557   soname_spec='${libname}${release}${shared_ext}$major'
13558   shlibpath_var=LD_LIBRARY_PATH
13559   ;;
13560
13561 freebsd1*)
13562   dynamic_linker=no
13563   ;;
13564
13565 kfreebsd*-gnu)
13566   version_type=linux
13567   need_lib_prefix=no
13568   need_version=no
13569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13570   soname_spec='${libname}${release}${shared_ext}$major'
13571   shlibpath_var=LD_LIBRARY_PATH
13572   shlibpath_overrides_runpath=no
13573   hardcode_into_libs=yes
13574   dynamic_linker='GNU ld.so'
13575   ;;
13576
13577 freebsd*)
13578   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13579   version_type=freebsd-$objformat
13580   case $version_type in
13581     freebsd-elf*)
13582       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13583       need_version=no
13584       need_lib_prefix=no
13585       ;;
13586     freebsd-*)
13587       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13588       need_version=yes
13589       ;;
13590   esac
13591   shlibpath_var=LD_LIBRARY_PATH
13592   case $host_os in
13593   freebsd2*)
13594     shlibpath_overrides_runpath=yes
13595     ;;
13596   freebsd3.01* | freebsdelf3.01*)
13597     shlibpath_overrides_runpath=yes
13598     hardcode_into_libs=yes
13599     ;;
13600   *) # from 3.2 on
13601     shlibpath_overrides_runpath=no
13602     hardcode_into_libs=yes
13603     ;;
13604   esac
13605   ;;
13606
13607 gnu*)
13608   version_type=linux
13609   need_lib_prefix=no
13610   need_version=no
13611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13612   soname_spec='${libname}${release}${shared_ext}$major'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   hardcode_into_libs=yes
13615   ;;
13616
13617 hpux9* | hpux10* | hpux11*)
13618   # Give a soname corresponding to the major version so that dld.sl refuses to
13619   # link against other versions.
13620   version_type=sunos
13621   need_lib_prefix=no
13622   need_version=no
13623   case "$host_cpu" in
13624   ia64*)
13625     shrext_cmds='.so'
13626     hardcode_into_libs=yes
13627     dynamic_linker="$host_os dld.so"
13628     shlibpath_var=LD_LIBRARY_PATH
13629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631     soname_spec='${libname}${release}${shared_ext}$major'
13632     if test "X$HPUX_IA64_MODE" = X32; then
13633       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13634     else
13635       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13636     fi
13637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13638     ;;
13639    hppa*64*)
13640      shrext_cmds='.sl'
13641      hardcode_into_libs=yes
13642      dynamic_linker="$host_os dld.sl"
13643      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13644      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13645      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646      soname_spec='${libname}${release}${shared_ext}$major'
13647      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13648      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13649      ;;
13650    *)
13651     shrext_cmds='.sl'
13652     dynamic_linker="$host_os dld.sl"
13653     shlibpath_var=SHLIB_PATH
13654     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656     soname_spec='${libname}${release}${shared_ext}$major'
13657     ;;
13658   esac
13659   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13660   postinstall_cmds='chmod 555 $lib'
13661   ;;
13662
13663 irix5* | irix6* | nonstopux*)
13664   case $host_os in
13665     nonstopux*) version_type=nonstopux ;;
13666     *)
13667         if test "$lt_cv_prog_gnu_ld" = yes; then
13668                 version_type=linux
13669         else
13670                 version_type=irix
13671         fi ;;
13672   esac
13673   need_lib_prefix=no
13674   need_version=no
13675   soname_spec='${libname}${release}${shared_ext}$major'
13676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13677   case $host_os in
13678   irix5* | nonstopux*)
13679     libsuff= shlibsuff=
13680     ;;
13681   *)
13682     case $LD in # libtool.m4 will add one of these switches to LD
13683     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13684       libsuff= shlibsuff= libmagic=32-bit;;
13685     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13686       libsuff=32 shlibsuff=N32 libmagic=N32;;
13687     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13688       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13689     *) libsuff= shlibsuff= libmagic=never-match;;
13690     esac
13691     ;;
13692   esac
13693   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13694   shlibpath_overrides_runpath=no
13695   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13696   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13697   hardcode_into_libs=yes
13698   ;;
13699
13700 # No shared lib support for Linux oldld, aout, or coff.
13701 linux*oldld* | linux*aout* | linux*coff*)
13702   dynamic_linker=no
13703   ;;
13704
13705 # This must be Linux ELF.
13706 linux*)
13707   version_type=linux
13708   need_lib_prefix=no
13709   need_version=no
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711   soname_spec='${libname}${release}${shared_ext}$major'
13712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   shlibpath_overrides_runpath=no
13715   # This implies no fast_install, which is unacceptable.
13716   # Some rework will be needed to allow for fast_install
13717   # before this can be enabled.
13718   hardcode_into_libs=yes
13719
13720   # Append ld.so.conf contents to the search path
13721   if test -f /etc/ld.so.conf; then
13722     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13723     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13724   fi
13725
13726   # We used to test for /lib/ld.so.1 and disable shared libraries on
13727   # powerpc, because MkLinux only supported shared libraries with the
13728   # GNU dynamic linker.  Since this was broken with cross compilers,
13729   # most powerpc-linux boxes support dynamic linking these days and
13730   # people can always --disable-shared, the test was removed, and we
13731   # assume the GNU/Linux dynamic linker is in use.
13732   dynamic_linker='GNU/Linux ld.so'
13733   ;;
13734
13735 knetbsd*-gnu)
13736   version_type=linux
13737   need_lib_prefix=no
13738   need_version=no
13739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13740   soname_spec='${libname}${release}${shared_ext}$major'
13741   shlibpath_var=LD_LIBRARY_PATH
13742   shlibpath_overrides_runpath=no
13743   hardcode_into_libs=yes
13744   dynamic_linker='GNU ld.so'
13745   ;;
13746
13747 netbsd*)
13748   version_type=sunos
13749   need_lib_prefix=no
13750   need_version=no
13751   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13753     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13754     dynamic_linker='NetBSD (a.out) ld.so'
13755   else
13756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13757     soname_spec='${libname}${release}${shared_ext}$major'
13758     dynamic_linker='NetBSD ld.elf_so'
13759   fi
13760   shlibpath_var=LD_LIBRARY_PATH
13761   shlibpath_overrides_runpath=yes
13762   hardcode_into_libs=yes
13763   ;;
13764
13765 newsos6)
13766   version_type=linux
13767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768   shlibpath_var=LD_LIBRARY_PATH
13769   shlibpath_overrides_runpath=yes
13770   ;;
13771
13772 nto-qnx*)
13773   version_type=linux
13774   need_lib_prefix=no
13775   need_version=no
13776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777   soname_spec='${libname}${release}${shared_ext}$major'
13778   shlibpath_var=LD_LIBRARY_PATH
13779   shlibpath_overrides_runpath=yes
13780   ;;
13781
13782 openbsd*)
13783   version_type=sunos
13784   need_lib_prefix=no
13785   need_version=no
13786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13787   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13788   shlibpath_var=LD_LIBRARY_PATH
13789   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13790     case $host_os in
13791       openbsd2.[89] | openbsd2.[89].*)
13792         shlibpath_overrides_runpath=no
13793         ;;
13794       *)
13795         shlibpath_overrides_runpath=yes
13796         ;;
13797       esac
13798   else
13799     shlibpath_overrides_runpath=yes
13800   fi
13801   ;;
13802
13803 os2*)
13804   libname_spec='$name'
13805   shrext_cmds=".dll"
13806   need_lib_prefix=no
13807   library_names_spec='$libname${shared_ext} $libname.a'
13808   dynamic_linker='OS/2 ld.exe'
13809   shlibpath_var=LIBPATH
13810   ;;
13811
13812 osf3* | osf4* | osf5*)
13813   version_type=osf
13814   need_lib_prefix=no
13815   need_version=no
13816   soname_spec='${libname}${release}${shared_ext}$major'
13817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818   shlibpath_var=LD_LIBRARY_PATH
13819   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13820   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13821   ;;
13822
13823 sco3.2v5*)
13824   version_type=osf
13825   soname_spec='${libname}${release}${shared_ext}$major'
13826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827   shlibpath_var=LD_LIBRARY_PATH
13828   ;;
13829
13830 solaris*)
13831   version_type=linux
13832   need_lib_prefix=no
13833   need_version=no
13834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835   soname_spec='${libname}${release}${shared_ext}$major'
13836   shlibpath_var=LD_LIBRARY_PATH
13837   shlibpath_overrides_runpath=yes
13838   hardcode_into_libs=yes
13839   # ldd complains unless libraries are executable
13840   postinstall_cmds='chmod +x $lib'
13841   ;;
13842
13843 sunos4*)
13844   version_type=sunos
13845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13846   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13847   shlibpath_var=LD_LIBRARY_PATH
13848   shlibpath_overrides_runpath=yes
13849   if test "$with_gnu_ld" = yes; then
13850     need_lib_prefix=no
13851   fi
13852   need_version=yes
13853   ;;
13854
13855 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13856   version_type=linux
13857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858   soname_spec='${libname}${release}${shared_ext}$major'
13859   shlibpath_var=LD_LIBRARY_PATH
13860   case $host_vendor in
13861     sni)
13862       shlibpath_overrides_runpath=no
13863       need_lib_prefix=no
13864       export_dynamic_flag_spec='${wl}-Blargedynsym'
13865       runpath_var=LD_RUN_PATH
13866       ;;
13867     siemens)
13868       need_lib_prefix=no
13869       ;;
13870     motorola)
13871       need_lib_prefix=no
13872       need_version=no
13873       shlibpath_overrides_runpath=no
13874       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13875       ;;
13876   esac
13877   ;;
13878
13879 sysv4*MP*)
13880   if test -d /usr/nec ;then
13881     version_type=linux
13882     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13883     soname_spec='$libname${shared_ext}.$major'
13884     shlibpath_var=LD_LIBRARY_PATH
13885   fi
13886   ;;
13887
13888 uts4*)
13889   version_type=linux
13890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891   soname_spec='${libname}${release}${shared_ext}$major'
13892   shlibpath_var=LD_LIBRARY_PATH
13893   ;;
13894
13895 *)
13896   dynamic_linker=no
13897   ;;
13898 esac
13899 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13900 echo "${ECHO_T}$dynamic_linker" >&6
13901 test "$dynamic_linker" = no && can_build_shared=no
13902
13903 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13904 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13905 hardcode_action=
13906 if test -n "$hardcode_libdir_flag_spec" || \
13907    test -n "$runpath_var" || \
13908    test "X$hardcode_automatic" = "Xyes" ; then
13909
13910   # We can hardcode non-existant directories.
13911   if test "$hardcode_direct" != no &&
13912      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13913      # have to relink, otherwise we might link with an installed library
13914      # when we should be linking with a yet-to-be-installed one
13915      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13916      test "$hardcode_minus_L" != no; then
13917     # Linking always hardcodes the temporary library directory.
13918     hardcode_action=relink
13919   else
13920     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13921     hardcode_action=immediate
13922   fi
13923 else
13924   # We cannot hardcode anything, or else we can only hardcode existing
13925   # directories.
13926   hardcode_action=unsupported
13927 fi
13928 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13929 echo "${ECHO_T}$hardcode_action" >&6
13930
13931 if test "$hardcode_action" = relink; then
13932   # Fast installation is not supported
13933   enable_fast_install=no
13934 elif test "$shlibpath_overrides_runpath" = yes ||
13935      test "$enable_shared" = no; then
13936   # Fast installation is not necessary
13937   enable_fast_install=needless
13938 fi
13939
13940 striplib=
13941 old_striplib=
13942 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13943 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13944 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13945   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13946   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13947   echo "$as_me:$LINENO: result: yes" >&5
13948 echo "${ECHO_T}yes" >&6
13949 else
13950 # FIXME - insert some real tests, host_os isn't really good enough
13951   case $host_os in
13952    darwin*)
13953        if test -n "$STRIP" ; then
13954          striplib="$STRIP -x"
13955          echo "$as_me:$LINENO: result: yes" >&5
13956 echo "${ECHO_T}yes" >&6
13957        else
13958   echo "$as_me:$LINENO: result: no" >&5
13959 echo "${ECHO_T}no" >&6
13960 fi
13961        ;;
13962    *)
13963   echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6
13965     ;;
13966   esac
13967 fi
13968
13969 if test "x$enable_dlopen" != xyes; then
13970   enable_dlopen=unknown
13971   enable_dlopen_self=unknown
13972   enable_dlopen_self_static=unknown
13973 else
13974   lt_cv_dlopen=no
13975   lt_cv_dlopen_libs=
13976
13977   case $host_os in
13978   beos*)
13979     lt_cv_dlopen="load_add_on"
13980     lt_cv_dlopen_libs=
13981     lt_cv_dlopen_self=yes
13982     ;;
13983
13984   mingw* | pw32*)
13985     lt_cv_dlopen="LoadLibrary"
13986     lt_cv_dlopen_libs=
13987    ;;
13988
13989   cygwin*)
13990     lt_cv_dlopen="dlopen"
13991     lt_cv_dlopen_libs=
13992    ;;
13993
13994   darwin*)
13995   # if libdl is installed we need to link against it
13996     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999   echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001   ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-ldl  $LIBS"
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009
14010 /* Override any gcc2 internal prototype to avoid an error.  */
14011 #ifdef __cplusplus
14012 extern "C"
14013 #endif
14014 /* We use char because int might match the return type of a gcc2
14015    builtin and then its argument prototype would still apply.  */
14016 char dlopen ();
14017 int
14018 main ()
14019 {
14020 dlopen ();
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027   (eval $ac_link) 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -z "$ac_c_werror_flag"
14035                          || test ! -s conftest.err'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest$ac_exeext'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_cv_lib_dl_dlopen=yes
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_lib_dl_dlopen=no
14053 fi
14054 rm -f conftest.err conftest.$ac_objext \
14055       conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14057 fi
14058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060 if test $ac_cv_lib_dl_dlopen = yes; then
14061   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14062 else
14063
14064     lt_cv_dlopen="dyld"
14065     lt_cv_dlopen_libs=
14066     lt_cv_dlopen_self=yes
14067
14068 fi
14069
14070    ;;
14071
14072   *)
14073     echo "$as_me:$LINENO: checking for shl_load" >&5
14074 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14075 if test "${ac_cv_func_shl_load+set}" = set; then
14076   echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078   cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14086 #define shl_load innocuous_shl_load
14087
14088 /* System header to define __stub macros and hopefully few prototypes,
14089     which can conflict with char shl_load (); below.
14090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14091     <limits.h> exists even on freestanding compilers.  */
14092
14093 #ifdef __STDC__
14094 # include <limits.h>
14095 #else
14096 # include <assert.h>
14097 #endif
14098
14099 #undef shl_load
14100
14101 /* Override any gcc2 internal prototype to avoid an error.  */
14102 #ifdef __cplusplus
14103 extern "C"
14104 {
14105 #endif
14106 /* We use char because int might match the return type of a gcc2
14107    builtin and then its argument prototype would still apply.  */
14108 char shl_load ();
14109 /* The GNU C library defines this for functions which it implements
14110     to always fail with ENOSYS.  Some functions are actually named
14111     something starting with __ and the normal name is an alias.  */
14112 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14113 choke me
14114 #else
14115 char (*f) () = shl_load;
14116 #endif
14117 #ifdef __cplusplus
14118 }
14119 #endif
14120
14121 int
14122 main ()
14123 {
14124 return f != shl_load;
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131   (eval $ac_link) 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag"
14139                          || test ! -s conftest.err'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; } &&
14145          { ac_try='test -s conftest$ac_exeext'
14146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147   (eval $ac_try) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; }; then
14151   ac_cv_func_shl_load=yes
14152 else
14153   echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_cv_func_shl_load=no
14157 fi
14158 rm -f conftest.err conftest.$ac_objext \
14159       conftest$ac_exeext conftest.$ac_ext
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14162 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14163 if test $ac_cv_func_shl_load = yes; then
14164   lt_cv_dlopen="shl_load"
14165 else
14166   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14167 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   ac_check_lib_save_LIBS=$LIBS
14172 LIBS="-ldld  $LIBS"
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179
14180 /* Override any gcc2 internal prototype to avoid an error.  */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 /* We use char because int might match the return type of a gcc2
14185    builtin and then its argument prototype would still apply.  */
14186 char shl_load ();
14187 int
14188 main ()
14189 {
14190 shl_load ();
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14197   (eval $ac_link) 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } &&
14204          { ac_try='test -z "$ac_c_werror_flag"
14205                          || test ! -s conftest.err'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest$ac_exeext'
14212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213   (eval $ac_try) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217   ac_cv_lib_dld_shl_load=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_cv_lib_dld_shl_load=no
14223 fi
14224 rm -f conftest.err conftest.$ac_objext \
14225       conftest$ac_exeext conftest.$ac_ext
14226 LIBS=$ac_check_lib_save_LIBS
14227 fi
14228 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14229 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14230 if test $ac_cv_lib_dld_shl_load = yes; then
14231   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14232 else
14233   echo "$as_me:$LINENO: checking for dlopen" >&5
14234 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14235 if test "${ac_cv_func_dlopen+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14246 #define dlopen innocuous_dlopen
14247
14248 /* System header to define __stub macros and hopefully few prototypes,
14249     which can conflict with char dlopen (); below.
14250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251     <limits.h> exists even on freestanding compilers.  */
14252
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14258
14259 #undef dlopen
14260
14261 /* Override any gcc2 internal prototype to avoid an error.  */
14262 #ifdef __cplusplus
14263 extern "C"
14264 {
14265 #endif
14266 /* We use char because int might match the return type of a gcc2
14267    builtin and then its argument prototype would still apply.  */
14268 char dlopen ();
14269 /* The GNU C library defines this for functions which it implements
14270     to always fail with ENOSYS.  Some functions are actually named
14271     something starting with __ and the normal name is an alias.  */
14272 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14273 choke me
14274 #else
14275 char (*f) () = dlopen;
14276 #endif
14277 #ifdef __cplusplus
14278 }
14279 #endif
14280
14281 int
14282 main ()
14283 {
14284 return f != dlopen;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14291   (eval $ac_link) 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -z "$ac_c_werror_flag"
14299                          || test ! -s conftest.err'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest$ac_exeext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_cv_func_dlopen=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_func_dlopen=no
14317 fi
14318 rm -f conftest.err conftest.$ac_objext \
14319       conftest$ac_exeext conftest.$ac_ext
14320 fi
14321 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14322 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14323 if test $ac_cv_func_dlopen = yes; then
14324   lt_cv_dlopen="dlopen"
14325 else
14326   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14327 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331   ac_check_lib_save_LIBS=$LIBS
14332 LIBS="-ldl  $LIBS"
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339
14340 /* Override any gcc2 internal prototype to avoid an error.  */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 /* We use char because int might match the return type of a gcc2
14345    builtin and then its argument prototype would still apply.  */
14346 char dlopen ();
14347 int
14348 main ()
14349 {
14350 dlopen ();
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357   (eval $ac_link) 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } &&
14364          { ac_try='test -z "$ac_c_werror_flag"
14365                          || test ! -s conftest.err'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest$ac_exeext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_cv_lib_dl_dlopen=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_cv_lib_dl_dlopen=no
14383 fi
14384 rm -f conftest.err conftest.$ac_objext \
14385       conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14387 fi
14388 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14390 if test $ac_cv_lib_dl_dlopen = yes; then
14391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14392 else
14393   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14394 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14395 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   ac_check_lib_save_LIBS=$LIBS
14399 LIBS="-lsvld  $LIBS"
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h.  */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h.  */
14406
14407 /* Override any gcc2 internal prototype to avoid an error.  */
14408 #ifdef __cplusplus
14409 extern "C"
14410 #endif
14411 /* We use char because int might match the return type of a gcc2
14412    builtin and then its argument prototype would still apply.  */
14413 char dlopen ();
14414 int
14415 main ()
14416 {
14417 dlopen ();
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424   (eval $ac_link) 2>conftest.er1
14425   ac_status=$?
14426   grep -v '^ *+' conftest.er1 >conftest.err
14427   rm -f conftest.er1
14428   cat conftest.err >&5
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -z "$ac_c_werror_flag"
14432                          || test ! -s conftest.err'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; } &&
14438          { ac_try='test -s conftest$ac_exeext'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444   ac_cv_lib_svld_dlopen=yes
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 ac_cv_lib_svld_dlopen=no
14450 fi
14451 rm -f conftest.err conftest.$ac_objext \
14452       conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14454 fi
14455 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14456 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14457 if test $ac_cv_lib_svld_dlopen = yes; then
14458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14459 else
14460   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14461 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14462 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14463   echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465   ac_check_lib_save_LIBS=$LIBS
14466 LIBS="-ldld  $LIBS"
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473
14474 /* Override any gcc2 internal prototype to avoid an error.  */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 /* We use char because int might match the return type of a gcc2
14479    builtin and then its argument prototype would still apply.  */
14480 char dld_link ();
14481 int
14482 main ()
14483 {
14484 dld_link ();
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491   (eval $ac_link) 2>conftest.er1
14492   ac_status=$?
14493   grep -v '^ *+' conftest.er1 >conftest.err
14494   rm -f conftest.er1
14495   cat conftest.err >&5
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } &&
14498          { ac_try='test -z "$ac_c_werror_flag"
14499                          || test ! -s conftest.err'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; } &&
14505          { ac_try='test -s conftest$ac_exeext'
14506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507   (eval $ac_try) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511   ac_cv_lib_dld_dld_link=yes
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_cv_lib_dld_dld_link=no
14517 fi
14518 rm -f conftest.err conftest.$ac_objext \
14519       conftest$ac_exeext conftest.$ac_ext
14520 LIBS=$ac_check_lib_save_LIBS
14521 fi
14522 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14523 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14524 if test $ac_cv_lib_dld_dld_link = yes; then
14525   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14526 fi
14527
14528
14529 fi
14530
14531
14532 fi
14533
14534
14535 fi
14536
14537
14538 fi
14539
14540
14541 fi
14542
14543     ;;
14544   esac
14545
14546   if test "x$lt_cv_dlopen" != xno; then
14547     enable_dlopen=yes
14548   else
14549     enable_dlopen=no
14550   fi
14551
14552   case $lt_cv_dlopen in
14553   dlopen)
14554     save_CPPFLAGS="$CPPFLAGS"
14555     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14556
14557     save_LDFLAGS="$LDFLAGS"
14558     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14559
14560     save_LIBS="$LIBS"
14561     LIBS="$lt_cv_dlopen_libs $LIBS"
14562
14563     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14564 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14565 if test "${lt_cv_dlopen_self+set}" = set; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568           if test "$cross_compiling" = yes; then :
14569   lt_cv_dlopen_self=cross
14570 else
14571   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14572   lt_status=$lt_dlunknown
14573   cat > conftest.$ac_ext <<EOF
14574 #line 14574 "configure"
14575 #include "confdefs.h"
14576
14577 #if HAVE_DLFCN_H
14578 #include <dlfcn.h>
14579 #endif
14580
14581 #include <stdio.h>
14582
14583 #ifdef RTLD_GLOBAL
14584 #  define LT_DLGLOBAL           RTLD_GLOBAL
14585 #else
14586 #  ifdef DL_GLOBAL
14587 #    define LT_DLGLOBAL         DL_GLOBAL
14588 #  else
14589 #    define LT_DLGLOBAL         0
14590 #  endif
14591 #endif
14592
14593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14594    find out it does not work in some platform. */
14595 #ifndef LT_DLLAZY_OR_NOW
14596 #  ifdef RTLD_LAZY
14597 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14598 #  else
14599 #    ifdef DL_LAZY
14600 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14601 #    else
14602 #      ifdef RTLD_NOW
14603 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14604 #      else
14605 #        ifdef DL_NOW
14606 #          define LT_DLLAZY_OR_NOW      DL_NOW
14607 #        else
14608 #          define LT_DLLAZY_OR_NOW      0
14609 #        endif
14610 #      endif
14611 #    endif
14612 #  endif
14613 #endif
14614
14615 #ifdef __cplusplus
14616 extern "C" void exit (int);
14617 #endif
14618
14619 void fnord() { int i=42;}
14620 int main ()
14621 {
14622   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14623   int status = $lt_dlunknown;
14624
14625   if (self)
14626     {
14627       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14628       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14629       /* dlclose (self); */
14630     }
14631
14632     exit (status);
14633 }
14634 EOF
14635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636   (eval $ac_link) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14640     (./conftest; exit; ) 2>/dev/null
14641     lt_status=$?
14642     case x$lt_status in
14643       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14644       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14645       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14646     esac
14647   else :
14648     # compilation failed
14649     lt_cv_dlopen_self=no
14650   fi
14651 fi
14652 rm -fr conftest*
14653
14654
14655 fi
14656 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14657 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14658
14659     if test "x$lt_cv_dlopen_self" = xyes; then
14660       LDFLAGS="$LDFLAGS $link_static_flag"
14661       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14662 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14663 if test "${lt_cv_dlopen_self_static+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666           if test "$cross_compiling" = yes; then :
14667   lt_cv_dlopen_self_static=cross
14668 else
14669   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14670   lt_status=$lt_dlunknown
14671   cat > conftest.$ac_ext <<EOF
14672 #line 14672 "configure"
14673 #include "confdefs.h"
14674
14675 #if HAVE_DLFCN_H
14676 #include <dlfcn.h>
14677 #endif
14678
14679 #include <stdio.h>
14680
14681 #ifdef RTLD_GLOBAL
14682 #  define LT_DLGLOBAL           RTLD_GLOBAL
14683 #else
14684 #  ifdef DL_GLOBAL
14685 #    define LT_DLGLOBAL         DL_GLOBAL
14686 #  else
14687 #    define LT_DLGLOBAL         0
14688 #  endif
14689 #endif
14690
14691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14692    find out it does not work in some platform. */
14693 #ifndef LT_DLLAZY_OR_NOW
14694 #  ifdef RTLD_LAZY
14695 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14696 #  else
14697 #    ifdef DL_LAZY
14698 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14699 #    else
14700 #      ifdef RTLD_NOW
14701 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14702 #      else
14703 #        ifdef DL_NOW
14704 #          define LT_DLLAZY_OR_NOW      DL_NOW
14705 #        else
14706 #          define LT_DLLAZY_OR_NOW      0
14707 #        endif
14708 #      endif
14709 #    endif
14710 #  endif
14711 #endif
14712
14713 #ifdef __cplusplus
14714 extern "C" void exit (int);
14715 #endif
14716
14717 void fnord() { int i=42;}
14718 int main ()
14719 {
14720   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14721   int status = $lt_dlunknown;
14722
14723   if (self)
14724     {
14725       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14726       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14727       /* dlclose (self); */
14728     }
14729
14730     exit (status);
14731 }
14732 EOF
14733   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734   (eval $ac_link) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14738     (./conftest; exit; ) 2>/dev/null
14739     lt_status=$?
14740     case x$lt_status in
14741       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14742       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14743       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14744     esac
14745   else :
14746     # compilation failed
14747     lt_cv_dlopen_self_static=no
14748   fi
14749 fi
14750 rm -fr conftest*
14751
14752
14753 fi
14754 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14755 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14756     fi
14757
14758     CPPFLAGS="$save_CPPFLAGS"
14759     LDFLAGS="$save_LDFLAGS"
14760     LIBS="$save_LIBS"
14761     ;;
14762   esac
14763
14764   case $lt_cv_dlopen_self in
14765   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14766   *) enable_dlopen_self=unknown ;;
14767   esac
14768
14769   case $lt_cv_dlopen_self_static in
14770   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14771   *) enable_dlopen_self_static=unknown ;;
14772   esac
14773 fi
14774
14775
14776 # Report which librarie types wil actually be built
14777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14780 echo "${ECHO_T}$can_build_shared" >&6
14781
14782 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14783 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14784 test "$can_build_shared" = "no" && enable_shared=no
14785
14786 # On AIX, shared libraries and static libraries use the same namespace, and
14787 # are all built from PIC.
14788 case "$host_os" in
14789 aix3*)
14790   test "$enable_shared" = yes && enable_static=no
14791   if test -n "$RANLIB"; then
14792     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14793     postinstall_cmds='$RANLIB $lib'
14794   fi
14795   ;;
14796
14797 aix4* | aix5*)
14798   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14799     test "$enable_shared" = yes && enable_static=no
14800   fi
14801     ;;
14802 esac
14803 echo "$as_me:$LINENO: result: $enable_shared" >&5
14804 echo "${ECHO_T}$enable_shared" >&6
14805
14806 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14807 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14808 # Make sure either enable_shared or enable_static is yes.
14809 test "$enable_shared" = yes || enable_static=yes
14810 echo "$as_me:$LINENO: result: $enable_static" >&5
14811 echo "${ECHO_T}$enable_static" >&6
14812
14813 # The else clause should only fire when bootstrapping the
14814 # libtool distribution, otherwise you forgot to ship ltmain.sh
14815 # with your package, and you will get complaints that there are
14816 # no rules to generate ltmain.sh.
14817 if test -f "$ltmain"; then
14818   # See if we are running on zsh, and set the options which allow our commands through
14819   # without removal of \ escapes.
14820   if test -n "${ZSH_VERSION+set}" ; then
14821     setopt NO_GLOB_SUBST
14822   fi
14823   # Now quote all the things that may contain metacharacters while being
14824   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14825   # variables and quote the copies for generation of the libtool script.
14826   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14827     SED SHELL STRIP \
14828     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14829     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14830     deplibs_check_method reload_flag reload_cmds need_locks \
14831     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14832     lt_cv_sys_global_symbol_to_c_name_address \
14833     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14834     old_postinstall_cmds old_postuninstall_cmds \
14835     compiler \
14836     CC \
14837     LD \
14838     lt_prog_compiler_wl \
14839     lt_prog_compiler_pic \
14840     lt_prog_compiler_static \
14841     lt_prog_compiler_no_builtin_flag \
14842     export_dynamic_flag_spec \
14843     thread_safe_flag_spec \
14844     whole_archive_flag_spec \
14845     enable_shared_with_static_runtimes \
14846     old_archive_cmds \
14847     old_archive_from_new_cmds \
14848     predep_objects \
14849     postdep_objects \
14850     predeps \
14851     postdeps \
14852     compiler_lib_search_path \
14853     archive_cmds \
14854     archive_expsym_cmds \
14855     postinstall_cmds \
14856     postuninstall_cmds \
14857     old_archive_from_expsyms_cmds \
14858     allow_undefined_flag \
14859     no_undefined_flag \
14860     export_symbols_cmds \
14861     hardcode_libdir_flag_spec \
14862     hardcode_libdir_flag_spec_ld \
14863     hardcode_libdir_separator \
14864     hardcode_automatic \
14865     module_cmds \
14866     module_expsym_cmds \
14867     lt_cv_prog_compiler_c_o \
14868     exclude_expsyms \
14869     include_expsyms; do
14870
14871     case $var in
14872     old_archive_cmds | \
14873     old_archive_from_new_cmds | \
14874     archive_cmds | \
14875     archive_expsym_cmds | \
14876     module_cmds | \
14877     module_expsym_cmds | \
14878     old_archive_from_expsyms_cmds | \
14879     export_symbols_cmds | \
14880     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14881     postinstall_cmds | postuninstall_cmds | \
14882     old_postinstall_cmds | old_postuninstall_cmds | \
14883     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14884       # Double-quote double-evaled strings.
14885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14886       ;;
14887     *)
14888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14889       ;;
14890     esac
14891   done
14892
14893   case $lt_echo in
14894   *'\$0 --fallback-echo"')
14895     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14896     ;;
14897   esac
14898
14899 cfgfile="${ofile}T"
14900   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14901   $rm -f "$cfgfile"
14902   { echo "$as_me:$LINENO: creating $ofile" >&5
14903 echo "$as_me: creating $ofile" >&6;}
14904
14905   cat <<__EOF__ >> "$cfgfile"
14906 #! $SHELL
14907
14908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14911 #
14912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14913 # Free Software Foundation, Inc.
14914 #
14915 # This file is part of GNU Libtool:
14916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14917 #
14918 # This program is free software; you can redistribute it and/or modify
14919 # it under the terms of the GNU General Public License as published by
14920 # the Free Software Foundation; either version 2 of the License, or
14921 # (at your option) any later version.
14922 #
14923 # This program is distributed in the hope that it will be useful, but
14924 # WITHOUT ANY WARRANTY; without even the implied warranty of
14925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14926 # General Public License for more details.
14927 #
14928 # You should have received a copy of the GNU General Public License
14929 # along with this program; if not, write to the Free Software
14930 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14931 #
14932 # As a special exception to the GNU General Public License, if you
14933 # distribute this file as part of a program that contains a
14934 # configuration script generated by Autoconf, you may include it under
14935 # the same distribution terms that you use for the rest of that program.
14936
14937 # A sed program that does not truncate output.
14938 SED=$lt_SED
14939
14940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14941 Xsed="$SED -e s/^X//"
14942
14943 # The HP-UX ksh and POSIX shell print the target directory to stdout
14944 # if CDPATH is set.
14945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14946
14947 # The names of the tagged configurations supported by this script.
14948 available_tags=
14949
14950 # ### BEGIN LIBTOOL CONFIG
14951
14952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14953
14954 # Shell to use when invoking shell scripts.
14955 SHELL=$lt_SHELL
14956
14957 # Whether or not to build shared libraries.
14958 build_libtool_libs=$enable_shared
14959
14960 # Whether or not to build static libraries.
14961 build_old_libs=$enable_static
14962
14963 # Whether or not to add -lc for building shared libraries.
14964 build_libtool_need_lc=$archive_cmds_need_lc
14965
14966 # Whether or not to disallow shared libs when runtime libs are static
14967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14968
14969 # Whether or not to optimize for fast installation.
14970 fast_install=$enable_fast_install
14971
14972 # The host system.
14973 host_alias=$host_alias
14974 host=$host
14975
14976 # An echo program that does not interpret backslashes.
14977 echo=$lt_echo
14978
14979 # The archiver.
14980 AR=$lt_AR
14981 AR_FLAGS=$lt_AR_FLAGS
14982
14983 # A C compiler.
14984 LTCC=$lt_LTCC
14985
14986 # A language-specific compiler.
14987 CC=$lt_compiler
14988
14989 # Is the compiler the GNU C compiler?
14990 with_gcc=$GCC
14991
14992 # An ERE matcher.
14993 EGREP=$lt_EGREP
14994
14995 # The linker used to build libraries.
14996 LD=$lt_LD
14997
14998 # Whether we need hard or soft links.
14999 LN_S=$lt_LN_S
15000
15001 # A BSD-compatible nm program.
15002 NM=$lt_NM
15003
15004 # A symbol stripping program
15005 STRIP=$lt_STRIP
15006
15007 # Used to examine libraries when file_magic_cmd begins "file"
15008 MAGIC_CMD=$MAGIC_CMD
15009
15010 # Used on cygwin: DLL creation program.
15011 DLLTOOL="$DLLTOOL"
15012
15013 # Used on cygwin: object dumper.
15014 OBJDUMP="$OBJDUMP"
15015
15016 # Used on cygwin: assembler.
15017 AS="$AS"
15018
15019 # The name of the directory that contains temporary libtool files.
15020 objdir=$objdir
15021
15022 # How to create reloadable object files.
15023 reload_flag=$lt_reload_flag
15024 reload_cmds=$lt_reload_cmds
15025
15026 # How to pass a linker flag through the compiler.
15027 wl=$lt_lt_prog_compiler_wl
15028
15029 # Object file suffix (normally "o").
15030 objext="$ac_objext"
15031
15032 # Old archive suffix (normally "a").
15033 libext="$libext"
15034
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds='$shrext_cmds'
15037
15038 # Executable file suffix (normally "").
15039 exeext="$exeext"
15040
15041 # Additional compiler flags for building library objects.
15042 pic_flag=$lt_lt_prog_compiler_pic
15043 pic_mode=$pic_mode
15044
15045 # What is the maximum length of a command?
15046 max_cmd_len=$lt_cv_sys_max_cmd_len
15047
15048 # Does compiler simultaneously support -c and -o options?
15049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15050
15051 # Must we lock files when doing compilation ?
15052 need_locks=$lt_need_locks
15053
15054 # Do we need the lib prefix for modules?
15055 need_lib_prefix=$need_lib_prefix
15056
15057 # Do we need a version for libraries?
15058 need_version=$need_version
15059
15060 # Whether dlopen is supported.
15061 dlopen_support=$enable_dlopen
15062
15063 # Whether dlopen of programs is supported.
15064 dlopen_self=$enable_dlopen_self
15065
15066 # Whether dlopen of statically linked programs is supported.
15067 dlopen_self_static=$enable_dlopen_self_static
15068
15069 # Compiler flag to prevent dynamic linking.
15070 link_static_flag=$lt_lt_prog_compiler_static
15071
15072 # Compiler flag to turn off builtin functions.
15073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15074
15075 # Compiler flag to allow reflexive dlopens.
15076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15077
15078 # Compiler flag to generate shared objects directly from archives.
15079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15080
15081 # Compiler flag to generate thread-safe objects.
15082 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15083
15084 # Library versioning type.
15085 version_type=$version_type
15086
15087 # Format of library name prefix.
15088 libname_spec=$lt_libname_spec
15089
15090 # List of archive names.  First name is the real one, the rest are links.
15091 # The last name is the one that the linker finds with -lNAME.
15092 library_names_spec=$lt_library_names_spec
15093
15094 # The coded name of the library, if different from the real name.
15095 soname_spec=$lt_soname_spec
15096
15097 # Commands used to build and install an old-style archive.
15098 RANLIB=$lt_RANLIB
15099 old_archive_cmds=$lt_old_archive_cmds
15100 old_postinstall_cmds=$lt_old_postinstall_cmds
15101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15102
15103 # Create an old-style archive from a shared archive.
15104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15105
15106 # Create a temporary old-style archive to link instead of a shared archive.
15107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15108
15109 # Commands used to build and install a shared archive.
15110 archive_cmds=$lt_archive_cmds
15111 archive_expsym_cmds=$lt_archive_expsym_cmds
15112 postinstall_cmds=$lt_postinstall_cmds
15113 postuninstall_cmds=$lt_postuninstall_cmds
15114
15115 # Commands used to build a loadable module (assumed same as above if empty)
15116 module_cmds=$lt_module_cmds
15117 module_expsym_cmds=$lt_module_expsym_cmds
15118
15119 # Commands to strip libraries.
15120 old_striplib=$lt_old_striplib
15121 striplib=$lt_striplib
15122
15123 # Dependencies to place before the objects being linked to create a
15124 # shared library.
15125 predep_objects=$lt_predep_objects
15126
15127 # Dependencies to place after the objects being linked to create a
15128 # shared library.
15129 postdep_objects=$lt_postdep_objects
15130
15131 # Dependencies to place before the objects being linked to create a
15132 # shared library.
15133 predeps=$lt_predeps
15134
15135 # Dependencies to place after the objects being linked to create a
15136 # shared library.
15137 postdeps=$lt_postdeps
15138
15139 # The library search path used internally by the compiler when linking
15140 # a shared library.
15141 compiler_lib_search_path=$lt_compiler_lib_search_path
15142
15143 # Method to check whether dependent libraries are shared objects.
15144 deplibs_check_method=$lt_deplibs_check_method
15145
15146 # Command to use when deplibs_check_method == file_magic.
15147 file_magic_cmd=$lt_file_magic_cmd
15148
15149 # Flag that allows shared libraries with undefined symbols to be built.
15150 allow_undefined_flag=$lt_allow_undefined_flag
15151
15152 # Flag that forces no undefined symbols.
15153 no_undefined_flag=$lt_no_undefined_flag
15154
15155 # Commands used to finish a libtool library installation in a directory.
15156 finish_cmds=$lt_finish_cmds
15157
15158 # Same as above, but a single script fragment to be evaled but not shown.
15159 finish_eval=$lt_finish_eval
15160
15161 # Take the output of nm and produce a listing of raw symbols and C names.
15162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15163
15164 # Transform the output of nm in a proper C declaration
15165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15166
15167 # Transform the output of nm in a C name address pair
15168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15169
15170 # This is the shared library runtime path variable.
15171 runpath_var=$runpath_var
15172
15173 # This is the shared library path variable.
15174 shlibpath_var=$shlibpath_var
15175
15176 # Is shlibpath searched before the hard-coded library search path?
15177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15178
15179 # How to hardcode a shared library path into an executable.
15180 hardcode_action=$hardcode_action
15181
15182 # Whether we should hardcode library paths into libraries.
15183 hardcode_into_libs=$hardcode_into_libs
15184
15185 # Flag to hardcode \$libdir into a binary during linking.
15186 # This must work even if \$libdir does not exist.
15187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15188
15189 # If ld is used when linking, flag to hardcode \$libdir into
15190 # a binary during linking. This must work even if \$libdir does
15191 # not exist.
15192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15193
15194 # Whether we need a single -rpath flag with a separated argument.
15195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15196
15197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15198 # resulting binary.
15199 hardcode_direct=$hardcode_direct
15200
15201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15202 # resulting binary.
15203 hardcode_minus_L=$hardcode_minus_L
15204
15205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15206 # the resulting binary.
15207 hardcode_shlibpath_var=$hardcode_shlibpath_var
15208
15209 # Set to yes if building a shared library automatically hardcodes DIR into the library
15210 # and all subsequent libraries and executables linked against it.
15211 hardcode_automatic=$hardcode_automatic
15212
15213 # Variables whose values should be saved in libtool wrapper scripts and
15214 # restored at relink time.
15215 variables_saved_for_relink="$variables_saved_for_relink"
15216
15217 # Whether libtool must link a program against all its dependency libraries.
15218 link_all_deplibs=$link_all_deplibs
15219
15220 # Compile-time system search path for libraries
15221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15222
15223 # Run-time system search path for libraries
15224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15225
15226 # Fix the shell variable \$srcfile for the compiler.
15227 fix_srcfile_path="$fix_srcfile_path"
15228
15229 # Set to yes if exported symbols are required.
15230 always_export_symbols=$always_export_symbols
15231
15232 # The commands to list exported symbols.
15233 export_symbols_cmds=$lt_export_symbols_cmds
15234
15235 # The commands to extract the exported symbol list from a shared archive.
15236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15237
15238 # Symbols that should not be listed in the preloaded symbols.
15239 exclude_expsyms=$lt_exclude_expsyms
15240
15241 # Symbols that must always be exported.
15242 include_expsyms=$lt_include_expsyms
15243
15244 # ### END LIBTOOL CONFIG
15245
15246 __EOF__
15247
15248
15249   case $host_os in
15250   aix3*)
15251     cat <<\EOF >> "$cfgfile"
15252
15253 # AIX sometimes has problems with the GCC collect2 program.  For some
15254 # reason, if we set the COLLECT_NAMES environment variable, the problems
15255 # vanish in a puff of smoke.
15256 if test "X${COLLECT_NAMES+set}" != Xset; then
15257   COLLECT_NAMES=
15258   export COLLECT_NAMES
15259 fi
15260 EOF
15261     ;;
15262   esac
15263
15264   # We use sed instead of cat because bash on DJGPP gets confused if
15265   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15266   # text mode, it properly converts lines to CR/LF.  This bash problem
15267   # is reportedly fixed, but why not run on old versions too?
15268   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15269
15270   mv -f "$cfgfile" "$ofile" || \
15271     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15272   chmod +x "$ofile"
15273
15274 else
15275   # If there is no Makefile yet, we rely on a make rule to execute
15276   # `config.status --recheck' to rerun these tests and create the
15277   # libtool script then.
15278   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15279   if test -f "$ltmain_in"; then
15280     test -f Makefile && make "$ltmain"
15281   fi
15282 fi
15283
15284
15285 ac_ext=c
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290
15291 CC="$lt_save_CC"
15292
15293
15294 # Check whether --with-tags or --without-tags was given.
15295 if test "${with_tags+set}" = set; then
15296   withval="$with_tags"
15297   tagnames="$withval"
15298 fi;
15299
15300 if test -f "$ltmain" && test -n "$tagnames"; then
15301   if test ! -f "${ofile}"; then
15302     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15303 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15304   fi
15305
15306   if test -z "$LTCC"; then
15307     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15308     if test -z "$LTCC"; then
15309       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15310 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15311     else
15312       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15313 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15314     fi
15315   fi
15316
15317   # Extract list of available tagged configurations in $ofile.
15318   # Note that this assumes the entire list is on one line.
15319   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15320
15321   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15322   for tagname in $tagnames; do
15323     IFS="$lt_save_ifs"
15324     # Check whether tagname contains only valid characters
15325     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15326     "") ;;
15327     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15328 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15329    { (exit 1); exit 1; }; }
15330         ;;
15331     esac
15332
15333     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15334     then
15335       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15336 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15337    { (exit 1); exit 1; }; }
15338     fi
15339
15340     # Update the list of available tags.
15341     if test -n "$tagname"; then
15342       echo appending configuration tag "$tagname" to $ofile
15343
15344       case $tagname in
15345       CXX)
15346         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15347             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15348             (test "X$CXX" != "Xg++"))) ; then
15349           ac_ext=cc
15350 ac_cpp='$CXXCPP $CPPFLAGS'
15351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15354
15355
15356
15357
15358 archive_cmds_need_lc_CXX=no
15359 allow_undefined_flag_CXX=
15360 always_export_symbols_CXX=no
15361 archive_expsym_cmds_CXX=
15362 export_dynamic_flag_spec_CXX=
15363 hardcode_direct_CXX=no
15364 hardcode_libdir_flag_spec_CXX=
15365 hardcode_libdir_flag_spec_ld_CXX=
15366 hardcode_libdir_separator_CXX=
15367 hardcode_minus_L_CXX=no
15368 hardcode_automatic_CXX=no
15369 module_cmds_CXX=
15370 module_expsym_cmds_CXX=
15371 link_all_deplibs_CXX=unknown
15372 old_archive_cmds_CXX=$old_archive_cmds
15373 no_undefined_flag_CXX=
15374 whole_archive_flag_spec_CXX=
15375 enable_shared_with_static_runtimes_CXX=no
15376
15377 # Dependencies to place before and after the object being linked:
15378 predep_objects_CXX=
15379 postdep_objects_CXX=
15380 predeps_CXX=
15381 postdeps_CXX=
15382 compiler_lib_search_path_CXX=
15383
15384 # Source file extension for C++ test sources.
15385 ac_ext=cc
15386
15387 # Object file extension for compiled C++ test sources.
15388 objext=o
15389 objext_CXX=$objext
15390
15391 # Code to be used in simple compile tests
15392 lt_simple_compile_test_code="int some_variable = 0;\n"
15393
15394 # Code to be used in simple link tests
15395 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15396
15397 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15398
15399 # If no C compiler was specified, use CC.
15400 LTCC=${LTCC-"$CC"}
15401
15402 # Allow CC to be a program name with arguments.
15403 compiler=$CC
15404
15405
15406 # Allow CC to be a program name with arguments.
15407 lt_save_CC=$CC
15408 lt_save_LD=$LD
15409 lt_save_GCC=$GCC
15410 GCC=$GXX
15411 lt_save_with_gnu_ld=$with_gnu_ld
15412 lt_save_path_LD=$lt_cv_path_LD
15413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15414   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15415 else
15416   unset lt_cv_prog_gnu_ld
15417 fi
15418 if test -n "${lt_cv_path_LDCXX+set}"; then
15419   lt_cv_path_LD=$lt_cv_path_LDCXX
15420 else
15421   unset lt_cv_path_LD
15422 fi
15423 test -z "${LDCXX+set}" || LD=$LDCXX
15424 CC=${CXX-"c++"}
15425 compiler=$CC
15426 compiler_CXX=$CC
15427 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15428
15429 # We don't want -fno-exception wen compiling C++ code, so set the
15430 # no_builtin_flag separately
15431 if test "$GXX" = yes; then
15432   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15433 else
15434   lt_prog_compiler_no_builtin_flag_CXX=
15435 fi
15436
15437 if test "$GXX" = yes; then
15438   # Set up default GNU C++ configuration
15439
15440
15441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15442 if test "${with_gnu_ld+set}" = set; then
15443   withval="$with_gnu_ld"
15444   test "$withval" = no || with_gnu_ld=yes
15445 else
15446   with_gnu_ld=no
15447 fi;
15448 ac_prog=ld
15449 if test "$GCC" = yes; then
15450   # Check if gcc -print-prog-name=ld gives a path.
15451   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15452 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15453   case $host in
15454   *-*-mingw*)
15455     # gcc leaves a trailing carriage return which upsets mingw
15456     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15457   *)
15458     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15459   esac
15460   case $ac_prog in
15461     # Accept absolute paths.
15462     [\\/]* | ?:[\\/]*)
15463       re_direlt='/[^/][^/]*/\.\./'
15464       # Canonicalize the pathname of ld
15465       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15466       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15467         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15468       done
15469       test -z "$LD" && LD="$ac_prog"
15470       ;;
15471   "")
15472     # If it fails, then pretend we aren't using GCC.
15473     ac_prog=ld
15474     ;;
15475   *)
15476     # If it is relative, then search for the first ld in PATH.
15477     with_gnu_ld=unknown
15478     ;;
15479   esac
15480 elif test "$with_gnu_ld" = yes; then
15481   echo "$as_me:$LINENO: checking for GNU ld" >&5
15482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15483 else
15484   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15486 fi
15487 if test "${lt_cv_path_LD+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   if test -z "$LD"; then
15491   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15492   for ac_dir in $PATH; do
15493     IFS="$lt_save_ifs"
15494     test -z "$ac_dir" && ac_dir=.
15495     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15496       lt_cv_path_LD="$ac_dir/$ac_prog"
15497       # Check to see if the program is GNU ld.  I'd rather use --version,
15498       # but apparently some GNU ld's only accept -v.
15499       # Break only if it was the GNU/non-GNU ld that we prefer.
15500       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15501       *GNU* | *'with BFD'*)
15502         test "$with_gnu_ld" != no && break
15503         ;;
15504       *)
15505         test "$with_gnu_ld" != yes && break
15506         ;;
15507       esac
15508     fi
15509   done
15510   IFS="$lt_save_ifs"
15511 else
15512   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15513 fi
15514 fi
15515
15516 LD="$lt_cv_path_LD"
15517 if test -n "$LD"; then
15518   echo "$as_me:$LINENO: result: $LD" >&5
15519 echo "${ECHO_T}$LD" >&6
15520 else
15521   echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6
15523 fi
15524 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15525 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15526    { (exit 1); exit 1; }; }
15527 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15528 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15529 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15530   echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15533 case `$LD -v 2>&1 </dev/null` in
15534 *GNU* | *'with BFD'*)
15535   lt_cv_prog_gnu_ld=yes
15536   ;;
15537 *)
15538   lt_cv_prog_gnu_ld=no
15539   ;;
15540 esac
15541 fi
15542 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15543 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15544 with_gnu_ld=$lt_cv_prog_gnu_ld
15545
15546
15547
15548   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15549   # archiving commands below assume that GNU ld is being used.
15550   if test "$with_gnu_ld" = yes; then
15551     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552     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'
15553
15554     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15555     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15556
15557     # If archive_cmds runs LD, not CC, wlarc should be empty
15558     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15559     #     investigate it a little bit more. (MM)
15560     wlarc='${wl}'
15561
15562     # ancient GNU ld didn't support --whole-archive et. al.
15563     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15564         grep 'no-whole-archive' > /dev/null; then
15565       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15566     else
15567       whole_archive_flag_spec_CXX=
15568     fi
15569   else
15570     with_gnu_ld=no
15571     wlarc=
15572
15573     # A generic and very simple default shared library creation
15574     # command for GNU C++ for the case where it uses the native
15575     # linker, instead of GNU ld.  If possible, this setting should
15576     # overridden to take advantage of the native linker features on
15577     # the platform it is being used on.
15578     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15579   fi
15580
15581   # Commands to make compiler produce verbose output that lists
15582   # what "hidden" libraries, object files and flags are used when
15583   # linking a shared library.
15584   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15585
15586 else
15587   GXX=no
15588   with_gnu_ld=no
15589   wlarc=
15590 fi
15591
15592 # PORTME: fill in a description of your system's C++ link characteristics
15593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15595 ld_shlibs_CXX=yes
15596 case $host_os in
15597   aix3*)
15598     # FIXME: insert proper C++ library support
15599     ld_shlibs_CXX=no
15600     ;;
15601   aix4* | aix5*)
15602     if test "$host_cpu" = ia64; then
15603       # On IA64, the linker does run time linking by default, so we don't
15604       # have to do anything special.
15605       aix_use_runtimelinking=no
15606       exp_sym_flag='-Bexport'
15607       no_entry_flag=""
15608     else
15609       aix_use_runtimelinking=no
15610
15611       # Test if we are trying to use run time linking or normal
15612       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15613       # need to do runtime linking.
15614       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15615         for ld_flag in $LDFLAGS; do
15616           case $ld_flag in
15617           *-brtl*)
15618             aix_use_runtimelinking=yes
15619             break
15620             ;;
15621           esac
15622         done
15623       esac
15624
15625       exp_sym_flag='-bexport'
15626       no_entry_flag='-bnoentry'
15627     fi
15628
15629     # When large executables or shared objects are built, AIX ld can
15630     # have problems creating the table of contents.  If linking a library
15631     # or program results in "error TOC overflow" add -mminimal-toc to
15632     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15633     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15634
15635     archive_cmds_CXX=''
15636     hardcode_direct_CXX=yes
15637     hardcode_libdir_separator_CXX=':'
15638     link_all_deplibs_CXX=yes
15639
15640     if test "$GXX" = yes; then
15641       case $host_os in aix4.012|aix4.012.*)
15642       # We only want to do this on AIX 4.2 and lower, the check
15643       # below for broken collect2 doesn't work under 4.3+
15644         collect2name=`${CC} -print-prog-name=collect2`
15645         if test -f "$collect2name" && \
15646            strings "$collect2name" | grep resolve_lib_name >/dev/null
15647         then
15648           # We have reworked collect2
15649           hardcode_direct_CXX=yes
15650         else
15651           # We have old collect2
15652           hardcode_direct_CXX=unsupported
15653           # It fails to find uninstalled libraries when the uninstalled
15654           # path is not listed in the libpath.  Setting hardcode_minus_L
15655           # to unsupported forces relinking
15656           hardcode_minus_L_CXX=yes
15657           hardcode_libdir_flag_spec_CXX='-L$libdir'
15658           hardcode_libdir_separator_CXX=
15659         fi
15660       esac
15661       shared_flag='-shared'
15662     else
15663       # not using gcc
15664       if test "$host_cpu" = ia64; then
15665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15666         # chokes on -Wl,-G. The following line is correct:
15667         shared_flag='-G'
15668       else
15669         if test "$aix_use_runtimelinking" = yes; then
15670           shared_flag='${wl}-G'
15671         else
15672           shared_flag='${wl}-bM:SRE'
15673         fi
15674       fi
15675     fi
15676
15677     # It seems that -bexpall does not export symbols beginning with
15678     # underscore (_), so it is better to generate a list of symbols to export.
15679     always_export_symbols_CXX=yes
15680     if test "$aix_use_runtimelinking" = yes; then
15681       # Warning - without using the other runtime loading flags (-brtl),
15682       # -berok will link without error, but may produce a broken library.
15683       allow_undefined_flag_CXX='-berok'
15684       # Determine the default libpath from the value encoded in an empty executable.
15685       cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702   (eval $ac_link) 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -z "$ac_cxx_werror_flag"
15710                          || test ! -s conftest.err'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; } &&
15716          { ac_try='test -s conftest$ac_exeext'
15717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718   (eval $ac_try) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }; then
15722
15723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15724 }'`
15725 # Check for a 64-bit object if we didn't find anything.
15726 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; }
15727 }'`; fi
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 fi
15733 rm -f conftest.err conftest.$ac_objext \
15734       conftest$ac_exeext conftest.$ac_ext
15735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15736
15737       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15738
15739       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"
15740      else
15741       if test "$host_cpu" = ia64; then
15742         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15743         allow_undefined_flag_CXX="-z nodefs"
15744         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"
15745       else
15746         # Determine the default libpath from the value encoded in an empty executable.
15747         cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753
15754 int
15755 main ()
15756 {
15757
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764   (eval $ac_link) 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } &&
15771          { ac_try='test -z "$ac_cxx_werror_flag"
15772                          || test ! -s conftest.err'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest$ac_exeext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784
15785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15786 }'`
15787 # Check for a 64-bit object if we didn't find anything.
15788 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; }
15789 }'`; fi
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 fi
15795 rm -f conftest.err conftest.$ac_objext \
15796       conftest$ac_exeext conftest.$ac_ext
15797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15798
15799         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15800         # Warning - without using the other run time loading flags,
15801         # -berok will link without error, but may produce a broken library.
15802         no_undefined_flag_CXX=' ${wl}-bernotok'
15803         allow_undefined_flag_CXX=' ${wl}-berok'
15804         # -bexpall does not export symbols beginning with underscore (_)
15805         always_export_symbols_CXX=yes
15806         # Exported symbols can be pulled into shared objects from archives
15807         whole_archive_flag_spec_CXX=' '
15808         archive_cmds_need_lc_CXX=yes
15809         # This is similar to how AIX traditionally builds it's shared libraries.
15810         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'
15811       fi
15812     fi
15813     ;;
15814   chorus*)
15815     case $cc_basename in
15816       *)
15817         # FIXME: insert proper C++ library support
15818         ld_shlibs_CXX=no
15819         ;;
15820     esac
15821     ;;
15822
15823
15824   cygwin* | mingw* | pw32*)
15825     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15826     # as there is no search path for DLLs.
15827     hardcode_libdir_flag_spec_CXX='-L$libdir'
15828     allow_undefined_flag_CXX=unsupported
15829     always_export_symbols_CXX=no
15830     enable_shared_with_static_runtimes_CXX=yes
15831
15832     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15833       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'
15834       # If the export-symbols file already is a .def file (1st line
15835       # is EXPORTS), use it as is; otherwise, prepend...
15836       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15837         cp $export_symbols $output_objdir/$soname.def;
15838       else
15839         echo EXPORTS > $output_objdir/$soname.def;
15840         cat $export_symbols >> $output_objdir/$soname.def;
15841       fi~
15842       $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'
15843     else
15844       ld_shlibs_CXX=no
15845     fi
15846   ;;
15847       darwin* | rhapsody*)
15848         case "$host_os" in
15849         rhapsody* | darwin1.[012])
15850          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15851          ;;
15852        *) # Darwin 1.3 on
15853          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15854            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15855          else
15856            case ${MACOSX_DEPLOYMENT_TARGET} in
15857              10.[012])
15858                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15859                ;;
15860              10.*)
15861                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15862                ;;
15863            esac
15864          fi
15865          ;;
15866         esac
15867       archive_cmds_need_lc_CXX=no
15868       hardcode_direct_CXX=no
15869       hardcode_automatic_CXX=yes
15870       hardcode_shlibpath_var_CXX=unsupported
15871       whole_archive_flag_spec_CXX=''
15872       link_all_deplibs_CXX=yes
15873
15874     if test "$GXX" = yes ; then
15875       lt_int_apple_cc_single_mod=no
15876       output_verbose_link_cmd='echo'
15877       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15878        lt_int_apple_cc_single_mod=yes
15879       fi
15880       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15881        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15882       else
15883           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'
15884         fi
15885         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15886         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15887           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15888             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}'
15889           else
15890             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}'
15891           fi
15892             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}'
15893       else
15894       case "$cc_basename" in
15895         xlc*)
15896          output_verbose_link_cmd='echo'
15897           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'
15898           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15899           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15900           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}'
15901           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}'
15902           ;;
15903        *)
15904          ld_shlibs_CXX=no
15905           ;;
15906       esac
15907       fi
15908         ;;
15909
15910   dgux*)
15911     case $cc_basename in
15912       ec++)
15913         # FIXME: insert proper C++ library support
15914         ld_shlibs_CXX=no
15915         ;;
15916       ghcx)
15917         # Green Hills C++ Compiler
15918         # FIXME: insert proper C++ library support
15919         ld_shlibs_CXX=no
15920         ;;
15921       *)
15922         # FIXME: insert proper C++ library support
15923         ld_shlibs_CXX=no
15924         ;;
15925     esac
15926     ;;
15927   freebsd12*)
15928     # C++ shared libraries reported to be fairly broken before switch to ELF
15929     ld_shlibs_CXX=no
15930     ;;
15931   freebsd-elf*)
15932     archive_cmds_need_lc_CXX=no
15933     ;;
15934   freebsd* | kfreebsd*-gnu)
15935     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15936     # conventions
15937     ld_shlibs_CXX=yes
15938     ;;
15939   gnu*)
15940     ;;
15941   hpux9*)
15942     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15943     hardcode_libdir_separator_CXX=:
15944     export_dynamic_flag_spec_CXX='${wl}-E'
15945     hardcode_direct_CXX=yes
15946     hardcode_minus_L_CXX=yes # Not in the search PATH,
15947                                 # but as the default
15948                                 # location of the library.
15949
15950     case $cc_basename in
15951     CC)
15952       # FIXME: insert proper C++ library support
15953       ld_shlibs_CXX=no
15954       ;;
15955     aCC)
15956       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'
15957       # Commands to make compiler produce verbose output that lists
15958       # what "hidden" libraries, object files and flags are used when
15959       # linking a shared library.
15960       #
15961       # There doesn't appear to be a way to prevent this compiler from
15962       # explicitly linking system object files so we need to strip them
15963       # from the output so that they don't get included in the library
15964       # dependencies.
15965       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'
15966       ;;
15967     *)
15968       if test "$GXX" = yes; then
15969         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'
15970       else
15971         # FIXME: insert proper C++ library support
15972         ld_shlibs_CXX=no
15973       fi
15974       ;;
15975     esac
15976     ;;
15977   hpux10*|hpux11*)
15978     if test $with_gnu_ld = no; then
15979       case "$host_cpu" in
15980       hppa*64*)
15981         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15982         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15983         hardcode_libdir_separator_CXX=:
15984         ;;
15985       ia64*)
15986         hardcode_libdir_flag_spec_CXX='-L$libdir'
15987         ;;
15988       *)
15989         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15990         hardcode_libdir_separator_CXX=:
15991         export_dynamic_flag_spec_CXX='${wl}-E'
15992         ;;
15993       esac
15994     fi
15995     case "$host_cpu" in
15996     hppa*64*)
15997       hardcode_direct_CXX=no
15998       hardcode_shlibpath_var_CXX=no
15999       ;;
16000     ia64*)
16001       hardcode_direct_CXX=no
16002       hardcode_shlibpath_var_CXX=no
16003       hardcode_minus_L_CXX=yes # Not in the search PATH,
16004                                               # but as the default
16005                                               # location of the library.
16006       ;;
16007     *)
16008       hardcode_direct_CXX=yes
16009       hardcode_minus_L_CXX=yes # Not in the search PATH,
16010                                               # but as the default
16011                                               # location of the library.
16012       ;;
16013     esac
16014
16015     case $cc_basename in
16016       CC)
16017         # FIXME: insert proper C++ library support
16018         ld_shlibs_CXX=no
16019         ;;
16020       aCC)
16021         case "$host_cpu" in
16022         hppa*64*|ia64*)
16023           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16024           ;;
16025         *)
16026           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16027           ;;
16028         esac
16029         # Commands to make compiler produce verbose output that lists
16030         # what "hidden" libraries, object files and flags are used when
16031         # linking a shared library.
16032         #
16033         # There doesn't appear to be a way to prevent this compiler from
16034         # explicitly linking system object files so we need to strip them
16035         # from the output so that they don't get included in the library
16036         # dependencies.
16037         output_verbose_link_cmd='templist=`($CC -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'
16038         ;;
16039       *)
16040         if test "$GXX" = yes; then
16041           if test $with_gnu_ld = no; then
16042             case "$host_cpu" in
16043             ia64*|hppa*64*)
16044               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16045               ;;
16046             *)
16047               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'
16048               ;;
16049             esac
16050           fi
16051         else
16052           # FIXME: insert proper C++ library support
16053           ld_shlibs_CXX=no
16054         fi
16055         ;;
16056     esac
16057     ;;
16058   irix5* | irix6*)
16059     case $cc_basename in
16060       CC)
16061         # SGI C++
16062         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'
16063
16064         # Archives containing C++ object files must be created using
16065         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16066         # necessary to make sure instantiated templates are included
16067         # in the archive.
16068         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16069         ;;
16070       *)
16071         if test "$GXX" = yes; then
16072           if test "$with_gnu_ld" = no; then
16073             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'
16074           else
16075             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'
16076           fi
16077         fi
16078         link_all_deplibs_CXX=yes
16079         ;;
16080     esac
16081     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16082     hardcode_libdir_separator_CXX=:
16083     ;;
16084   linux*)
16085     case $cc_basename in
16086       KCC)
16087         # Kuck and Associates, Inc. (KAI) C++ Compiler
16088
16089         # KCC will only create a shared library if the output file
16090         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16091         # to its proper name (with version) after linking.
16092         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'
16093         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'
16094         # Commands to make compiler produce verbose output that lists
16095         # what "hidden" libraries, object files and flags are used when
16096         # linking a shared library.
16097         #
16098         # There doesn't appear to be a way to prevent this compiler from
16099         # explicitly linking system object files so we need to strip them
16100         # from the output so that they don't get included in the library
16101         # dependencies.
16102         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'
16103
16104         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16105         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16106
16107         # Archives containing C++ object files must be created using
16108         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16109         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16110         ;;
16111       icpc)
16112         # Intel C++
16113         with_gnu_ld=yes
16114         # version 8.0 and above of icpc choke on multiply defined symbols
16115         # if we add $predep_objects and $postdep_objects, however 7.1 and
16116         # earlier do not add the objects themselves.
16117         case `$CC -V 2>&1` in
16118         *"Version 7."*)
16119           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120           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'
16121           ;;
16122         *)  # Version 8.0 or newer
16123           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16125           ;;
16126         esac
16127         archive_cmds_need_lc_CXX=no
16128         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16130         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16131         ;;
16132       cxx)
16133         # Compaq C++
16134         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135         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'
16136
16137         runpath_var=LD_RUN_PATH
16138         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16139         hardcode_libdir_separator_CXX=:
16140
16141         # Commands to make compiler produce verbose output that lists
16142         # what "hidden" libraries, object files and flags are used when
16143         # linking a shared library.
16144         #
16145         # There doesn't appear to be a way to prevent this compiler from
16146         # explicitly linking system object files so we need to strip them
16147         # from the output so that they don't get included in the library
16148         # dependencies.
16149         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'
16150         ;;
16151     esac
16152     ;;
16153   lynxos*)
16154     # FIXME: insert proper C++ library support
16155     ld_shlibs_CXX=no
16156     ;;
16157   m88k*)
16158     # FIXME: insert proper C++ library support
16159     ld_shlibs_CXX=no
16160     ;;
16161   mvs*)
16162     case $cc_basename in
16163       cxx)
16164         # FIXME: insert proper C++ library support
16165         ld_shlibs_CXX=no
16166         ;;
16167       *)
16168         # FIXME: insert proper C++ library support
16169         ld_shlibs_CXX=no
16170         ;;
16171     esac
16172     ;;
16173   netbsd*)
16174     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16175       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16176       wlarc=
16177       hardcode_libdir_flag_spec_CXX='-R$libdir'
16178       hardcode_direct_CXX=yes
16179       hardcode_shlibpath_var_CXX=no
16180     fi
16181     # Workaround some broken pre-1.5 toolchains
16182     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16183     ;;
16184   openbsd2*)
16185     # C++ shared libraries are fairly broken
16186     ld_shlibs_CXX=no
16187     ;;
16188   openbsd*)
16189     hardcode_direct_CXX=yes
16190     hardcode_shlibpath_var_CXX=no
16191     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16192     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16193     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16194       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16195       export_dynamic_flag_spec_CXX='${wl}-E'
16196       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16197     fi
16198     output_verbose_link_cmd='echo'
16199     ;;
16200   osf3*)
16201     case $cc_basename in
16202       KCC)
16203         # Kuck and Associates, Inc. (KAI) C++ Compiler
16204
16205         # KCC will only create a shared library if the output file
16206         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16207         # to its proper name (with version) after linking.
16208         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'
16209
16210         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16211         hardcode_libdir_separator_CXX=:
16212
16213         # Archives containing C++ object files must be created using
16214         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16215         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16216
16217         ;;
16218       RCC)
16219         # Rational C++ 2.4.1
16220         # FIXME: insert proper C++ library support
16221         ld_shlibs_CXX=no
16222         ;;
16223       cxx)
16224         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16225         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'
16226
16227         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16228         hardcode_libdir_separator_CXX=:
16229
16230         # Commands to make compiler produce verbose output that lists
16231         # what "hidden" libraries, object files and flags are used when
16232         # linking a shared library.
16233         #
16234         # There doesn't appear to be a way to prevent this compiler from
16235         # explicitly linking system object files so we need to strip them
16236         # from the output so that they don't get included in the library
16237         # dependencies.
16238         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'
16239         ;;
16240       *)
16241         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16242           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16243           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'
16244
16245           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16246           hardcode_libdir_separator_CXX=:
16247
16248           # Commands to make compiler produce verbose output that lists
16249           # what "hidden" libraries, object files and flags are used when
16250           # linking a shared library.
16251           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16252
16253         else
16254           # FIXME: insert proper C++ library support
16255           ld_shlibs_CXX=no
16256         fi
16257         ;;
16258     esac
16259     ;;
16260   osf4* | osf5*)
16261     case $cc_basename in
16262       KCC)
16263         # Kuck and Associates, Inc. (KAI) C++ Compiler
16264
16265         # KCC will only create a shared library if the output file
16266         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16267         # to its proper name (with version) after linking.
16268         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'
16269
16270         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16271         hardcode_libdir_separator_CXX=:
16272
16273         # Archives containing C++ object files must be created using
16274         # the KAI C++ compiler.
16275         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16276         ;;
16277       RCC)
16278         # Rational C++ 2.4.1
16279         # FIXME: insert proper C++ library support
16280         ld_shlibs_CXX=no
16281         ;;
16282       cxx)
16283         allow_undefined_flag_CXX=' -expect_unresolved \*'
16284         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'
16285         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16286           echo "-hidden">> $lib.exp~
16287           $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~
16288           $rm $lib.exp'
16289
16290         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16291         hardcode_libdir_separator_CXX=:
16292
16293         # Commands to make compiler produce verbose output that lists
16294         # what "hidden" libraries, object files and flags are used when
16295         # linking a shared library.
16296         #
16297         # There doesn't appear to be a way to prevent this compiler from
16298         # explicitly linking system object files so we need to strip them
16299         # from the output so that they don't get included in the library
16300         # dependencies.
16301         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'
16302         ;;
16303       *)
16304         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16305           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16306          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'
16307
16308           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16309           hardcode_libdir_separator_CXX=:
16310
16311           # Commands to make compiler produce verbose output that lists
16312           # what "hidden" libraries, object files and flags are used when
16313           # linking a shared library.
16314           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16315
16316         else
16317           # FIXME: insert proper C++ library support
16318           ld_shlibs_CXX=no
16319         fi
16320         ;;
16321     esac
16322     ;;
16323   psos*)
16324     # FIXME: insert proper C++ library support
16325     ld_shlibs_CXX=no
16326     ;;
16327   sco*)
16328     archive_cmds_need_lc_CXX=no
16329     case $cc_basename in
16330       CC)
16331         # FIXME: insert proper C++ library support
16332         ld_shlibs_CXX=no
16333         ;;
16334       *)
16335         # FIXME: insert proper C++ library support
16336         ld_shlibs_CXX=no
16337         ;;
16338     esac
16339     ;;
16340   sunos4*)
16341     case $cc_basename in
16342       CC)
16343         # Sun C++ 4.x
16344         # FIXME: insert proper C++ library support
16345         ld_shlibs_CXX=no
16346         ;;
16347       lcc)
16348         # Lucid
16349         # FIXME: insert proper C++ library support
16350         ld_shlibs_CXX=no
16351         ;;
16352       *)
16353         # FIXME: insert proper C++ library support
16354         ld_shlibs_CXX=no
16355         ;;
16356     esac
16357     ;;
16358   solaris*)
16359     case $cc_basename in
16360       CC)
16361         # Sun C++ 4.2, 5.x and Centerline C++
16362         no_undefined_flag_CXX=' -zdefs'
16363         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16364         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16365         $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'
16366
16367         hardcode_libdir_flag_spec_CXX='-R$libdir'
16368         hardcode_shlibpath_var_CXX=no
16369         case $host_os in
16370           solaris2.0-5 | solaris2.0-5.*) ;;
16371           *)
16372             # The C++ compiler is used as linker so we must use $wl
16373             # flag to pass the commands to the underlying system
16374             # linker.
16375             # Supported since Solaris 2.6 (maybe 2.5.1?)
16376             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16377             ;;
16378         esac
16379         link_all_deplibs_CXX=yes
16380
16381         # Commands to make compiler produce verbose output that lists
16382         # what "hidden" libraries, object files and flags are used when
16383         # linking a shared library.
16384         #
16385         # There doesn't appear to be a way to prevent this compiler from
16386         # explicitly linking system object files so we need to strip them
16387         # from the output so that they don't get included in the library
16388         # dependencies.
16389         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'
16390
16391         # Archives containing C++ object files must be created using
16392         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16393         # necessary to make sure instantiated templates are included
16394         # in the archive.
16395         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16396         ;;
16397       gcx)
16398         # Green Hills C++ Compiler
16399         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16400
16401         # The C++ compiler must be used to create the archive.
16402         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16403         ;;
16404       *)
16405         # GNU C++ compiler with Solaris linker
16406         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16407           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16408           if $CC --version | grep -v '^2\.7' > /dev/null; then
16409             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16410             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16411                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16412
16413             # Commands to make compiler produce verbose output that lists
16414             # what "hidden" libraries, object files and flags are used when
16415             # linking a shared library.
16416             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16417           else
16418             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16419             # platform.
16420             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16421             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16422                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16423
16424             # Commands to make compiler produce verbose output that lists
16425             # what "hidden" libraries, object files and flags are used when
16426             # linking a shared library.
16427             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16428           fi
16429
16430           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16431         fi
16432         ;;
16433     esac
16434     ;;
16435   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16436     archive_cmds_need_lc_CXX=no
16437     ;;
16438   tandem*)
16439     case $cc_basename in
16440       NCC)
16441         # NonStop-UX NCC 3.20
16442         # FIXME: insert proper C++ library support
16443         ld_shlibs_CXX=no
16444         ;;
16445       *)
16446         # FIXME: insert proper C++ library support
16447         ld_shlibs_CXX=no
16448         ;;
16449     esac
16450     ;;
16451   vxworks*)
16452     # FIXME: insert proper C++ library support
16453     ld_shlibs_CXX=no
16454     ;;
16455   *)
16456     # FIXME: insert proper C++ library support
16457     ld_shlibs_CXX=no
16458     ;;
16459 esac
16460 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16461 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16462 test "$ld_shlibs_CXX" = no && can_build_shared=no
16463
16464 GCC_CXX="$GXX"
16465 LD_CXX="$LD"
16466
16467
16468 cat > conftest.$ac_ext <<EOF
16469 class Foo
16470 {
16471 public:
16472   Foo (void) { a = 0; }
16473 private:
16474   int a;
16475 };
16476 EOF
16477
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479   (eval $ac_compile) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); }; then
16483   # Parse the compiler output and extract the necessary
16484   # objects, libraries and library flags.
16485
16486   # Sentinel used to keep track of whether or not we are before
16487   # the conftest object file.
16488   pre_test_object_deps_done=no
16489
16490   # The `*' in the case matches for architectures that use `case' in
16491   # $output_verbose_cmd can trigger glob expansion during the loop
16492   # eval without this substitution.
16493   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16494
16495   for p in `eval $output_verbose_link_cmd`; do
16496     case $p in
16497
16498     -L* | -R* | -l*)
16499        # Some compilers place space between "-{L,R}" and the path.
16500        # Remove the space.
16501        if test $p = "-L" \
16502           || test $p = "-R"; then
16503          prev=$p
16504          continue
16505        else
16506          prev=
16507        fi
16508
16509        if test "$pre_test_object_deps_done" = no; then
16510          case $p in
16511          -L* | -R*)
16512            # Internal compiler library paths should come after those
16513            # provided the user.  The postdeps already come after the
16514            # user supplied libs so there is no need to process them.
16515            if test -z "$compiler_lib_search_path_CXX"; then
16516              compiler_lib_search_path_CXX="${prev}${p}"
16517            else
16518              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16519            fi
16520            ;;
16521          # The "-l" case would never come before the object being
16522          # linked, so don't bother handling this case.
16523          esac
16524        else
16525          if test -z "$postdeps_CXX"; then
16526            postdeps_CXX="${prev}${p}"
16527          else
16528            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16529          fi
16530        fi
16531        ;;
16532
16533     *.$objext)
16534        # This assumes that the test object file only shows up
16535        # once in the compiler output.
16536        if test "$p" = "conftest.$objext"; then
16537          pre_test_object_deps_done=yes
16538          continue
16539        fi
16540
16541        if test "$pre_test_object_deps_done" = no; then
16542          if test -z "$predep_objects_CXX"; then
16543            predep_objects_CXX="$p"
16544          else
16545            predep_objects_CXX="$predep_objects_CXX $p"
16546          fi
16547        else
16548          if test -z "$postdep_objects_CXX"; then
16549            postdep_objects_CXX="$p"
16550          else
16551            postdep_objects_CXX="$postdep_objects_CXX $p"
16552          fi
16553        fi
16554        ;;
16555
16556     *) ;; # Ignore the rest.
16557
16558     esac
16559   done
16560
16561   # Clean up.
16562   rm -f a.out a.exe
16563 else
16564   echo "libtool.m4: error: problem compiling CXX test program"
16565 fi
16566
16567 $rm -f confest.$objext
16568
16569 case " $postdeps_CXX " in
16570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16571 esac
16572
16573 lt_prog_compiler_wl_CXX=
16574 lt_prog_compiler_pic_CXX=
16575 lt_prog_compiler_static_CXX=
16576
16577 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16578 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16579
16580   # C++ specific cases for pic, static, wl, etc.
16581   if test "$GXX" = yes; then
16582     lt_prog_compiler_wl_CXX='-Wl,'
16583     lt_prog_compiler_static_CXX='-static'
16584
16585     case $host_os in
16586     aix*)
16587       # All AIX code is PIC.
16588       if test "$host_cpu" = ia64; then
16589         # AIX 5 now supports IA64 processor
16590         lt_prog_compiler_static_CXX='-Bstatic'
16591       fi
16592       ;;
16593     amigaos*)
16594       # FIXME: we need at least 68020 code to build shared libraries, but
16595       # adding the `-m68020' flag to GCC prevents building anything better,
16596       # like `-m68040'.
16597       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16598       ;;
16599     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16600       # PIC is the default for these OSes.
16601       ;;
16602     mingw* | os2* | pw32*)
16603       # This hack is so that the source file can tell whether it is being
16604       # built for inclusion in a dll (and should export symbols for example).
16605       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16606       ;;
16607     darwin* | rhapsody*)
16608       # PIC is the default on this platform
16609       # Common symbols not allowed in MH_DYLIB files
16610       lt_prog_compiler_pic_CXX='-fno-common'
16611       ;;
16612     *djgpp*)
16613       # DJGPP does not support shared libraries at all
16614       lt_prog_compiler_pic_CXX=
16615       ;;
16616     sysv4*MP*)
16617       if test -d /usr/nec; then
16618         lt_prog_compiler_pic_CXX=-Kconform_pic
16619       fi
16620       ;;
16621     hpux*)
16622       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16623       # not for PA HP-UX.
16624       case "$host_cpu" in
16625       hppa*64*|ia64*)
16626         ;;
16627       *)
16628         lt_prog_compiler_pic_CXX='-fPIC'
16629         ;;
16630       esac
16631       ;;
16632     *)
16633       lt_prog_compiler_pic_CXX='-fPIC'
16634       ;;
16635     esac
16636   else
16637     case $host_os in
16638       aix4* | aix5*)
16639         # All AIX code is PIC.
16640         if test "$host_cpu" = ia64; then
16641           # AIX 5 now supports IA64 processor
16642           lt_prog_compiler_static_CXX='-Bstatic'
16643         else
16644           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16645         fi
16646         ;;
16647       chorus*)
16648         case $cc_basename in
16649         cxch68)
16650           # Green Hills C++ Compiler
16651           # _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"
16652           ;;
16653         esac
16654         ;;
16655        darwin*)
16656          # PIC is the default on this platform
16657          # Common symbols not allowed in MH_DYLIB files
16658          case "$cc_basename" in
16659            xlc*)
16660            lt_prog_compiler_pic_CXX='-qnocommon'
16661            lt_prog_compiler_wl_CXX='-Wl,'
16662            ;;
16663          esac
16664        ;;
16665       dgux*)
16666         case $cc_basename in
16667           ec++)
16668             lt_prog_compiler_pic_CXX='-KPIC'
16669             ;;
16670           ghcx)
16671             # Green Hills C++ Compiler
16672             lt_prog_compiler_pic_CXX='-pic'
16673             ;;
16674           *)
16675             ;;
16676         esac
16677         ;;
16678       freebsd* | kfreebsd*-gnu)
16679         # FreeBSD uses GNU C++
16680         ;;
16681       hpux9* | hpux10* | hpux11*)
16682         case $cc_basename in
16683           CC)
16684             lt_prog_compiler_wl_CXX='-Wl,'
16685             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16686             if test "$host_cpu" != ia64; then
16687               lt_prog_compiler_pic_CXX='+Z'
16688             fi
16689             ;;
16690           aCC)
16691             lt_prog_compiler_wl_CXX='-Wl,'
16692             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16693             case "$host_cpu" in
16694             hppa*64*|ia64*)
16695               # +Z the default
16696               ;;
16697             *)
16698               lt_prog_compiler_pic_CXX='+Z'
16699               ;;
16700             esac
16701             ;;
16702           *)
16703             ;;
16704         esac
16705         ;;
16706       irix5* | irix6* | nonstopux*)
16707         case $cc_basename in
16708           CC)
16709             lt_prog_compiler_wl_CXX='-Wl,'
16710             lt_prog_compiler_static_CXX='-non_shared'
16711             # CC pic flag -KPIC is the default.
16712             ;;
16713           *)
16714             ;;
16715         esac
16716         ;;
16717       linux*)
16718         case $cc_basename in
16719           KCC)
16720             # KAI C++ Compiler
16721             lt_prog_compiler_wl_CXX='--backend -Wl,'
16722             lt_prog_compiler_pic_CXX='-fPIC'
16723             ;;
16724           icpc)
16725             # Intel C++
16726             lt_prog_compiler_wl_CXX='-Wl,'
16727             lt_prog_compiler_pic_CXX='-KPIC'
16728             lt_prog_compiler_static_CXX='-static'
16729             ;;
16730           cxx)
16731             # Compaq C++
16732             # Make sure the PIC flag is empty.  It appears that all Alpha
16733             # Linux and Compaq Tru64 Unix objects are PIC.
16734             lt_prog_compiler_pic_CXX=
16735             lt_prog_compiler_static_CXX='-non_shared'
16736             ;;
16737           *)
16738             ;;
16739         esac
16740         ;;
16741       lynxos*)
16742         ;;
16743       m88k*)
16744         ;;
16745       mvs*)
16746         case $cc_basename in
16747           cxx)
16748             lt_prog_compiler_pic_CXX='-W c,exportall'
16749             ;;
16750           *)
16751             ;;
16752         esac
16753         ;;
16754       netbsd*)
16755         ;;
16756       osf3* | osf4* | osf5*)
16757         case $cc_basename in
16758           KCC)
16759             lt_prog_compiler_wl_CXX='--backend -Wl,'
16760             ;;
16761           RCC)
16762             # Rational C++ 2.4.1
16763             lt_prog_compiler_pic_CXX='-pic'
16764             ;;
16765           cxx)
16766             # Digital/Compaq C++
16767             lt_prog_compiler_wl_CXX='-Wl,'
16768             # Make sure the PIC flag is empty.  It appears that all Alpha
16769             # Linux and Compaq Tru64 Unix objects are PIC.
16770             lt_prog_compiler_pic_CXX=
16771             lt_prog_compiler_static_CXX='-non_shared'
16772             ;;
16773           *)
16774             ;;
16775         esac
16776         ;;
16777       psos*)
16778         ;;
16779       sco*)
16780         case $cc_basename in
16781           CC)
16782             lt_prog_compiler_pic_CXX='-fPIC'
16783             ;;
16784           *)
16785             ;;
16786         esac
16787         ;;
16788       solaris*)
16789         case $cc_basename in
16790           CC)
16791             # Sun C++ 4.2, 5.x and Centerline C++
16792             lt_prog_compiler_pic_CXX='-KPIC'
16793             lt_prog_compiler_static_CXX='-Bstatic'
16794             lt_prog_compiler_wl_CXX='-Qoption ld '
16795             ;;
16796           gcx)
16797             # Green Hills C++ Compiler
16798             lt_prog_compiler_pic_CXX='-PIC'
16799             ;;
16800           *)
16801             ;;
16802         esac
16803         ;;
16804       sunos4*)
16805         case $cc_basename in
16806           CC)
16807             # Sun C++ 4.x
16808             lt_prog_compiler_pic_CXX='-pic'
16809             lt_prog_compiler_static_CXX='-Bstatic'
16810             ;;
16811           lcc)
16812             # Lucid
16813             lt_prog_compiler_pic_CXX='-pic'
16814             ;;
16815           *)
16816             ;;
16817         esac
16818         ;;
16819       tandem*)
16820         case $cc_basename in
16821           NCC)
16822             # NonStop-UX NCC 3.20
16823             lt_prog_compiler_pic_CXX='-KPIC'
16824             ;;
16825           *)
16826             ;;
16827         esac
16828         ;;
16829       unixware*)
16830         ;;
16831       vxworks*)
16832         ;;
16833       *)
16834         lt_prog_compiler_can_build_shared_CXX=no
16835         ;;
16836     esac
16837   fi
16838
16839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16840 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16841
16842 #
16843 # Check to make sure the PIC flag actually works.
16844 #
16845 if test -n "$lt_prog_compiler_pic_CXX"; then
16846
16847 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16848 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16849 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   lt_prog_compiler_pic_works_CXX=no
16853   ac_outfile=conftest.$ac_objext
16854    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16855    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16856    # Insert the option either (1) after the last *FLAGS variable, or
16857    # (2) before a word containing "conftest.", or (3) at the end.
16858    # Note that $ac_compile itself does not contain backslashes and begins
16859    # with a dollar sign (not a hyphen), so the echo should work correctly.
16860    # The option is referenced via a variable to avoid confusing sed.
16861    lt_compile=`echo "$ac_compile" | $SED \
16862    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864    -e 's:$: $lt_compiler_flag:'`
16865    (eval echo "\"\$as_me:16865: $lt_compile\"" >&5)
16866    (eval "$lt_compile" 2>conftest.err)
16867    ac_status=$?
16868    cat conftest.err >&5
16869    echo "$as_me:16869: \$? = $ac_status" >&5
16870    if (exit $ac_status) && test -s "$ac_outfile"; then
16871      # The compiler can only warn and ignore the option if not recognized
16872      # So say no if there are warnings
16873      if test ! -s conftest.err; then
16874        lt_prog_compiler_pic_works_CXX=yes
16875      fi
16876    fi
16877    $rm conftest*
16878
16879 fi
16880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16881 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16882
16883 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16884     case $lt_prog_compiler_pic_CXX in
16885      "" | " "*) ;;
16886      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16887      esac
16888 else
16889     lt_prog_compiler_pic_CXX=
16890      lt_prog_compiler_can_build_shared_CXX=no
16891 fi
16892
16893 fi
16894 case "$host_os" in
16895   # For platforms which do not support PIC, -DPIC is meaningless:
16896   *djgpp*)
16897     lt_prog_compiler_pic_CXX=
16898     ;;
16899   *)
16900     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16901     ;;
16902 esac
16903
16904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16906 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909   lt_cv_prog_compiler_c_o_CXX=no
16910    $rm -r conftest 2>/dev/null
16911    mkdir conftest
16912    cd conftest
16913    mkdir out
16914    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16915
16916    lt_compiler_flag="-o out/conftest2.$ac_objext"
16917    # Insert the option either (1) after the last *FLAGS variable, or
16918    # (2) before a word containing "conftest.", or (3) at the end.
16919    # Note that $ac_compile itself does not contain backslashes and begins
16920    # with a dollar sign (not a hyphen), so the echo should work correctly.
16921    lt_compile=`echo "$ac_compile" | $SED \
16922    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16924    -e 's:$: $lt_compiler_flag:'`
16925    (eval echo "\"\$as_me:16925: $lt_compile\"" >&5)
16926    (eval "$lt_compile" 2>out/conftest.err)
16927    ac_status=$?
16928    cat out/conftest.err >&5
16929    echo "$as_me:16929: \$? = $ac_status" >&5
16930    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16931    then
16932      # The compiler can only warn and ignore the option if not recognized
16933      # So say no if there are warnings
16934      if test ! -s out/conftest.err; then
16935        lt_cv_prog_compiler_c_o_CXX=yes
16936      fi
16937    fi
16938    chmod u+w .
16939    $rm conftest*
16940    # SGI C++ compiler will create directory out/ii_files/ for
16941    # template instantiation
16942    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16943    $rm out/* && rmdir out
16944    cd ..
16945    rmdir conftest
16946    $rm conftest*
16947
16948 fi
16949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16951
16952
16953 hard_links="nottested"
16954 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16955   # do not overwrite the value of need_locks provided by the user
16956   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16958   hard_links=yes
16959   $rm conftest*
16960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16961   touch conftest.a
16962   ln conftest.a conftest.b 2>&5 || hard_links=no
16963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16964   echo "$as_me:$LINENO: result: $hard_links" >&5
16965 echo "${ECHO_T}$hard_links" >&6
16966   if test "$hard_links" = no; then
16967     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16969     need_locks=warn
16970   fi
16971 else
16972   need_locks=no
16973 fi
16974
16975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16977
16978   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16979   case $host_os in
16980   aix4* | aix5*)
16981     # If we're using GNU nm, then we don't want the "-C" option.
16982     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16983     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16984       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'
16985     else
16986       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'
16987     fi
16988     ;;
16989   pw32*)
16990     export_symbols_cmds_CXX="$ltdll_cmds"
16991   ;;
16992   cygwin* | mingw*)
16993     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16994   ;;
16995   *)
16996     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16997   ;;
16998   esac
16999
17000 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17001 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17002 test "$ld_shlibs_CXX" = no && can_build_shared=no
17003
17004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17005 if test "$GCC" = yes; then
17006   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17007 fi
17008
17009 #
17010 # Do we need to explicitly link libc?
17011 #
17012 case "x$archive_cmds_need_lc_CXX" in
17013 x|xyes)
17014   # Assume -lc should be added
17015   archive_cmds_need_lc_CXX=yes
17016
17017   if test "$enable_shared" = yes && test "$GCC" = yes; then
17018     case $archive_cmds_CXX in
17019     *'~'*)
17020       # FIXME: we may have to deal with multi-command sequences.
17021       ;;
17022     '$CC '*)
17023       # Test whether the compiler implicitly links with -lc since on some
17024       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17025       # to ld, don't add -lc before -lgcc.
17026       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17028       $rm conftest*
17029       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17030
17031       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032   (eval $ac_compile) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } 2>conftest.err; then
17036         soname=conftest
17037         lib=conftest
17038         libobjs=conftest.$ac_objext
17039         deplibs=
17040         wl=$lt_prog_compiler_wl_CXX
17041         compiler_flags=-v
17042         linker_flags=-v
17043         verstring=
17044         output_objdir=.
17045         libname=conftest
17046         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17047         allow_undefined_flag_CXX=
17048         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17049   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }
17053         then
17054           archive_cmds_need_lc_CXX=no
17055         else
17056           archive_cmds_need_lc_CXX=yes
17057         fi
17058         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17059       else
17060         cat conftest.err 1>&5
17061       fi
17062       $rm conftest*
17063       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17064 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17065       ;;
17066     esac
17067   fi
17068   ;;
17069 esac
17070
17071 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17073 library_names_spec=
17074 libname_spec='lib$name'
17075 soname_spec=
17076 shrext_cmds=".so"
17077 postinstall_cmds=
17078 postuninstall_cmds=
17079 finish_cmds=
17080 finish_eval=
17081 shlibpath_var=
17082 shlibpath_overrides_runpath=unknown
17083 version_type=none
17084 dynamic_linker="$host_os ld.so"
17085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17086 if test "$GCC" = yes; then
17087   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17088   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17089     # if the path contains ";" then we assume it to be the separator
17090     # otherwise default to the standard path separator (i.e. ":") - it is
17091     # assumed that no part of a normal pathname contains ";" but that should
17092     # okay in the real world where ";" in dirpaths is itself problematic.
17093     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17094   else
17095     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17096   fi
17097 else
17098   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17099 fi
17100 need_lib_prefix=unknown
17101 hardcode_into_libs=no
17102
17103 # when you set need_version to no, make sure it does not cause -set_version
17104 # flags to be left without arguments
17105 need_version=unknown
17106
17107 case $host_os in
17108 aix3*)
17109   version_type=linux
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17111   shlibpath_var=LIBPATH
17112
17113   # AIX 3 has no versioning support, so we append a major version to the name.
17114   soname_spec='${libname}${release}${shared_ext}$major'
17115   ;;
17116
17117 aix4* | aix5*)
17118   version_type=linux
17119   need_lib_prefix=no
17120   need_version=no
17121   hardcode_into_libs=yes
17122   if test "$host_cpu" = ia64; then
17123     # AIX 5 supports IA64
17124     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17125     shlibpath_var=LD_LIBRARY_PATH
17126   else
17127     # With GCC up to 2.95.x, collect2 would create an import file
17128     # for dependence libraries.  The import file would start with
17129     # the line `#! .'.  This would cause the generated library to
17130     # depend on `.', always an invalid library.  This was fixed in
17131     # development snapshots of GCC prior to 3.0.
17132     case $host_os in
17133       aix4 | aix4.[01] | aix4.[01].*)
17134       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17135            echo ' yes '
17136            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17137         :
17138       else
17139         can_build_shared=no
17140       fi
17141       ;;
17142     esac
17143     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17144     # soname into executable. Probably we can add versioning support to
17145     # collect2, so additional links can be useful in future.
17146     if test "$aix_use_runtimelinking" = yes; then
17147       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17148       # instead of lib<name>.a to let people know that these are not
17149       # typical AIX shared libraries.
17150       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151     else
17152       # We preserve .a as extension for shared libraries through AIX4.2
17153       # and later when we are not doing run time linking.
17154       library_names_spec='${libname}${release}.a $libname.a'
17155       soname_spec='${libname}${release}${shared_ext}$major'
17156     fi
17157     shlibpath_var=LIBPATH
17158   fi
17159   ;;
17160
17161 amigaos*)
17162   library_names_spec='$libname.ixlibrary $libname.a'
17163   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17164   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'
17165   ;;
17166
17167 beos*)
17168   library_names_spec='${libname}${shared_ext}'
17169   dynamic_linker="$host_os ld.so"
17170   shlibpath_var=LIBRARY_PATH
17171   ;;
17172
17173 bsdi[45]*)
17174   version_type=linux
17175   need_version=no
17176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17181   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17182   # the default ld.so.conf also contains /usr/contrib/lib and
17183   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17184   # libtool to hard-code these into programs
17185   ;;
17186
17187 cygwin* | mingw* | pw32*)
17188   version_type=windows
17189   shrext_cmds=".dll"
17190   need_version=no
17191   need_lib_prefix=no
17192
17193   case $GCC,$host_os in
17194   yes,cygwin* | yes,mingw* | yes,pw32*)
17195     library_names_spec='$libname.dll.a'
17196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17197     postinstall_cmds='base_file=`basename \${file}`~
17198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17199       dldir=$destdir/`dirname \$dlpath`~
17200       test -d \$dldir || mkdir -p \$dldir~
17201       $install_prog $dir/$dlname \$dldir/$dlname'
17202     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17203       dlpath=$dir/\$dldll~
17204        $rm \$dlpath'
17205     shlibpath_overrides_runpath=yes
17206
17207     case $host_os in
17208     cygwin*)
17209       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17210       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17212       ;;
17213     mingw*)
17214       # MinGW DLLs use traditional 'lib' prefix
17215       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17217       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17218         # It is most probably a Windows format PATH printed by
17219         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17220         # path with ; separators, and with drive letters. We can handle the
17221         # drive letters (cygwin fileutils understands them), so leave them,
17222         # especially as we might pass files found there to a mingw objdump,
17223         # which wouldn't understand a cygwinified path. Ahh.
17224         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17225       else
17226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17227       fi
17228       ;;
17229     pw32*)
17230       # pw32 DLLs use 'pw' prefix rather than 'lib'
17231       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17232       ;;
17233     esac
17234     ;;
17235
17236   *)
17237     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17238     ;;
17239   esac
17240   dynamic_linker='Win32 ld.exe'
17241   # FIXME: first we should search . and the directory the executable is in
17242   shlibpath_var=PATH
17243   ;;
17244
17245 darwin* | rhapsody*)
17246   dynamic_linker="$host_os dyld"
17247   version_type=darwin
17248   need_lib_prefix=no
17249   need_version=no
17250   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17251   soname_spec='${libname}${release}${major}$shared_ext'
17252   shlibpath_overrides_runpath=yes
17253   shlibpath_var=DYLD_LIBRARY_PATH
17254   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17255   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17256   if test "$GCC" = yes; then
17257     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"`
17258   else
17259     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17260   fi
17261   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17262   ;;
17263
17264 dgux*)
17265   version_type=linux
17266   need_lib_prefix=no
17267   need_version=no
17268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17269   soname_spec='${libname}${release}${shared_ext}$major'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   ;;
17272
17273 freebsd1*)
17274   dynamic_linker=no
17275   ;;
17276
17277 kfreebsd*-gnu)
17278   version_type=linux
17279   need_lib_prefix=no
17280   need_version=no
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282   soname_spec='${libname}${release}${shared_ext}$major'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   shlibpath_overrides_runpath=no
17285   hardcode_into_libs=yes
17286   dynamic_linker='GNU ld.so'
17287   ;;
17288
17289 freebsd*)
17290   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17291   version_type=freebsd-$objformat
17292   case $version_type in
17293     freebsd-elf*)
17294       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17295       need_version=no
17296       need_lib_prefix=no
17297       ;;
17298     freebsd-*)
17299       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300       need_version=yes
17301       ;;
17302   esac
17303   shlibpath_var=LD_LIBRARY_PATH
17304   case $host_os in
17305   freebsd2*)
17306     shlibpath_overrides_runpath=yes
17307     ;;
17308   freebsd3.01* | freebsdelf3.01*)
17309     shlibpath_overrides_runpath=yes
17310     hardcode_into_libs=yes
17311     ;;
17312   *) # from 3.2 on
17313     shlibpath_overrides_runpath=no
17314     hardcode_into_libs=yes
17315     ;;
17316   esac
17317   ;;
17318
17319 gnu*)
17320   version_type=linux
17321   need_lib_prefix=no
17322   need_version=no
17323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17324   soname_spec='${libname}${release}${shared_ext}$major'
17325   shlibpath_var=LD_LIBRARY_PATH
17326   hardcode_into_libs=yes
17327   ;;
17328
17329 hpux9* | hpux10* | hpux11*)
17330   # Give a soname corresponding to the major version so that dld.sl refuses to
17331   # link against other versions.
17332   version_type=sunos
17333   need_lib_prefix=no
17334   need_version=no
17335   case "$host_cpu" in
17336   ia64*)
17337     shrext_cmds='.so'
17338     hardcode_into_libs=yes
17339     dynamic_linker="$host_os dld.so"
17340     shlibpath_var=LD_LIBRARY_PATH
17341     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343     soname_spec='${libname}${release}${shared_ext}$major'
17344     if test "X$HPUX_IA64_MODE" = X32; then
17345       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17346     else
17347       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17348     fi
17349     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17350     ;;
17351    hppa*64*)
17352      shrext_cmds='.sl'
17353      hardcode_into_libs=yes
17354      dynamic_linker="$host_os dld.sl"
17355      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17356      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17357      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358      soname_spec='${libname}${release}${shared_ext}$major'
17359      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17360      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17361      ;;
17362    *)
17363     shrext_cmds='.sl'
17364     dynamic_linker="$host_os dld.sl"
17365     shlibpath_var=SHLIB_PATH
17366     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368     soname_spec='${libname}${release}${shared_ext}$major'
17369     ;;
17370   esac
17371   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17372   postinstall_cmds='chmod 555 $lib'
17373   ;;
17374
17375 irix5* | irix6* | nonstopux*)
17376   case $host_os in
17377     nonstopux*) version_type=nonstopux ;;
17378     *)
17379         if test "$lt_cv_prog_gnu_ld" = yes; then
17380                 version_type=linux
17381         else
17382                 version_type=irix
17383         fi ;;
17384   esac
17385   need_lib_prefix=no
17386   need_version=no
17387   soname_spec='${libname}${release}${shared_ext}$major'
17388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17389   case $host_os in
17390   irix5* | nonstopux*)
17391     libsuff= shlibsuff=
17392     ;;
17393   *)
17394     case $LD in # libtool.m4 will add one of these switches to LD
17395     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17396       libsuff= shlibsuff= libmagic=32-bit;;
17397     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17398       libsuff=32 shlibsuff=N32 libmagic=N32;;
17399     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17400       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17401     *) libsuff= shlibsuff= libmagic=never-match;;
17402     esac
17403     ;;
17404   esac
17405   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17406   shlibpath_overrides_runpath=no
17407   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17408   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17409   hardcode_into_libs=yes
17410   ;;
17411
17412 # No shared lib support for Linux oldld, aout, or coff.
17413 linux*oldld* | linux*aout* | linux*coff*)
17414   dynamic_linker=no
17415   ;;
17416
17417 # This must be Linux ELF.
17418 linux*)
17419   version_type=linux
17420   need_lib_prefix=no
17421   need_version=no
17422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423   soname_spec='${libname}${release}${shared_ext}$major'
17424   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17425   shlibpath_var=LD_LIBRARY_PATH
17426   shlibpath_overrides_runpath=no
17427   # This implies no fast_install, which is unacceptable.
17428   # Some rework will be needed to allow for fast_install
17429   # before this can be enabled.
17430   hardcode_into_libs=yes
17431
17432   # Append ld.so.conf contents to the search path
17433   if test -f /etc/ld.so.conf; then
17434     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17435     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17436   fi
17437
17438   # We used to test for /lib/ld.so.1 and disable shared libraries on
17439   # powerpc, because MkLinux only supported shared libraries with the
17440   # GNU dynamic linker.  Since this was broken with cross compilers,
17441   # most powerpc-linux boxes support dynamic linking these days and
17442   # people can always --disable-shared, the test was removed, and we
17443   # assume the GNU/Linux dynamic linker is in use.
17444   dynamic_linker='GNU/Linux ld.so'
17445   ;;
17446
17447 knetbsd*-gnu)
17448   version_type=linux
17449   need_lib_prefix=no
17450   need_version=no
17451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17452   soname_spec='${libname}${release}${shared_ext}$major'
17453   shlibpath_var=LD_LIBRARY_PATH
17454   shlibpath_overrides_runpath=no
17455   hardcode_into_libs=yes
17456   dynamic_linker='GNU ld.so'
17457   ;;
17458
17459 netbsd*)
17460   version_type=sunos
17461   need_lib_prefix=no
17462   need_version=no
17463   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17465     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466     dynamic_linker='NetBSD (a.out) ld.so'
17467   else
17468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469     soname_spec='${libname}${release}${shared_ext}$major'
17470     dynamic_linker='NetBSD ld.elf_so'
17471   fi
17472   shlibpath_var=LD_LIBRARY_PATH
17473   shlibpath_overrides_runpath=yes
17474   hardcode_into_libs=yes
17475   ;;
17476
17477 newsos6)
17478   version_type=linux
17479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480   shlibpath_var=LD_LIBRARY_PATH
17481   shlibpath_overrides_runpath=yes
17482   ;;
17483
17484 nto-qnx*)
17485   version_type=linux
17486   need_lib_prefix=no
17487   need_version=no
17488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489   soname_spec='${libname}${release}${shared_ext}$major'
17490   shlibpath_var=LD_LIBRARY_PATH
17491   shlibpath_overrides_runpath=yes
17492   ;;
17493
17494 openbsd*)
17495   version_type=sunos
17496   need_lib_prefix=no
17497   need_version=no
17498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17500   shlibpath_var=LD_LIBRARY_PATH
17501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17502     case $host_os in
17503       openbsd2.[89] | openbsd2.[89].*)
17504         shlibpath_overrides_runpath=no
17505         ;;
17506       *)
17507         shlibpath_overrides_runpath=yes
17508         ;;
17509       esac
17510   else
17511     shlibpath_overrides_runpath=yes
17512   fi
17513   ;;
17514
17515 os2*)
17516   libname_spec='$name'
17517   shrext_cmds=".dll"
17518   need_lib_prefix=no
17519   library_names_spec='$libname${shared_ext} $libname.a'
17520   dynamic_linker='OS/2 ld.exe'
17521   shlibpath_var=LIBPATH
17522   ;;
17523
17524 osf3* | osf4* | osf5*)
17525   version_type=osf
17526   need_lib_prefix=no
17527   need_version=no
17528   soname_spec='${libname}${release}${shared_ext}$major'
17529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530   shlibpath_var=LD_LIBRARY_PATH
17531   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17532   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17533   ;;
17534
17535 sco3.2v5*)
17536   version_type=osf
17537   soname_spec='${libname}${release}${shared_ext}$major'
17538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539   shlibpath_var=LD_LIBRARY_PATH
17540   ;;
17541
17542 solaris*)
17543   version_type=linux
17544   need_lib_prefix=no
17545   need_version=no
17546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547   soname_spec='${libname}${release}${shared_ext}$major'
17548   shlibpath_var=LD_LIBRARY_PATH
17549   shlibpath_overrides_runpath=yes
17550   hardcode_into_libs=yes
17551   # ldd complains unless libraries are executable
17552   postinstall_cmds='chmod +x $lib'
17553   ;;
17554
17555 sunos4*)
17556   version_type=sunos
17557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17559   shlibpath_var=LD_LIBRARY_PATH
17560   shlibpath_overrides_runpath=yes
17561   if test "$with_gnu_ld" = yes; then
17562     need_lib_prefix=no
17563   fi
17564   need_version=yes
17565   ;;
17566
17567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17568   version_type=linux
17569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570   soname_spec='${libname}${release}${shared_ext}$major'
17571   shlibpath_var=LD_LIBRARY_PATH
17572   case $host_vendor in
17573     sni)
17574       shlibpath_overrides_runpath=no
17575       need_lib_prefix=no
17576       export_dynamic_flag_spec='${wl}-Blargedynsym'
17577       runpath_var=LD_RUN_PATH
17578       ;;
17579     siemens)
17580       need_lib_prefix=no
17581       ;;
17582     motorola)
17583       need_lib_prefix=no
17584       need_version=no
17585       shlibpath_overrides_runpath=no
17586       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17587       ;;
17588   esac
17589   ;;
17590
17591 sysv4*MP*)
17592   if test -d /usr/nec ;then
17593     version_type=linux
17594     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17595     soname_spec='$libname${shared_ext}.$major'
17596     shlibpath_var=LD_LIBRARY_PATH
17597   fi
17598   ;;
17599
17600 uts4*)
17601   version_type=linux
17602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603   soname_spec='${libname}${release}${shared_ext}$major'
17604   shlibpath_var=LD_LIBRARY_PATH
17605   ;;
17606
17607 *)
17608   dynamic_linker=no
17609   ;;
17610 esac
17611 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17612 echo "${ECHO_T}$dynamic_linker" >&6
17613 test "$dynamic_linker" = no && can_build_shared=no
17614
17615 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17617 hardcode_action_CXX=
17618 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17619    test -n "$runpath_var_CXX" || \
17620    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17621
17622   # We can hardcode non-existant directories.
17623   if test "$hardcode_direct_CXX" != no &&
17624      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17625      # have to relink, otherwise we might link with an installed library
17626      # when we should be linking with a yet-to-be-installed one
17627      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17628      test "$hardcode_minus_L_CXX" != no; then
17629     # Linking always hardcodes the temporary library directory.
17630     hardcode_action_CXX=relink
17631   else
17632     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17633     hardcode_action_CXX=immediate
17634   fi
17635 else
17636   # We cannot hardcode anything, or else we can only hardcode existing
17637   # directories.
17638   hardcode_action_CXX=unsupported
17639 fi
17640 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17641 echo "${ECHO_T}$hardcode_action_CXX" >&6
17642
17643 if test "$hardcode_action_CXX" = relink; then
17644   # Fast installation is not supported
17645   enable_fast_install=no
17646 elif test "$shlibpath_overrides_runpath" = yes ||
17647      test "$enable_shared" = no; then
17648   # Fast installation is not necessary
17649   enable_fast_install=needless
17650 fi
17651
17652 striplib=
17653 old_striplib=
17654 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17655 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17656 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17657   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17658   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17659   echo "$as_me:$LINENO: result: yes" >&5
17660 echo "${ECHO_T}yes" >&6
17661 else
17662 # FIXME - insert some real tests, host_os isn't really good enough
17663   case $host_os in
17664    darwin*)
17665        if test -n "$STRIP" ; then
17666          striplib="$STRIP -x"
17667          echo "$as_me:$LINENO: result: yes" >&5
17668 echo "${ECHO_T}yes" >&6
17669        else
17670   echo "$as_me:$LINENO: result: no" >&5
17671 echo "${ECHO_T}no" >&6
17672 fi
17673        ;;
17674    *)
17675   echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17677     ;;
17678   esac
17679 fi
17680
17681 if test "x$enable_dlopen" != xyes; then
17682   enable_dlopen=unknown
17683   enable_dlopen_self=unknown
17684   enable_dlopen_self_static=unknown
17685 else
17686   lt_cv_dlopen=no
17687   lt_cv_dlopen_libs=
17688
17689   case $host_os in
17690   beos*)
17691     lt_cv_dlopen="load_add_on"
17692     lt_cv_dlopen_libs=
17693     lt_cv_dlopen_self=yes
17694     ;;
17695
17696   mingw* | pw32*)
17697     lt_cv_dlopen="LoadLibrary"
17698     lt_cv_dlopen_libs=
17699    ;;
17700
17701   cygwin*)
17702     lt_cv_dlopen="dlopen"
17703     lt_cv_dlopen_libs=
17704    ;;
17705
17706   darwin*)
17707   # if libdl is installed we need to link against it
17708     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711   echo $ECHO_N "(cached) $ECHO_C" >&6
17712 else
17713   ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-ldl  $LIBS"
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h.  */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h.  */
17721
17722 /* Override any gcc2 internal prototype to avoid an error.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 /* We use char because int might match the return type of a gcc2
17727    builtin and then its argument prototype would still apply.  */
17728 char dlopen ();
17729 int
17730 main ()
17731 {
17732 dlopen ();
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739   (eval $ac_link) 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_cxx_werror_flag"
17747                          || test ! -s conftest.err'
17748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); }; } &&
17753          { ac_try='test -s conftest$ac_exeext'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; }; then
17759   ac_cv_lib_dl_dlopen=yes
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_cv_lib_dl_dlopen=no
17765 fi
17766 rm -f conftest.err conftest.$ac_objext \
17767       conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17769 fi
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774 else
17775
17776     lt_cv_dlopen="dyld"
17777     lt_cv_dlopen_libs=
17778     lt_cv_dlopen_self=yes
17779
17780 fi
17781
17782    ;;
17783
17784   *)
17785     echo "$as_me:$LINENO: checking for shl_load" >&5
17786 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17787 if test "${ac_cv_func_shl_load+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17798 #define shl_load innocuous_shl_load
17799
17800 /* System header to define __stub macros and hopefully few prototypes,
17801     which can conflict with char shl_load (); below.
17802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803     <limits.h> exists even on freestanding compilers.  */
17804
17805 #ifdef __STDC__
17806 # include <limits.h>
17807 #else
17808 # include <assert.h>
17809 #endif
17810
17811 #undef shl_load
17812
17813 /* Override any gcc2 internal prototype to avoid an error.  */
17814 #ifdef __cplusplus
17815 extern "C"
17816 {
17817 #endif
17818 /* We use char because int might match the return type of a gcc2
17819    builtin and then its argument prototype would still apply.  */
17820 char shl_load ();
17821 /* The GNU C library defines this for functions which it implements
17822     to always fail with ENOSYS.  Some functions are actually named
17823     something starting with __ and the normal name is an alias.  */
17824 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17825 choke me
17826 #else
17827 char (*f) () = shl_load;
17828 #endif
17829 #ifdef __cplusplus
17830 }
17831 #endif
17832
17833 int
17834 main ()
17835 {
17836 return f != shl_load;
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843   (eval $ac_link) 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_cxx_werror_flag"
17851                          || test ! -s conftest.err'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; } &&
17857          { ac_try='test -s conftest$ac_exeext'
17858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859   (eval $ac_try) 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; }; then
17863   ac_cv_func_shl_load=yes
17864 else
17865   echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868 ac_cv_func_shl_load=no
17869 fi
17870 rm -f conftest.err conftest.$ac_objext \
17871       conftest$ac_exeext conftest.$ac_ext
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17874 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17875 if test $ac_cv_func_shl_load = yes; then
17876   lt_cv_dlopen="shl_load"
17877 else
17878   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17879 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17880 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   ac_check_lib_save_LIBS=$LIBS
17884 LIBS="-ldld  $LIBS"
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891
17892 /* Override any gcc2 internal prototype to avoid an error.  */
17893 #ifdef __cplusplus
17894 extern "C"
17895 #endif
17896 /* We use char because int might match the return type of a gcc2
17897    builtin and then its argument prototype would still apply.  */
17898 char shl_load ();
17899 int
17900 main ()
17901 {
17902 shl_load ();
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17909   (eval $ac_link) 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } &&
17916          { ac_try='test -z "$ac_cxx_werror_flag"
17917                          || test ! -s conftest.err'
17918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919   (eval $ac_try) 2>&5
17920   ac_status=$?
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); }; } &&
17923          { ac_try='test -s conftest$ac_exeext'
17924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925   (eval $ac_try) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; }; then
17929   ac_cv_lib_dld_shl_load=yes
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_lib_dld_shl_load=no
17935 fi
17936 rm -f conftest.err conftest.$ac_objext \
17937       conftest$ac_exeext conftest.$ac_ext
17938 LIBS=$ac_check_lib_save_LIBS
17939 fi
17940 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17941 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17942 if test $ac_cv_lib_dld_shl_load = yes; then
17943   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17944 else
17945   echo "$as_me:$LINENO: checking for dlopen" >&5
17946 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17947 if test "${ac_cv_func_dlopen+set}" = set; then
17948   echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950   cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h.  */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h.  */
17956 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17958 #define dlopen innocuous_dlopen
17959
17960 /* System header to define __stub macros and hopefully few prototypes,
17961     which can conflict with char dlopen (); below.
17962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17963     <limits.h> exists even on freestanding compilers.  */
17964
17965 #ifdef __STDC__
17966 # include <limits.h>
17967 #else
17968 # include <assert.h>
17969 #endif
17970
17971 #undef dlopen
17972
17973 /* Override any gcc2 internal prototype to avoid an error.  */
17974 #ifdef __cplusplus
17975 extern "C"
17976 {
17977 #endif
17978 /* We use char because int might match the return type of a gcc2
17979    builtin and then its argument prototype would still apply.  */
17980 char dlopen ();
17981 /* The GNU C library defines this for functions which it implements
17982     to always fail with ENOSYS.  Some functions are actually named
17983     something starting with __ and the normal name is an alias.  */
17984 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17985 choke me
17986 #else
17987 char (*f) () = dlopen;
17988 #endif
17989 #ifdef __cplusplus
17990 }
17991 #endif
17992
17993 int
17994 main ()
17995 {
17996 return f != dlopen;
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003   (eval $ac_link) 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_cxx_werror_flag"
18011                          || test ! -s conftest.err'
18012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013   (eval $ac_try) 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; } &&
18017          { ac_try='test -s conftest$ac_exeext'
18018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019   (eval $ac_try) 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; }; then
18023   ac_cv_func_dlopen=yes
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 ac_cv_func_dlopen=no
18029 fi
18030 rm -f conftest.err conftest.$ac_objext \
18031       conftest$ac_exeext conftest.$ac_ext
18032 fi
18033 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18034 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18035 if test $ac_cv_func_dlopen = yes; then
18036   lt_cv_dlopen="dlopen"
18037 else
18038   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-ldl  $LIBS"
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h.  */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h.  */
18051
18052 /* Override any gcc2 internal prototype to avoid an error.  */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 /* We use char because int might match the return type of a gcc2
18057    builtin and then its argument prototype would still apply.  */
18058 char dlopen ();
18059 int
18060 main ()
18061 {
18062 dlopen ();
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18069   (eval $ac_link) 2>conftest.er1
18070   ac_status=$?
18071   grep -v '^ *+' conftest.er1 >conftest.err
18072   rm -f conftest.er1
18073   cat conftest.err >&5
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); } &&
18076          { ac_try='test -z "$ac_cxx_werror_flag"
18077                          || test ! -s conftest.err'
18078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079   (eval $ac_try) 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); }; } &&
18083          { ac_try='test -s conftest$ac_exeext'
18084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085   (eval $ac_try) 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); }; }; then
18089   ac_cv_lib_dl_dlopen=yes
18090 else
18091   echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ac_cv_lib_dl_dlopen=no
18095 fi
18096 rm -f conftest.err conftest.$ac_objext \
18097       conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18101 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18102 if test $ac_cv_lib_dl_dlopen = yes; then
18103   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18104 else
18105   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18106 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18107 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18108   echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110   ac_check_lib_save_LIBS=$LIBS
18111 LIBS="-lsvld  $LIBS"
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h.  */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h.  */
18118
18119 /* Override any gcc2 internal prototype to avoid an error.  */
18120 #ifdef __cplusplus
18121 extern "C"
18122 #endif
18123 /* We use char because int might match the return type of a gcc2
18124    builtin and then its argument prototype would still apply.  */
18125 char dlopen ();
18126 int
18127 main ()
18128 {
18129 dlopen ();
18130   ;
18131   return 0;
18132 }
18133 _ACEOF
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136   (eval $ac_link) 2>conftest.er1
18137   ac_status=$?
18138   grep -v '^ *+' conftest.er1 >conftest.err
18139   rm -f conftest.er1
18140   cat conftest.err >&5
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); } &&
18143          { ac_try='test -z "$ac_cxx_werror_flag"
18144                          || test ! -s conftest.err'
18145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146   (eval $ac_try) 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); }; } &&
18150          { ac_try='test -s conftest$ac_exeext'
18151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152   (eval $ac_try) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; }; then
18156   ac_cv_lib_svld_dlopen=yes
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 ac_cv_lib_svld_dlopen=no
18162 fi
18163 rm -f conftest.err conftest.$ac_objext \
18164       conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18166 fi
18167 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18168 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18169 if test $ac_cv_lib_svld_dlopen = yes; then
18170   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18171 else
18172   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18175   echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177   ac_check_lib_save_LIBS=$LIBS
18178 LIBS="-ldld  $LIBS"
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h.  */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h.  */
18185
18186 /* Override any gcc2 internal prototype to avoid an error.  */
18187 #ifdef __cplusplus
18188 extern "C"
18189 #endif
18190 /* We use char because int might match the return type of a gcc2
18191    builtin and then its argument prototype would still apply.  */
18192 char dld_link ();
18193 int
18194 main ()
18195 {
18196 dld_link ();
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203   (eval $ac_link) 2>conftest.er1
18204   ac_status=$?
18205   grep -v '^ *+' conftest.er1 >conftest.err
18206   rm -f conftest.er1
18207   cat conftest.err >&5
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); } &&
18210          { ac_try='test -z "$ac_cxx_werror_flag"
18211                          || test ! -s conftest.err'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; } &&
18217          { ac_try='test -s conftest$ac_exeext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ac_cv_lib_dld_dld_link=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ac_cv_lib_dld_dld_link=no
18229 fi
18230 rm -f conftest.err conftest.$ac_objext \
18231       conftest$ac_exeext conftest.$ac_ext
18232 LIBS=$ac_check_lib_save_LIBS
18233 fi
18234 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18235 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18236 if test $ac_cv_lib_dld_dld_link = yes; then
18237   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18238 fi
18239
18240
18241 fi
18242
18243
18244 fi
18245
18246
18247 fi
18248
18249
18250 fi
18251
18252
18253 fi
18254
18255     ;;
18256   esac
18257
18258   if test "x$lt_cv_dlopen" != xno; then
18259     enable_dlopen=yes
18260   else
18261     enable_dlopen=no
18262   fi
18263
18264   case $lt_cv_dlopen in
18265   dlopen)
18266     save_CPPFLAGS="$CPPFLAGS"
18267     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18268
18269     save_LDFLAGS="$LDFLAGS"
18270     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18271
18272     save_LIBS="$LIBS"
18273     LIBS="$lt_cv_dlopen_libs $LIBS"
18274
18275     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18276 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18277 if test "${lt_cv_dlopen_self+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280           if test "$cross_compiling" = yes; then :
18281   lt_cv_dlopen_self=cross
18282 else
18283   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18284   lt_status=$lt_dlunknown
18285   cat > conftest.$ac_ext <<EOF
18286 #line 18286 "configure"
18287 #include "confdefs.h"
18288
18289 #if HAVE_DLFCN_H
18290 #include <dlfcn.h>
18291 #endif
18292
18293 #include <stdio.h>
18294
18295 #ifdef RTLD_GLOBAL
18296 #  define LT_DLGLOBAL           RTLD_GLOBAL
18297 #else
18298 #  ifdef DL_GLOBAL
18299 #    define LT_DLGLOBAL         DL_GLOBAL
18300 #  else
18301 #    define LT_DLGLOBAL         0
18302 #  endif
18303 #endif
18304
18305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18306    find out it does not work in some platform. */
18307 #ifndef LT_DLLAZY_OR_NOW
18308 #  ifdef RTLD_LAZY
18309 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18310 #  else
18311 #    ifdef DL_LAZY
18312 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18313 #    else
18314 #      ifdef RTLD_NOW
18315 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18316 #      else
18317 #        ifdef DL_NOW
18318 #          define LT_DLLAZY_OR_NOW      DL_NOW
18319 #        else
18320 #          define LT_DLLAZY_OR_NOW      0
18321 #        endif
18322 #      endif
18323 #    endif
18324 #  endif
18325 #endif
18326
18327 #ifdef __cplusplus
18328 extern "C" void exit (int);
18329 #endif
18330
18331 void fnord() { int i=42;}
18332 int main ()
18333 {
18334   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18335   int status = $lt_dlunknown;
18336
18337   if (self)
18338     {
18339       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18340       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18341       /* dlclose (self); */
18342     }
18343
18344     exit (status);
18345 }
18346 EOF
18347   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348   (eval $ac_link) 2>&5
18349   ac_status=$?
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18352     (./conftest; exit; ) 2>/dev/null
18353     lt_status=$?
18354     case x$lt_status in
18355       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18356       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18357       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18358     esac
18359   else :
18360     # compilation failed
18361     lt_cv_dlopen_self=no
18362   fi
18363 fi
18364 rm -fr conftest*
18365
18366
18367 fi
18368 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18369 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18370
18371     if test "x$lt_cv_dlopen_self" = xyes; then
18372       LDFLAGS="$LDFLAGS $link_static_flag"
18373       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18374 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18375 if test "${lt_cv_dlopen_self_static+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378           if test "$cross_compiling" = yes; then :
18379   lt_cv_dlopen_self_static=cross
18380 else
18381   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18382   lt_status=$lt_dlunknown
18383   cat > conftest.$ac_ext <<EOF
18384 #line 18384 "configure"
18385 #include "confdefs.h"
18386
18387 #if HAVE_DLFCN_H
18388 #include <dlfcn.h>
18389 #endif
18390
18391 #include <stdio.h>
18392
18393 #ifdef RTLD_GLOBAL
18394 #  define LT_DLGLOBAL           RTLD_GLOBAL
18395 #else
18396 #  ifdef DL_GLOBAL
18397 #    define LT_DLGLOBAL         DL_GLOBAL
18398 #  else
18399 #    define LT_DLGLOBAL         0
18400 #  endif
18401 #endif
18402
18403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18404    find out it does not work in some platform. */
18405 #ifndef LT_DLLAZY_OR_NOW
18406 #  ifdef RTLD_LAZY
18407 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18408 #  else
18409 #    ifdef DL_LAZY
18410 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18411 #    else
18412 #      ifdef RTLD_NOW
18413 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18414 #      else
18415 #        ifdef DL_NOW
18416 #          define LT_DLLAZY_OR_NOW      DL_NOW
18417 #        else
18418 #          define LT_DLLAZY_OR_NOW      0
18419 #        endif
18420 #      endif
18421 #    endif
18422 #  endif
18423 #endif
18424
18425 #ifdef __cplusplus
18426 extern "C" void exit (int);
18427 #endif
18428
18429 void fnord() { int i=42;}
18430 int main ()
18431 {
18432   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18433   int status = $lt_dlunknown;
18434
18435   if (self)
18436     {
18437       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18438       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18439       /* dlclose (self); */
18440     }
18441
18442     exit (status);
18443 }
18444 EOF
18445   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446   (eval $ac_link) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18450     (./conftest; exit; ) 2>/dev/null
18451     lt_status=$?
18452     case x$lt_status in
18453       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18454       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18455       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18456     esac
18457   else :
18458     # compilation failed
18459     lt_cv_dlopen_self_static=no
18460   fi
18461 fi
18462 rm -fr conftest*
18463
18464
18465 fi
18466 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18467 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18468     fi
18469
18470     CPPFLAGS="$save_CPPFLAGS"
18471     LDFLAGS="$save_LDFLAGS"
18472     LIBS="$save_LIBS"
18473     ;;
18474   esac
18475
18476   case $lt_cv_dlopen_self in
18477   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18478   *) enable_dlopen_self=unknown ;;
18479   esac
18480
18481   case $lt_cv_dlopen_self_static in
18482   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18483   *) enable_dlopen_self_static=unknown ;;
18484   esac
18485 fi
18486
18487
18488 # The else clause should only fire when bootstrapping the
18489 # libtool distribution, otherwise you forgot to ship ltmain.sh
18490 # with your package, and you will get complaints that there are
18491 # no rules to generate ltmain.sh.
18492 if test -f "$ltmain"; then
18493   # See if we are running on zsh, and set the options which allow our commands through
18494   # without removal of \ escapes.
18495   if test -n "${ZSH_VERSION+set}" ; then
18496     setopt NO_GLOB_SUBST
18497   fi
18498   # Now quote all the things that may contain metacharacters while being
18499   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18500   # variables and quote the copies for generation of the libtool script.
18501   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18502     SED SHELL STRIP \
18503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505     deplibs_check_method reload_flag reload_cmds need_locks \
18506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507     lt_cv_sys_global_symbol_to_c_name_address \
18508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509     old_postinstall_cmds old_postuninstall_cmds \
18510     compiler_CXX \
18511     CC_CXX \
18512     LD_CXX \
18513     lt_prog_compiler_wl_CXX \
18514     lt_prog_compiler_pic_CXX \
18515     lt_prog_compiler_static_CXX \
18516     lt_prog_compiler_no_builtin_flag_CXX \
18517     export_dynamic_flag_spec_CXX \
18518     thread_safe_flag_spec_CXX \
18519     whole_archive_flag_spec_CXX \
18520     enable_shared_with_static_runtimes_CXX \
18521     old_archive_cmds_CXX \
18522     old_archive_from_new_cmds_CXX \
18523     predep_objects_CXX \
18524     postdep_objects_CXX \
18525     predeps_CXX \
18526     postdeps_CXX \
18527     compiler_lib_search_path_CXX \
18528     archive_cmds_CXX \
18529     archive_expsym_cmds_CXX \
18530     postinstall_cmds_CXX \
18531     postuninstall_cmds_CXX \
18532     old_archive_from_expsyms_cmds_CXX \
18533     allow_undefined_flag_CXX \
18534     no_undefined_flag_CXX \
18535     export_symbols_cmds_CXX \
18536     hardcode_libdir_flag_spec_CXX \
18537     hardcode_libdir_flag_spec_ld_CXX \
18538     hardcode_libdir_separator_CXX \
18539     hardcode_automatic_CXX \
18540     module_cmds_CXX \
18541     module_expsym_cmds_CXX \
18542     lt_cv_prog_compiler_c_o_CXX \
18543     exclude_expsyms_CXX \
18544     include_expsyms_CXX; do
18545
18546     case $var in
18547     old_archive_cmds_CXX | \
18548     old_archive_from_new_cmds_CXX | \
18549     archive_cmds_CXX | \
18550     archive_expsym_cmds_CXX | \
18551     module_cmds_CXX | \
18552     module_expsym_cmds_CXX | \
18553     old_archive_from_expsyms_cmds_CXX | \
18554     export_symbols_cmds_CXX | \
18555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556     postinstall_cmds | postuninstall_cmds | \
18557     old_postinstall_cmds | old_postuninstall_cmds | \
18558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559       # Double-quote double-evaled strings.
18560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18561       ;;
18562     *)
18563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18564       ;;
18565     esac
18566   done
18567
18568   case $lt_echo in
18569   *'\$0 --fallback-echo"')
18570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18571     ;;
18572   esac
18573
18574 cfgfile="$ofile"
18575
18576   cat <<__EOF__ >> "$cfgfile"
18577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18578
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18580
18581 # Shell to use when invoking shell scripts.
18582 SHELL=$lt_SHELL
18583
18584 # Whether or not to build shared libraries.
18585 build_libtool_libs=$enable_shared
18586
18587 # Whether or not to build static libraries.
18588 build_old_libs=$enable_static
18589
18590 # Whether or not to add -lc for building shared libraries.
18591 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18592
18593 # Whether or not to disallow shared libs when runtime libs are static
18594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18595
18596 # Whether or not to optimize for fast installation.
18597 fast_install=$enable_fast_install
18598
18599 # The host system.
18600 host_alias=$host_alias
18601 host=$host
18602
18603 # An echo program that does not interpret backslashes.
18604 echo=$lt_echo
18605
18606 # The archiver.
18607 AR=$lt_AR
18608 AR_FLAGS=$lt_AR_FLAGS
18609
18610 # A C compiler.
18611 LTCC=$lt_LTCC
18612
18613 # A language-specific compiler.
18614 CC=$lt_compiler_CXX
18615
18616 # Is the compiler the GNU C compiler?
18617 with_gcc=$GCC_CXX
18618
18619 # An ERE matcher.
18620 EGREP=$lt_EGREP
18621
18622 # The linker used to build libraries.
18623 LD=$lt_LD_CXX
18624
18625 # Whether we need hard or soft links.
18626 LN_S=$lt_LN_S
18627
18628 # A BSD-compatible nm program.
18629 NM=$lt_NM
18630
18631 # A symbol stripping program
18632 STRIP=$lt_STRIP
18633
18634 # Used to examine libraries when file_magic_cmd begins "file"
18635 MAGIC_CMD=$MAGIC_CMD
18636
18637 # Used on cygwin: DLL creation program.
18638 DLLTOOL="$DLLTOOL"
18639
18640 # Used on cygwin: object dumper.
18641 OBJDUMP="$OBJDUMP"
18642
18643 # Used on cygwin: assembler.
18644 AS="$AS"
18645
18646 # The name of the directory that contains temporary libtool files.
18647 objdir=$objdir
18648
18649 # How to create reloadable object files.
18650 reload_flag=$lt_reload_flag
18651 reload_cmds=$lt_reload_cmds
18652
18653 # How to pass a linker flag through the compiler.
18654 wl=$lt_lt_prog_compiler_wl_CXX
18655
18656 # Object file suffix (normally "o").
18657 objext="$ac_objext"
18658
18659 # Old archive suffix (normally "a").
18660 libext="$libext"
18661
18662 # Shared library suffix (normally ".so").
18663 shrext_cmds='$shrext_cmds'
18664
18665 # Executable file suffix (normally "").
18666 exeext="$exeext"
18667
18668 # Additional compiler flags for building library objects.
18669 pic_flag=$lt_lt_prog_compiler_pic_CXX
18670 pic_mode=$pic_mode
18671
18672 # What is the maximum length of a command?
18673 max_cmd_len=$lt_cv_sys_max_cmd_len
18674
18675 # Does compiler simultaneously support -c and -o options?
18676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18677
18678 # Must we lock files when doing compilation ?
18679 need_locks=$lt_need_locks
18680
18681 # Do we need the lib prefix for modules?
18682 need_lib_prefix=$need_lib_prefix
18683
18684 # Do we need a version for libraries?
18685 need_version=$need_version
18686
18687 # Whether dlopen is supported.
18688 dlopen_support=$enable_dlopen
18689
18690 # Whether dlopen of programs is supported.
18691 dlopen_self=$enable_dlopen_self
18692
18693 # Whether dlopen of statically linked programs is supported.
18694 dlopen_self_static=$enable_dlopen_self_static
18695
18696 # Compiler flag to prevent dynamic linking.
18697 link_static_flag=$lt_lt_prog_compiler_static_CXX
18698
18699 # Compiler flag to turn off builtin functions.
18700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18701
18702 # Compiler flag to allow reflexive dlopens.
18703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18704
18705 # Compiler flag to generate shared objects directly from archives.
18706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18707
18708 # Compiler flag to generate thread-safe objects.
18709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18710
18711 # Library versioning type.
18712 version_type=$version_type
18713
18714 # Format of library name prefix.
18715 libname_spec=$lt_libname_spec
18716
18717 # List of archive names.  First name is the real one, the rest are links.
18718 # The last name is the one that the linker finds with -lNAME.
18719 library_names_spec=$lt_library_names_spec
18720
18721 # The coded name of the library, if different from the real name.
18722 soname_spec=$lt_soname_spec
18723
18724 # Commands used to build and install an old-style archive.
18725 RANLIB=$lt_RANLIB
18726 old_archive_cmds=$lt_old_archive_cmds_CXX
18727 old_postinstall_cmds=$lt_old_postinstall_cmds
18728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18729
18730 # Create an old-style archive from a shared archive.
18731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18732
18733 # Create a temporary old-style archive to link instead of a shared archive.
18734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18735
18736 # Commands used to build and install a shared archive.
18737 archive_cmds=$lt_archive_cmds_CXX
18738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18739 postinstall_cmds=$lt_postinstall_cmds
18740 postuninstall_cmds=$lt_postuninstall_cmds
18741
18742 # Commands used to build a loadable module (assumed same as above if empty)
18743 module_cmds=$lt_module_cmds_CXX
18744 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18745
18746 # Commands to strip libraries.
18747 old_striplib=$lt_old_striplib
18748 striplib=$lt_striplib
18749
18750 # Dependencies to place before the objects being linked to create a
18751 # shared library.
18752 predep_objects=$lt_predep_objects_CXX
18753
18754 # Dependencies to place after the objects being linked to create a
18755 # shared library.
18756 postdep_objects=$lt_postdep_objects_CXX
18757
18758 # Dependencies to place before the objects being linked to create a
18759 # shared library.
18760 predeps=$lt_predeps_CXX
18761
18762 # Dependencies to place after the objects being linked to create a
18763 # shared library.
18764 postdeps=$lt_postdeps_CXX
18765
18766 # The library search path used internally by the compiler when linking
18767 # a shared library.
18768 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18769
18770 # Method to check whether dependent libraries are shared objects.
18771 deplibs_check_method=$lt_deplibs_check_method
18772
18773 # Command to use when deplibs_check_method == file_magic.
18774 file_magic_cmd=$lt_file_magic_cmd
18775
18776 # Flag that allows shared libraries with undefined symbols to be built.
18777 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18778
18779 # Flag that forces no undefined symbols.
18780 no_undefined_flag=$lt_no_undefined_flag_CXX
18781
18782 # Commands used to finish a libtool library installation in a directory.
18783 finish_cmds=$lt_finish_cmds
18784
18785 # Same as above, but a single script fragment to be evaled but not shown.
18786 finish_eval=$lt_finish_eval
18787
18788 # Take the output of nm and produce a listing of raw symbols and C names.
18789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18790
18791 # Transform the output of nm in a proper C declaration
18792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18793
18794 # Transform the output of nm in a C name address pair
18795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18796
18797 # This is the shared library runtime path variable.
18798 runpath_var=$runpath_var
18799
18800 # This is the shared library path variable.
18801 shlibpath_var=$shlibpath_var
18802
18803 # Is shlibpath searched before the hard-coded library search path?
18804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18805
18806 # How to hardcode a shared library path into an executable.
18807 hardcode_action=$hardcode_action_CXX
18808
18809 # Whether we should hardcode library paths into libraries.
18810 hardcode_into_libs=$hardcode_into_libs
18811
18812 # Flag to hardcode \$libdir into a binary during linking.
18813 # This must work even if \$libdir does not exist.
18814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18815
18816 # If ld is used when linking, flag to hardcode \$libdir into
18817 # a binary during linking. This must work even if \$libdir does
18818 # not exist.
18819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18820
18821 # Whether we need a single -rpath flag with a separated argument.
18822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18823
18824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18825 # resulting binary.
18826 hardcode_direct=$hardcode_direct_CXX
18827
18828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18829 # resulting binary.
18830 hardcode_minus_L=$hardcode_minus_L_CXX
18831
18832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18833 # the resulting binary.
18834 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18835
18836 # Set to yes if building a shared library automatically hardcodes DIR into the library
18837 # and all subsequent libraries and executables linked against it.
18838 hardcode_automatic=$hardcode_automatic_CXX
18839
18840 # Variables whose values should be saved in libtool wrapper scripts and
18841 # restored at relink time.
18842 variables_saved_for_relink="$variables_saved_for_relink"
18843
18844 # Whether libtool must link a program against all its dependency libraries.
18845 link_all_deplibs=$link_all_deplibs_CXX
18846
18847 # Compile-time system search path for libraries
18848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18849
18850 # Run-time system search path for libraries
18851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18852
18853 # Fix the shell variable \$srcfile for the compiler.
18854 fix_srcfile_path="$fix_srcfile_path_CXX"
18855
18856 # Set to yes if exported symbols are required.
18857 always_export_symbols=$always_export_symbols_CXX
18858
18859 # The commands to list exported symbols.
18860 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18861
18862 # The commands to extract the exported symbol list from a shared archive.
18863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18864
18865 # Symbols that should not be listed in the preloaded symbols.
18866 exclude_expsyms=$lt_exclude_expsyms_CXX
18867
18868 # Symbols that must always be exported.
18869 include_expsyms=$lt_include_expsyms_CXX
18870
18871 # ### END LIBTOOL TAG CONFIG: $tagname
18872
18873 __EOF__
18874
18875
18876 else
18877   # If there is no Makefile yet, we rely on a make rule to execute
18878   # `config.status --recheck' to rerun these tests and create the
18879   # libtool script then.
18880   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18881   if test -f "$ltmain_in"; then
18882     test -f Makefile && make "$ltmain"
18883   fi
18884 fi
18885
18886
18887 ac_ext=c
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893 CC=$lt_save_CC
18894 LDCXX=$LD
18895 LD=$lt_save_LD
18896 GCC=$lt_save_GCC
18897 with_gnu_ldcxx=$with_gnu_ld
18898 with_gnu_ld=$lt_save_with_gnu_ld
18899 lt_cv_path_LDCXX=$lt_cv_path_LD
18900 lt_cv_path_LD=$lt_save_path_LD
18901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18903
18904         else
18905           tagname=""
18906         fi
18907         ;;
18908
18909       F77)
18910         if test -n "$F77" && test "X$F77" != "Xno"; then
18911
18912 ac_ext=f
18913 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18914 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18916
18917
18918 archive_cmds_need_lc_F77=no
18919 allow_undefined_flag_F77=
18920 always_export_symbols_F77=no
18921 archive_expsym_cmds_F77=
18922 export_dynamic_flag_spec_F77=
18923 hardcode_direct_F77=no
18924 hardcode_libdir_flag_spec_F77=
18925 hardcode_libdir_flag_spec_ld_F77=
18926 hardcode_libdir_separator_F77=
18927 hardcode_minus_L_F77=no
18928 hardcode_automatic_F77=no
18929 module_cmds_F77=
18930 module_expsym_cmds_F77=
18931 link_all_deplibs_F77=unknown
18932 old_archive_cmds_F77=$old_archive_cmds
18933 no_undefined_flag_F77=
18934 whole_archive_flag_spec_F77=
18935 enable_shared_with_static_runtimes_F77=no
18936
18937 # Source file extension for f77 test sources.
18938 ac_ext=f
18939
18940 # Object file extension for compiled f77 test sources.
18941 objext=o
18942 objext_F77=$objext
18943
18944 # Code to be used in simple compile tests
18945 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18946
18947 # Code to be used in simple link tests
18948 lt_simple_link_test_code="      program t\n      end\n"
18949
18950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18951
18952 # If no C compiler was specified, use CC.
18953 LTCC=${LTCC-"$CC"}
18954
18955 # Allow CC to be a program name with arguments.
18956 compiler=$CC
18957
18958
18959 # Allow CC to be a program name with arguments.
18960 lt_save_CC="$CC"
18961 CC=${F77-"f77"}
18962 compiler=$CC
18963 compiler_F77=$CC
18964 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18965
18966 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18967 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18968 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18969 echo "${ECHO_T}$can_build_shared" >&6
18970
18971 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18972 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18973 test "$can_build_shared" = "no" && enable_shared=no
18974
18975 # On AIX, shared libraries and static libraries use the same namespace, and
18976 # are all built from PIC.
18977 case "$host_os" in
18978 aix3*)
18979   test "$enable_shared" = yes && enable_static=no
18980   if test -n "$RANLIB"; then
18981     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18982     postinstall_cmds='$RANLIB $lib'
18983   fi
18984   ;;
18985 aix4* | aix5*)
18986   test "$enable_shared" = yes && enable_static=no
18987   ;;
18988 esac
18989 echo "$as_me:$LINENO: result: $enable_shared" >&5
18990 echo "${ECHO_T}$enable_shared" >&6
18991
18992 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18993 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18994 # Make sure either enable_shared or enable_static is yes.
18995 test "$enable_shared" = yes || enable_static=yes
18996 echo "$as_me:$LINENO: result: $enable_static" >&5
18997 echo "${ECHO_T}$enable_static" >&6
18998
18999 test "$ld_shlibs_F77" = no && can_build_shared=no
19000
19001 GCC_F77="$G77"
19002 LD_F77="$LD"
19003
19004 lt_prog_compiler_wl_F77=
19005 lt_prog_compiler_pic_F77=
19006 lt_prog_compiler_static_F77=
19007
19008 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19009 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19010
19011   if test "$GCC" = yes; then
19012     lt_prog_compiler_wl_F77='-Wl,'
19013     lt_prog_compiler_static_F77='-static'
19014
19015     case $host_os in
19016       aix*)
19017       # All AIX code is PIC.
19018       if test "$host_cpu" = ia64; then
19019         # AIX 5 now supports IA64 processor
19020         lt_prog_compiler_static_F77='-Bstatic'
19021       fi
19022       ;;
19023
19024     amigaos*)
19025       # FIXME: we need at least 68020 code to build shared libraries, but
19026       # adding the `-m68020' flag to GCC prevents building anything better,
19027       # like `-m68040'.
19028       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19029       ;;
19030
19031     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19032       # PIC is the default for these OSes.
19033       ;;
19034
19035     mingw* | pw32* | os2*)
19036       # This hack is so that the source file can tell whether it is being
19037       # built for inclusion in a dll (and should export symbols for example).
19038       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19039       ;;
19040
19041     darwin* | rhapsody*)
19042       # PIC is the default on this platform
19043       # Common symbols not allowed in MH_DYLIB files
19044       lt_prog_compiler_pic_F77='-fno-common'
19045       ;;
19046
19047     msdosdjgpp*)
19048       # Just because we use GCC doesn't mean we suddenly get shared libraries
19049       # on systems that don't support them.
19050       lt_prog_compiler_can_build_shared_F77=no
19051       enable_shared=no
19052       ;;
19053
19054     sysv4*MP*)
19055       if test -d /usr/nec; then
19056         lt_prog_compiler_pic_F77=-Kconform_pic
19057       fi
19058       ;;
19059
19060     hpux*)
19061       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19062       # not for PA HP-UX.
19063       case "$host_cpu" in
19064       hppa*64*|ia64*)
19065         # +Z the default
19066         ;;
19067       *)
19068         lt_prog_compiler_pic_F77='-fPIC'
19069         ;;
19070       esac
19071       ;;
19072
19073     *)
19074       lt_prog_compiler_pic_F77='-fPIC'
19075       ;;
19076     esac
19077   else
19078     # PORTME Check for flag to pass linker flags through the system compiler.
19079     case $host_os in
19080     aix*)
19081       lt_prog_compiler_wl_F77='-Wl,'
19082       if test "$host_cpu" = ia64; then
19083         # AIX 5 now supports IA64 processor
19084         lt_prog_compiler_static_F77='-Bstatic'
19085       else
19086         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19087       fi
19088       ;;
19089       darwin*)
19090         # PIC is the default on this platform
19091         # Common symbols not allowed in MH_DYLIB files
19092        case "$cc_basename" in
19093          xlc*)
19094          lt_prog_compiler_pic_F77='-qnocommon'
19095          lt_prog_compiler_wl_F77='-Wl,'
19096          ;;
19097        esac
19098        ;;
19099
19100     mingw* | pw32* | os2*)
19101       # This hack is so that the source file can tell whether it is being
19102       # built for inclusion in a dll (and should export symbols for example).
19103       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19104       ;;
19105
19106     hpux9* | hpux10* | hpux11*)
19107       lt_prog_compiler_wl_F77='-Wl,'
19108       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19109       # not for PA HP-UX.
19110       case "$host_cpu" in
19111       hppa*64*|ia64*)
19112         # +Z the default
19113         ;;
19114       *)
19115         lt_prog_compiler_pic_F77='+Z'
19116         ;;
19117       esac
19118       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19119       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19120       ;;
19121
19122     irix5* | irix6* | nonstopux*)
19123       lt_prog_compiler_wl_F77='-Wl,'
19124       # PIC (with -KPIC) is the default.
19125       lt_prog_compiler_static_F77='-non_shared'
19126       ;;
19127
19128     newsos6)
19129       lt_prog_compiler_pic_F77='-KPIC'
19130       lt_prog_compiler_static_F77='-Bstatic'
19131       ;;
19132
19133     linux*)
19134       case $CC in
19135       icc* | ecc*)
19136         lt_prog_compiler_wl_F77='-Wl,'
19137         lt_prog_compiler_pic_F77='-KPIC'
19138         lt_prog_compiler_static_F77='-static'
19139         ;;
19140       ccc*)
19141         lt_prog_compiler_wl_F77='-Wl,'
19142         # All Alpha code is PIC.
19143         lt_prog_compiler_static_F77='-non_shared'
19144         ;;
19145       esac
19146       ;;
19147
19148     osf3* | osf4* | osf5*)
19149       lt_prog_compiler_wl_F77='-Wl,'
19150       # All OSF/1 code is PIC.
19151       lt_prog_compiler_static_F77='-non_shared'
19152       ;;
19153
19154     sco3.2v5*)
19155       lt_prog_compiler_pic_F77='-Kpic'
19156       lt_prog_compiler_static_F77='-dn'
19157       ;;
19158
19159     solaris*)
19160       lt_prog_compiler_wl_F77='-Wl,'
19161       lt_prog_compiler_pic_F77='-KPIC'
19162       lt_prog_compiler_static_F77='-Bstatic'
19163       ;;
19164
19165     sunos4*)
19166       lt_prog_compiler_wl_F77='-Qoption ld '
19167       lt_prog_compiler_pic_F77='-PIC'
19168       lt_prog_compiler_static_F77='-Bstatic'
19169       ;;
19170
19171     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19172       lt_prog_compiler_wl_F77='-Wl,'
19173       lt_prog_compiler_pic_F77='-KPIC'
19174       lt_prog_compiler_static_F77='-Bstatic'
19175       ;;
19176
19177     sysv4*MP*)
19178       if test -d /usr/nec ;then
19179         lt_prog_compiler_pic_F77='-Kconform_pic'
19180         lt_prog_compiler_static_F77='-Bstatic'
19181       fi
19182       ;;
19183
19184     uts4*)
19185       lt_prog_compiler_pic_F77='-pic'
19186       lt_prog_compiler_static_F77='-Bstatic'
19187       ;;
19188
19189     *)
19190       lt_prog_compiler_can_build_shared_F77=no
19191       ;;
19192     esac
19193   fi
19194
19195 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19196 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19197
19198 #
19199 # Check to make sure the PIC flag actually works.
19200 #
19201 if test -n "$lt_prog_compiler_pic_F77"; then
19202
19203 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19204 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19205 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19206   echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208   lt_prog_compiler_pic_works_F77=no
19209   ac_outfile=conftest.$ac_objext
19210    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19211    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19212    # Insert the option either (1) after the last *FLAGS variable, or
19213    # (2) before a word containing "conftest.", or (3) at the end.
19214    # Note that $ac_compile itself does not contain backslashes and begins
19215    # with a dollar sign (not a hyphen), so the echo should work correctly.
19216    # The option is referenced via a variable to avoid confusing sed.
19217    lt_compile=`echo "$ac_compile" | $SED \
19218    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19220    -e 's:$: $lt_compiler_flag:'`
19221    (eval echo "\"\$as_me:19221: $lt_compile\"" >&5)
19222    (eval "$lt_compile" 2>conftest.err)
19223    ac_status=$?
19224    cat conftest.err >&5
19225    echo "$as_me:19225: \$? = $ac_status" >&5
19226    if (exit $ac_status) && test -s "$ac_outfile"; then
19227      # The compiler can only warn and ignore the option if not recognized
19228      # So say no if there are warnings
19229      if test ! -s conftest.err; then
19230        lt_prog_compiler_pic_works_F77=yes
19231      fi
19232    fi
19233    $rm conftest*
19234
19235 fi
19236 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19237 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19238
19239 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19240     case $lt_prog_compiler_pic_F77 in
19241      "" | " "*) ;;
19242      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19243      esac
19244 else
19245     lt_prog_compiler_pic_F77=
19246      lt_prog_compiler_can_build_shared_F77=no
19247 fi
19248
19249 fi
19250 case "$host_os" in
19251   # For platforms which do not support PIC, -DPIC is meaningless:
19252   *djgpp*)
19253     lt_prog_compiler_pic_F77=
19254     ;;
19255   *)
19256     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19257     ;;
19258 esac
19259
19260 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19261 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19262 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   lt_cv_prog_compiler_c_o_F77=no
19266    $rm -r conftest 2>/dev/null
19267    mkdir conftest
19268    cd conftest
19269    mkdir out
19270    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19271
19272    lt_compiler_flag="-o out/conftest2.$ac_objext"
19273    # Insert the option either (1) after the last *FLAGS variable, or
19274    # (2) before a word containing "conftest.", or (3) at the end.
19275    # Note that $ac_compile itself does not contain backslashes and begins
19276    # with a dollar sign (not a hyphen), so the echo should work correctly.
19277    lt_compile=`echo "$ac_compile" | $SED \
19278    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19280    -e 's:$: $lt_compiler_flag:'`
19281    (eval echo "\"\$as_me:19281: $lt_compile\"" >&5)
19282    (eval "$lt_compile" 2>out/conftest.err)
19283    ac_status=$?
19284    cat out/conftest.err >&5
19285    echo "$as_me:19285: \$? = $ac_status" >&5
19286    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19287    then
19288      # The compiler can only warn and ignore the option if not recognized
19289      # So say no if there are warnings
19290      if test ! -s out/conftest.err; then
19291        lt_cv_prog_compiler_c_o_F77=yes
19292      fi
19293    fi
19294    chmod u+w .
19295    $rm conftest*
19296    # SGI C++ compiler will create directory out/ii_files/ for
19297    # template instantiation
19298    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19299    $rm out/* && rmdir out
19300    cd ..
19301    rmdir conftest
19302    $rm conftest*
19303
19304 fi
19305 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19306 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19307
19308
19309 hard_links="nottested"
19310 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19311   # do not overwrite the value of need_locks provided by the user
19312   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19313 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19314   hard_links=yes
19315   $rm conftest*
19316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19317   touch conftest.a
19318   ln conftest.a conftest.b 2>&5 || hard_links=no
19319   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19320   echo "$as_me:$LINENO: result: $hard_links" >&5
19321 echo "${ECHO_T}$hard_links" >&6
19322   if test "$hard_links" = no; then
19323     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19324 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19325     need_locks=warn
19326   fi
19327 else
19328   need_locks=no
19329 fi
19330
19331 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19332 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19333
19334   runpath_var=
19335   allow_undefined_flag_F77=
19336   enable_shared_with_static_runtimes_F77=no
19337   archive_cmds_F77=
19338   archive_expsym_cmds_F77=
19339   old_archive_From_new_cmds_F77=
19340   old_archive_from_expsyms_cmds_F77=
19341   export_dynamic_flag_spec_F77=
19342   whole_archive_flag_spec_F77=
19343   thread_safe_flag_spec_F77=
19344   hardcode_libdir_flag_spec_F77=
19345   hardcode_libdir_flag_spec_ld_F77=
19346   hardcode_libdir_separator_F77=
19347   hardcode_direct_F77=no
19348   hardcode_minus_L_F77=no
19349   hardcode_shlibpath_var_F77=unsupported
19350   link_all_deplibs_F77=unknown
19351   hardcode_automatic_F77=no
19352   module_cmds_F77=
19353   module_expsym_cmds_F77=
19354   always_export_symbols_F77=no
19355   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19356   # include_expsyms should be a list of space-separated symbols to be *always*
19357   # included in the symbol list
19358   include_expsyms_F77=
19359   # exclude_expsyms can be an extended regexp of symbols to exclude
19360   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19361   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19362   # as well as any symbol that contains `d'.
19363   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19364   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19365   # platforms (ab)use it in PIC code, but their linkers get confused if
19366   # the symbol is explicitly referenced.  Since portable code cannot
19367   # rely on this symbol name, it's probably fine to never include it in
19368   # preloaded symbol tables.
19369   extract_expsyms_cmds=
19370
19371   case $host_os in
19372   cygwin* | mingw* | pw32*)
19373     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19374     # When not using gcc, we currently assume that we are using
19375     # Microsoft Visual C++.
19376     if test "$GCC" != yes; then
19377       with_gnu_ld=no
19378     fi
19379     ;;
19380   openbsd*)
19381     with_gnu_ld=no
19382     ;;
19383   esac
19384
19385   ld_shlibs_F77=yes
19386   if test "$with_gnu_ld" = yes; then
19387     # If archive_cmds runs LD, not CC, wlarc should be empty
19388     wlarc='${wl}'
19389
19390     # See if GNU ld supports shared libraries.
19391     case $host_os in
19392     aix3* | aix4* | aix5*)
19393       # On AIX/PPC, the GNU linker is very broken
19394       if test "$host_cpu" != ia64; then
19395         ld_shlibs_F77=no
19396         cat <<EOF 1>&2
19397
19398 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19399 *** to be unable to reliably create shared libraries on AIX.
19400 *** Therefore, libtool is disabling shared libraries support.  If you
19401 *** really care for shared libraries, you may want to modify your PATH
19402 *** so that a non-GNU linker is found, and then restart.
19403
19404 EOF
19405       fi
19406       ;;
19407
19408     amigaos*)
19409       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)'
19410       hardcode_libdir_flag_spec_F77='-L$libdir'
19411       hardcode_minus_L_F77=yes
19412
19413       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19414       # that the semantics of dynamic libraries on AmigaOS, at least up
19415       # to version 4, is to share data among multiple programs linked
19416       # with the same dynamic library.  Since this doesn't match the
19417       # behavior of shared libraries on other platforms, we can't use
19418       # them.
19419       ld_shlibs_F77=no
19420       ;;
19421
19422     beos*)
19423       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19424         allow_undefined_flag_F77=unsupported
19425         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19426         # support --undefined.  This deserves some investigation.  FIXME
19427         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428       else
19429         ld_shlibs_F77=no
19430       fi
19431       ;;
19432
19433     cygwin* | mingw* | pw32*)
19434       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19435       # as there is no search path for DLLs.
19436       hardcode_libdir_flag_spec_F77='-L$libdir'
19437       allow_undefined_flag_F77=unsupported
19438       always_export_symbols_F77=no
19439       enable_shared_with_static_runtimes_F77=yes
19440       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19441
19442       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19443         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19444         # If the export-symbols file already is a .def file (1st line
19445         # is EXPORTS), use it as is; otherwise, prepend...
19446         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19447           cp $export_symbols $output_objdir/$soname.def;
19448         else
19449           echo EXPORTS > $output_objdir/$soname.def;
19450           cat $export_symbols >> $output_objdir/$soname.def;
19451         fi~
19452         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19453       else
19454         ld_shlibs=no
19455       fi
19456       ;;
19457
19458     netbsd*)
19459       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19460         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19461         wlarc=
19462       else
19463         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19464         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19465       fi
19466       ;;
19467
19468     solaris* | sysv5*)
19469       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19470         ld_shlibs_F77=no
19471         cat <<EOF 1>&2
19472
19473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19474 *** create shared libraries on Solaris systems.  Therefore, libtool
19475 *** is disabling shared libraries support.  We urge you to upgrade GNU
19476 *** binutils to release 2.9.1 or newer.  Another option is to modify
19477 *** your PATH or compiler configuration so that the native linker is
19478 *** used, and then restart.
19479
19480 EOF
19481       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19482         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19483         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19484       else
19485         ld_shlibs_F77=no
19486       fi
19487       ;;
19488
19489     sunos4*)
19490       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19491       wlarc=
19492       hardcode_direct_F77=yes
19493       hardcode_shlibpath_var_F77=no
19494       ;;
19495
19496   linux*)
19497     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19498         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499         archive_cmds_F77="$tmp_archive_cmds"
19500       supports_anon_versioning=no
19501       case `$LD -v 2>/dev/null` in
19502         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19503         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19504         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19505         *\ 2.11.*) ;; # other 2.11 versions
19506         *) supports_anon_versioning=yes ;;
19507       esac
19508       if test $supports_anon_versioning = yes; then
19509         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19511 $echo "local: *; };" >> $output_objdir/$libname.ver~
19512         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19513       else
19514         archive_expsym_cmds_F77="$tmp_archive_cmds"
19515       fi
19516     else
19517       ld_shlibs_F77=no
19518     fi
19519     ;;
19520
19521     *)
19522       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19523         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19524         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19525       else
19526         ld_shlibs_F77=no
19527       fi
19528       ;;
19529     esac
19530
19531     if test "$ld_shlibs_F77" = yes; then
19532       runpath_var=LD_RUN_PATH
19533       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19534       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19535       # ancient GNU ld didn't support --whole-archive et. al.
19536       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19537         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19538       else
19539         whole_archive_flag_spec_F77=
19540       fi
19541     fi
19542   else
19543     # PORTME fill in a description of your system's linker (not GNU ld)
19544     case $host_os in
19545     aix3*)
19546       allow_undefined_flag_F77=unsupported
19547       always_export_symbols_F77=yes
19548       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'
19549       # Note: this linker hardcodes the directories in LIBPATH if there
19550       # are no directories specified by -L.
19551       hardcode_minus_L_F77=yes
19552       if test "$GCC" = yes && test -z "$link_static_flag"; then
19553         # Neither direct hardcoding nor static linking is supported with a
19554         # broken collect2.
19555         hardcode_direct_F77=unsupported
19556       fi
19557       ;;
19558
19559     aix4* | aix5*)
19560       if test "$host_cpu" = ia64; then
19561         # On IA64, the linker does run time linking by default, so we don't
19562         # have to do anything special.
19563         aix_use_runtimelinking=no
19564         exp_sym_flag='-Bexport'
19565         no_entry_flag=""
19566       else
19567         # If we're using GNU nm, then we don't want the "-C" option.
19568         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19569         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19570           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'
19571         else
19572           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'
19573         fi
19574         aix_use_runtimelinking=no
19575
19576         # Test if we are trying to use run time linking or normal
19577         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19578         # need to do runtime linking.
19579         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19580           for ld_flag in $LDFLAGS; do
19581           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19582             aix_use_runtimelinking=yes
19583             break
19584           fi
19585           done
19586         esac
19587
19588         exp_sym_flag='-bexport'
19589         no_entry_flag='-bnoentry'
19590       fi
19591
19592       # When large executables or shared objects are built, AIX ld can
19593       # have problems creating the table of contents.  If linking a library
19594       # or program results in "error TOC overflow" add -mminimal-toc to
19595       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19596       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19597
19598       archive_cmds_F77=''
19599       hardcode_direct_F77=yes
19600       hardcode_libdir_separator_F77=':'
19601       link_all_deplibs_F77=yes
19602
19603       if test "$GCC" = yes; then
19604         case $host_os in aix4.012|aix4.012.*)
19605         # We only want to do this on AIX 4.2 and lower, the check
19606         # below for broken collect2 doesn't work under 4.3+
19607           collect2name=`${CC} -print-prog-name=collect2`
19608           if test -f "$collect2name" && \
19609            strings "$collect2name" | grep resolve_lib_name >/dev/null
19610           then
19611           # We have reworked collect2
19612           hardcode_direct_F77=yes
19613           else
19614           # We have old collect2
19615           hardcode_direct_F77=unsupported
19616           # It fails to find uninstalled libraries when the uninstalled
19617           # path is not listed in the libpath.  Setting hardcode_minus_L
19618           # to unsupported forces relinking
19619           hardcode_minus_L_F77=yes
19620           hardcode_libdir_flag_spec_F77='-L$libdir'
19621           hardcode_libdir_separator_F77=
19622           fi
19623         esac
19624         shared_flag='-shared'
19625       else
19626         # not using gcc
19627         if test "$host_cpu" = ia64; then
19628         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19629         # chokes on -Wl,-G. The following line is correct:
19630           shared_flag='-G'
19631         else
19632         if test "$aix_use_runtimelinking" = yes; then
19633             shared_flag='${wl}-G'
19634           else
19635             shared_flag='${wl}-bM:SRE'
19636         fi
19637         fi
19638       fi
19639
19640       # It seems that -bexpall does not export symbols beginning with
19641       # underscore (_), so it is better to generate a list of symbols to export.
19642       always_export_symbols_F77=yes
19643       if test "$aix_use_runtimelinking" = yes; then
19644         # Warning - without using the other runtime loading flags (-brtl),
19645         # -berok will link without error, but may produce a broken library.
19646         allow_undefined_flag_F77='-berok'
19647        # Determine the default libpath from the value encoded in an empty executable.
19648        cat >conftest.$ac_ext <<_ACEOF
19649       program main
19650
19651       end
19652 _ACEOF
19653 rm -f conftest.$ac_objext conftest$ac_exeext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19655   (eval $ac_link) 2>conftest.er1
19656   ac_status=$?
19657   grep -v '^ *+' conftest.er1 >conftest.err
19658   rm -f conftest.er1
19659   cat conftest.err >&5
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); } &&
19662          { ac_try='test -z "$ac_f77_werror_flag"
19663                          || test ! -s conftest.err'
19664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665   (eval $ac_try) 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); }; } &&
19669          { ac_try='test -s conftest$ac_exeext'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; }; then
19675
19676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19677 }'`
19678 # Check for a 64-bit object if we didn't find anything.
19679 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; }
19680 }'`; fi
19681 else
19682   echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 fi
19686 rm -f conftest.err conftest.$ac_objext \
19687       conftest$ac_exeext conftest.$ac_ext
19688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19689
19690        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19691         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"
19692        else
19693         if test "$host_cpu" = ia64; then
19694           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19695           allow_undefined_flag_F77="-z nodefs"
19696           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"
19697         else
19698          # Determine the default libpath from the value encoded in an empty executable.
19699          cat >conftest.$ac_ext <<_ACEOF
19700       program main
19701
19702       end
19703 _ACEOF
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706   (eval $ac_link) 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } &&
19713          { ac_try='test -z "$ac_f77_werror_flag"
19714                          || test ! -s conftest.err'
19715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716   (eval $ac_try) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); }; } &&
19720          { ac_try='test -s conftest$ac_exeext'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726
19727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19728 }'`
19729 # Check for a 64-bit object if we didn't find anything.
19730 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; }
19731 }'`; fi
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 fi
19737 rm -f conftest.err conftest.$ac_objext \
19738       conftest$ac_exeext conftest.$ac_ext
19739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19740
19741          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19742           # Warning - without using the other run time loading flags,
19743           # -berok will link without error, but may produce a broken library.
19744           no_undefined_flag_F77=' ${wl}-bernotok'
19745           allow_undefined_flag_F77=' ${wl}-berok'
19746           # -bexpall does not export symbols beginning with underscore (_)
19747           always_export_symbols_F77=yes
19748           # Exported symbols can be pulled into shared objects from archives
19749           whole_archive_flag_spec_F77=' '
19750           archive_cmds_need_lc_F77=yes
19751           # This is similar to how AIX traditionally builds it's shared libraries.
19752           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'
19753         fi
19754       fi
19755       ;;
19756
19757     amigaos*)
19758       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)'
19759       hardcode_libdir_flag_spec_F77='-L$libdir'
19760       hardcode_minus_L_F77=yes
19761       # see comment about different semantics on the GNU ld section
19762       ld_shlibs_F77=no
19763       ;;
19764
19765     bsdi[45]*)
19766       export_dynamic_flag_spec_F77=-rdynamic
19767       ;;
19768
19769     cygwin* | mingw* | pw32*)
19770       # When not using gcc, we currently assume that we are using
19771       # Microsoft Visual C++.
19772       # hardcode_libdir_flag_spec is actually meaningless, as there is
19773       # no search path for DLLs.
19774       hardcode_libdir_flag_spec_F77=' '
19775       allow_undefined_flag_F77=unsupported
19776       # Tell ltmain to make .lib files, not .a files.
19777       libext=lib
19778       # Tell ltmain to make .dll files, not .so files.
19779       shrext_cmds=".dll"
19780       # FIXME: Setting linknames here is a bad hack.
19781       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19782       # The linker will automatically build a .lib file if we build a DLL.
19783       old_archive_From_new_cmds_F77='true'
19784       # FIXME: Should let the user specify the lib program.
19785       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19786       fix_srcfile_path='`cygpath -w "$srcfile"`'
19787       enable_shared_with_static_runtimes_F77=yes
19788       ;;
19789
19790     darwin* | rhapsody*)
19791       case "$host_os" in
19792         rhapsody* | darwin1.[012])
19793          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19794          ;;
19795        *) # Darwin 1.3 on
19796          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19797            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19798          else
19799            case ${MACOSX_DEPLOYMENT_TARGET} in
19800              10.[012])
19801                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19802                ;;
19803              10.*)
19804                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19805                ;;
19806            esac
19807          fi
19808          ;;
19809       esac
19810       archive_cmds_need_lc_F77=no
19811       hardcode_direct_F77=no
19812       hardcode_automatic_F77=yes
19813       hardcode_shlibpath_var_F77=unsupported
19814       whole_archive_flag_spec_F77=''
19815       link_all_deplibs_F77=yes
19816     if test "$GCC" = yes ; then
19817         output_verbose_link_cmd='echo'
19818         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19819       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19820       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19821       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}'
19822       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}'
19823     else
19824       case "$cc_basename" in
19825         xlc*)
19826          output_verbose_link_cmd='echo'
19827          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19828          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19829           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19830          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}'
19831           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}'
19832           ;;
19833        *)
19834          ld_shlibs_F77=no
19835           ;;
19836       esac
19837     fi
19838       ;;
19839
19840     dgux*)
19841       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842       hardcode_libdir_flag_spec_F77='-L$libdir'
19843       hardcode_shlibpath_var_F77=no
19844       ;;
19845
19846     freebsd1*)
19847       ld_shlibs_F77=no
19848       ;;
19849
19850     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19851     # support.  Future versions do this automatically, but an explicit c++rt0.o
19852     # does not break anything, and helps significantly (at the cost of a little
19853     # extra space).
19854     freebsd2.2*)
19855       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19856       hardcode_libdir_flag_spec_F77='-R$libdir'
19857       hardcode_direct_F77=yes
19858       hardcode_shlibpath_var_F77=no
19859       ;;
19860
19861     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19862     freebsd2*)
19863       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19864       hardcode_direct_F77=yes
19865       hardcode_minus_L_F77=yes
19866       hardcode_shlibpath_var_F77=no
19867       ;;
19868
19869     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19870     freebsd* | kfreebsd*-gnu)
19871       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19872       hardcode_libdir_flag_spec_F77='-R$libdir'
19873       hardcode_direct_F77=yes
19874       hardcode_shlibpath_var_F77=no
19875       ;;
19876
19877     hpux9*)
19878       if test "$GCC" = yes; then
19879         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'
19880       else
19881         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'
19882       fi
19883       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19884       hardcode_libdir_separator_F77=:
19885       hardcode_direct_F77=yes
19886
19887       # hardcode_minus_L: Not really in the search PATH,
19888       # but as the default location of the library.
19889       hardcode_minus_L_F77=yes
19890       export_dynamic_flag_spec_F77='${wl}-E'
19891       ;;
19892
19893     hpux10* | hpux11*)
19894       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19895         case "$host_cpu" in
19896         hppa*64*|ia64*)
19897           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19898           ;;
19899         *)
19900           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19901           ;;
19902         esac
19903       else
19904         case "$host_cpu" in
19905         hppa*64*|ia64*)
19906           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19907           ;;
19908         *)
19909           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19910           ;;
19911         esac
19912       fi
19913       if test "$with_gnu_ld" = no; then
19914         case "$host_cpu" in
19915         hppa*64*)
19916           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19917           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19918           hardcode_libdir_separator_F77=:
19919           hardcode_direct_F77=no
19920           hardcode_shlibpath_var_F77=no
19921           ;;
19922         ia64*)
19923           hardcode_libdir_flag_spec_F77='-L$libdir'
19924           hardcode_direct_F77=no
19925           hardcode_shlibpath_var_F77=no
19926
19927           # hardcode_minus_L: Not really in the search PATH,
19928           # but as the default location of the library.
19929           hardcode_minus_L_F77=yes
19930           ;;
19931         *)
19932           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19933           hardcode_libdir_separator_F77=:
19934           hardcode_direct_F77=yes
19935           export_dynamic_flag_spec_F77='${wl}-E'
19936
19937           # hardcode_minus_L: Not really in the search PATH,
19938           # but as the default location of the library.
19939           hardcode_minus_L_F77=yes
19940           ;;
19941         esac
19942       fi
19943       ;;
19944
19945     irix5* | irix6* | nonstopux*)
19946       if test "$GCC" = yes; then
19947         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'
19948       else
19949         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'
19950         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19951       fi
19952       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19953       hardcode_libdir_separator_F77=:
19954       link_all_deplibs_F77=yes
19955       ;;
19956
19957     netbsd*)
19958       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19959         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19960       else
19961         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19962       fi
19963       hardcode_libdir_flag_spec_F77='-R$libdir'
19964       hardcode_direct_F77=yes
19965       hardcode_shlibpath_var_F77=no
19966       ;;
19967
19968     newsos6)
19969       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19970       hardcode_direct_F77=yes
19971       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19972       hardcode_libdir_separator_F77=:
19973       hardcode_shlibpath_var_F77=no
19974       ;;
19975
19976     openbsd*)
19977       hardcode_direct_F77=yes
19978       hardcode_shlibpath_var_F77=no
19979       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19980         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19981         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19982         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19983         export_dynamic_flag_spec_F77='${wl}-E'
19984       else
19985        case $host_os in
19986          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19987            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19988            hardcode_libdir_flag_spec_F77='-R$libdir'
19989            ;;
19990          *)
19991            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19992            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19993            ;;
19994        esac
19995       fi
19996       ;;
19997
19998     os2*)
19999       hardcode_libdir_flag_spec_F77='-L$libdir'
20000       hardcode_minus_L_F77=yes
20001       allow_undefined_flag_F77=unsupported
20002       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'
20003       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20004       ;;
20005
20006     osf3*)
20007       if test "$GCC" = yes; then
20008         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20009         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'
20010       else
20011         allow_undefined_flag_F77=' -expect_unresolved \*'
20012         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'
20013       fi
20014       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20015       hardcode_libdir_separator_F77=:
20016       ;;
20017
20018     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20019       if test "$GCC" = yes; then
20020         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20021         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'
20022         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20023       else
20024         allow_undefined_flag_F77=' -expect_unresolved \*'
20025         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'
20026         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~
20027         $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'
20028
20029         # Both c and cxx compiler support -rpath directly
20030         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20031       fi
20032       hardcode_libdir_separator_F77=:
20033       ;;
20034
20035     sco3.2v5*)
20036       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20037       hardcode_shlibpath_var_F77=no
20038       export_dynamic_flag_spec_F77='${wl}-Bexport'
20039       runpath_var=LD_RUN_PATH
20040       hardcode_runpath_var=yes
20041       ;;
20042
20043     solaris*)
20044       no_undefined_flag_F77=' -z text'
20045       if test "$GCC" = yes; then
20046         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20048           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20049       else
20050         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20051         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20052         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20053       fi
20054       hardcode_libdir_flag_spec_F77='-R$libdir'
20055       hardcode_shlibpath_var_F77=no
20056       case $host_os in
20057       solaris2.[0-5] | solaris2.[0-5].*) ;;
20058       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20059         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20060       esac
20061       link_all_deplibs_F77=yes
20062       ;;
20063
20064     sunos4*)
20065       if test "x$host_vendor" = xsequent; then
20066         # Use $CC to link under sequent, because it throws in some extra .o
20067         # files that make .init and .fini sections work.
20068         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20069       else
20070         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20071       fi
20072       hardcode_libdir_flag_spec_F77='-L$libdir'
20073       hardcode_direct_F77=yes
20074       hardcode_minus_L_F77=yes
20075       hardcode_shlibpath_var_F77=no
20076       ;;
20077
20078     sysv4)
20079       case $host_vendor in
20080         sni)
20081           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20082           hardcode_direct_F77=yes # is this really true???
20083         ;;
20084         siemens)
20085           ## LD is ld it makes a PLAMLIB
20086           ## CC just makes a GrossModule.
20087           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20088           reload_cmds_F77='$CC -r -o $output$reload_objs'
20089           hardcode_direct_F77=no
20090         ;;
20091         motorola)
20092           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20094         ;;
20095       esac
20096       runpath_var='LD_RUN_PATH'
20097       hardcode_shlibpath_var_F77=no
20098       ;;
20099
20100     sysv4.3*)
20101       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20102       hardcode_shlibpath_var_F77=no
20103       export_dynamic_flag_spec_F77='-Bexport'
20104       ;;
20105
20106     sysv4*MP*)
20107       if test -d /usr/nec; then
20108         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20109         hardcode_shlibpath_var_F77=no
20110         runpath_var=LD_RUN_PATH
20111         hardcode_runpath_var=yes
20112         ld_shlibs_F77=yes
20113       fi
20114       ;;
20115
20116     sysv4.2uw2*)
20117       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20118       hardcode_direct_F77=yes
20119       hardcode_minus_L_F77=no
20120       hardcode_shlibpath_var_F77=no
20121       hardcode_runpath_var=yes
20122       runpath_var=LD_RUN_PATH
20123       ;;
20124
20125    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20126       no_undefined_flag_F77='${wl}-z ${wl}text'
20127       if test "$GCC" = yes; then
20128         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20129       else
20130         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20131       fi
20132       runpath_var='LD_RUN_PATH'
20133       hardcode_shlibpath_var_F77=no
20134       ;;
20135
20136     sysv5*)
20137       no_undefined_flag_F77=' -z text'
20138       # $CC -shared without GNU ld will not create a library from C++
20139       # object files and a static libstdc++, better avoid it by now
20140       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20141       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20142                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20143       hardcode_libdir_flag_spec_F77=
20144       hardcode_shlibpath_var_F77=no
20145       runpath_var='LD_RUN_PATH'
20146       ;;
20147
20148     uts4*)
20149       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20150       hardcode_libdir_flag_spec_F77='-L$libdir'
20151       hardcode_shlibpath_var_F77=no
20152       ;;
20153
20154     *)
20155       ld_shlibs_F77=no
20156       ;;
20157     esac
20158   fi
20159
20160 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20161 echo "${ECHO_T}$ld_shlibs_F77" >&6
20162 test "$ld_shlibs_F77" = no && can_build_shared=no
20163
20164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20165 if test "$GCC" = yes; then
20166   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20167 fi
20168
20169 #
20170 # Do we need to explicitly link libc?
20171 #
20172 case "x$archive_cmds_need_lc_F77" in
20173 x|xyes)
20174   # Assume -lc should be added
20175   archive_cmds_need_lc_F77=yes
20176
20177   if test "$enable_shared" = yes && test "$GCC" = yes; then
20178     case $archive_cmds_F77 in
20179     *'~'*)
20180       # FIXME: we may have to deal with multi-command sequences.
20181       ;;
20182     '$CC '*)
20183       # Test whether the compiler implicitly links with -lc since on some
20184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185       # to ld, don't add -lc before -lgcc.
20186       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20188       $rm conftest*
20189       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20190
20191       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192   (eval $ac_compile) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } 2>conftest.err; then
20196         soname=conftest
20197         lib=conftest
20198         libobjs=conftest.$ac_objext
20199         deplibs=
20200         wl=$lt_prog_compiler_wl_F77
20201         compiler_flags=-v
20202         linker_flags=-v
20203         verstring=
20204         output_objdir=.
20205         libname=conftest
20206         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20207         allow_undefined_flag_F77=
20208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20209   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }
20213         then
20214           archive_cmds_need_lc_F77=no
20215         else
20216           archive_cmds_need_lc_F77=yes
20217         fi
20218         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20219       else
20220         cat conftest.err 1>&5
20221       fi
20222       $rm conftest*
20223       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20224 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20225       ;;
20226     esac
20227   fi
20228   ;;
20229 esac
20230
20231 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20233 library_names_spec=
20234 libname_spec='lib$name'
20235 soname_spec=
20236 shrext_cmds=".so"
20237 postinstall_cmds=
20238 postuninstall_cmds=
20239 finish_cmds=
20240 finish_eval=
20241 shlibpath_var=
20242 shlibpath_overrides_runpath=unknown
20243 version_type=none
20244 dynamic_linker="$host_os ld.so"
20245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20246 if test "$GCC" = yes; then
20247   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20248   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20249     # if the path contains ";" then we assume it to be the separator
20250     # otherwise default to the standard path separator (i.e. ":") - it is
20251     # assumed that no part of a normal pathname contains ";" but that should
20252     # okay in the real world where ";" in dirpaths is itself problematic.
20253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20254   else
20255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20256   fi
20257 else
20258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20259 fi
20260 need_lib_prefix=unknown
20261 hardcode_into_libs=no
20262
20263 # when you set need_version to no, make sure it does not cause -set_version
20264 # flags to be left without arguments
20265 need_version=unknown
20266
20267 case $host_os in
20268 aix3*)
20269   version_type=linux
20270   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20271   shlibpath_var=LIBPATH
20272
20273   # AIX 3 has no versioning support, so we append a major version to the name.
20274   soname_spec='${libname}${release}${shared_ext}$major'
20275   ;;
20276
20277 aix4* | aix5*)
20278   version_type=linux
20279   need_lib_prefix=no
20280   need_version=no
20281   hardcode_into_libs=yes
20282   if test "$host_cpu" = ia64; then
20283     # AIX 5 supports IA64
20284     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20285     shlibpath_var=LD_LIBRARY_PATH
20286   else
20287     # With GCC up to 2.95.x, collect2 would create an import file
20288     # for dependence libraries.  The import file would start with
20289     # the line `#! .'.  This would cause the generated library to
20290     # depend on `.', always an invalid library.  This was fixed in
20291     # development snapshots of GCC prior to 3.0.
20292     case $host_os in
20293       aix4 | aix4.[01] | aix4.[01].*)
20294       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20295            echo ' yes '
20296            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20297         :
20298       else
20299         can_build_shared=no
20300       fi
20301       ;;
20302     esac
20303     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20304     # soname into executable. Probably we can add versioning support to
20305     # collect2, so additional links can be useful in future.
20306     if test "$aix_use_runtimelinking" = yes; then
20307       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20308       # instead of lib<name>.a to let people know that these are not
20309       # typical AIX shared libraries.
20310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311     else
20312       # We preserve .a as extension for shared libraries through AIX4.2
20313       # and later when we are not doing run time linking.
20314       library_names_spec='${libname}${release}.a $libname.a'
20315       soname_spec='${libname}${release}${shared_ext}$major'
20316     fi
20317     shlibpath_var=LIBPATH
20318   fi
20319   ;;
20320
20321 amigaos*)
20322   library_names_spec='$libname.ixlibrary $libname.a'
20323   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20324   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'
20325   ;;
20326
20327 beos*)
20328   library_names_spec='${libname}${shared_ext}'
20329   dynamic_linker="$host_os ld.so"
20330   shlibpath_var=LIBRARY_PATH
20331   ;;
20332
20333 bsdi[45]*)
20334   version_type=linux
20335   need_version=no
20336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337   soname_spec='${libname}${release}${shared_ext}$major'
20338   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20339   shlibpath_var=LD_LIBRARY_PATH
20340   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20341   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20342   # the default ld.so.conf also contains /usr/contrib/lib and
20343   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20344   # libtool to hard-code these into programs
20345   ;;
20346
20347 cygwin* | mingw* | pw32*)
20348   version_type=windows
20349   shrext_cmds=".dll"
20350   need_version=no
20351   need_lib_prefix=no
20352
20353   case $GCC,$host_os in
20354   yes,cygwin* | yes,mingw* | yes,pw32*)
20355     library_names_spec='$libname.dll.a'
20356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20357     postinstall_cmds='base_file=`basename \${file}`~
20358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20359       dldir=$destdir/`dirname \$dlpath`~
20360       test -d \$dldir || mkdir -p \$dldir~
20361       $install_prog $dir/$dlname \$dldir/$dlname'
20362     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20363       dlpath=$dir/\$dldll~
20364        $rm \$dlpath'
20365     shlibpath_overrides_runpath=yes
20366
20367     case $host_os in
20368     cygwin*)
20369       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20370       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20371       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20372       ;;
20373     mingw*)
20374       # MinGW DLLs use traditional 'lib' prefix
20375       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20377       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20378         # It is most probably a Windows format PATH printed by
20379         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20380         # path with ; separators, and with drive letters. We can handle the
20381         # drive letters (cygwin fileutils understands them), so leave them,
20382         # especially as we might pass files found there to a mingw objdump,
20383         # which wouldn't understand a cygwinified path. Ahh.
20384         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20385       else
20386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20387       fi
20388       ;;
20389     pw32*)
20390       # pw32 DLLs use 'pw' prefix rather than 'lib'
20391       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20392       ;;
20393     esac
20394     ;;
20395
20396   *)
20397     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20398     ;;
20399   esac
20400   dynamic_linker='Win32 ld.exe'
20401   # FIXME: first we should search . and the directory the executable is in
20402   shlibpath_var=PATH
20403   ;;
20404
20405 darwin* | rhapsody*)
20406   dynamic_linker="$host_os dyld"
20407   version_type=darwin
20408   need_lib_prefix=no
20409   need_version=no
20410   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20411   soname_spec='${libname}${release}${major}$shared_ext'
20412   shlibpath_overrides_runpath=yes
20413   shlibpath_var=DYLD_LIBRARY_PATH
20414   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20415   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20416   if test "$GCC" = yes; then
20417     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"`
20418   else
20419     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20420   fi
20421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20422   ;;
20423
20424 dgux*)
20425   version_type=linux
20426   need_lib_prefix=no
20427   need_version=no
20428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20429   soname_spec='${libname}${release}${shared_ext}$major'
20430   shlibpath_var=LD_LIBRARY_PATH
20431   ;;
20432
20433 freebsd1*)
20434   dynamic_linker=no
20435   ;;
20436
20437 kfreebsd*-gnu)
20438   version_type=linux
20439   need_lib_prefix=no
20440   need_version=no
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20442   soname_spec='${libname}${release}${shared_ext}$major'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   shlibpath_overrides_runpath=no
20445   hardcode_into_libs=yes
20446   dynamic_linker='GNU ld.so'
20447   ;;
20448
20449 freebsd*)
20450   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20451   version_type=freebsd-$objformat
20452   case $version_type in
20453     freebsd-elf*)
20454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20455       need_version=no
20456       need_lib_prefix=no
20457       ;;
20458     freebsd-*)
20459       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20460       need_version=yes
20461       ;;
20462   esac
20463   shlibpath_var=LD_LIBRARY_PATH
20464   case $host_os in
20465   freebsd2*)
20466     shlibpath_overrides_runpath=yes
20467     ;;
20468   freebsd3.01* | freebsdelf3.01*)
20469     shlibpath_overrides_runpath=yes
20470     hardcode_into_libs=yes
20471     ;;
20472   *) # from 3.2 on
20473     shlibpath_overrides_runpath=no
20474     hardcode_into_libs=yes
20475     ;;
20476   esac
20477   ;;
20478
20479 gnu*)
20480   version_type=linux
20481   need_lib_prefix=no
20482   need_version=no
20483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20484   soname_spec='${libname}${release}${shared_ext}$major'
20485   shlibpath_var=LD_LIBRARY_PATH
20486   hardcode_into_libs=yes
20487   ;;
20488
20489 hpux9* | hpux10* | hpux11*)
20490   # Give a soname corresponding to the major version so that dld.sl refuses to
20491   # link against other versions.
20492   version_type=sunos
20493   need_lib_prefix=no
20494   need_version=no
20495   case "$host_cpu" in
20496   ia64*)
20497     shrext_cmds='.so'
20498     hardcode_into_libs=yes
20499     dynamic_linker="$host_os dld.so"
20500     shlibpath_var=LD_LIBRARY_PATH
20501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503     soname_spec='${libname}${release}${shared_ext}$major'
20504     if test "X$HPUX_IA64_MODE" = X32; then
20505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20506     else
20507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20508     fi
20509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20510     ;;
20511    hppa*64*)
20512      shrext_cmds='.sl'
20513      hardcode_into_libs=yes
20514      dynamic_linker="$host_os dld.sl"
20515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518      soname_spec='${libname}${release}${shared_ext}$major'
20519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20521      ;;
20522    *)
20523     shrext_cmds='.sl'
20524     dynamic_linker="$host_os dld.sl"
20525     shlibpath_var=SHLIB_PATH
20526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528     soname_spec='${libname}${release}${shared_ext}$major'
20529     ;;
20530   esac
20531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20532   postinstall_cmds='chmod 555 $lib'
20533   ;;
20534
20535 irix5* | irix6* | nonstopux*)
20536   case $host_os in
20537     nonstopux*) version_type=nonstopux ;;
20538     *)
20539         if test "$lt_cv_prog_gnu_ld" = yes; then
20540                 version_type=linux
20541         else
20542                 version_type=irix
20543         fi ;;
20544   esac
20545   need_lib_prefix=no
20546   need_version=no
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20549   case $host_os in
20550   irix5* | nonstopux*)
20551     libsuff= shlibsuff=
20552     ;;
20553   *)
20554     case $LD in # libtool.m4 will add one of these switches to LD
20555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20556       libsuff= shlibsuff= libmagic=32-bit;;
20557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20558       libsuff=32 shlibsuff=N32 libmagic=N32;;
20559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20561     *) libsuff= shlibsuff= libmagic=never-match;;
20562     esac
20563     ;;
20564   esac
20565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20566   shlibpath_overrides_runpath=no
20567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20569   hardcode_into_libs=yes
20570   ;;
20571
20572 # No shared lib support for Linux oldld, aout, or coff.
20573 linux*oldld* | linux*aout* | linux*coff*)
20574   dynamic_linker=no
20575   ;;
20576
20577 # This must be Linux ELF.
20578 linux*)
20579   version_type=linux
20580   need_lib_prefix=no
20581   need_version=no
20582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583   soname_spec='${libname}${release}${shared_ext}$major'
20584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20585   shlibpath_var=LD_LIBRARY_PATH
20586   shlibpath_overrides_runpath=no
20587   # This implies no fast_install, which is unacceptable.
20588   # Some rework will be needed to allow for fast_install
20589   # before this can be enabled.
20590   hardcode_into_libs=yes
20591
20592   # Append ld.so.conf contents to the search path
20593   if test -f /etc/ld.so.conf; then
20594     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20595     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20596   fi
20597
20598   # We used to test for /lib/ld.so.1 and disable shared libraries on
20599   # powerpc, because MkLinux only supported shared libraries with the
20600   # GNU dynamic linker.  Since this was broken with cross compilers,
20601   # most powerpc-linux boxes support dynamic linking these days and
20602   # people can always --disable-shared, the test was removed, and we
20603   # assume the GNU/Linux dynamic linker is in use.
20604   dynamic_linker='GNU/Linux ld.so'
20605   ;;
20606
20607 knetbsd*-gnu)
20608   version_type=linux
20609   need_lib_prefix=no
20610   need_version=no
20611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20612   soname_spec='${libname}${release}${shared_ext}$major'
20613   shlibpath_var=LD_LIBRARY_PATH
20614   shlibpath_overrides_runpath=no
20615   hardcode_into_libs=yes
20616   dynamic_linker='GNU ld.so'
20617   ;;
20618
20619 netbsd*)
20620   version_type=sunos
20621   need_lib_prefix=no
20622   need_version=no
20623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20626     dynamic_linker='NetBSD (a.out) ld.so'
20627   else
20628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20629     soname_spec='${libname}${release}${shared_ext}$major'
20630     dynamic_linker='NetBSD ld.elf_so'
20631   fi
20632   shlibpath_var=LD_LIBRARY_PATH
20633   shlibpath_overrides_runpath=yes
20634   hardcode_into_libs=yes
20635   ;;
20636
20637 newsos6)
20638   version_type=linux
20639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20640   shlibpath_var=LD_LIBRARY_PATH
20641   shlibpath_overrides_runpath=yes
20642   ;;
20643
20644 nto-qnx*)
20645   version_type=linux
20646   need_lib_prefix=no
20647   need_version=no
20648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649   soname_spec='${libname}${release}${shared_ext}$major'
20650   shlibpath_var=LD_LIBRARY_PATH
20651   shlibpath_overrides_runpath=yes
20652   ;;
20653
20654 openbsd*)
20655   version_type=sunos
20656   need_lib_prefix=no
20657   need_version=no
20658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20660   shlibpath_var=LD_LIBRARY_PATH
20661   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20662     case $host_os in
20663       openbsd2.[89] | openbsd2.[89].*)
20664         shlibpath_overrides_runpath=no
20665         ;;
20666       *)
20667         shlibpath_overrides_runpath=yes
20668         ;;
20669       esac
20670   else
20671     shlibpath_overrides_runpath=yes
20672   fi
20673   ;;
20674
20675 os2*)
20676   libname_spec='$name'
20677   shrext_cmds=".dll"
20678   need_lib_prefix=no
20679   library_names_spec='$libname${shared_ext} $libname.a'
20680   dynamic_linker='OS/2 ld.exe'
20681   shlibpath_var=LIBPATH
20682   ;;
20683
20684 osf3* | osf4* | osf5*)
20685   version_type=osf
20686   need_lib_prefix=no
20687   need_version=no
20688   soname_spec='${libname}${release}${shared_ext}$major'
20689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20690   shlibpath_var=LD_LIBRARY_PATH
20691   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20692   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20693   ;;
20694
20695 sco3.2v5*)
20696   version_type=osf
20697   soname_spec='${libname}${release}${shared_ext}$major'
20698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20699   shlibpath_var=LD_LIBRARY_PATH
20700   ;;
20701
20702 solaris*)
20703   version_type=linux
20704   need_lib_prefix=no
20705   need_version=no
20706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707   soname_spec='${libname}${release}${shared_ext}$major'
20708   shlibpath_var=LD_LIBRARY_PATH
20709   shlibpath_overrides_runpath=yes
20710   hardcode_into_libs=yes
20711   # ldd complains unless libraries are executable
20712   postinstall_cmds='chmod +x $lib'
20713   ;;
20714
20715 sunos4*)
20716   version_type=sunos
20717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20719   shlibpath_var=LD_LIBRARY_PATH
20720   shlibpath_overrides_runpath=yes
20721   if test "$with_gnu_ld" = yes; then
20722     need_lib_prefix=no
20723   fi
20724   need_version=yes
20725   ;;
20726
20727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20728   version_type=linux
20729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730   soname_spec='${libname}${release}${shared_ext}$major'
20731   shlibpath_var=LD_LIBRARY_PATH
20732   case $host_vendor in
20733     sni)
20734       shlibpath_overrides_runpath=no
20735       need_lib_prefix=no
20736       export_dynamic_flag_spec='${wl}-Blargedynsym'
20737       runpath_var=LD_RUN_PATH
20738       ;;
20739     siemens)
20740       need_lib_prefix=no
20741       ;;
20742     motorola)
20743       need_lib_prefix=no
20744       need_version=no
20745       shlibpath_overrides_runpath=no
20746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20747       ;;
20748   esac
20749   ;;
20750
20751 sysv4*MP*)
20752   if test -d /usr/nec ;then
20753     version_type=linux
20754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20755     soname_spec='$libname${shared_ext}.$major'
20756     shlibpath_var=LD_LIBRARY_PATH
20757   fi
20758   ;;
20759
20760 uts4*)
20761   version_type=linux
20762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763   soname_spec='${libname}${release}${shared_ext}$major'
20764   shlibpath_var=LD_LIBRARY_PATH
20765   ;;
20766
20767 *)
20768   dynamic_linker=no
20769   ;;
20770 esac
20771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20772 echo "${ECHO_T}$dynamic_linker" >&6
20773 test "$dynamic_linker" = no && can_build_shared=no
20774
20775 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20777 hardcode_action_F77=
20778 if test -n "$hardcode_libdir_flag_spec_F77" || \
20779    test -n "$runpath_var_F77" || \
20780    test "X$hardcode_automatic_F77" = "Xyes" ; then
20781
20782   # We can hardcode non-existant directories.
20783   if test "$hardcode_direct_F77" != no &&
20784      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20785      # have to relink, otherwise we might link with an installed library
20786      # when we should be linking with a yet-to-be-installed one
20787      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20788      test "$hardcode_minus_L_F77" != no; then
20789     # Linking always hardcodes the temporary library directory.
20790     hardcode_action_F77=relink
20791   else
20792     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20793     hardcode_action_F77=immediate
20794   fi
20795 else
20796   # We cannot hardcode anything, or else we can only hardcode existing
20797   # directories.
20798   hardcode_action_F77=unsupported
20799 fi
20800 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20801 echo "${ECHO_T}$hardcode_action_F77" >&6
20802
20803 if test "$hardcode_action_F77" = relink; then
20804   # Fast installation is not supported
20805   enable_fast_install=no
20806 elif test "$shlibpath_overrides_runpath" = yes ||
20807      test "$enable_shared" = no; then
20808   # Fast installation is not necessary
20809   enable_fast_install=needless
20810 fi
20811
20812 striplib=
20813 old_striplib=
20814 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20815 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20816 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20817   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20818   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20819   echo "$as_me:$LINENO: result: yes" >&5
20820 echo "${ECHO_T}yes" >&6
20821 else
20822 # FIXME - insert some real tests, host_os isn't really good enough
20823   case $host_os in
20824    darwin*)
20825        if test -n "$STRIP" ; then
20826          striplib="$STRIP -x"
20827          echo "$as_me:$LINENO: result: yes" >&5
20828 echo "${ECHO_T}yes" >&6
20829        else
20830   echo "$as_me:$LINENO: result: no" >&5
20831 echo "${ECHO_T}no" >&6
20832 fi
20833        ;;
20834    *)
20835   echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6
20837     ;;
20838   esac
20839 fi
20840
20841
20842
20843 # The else clause should only fire when bootstrapping the
20844 # libtool distribution, otherwise you forgot to ship ltmain.sh
20845 # with your package, and you will get complaints that there are
20846 # no rules to generate ltmain.sh.
20847 if test -f "$ltmain"; then
20848   # See if we are running on zsh, and set the options which allow our commands through
20849   # without removal of \ escapes.
20850   if test -n "${ZSH_VERSION+set}" ; then
20851     setopt NO_GLOB_SUBST
20852   fi
20853   # Now quote all the things that may contain metacharacters while being
20854   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20855   # variables and quote the copies for generation of the libtool script.
20856   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20857     SED SHELL STRIP \
20858     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20859     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20860     deplibs_check_method reload_flag reload_cmds need_locks \
20861     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20862     lt_cv_sys_global_symbol_to_c_name_address \
20863     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20864     old_postinstall_cmds old_postuninstall_cmds \
20865     compiler_F77 \
20866     CC_F77 \
20867     LD_F77 \
20868     lt_prog_compiler_wl_F77 \
20869     lt_prog_compiler_pic_F77 \
20870     lt_prog_compiler_static_F77 \
20871     lt_prog_compiler_no_builtin_flag_F77 \
20872     export_dynamic_flag_spec_F77 \
20873     thread_safe_flag_spec_F77 \
20874     whole_archive_flag_spec_F77 \
20875     enable_shared_with_static_runtimes_F77 \
20876     old_archive_cmds_F77 \
20877     old_archive_from_new_cmds_F77 \
20878     predep_objects_F77 \
20879     postdep_objects_F77 \
20880     predeps_F77 \
20881     postdeps_F77 \
20882     compiler_lib_search_path_F77 \
20883     archive_cmds_F77 \
20884     archive_expsym_cmds_F77 \
20885     postinstall_cmds_F77 \
20886     postuninstall_cmds_F77 \
20887     old_archive_from_expsyms_cmds_F77 \
20888     allow_undefined_flag_F77 \
20889     no_undefined_flag_F77 \
20890     export_symbols_cmds_F77 \
20891     hardcode_libdir_flag_spec_F77 \
20892     hardcode_libdir_flag_spec_ld_F77 \
20893     hardcode_libdir_separator_F77 \
20894     hardcode_automatic_F77 \
20895     module_cmds_F77 \
20896     module_expsym_cmds_F77 \
20897     lt_cv_prog_compiler_c_o_F77 \
20898     exclude_expsyms_F77 \
20899     include_expsyms_F77; do
20900
20901     case $var in
20902     old_archive_cmds_F77 | \
20903     old_archive_from_new_cmds_F77 | \
20904     archive_cmds_F77 | \
20905     archive_expsym_cmds_F77 | \
20906     module_cmds_F77 | \
20907     module_expsym_cmds_F77 | \
20908     old_archive_from_expsyms_cmds_F77 | \
20909     export_symbols_cmds_F77 | \
20910     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20911     postinstall_cmds | postuninstall_cmds | \
20912     old_postinstall_cmds | old_postuninstall_cmds | \
20913     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20914       # Double-quote double-evaled strings.
20915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20916       ;;
20917     *)
20918       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20919       ;;
20920     esac
20921   done
20922
20923   case $lt_echo in
20924   *'\$0 --fallback-echo"')
20925     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20926     ;;
20927   esac
20928
20929 cfgfile="$ofile"
20930
20931   cat <<__EOF__ >> "$cfgfile"
20932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20933
20934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20935
20936 # Shell to use when invoking shell scripts.
20937 SHELL=$lt_SHELL
20938
20939 # Whether or not to build shared libraries.
20940 build_libtool_libs=$enable_shared
20941
20942 # Whether or not to build static libraries.
20943 build_old_libs=$enable_static
20944
20945 # Whether or not to add -lc for building shared libraries.
20946 build_libtool_need_lc=$archive_cmds_need_lc_F77
20947
20948 # Whether or not to disallow shared libs when runtime libs are static
20949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20950
20951 # Whether or not to optimize for fast installation.
20952 fast_install=$enable_fast_install
20953
20954 # The host system.
20955 host_alias=$host_alias
20956 host=$host
20957
20958 # An echo program that does not interpret backslashes.
20959 echo=$lt_echo
20960
20961 # The archiver.
20962 AR=$lt_AR
20963 AR_FLAGS=$lt_AR_FLAGS
20964
20965 # A C compiler.
20966 LTCC=$lt_LTCC
20967
20968 # A language-specific compiler.
20969 CC=$lt_compiler_F77
20970
20971 # Is the compiler the GNU C compiler?
20972 with_gcc=$GCC_F77
20973
20974 # An ERE matcher.
20975 EGREP=$lt_EGREP
20976
20977 # The linker used to build libraries.
20978 LD=$lt_LD_F77
20979
20980 # Whether we need hard or soft links.
20981 LN_S=$lt_LN_S
20982
20983 # A BSD-compatible nm program.
20984 NM=$lt_NM
20985
20986 # A symbol stripping program
20987 STRIP=$lt_STRIP
20988
20989 # Used to examine libraries when file_magic_cmd begins "file"
20990 MAGIC_CMD=$MAGIC_CMD
20991
20992 # Used on cygwin: DLL creation program.
20993 DLLTOOL="$DLLTOOL"
20994
20995 # Used on cygwin: object dumper.
20996 OBJDUMP="$OBJDUMP"
20997
20998 # Used on cygwin: assembler.
20999 AS="$AS"
21000
21001 # The name of the directory that contains temporary libtool files.
21002 objdir=$objdir
21003
21004 # How to create reloadable object files.
21005 reload_flag=$lt_reload_flag
21006 reload_cmds=$lt_reload_cmds
21007
21008 # How to pass a linker flag through the compiler.
21009 wl=$lt_lt_prog_compiler_wl_F77
21010
21011 # Object file suffix (normally "o").
21012 objext="$ac_objext"
21013
21014 # Old archive suffix (normally "a").
21015 libext="$libext"
21016
21017 # Shared library suffix (normally ".so").
21018 shrext_cmds='$shrext_cmds'
21019
21020 # Executable file suffix (normally "").
21021 exeext="$exeext"
21022
21023 # Additional compiler flags for building library objects.
21024 pic_flag=$lt_lt_prog_compiler_pic_F77
21025 pic_mode=$pic_mode
21026
21027 # What is the maximum length of a command?
21028 max_cmd_len=$lt_cv_sys_max_cmd_len
21029
21030 # Does compiler simultaneously support -c and -o options?
21031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21032
21033 # Must we lock files when doing compilation ?
21034 need_locks=$lt_need_locks
21035
21036 # Do we need the lib prefix for modules?
21037 need_lib_prefix=$need_lib_prefix
21038
21039 # Do we need a version for libraries?
21040 need_version=$need_version
21041
21042 # Whether dlopen is supported.
21043 dlopen_support=$enable_dlopen
21044
21045 # Whether dlopen of programs is supported.
21046 dlopen_self=$enable_dlopen_self
21047
21048 # Whether dlopen of statically linked programs is supported.
21049 dlopen_self_static=$enable_dlopen_self_static
21050
21051 # Compiler flag to prevent dynamic linking.
21052 link_static_flag=$lt_lt_prog_compiler_static_F77
21053
21054 # Compiler flag to turn off builtin functions.
21055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21056
21057 # Compiler flag to allow reflexive dlopens.
21058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21059
21060 # Compiler flag to generate shared objects directly from archives.
21061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21062
21063 # Compiler flag to generate thread-safe objects.
21064 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21065
21066 # Library versioning type.
21067 version_type=$version_type
21068
21069 # Format of library name prefix.
21070 libname_spec=$lt_libname_spec
21071
21072 # List of archive names.  First name is the real one, the rest are links.
21073 # The last name is the one that the linker finds with -lNAME.
21074 library_names_spec=$lt_library_names_spec
21075
21076 # The coded name of the library, if different from the real name.
21077 soname_spec=$lt_soname_spec
21078
21079 # Commands used to build and install an old-style archive.
21080 RANLIB=$lt_RANLIB
21081 old_archive_cmds=$lt_old_archive_cmds_F77
21082 old_postinstall_cmds=$lt_old_postinstall_cmds
21083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21084
21085 # Create an old-style archive from a shared archive.
21086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21087
21088 # Create a temporary old-style archive to link instead of a shared archive.
21089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21090
21091 # Commands used to build and install a shared archive.
21092 archive_cmds=$lt_archive_cmds_F77
21093 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21094 postinstall_cmds=$lt_postinstall_cmds
21095 postuninstall_cmds=$lt_postuninstall_cmds
21096
21097 # Commands used to build a loadable module (assumed same as above if empty)
21098 module_cmds=$lt_module_cmds_F77
21099 module_expsym_cmds=$lt_module_expsym_cmds_F77
21100
21101 # Commands to strip libraries.
21102 old_striplib=$lt_old_striplib
21103 striplib=$lt_striplib
21104
21105 # Dependencies to place before the objects being linked to create a
21106 # shared library.
21107 predep_objects=$lt_predep_objects_F77
21108
21109 # Dependencies to place after the objects being linked to create a
21110 # shared library.
21111 postdep_objects=$lt_postdep_objects_F77
21112
21113 # Dependencies to place before the objects being linked to create a
21114 # shared library.
21115 predeps=$lt_predeps_F77
21116
21117 # Dependencies to place after the objects being linked to create a
21118 # shared library.
21119 postdeps=$lt_postdeps_F77
21120
21121 # The library search path used internally by the compiler when linking
21122 # a shared library.
21123 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21124
21125 # Method to check whether dependent libraries are shared objects.
21126 deplibs_check_method=$lt_deplibs_check_method
21127
21128 # Command to use when deplibs_check_method == file_magic.
21129 file_magic_cmd=$lt_file_magic_cmd
21130
21131 # Flag that allows shared libraries with undefined symbols to be built.
21132 allow_undefined_flag=$lt_allow_undefined_flag_F77
21133
21134 # Flag that forces no undefined symbols.
21135 no_undefined_flag=$lt_no_undefined_flag_F77
21136
21137 # Commands used to finish a libtool library installation in a directory.
21138 finish_cmds=$lt_finish_cmds
21139
21140 # Same as above, but a single script fragment to be evaled but not shown.
21141 finish_eval=$lt_finish_eval
21142
21143 # Take the output of nm and produce a listing of raw symbols and C names.
21144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21145
21146 # Transform the output of nm in a proper C declaration
21147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21148
21149 # Transform the output of nm in a C name address pair
21150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21151
21152 # This is the shared library runtime path variable.
21153 runpath_var=$runpath_var
21154
21155 # This is the shared library path variable.
21156 shlibpath_var=$shlibpath_var
21157
21158 # Is shlibpath searched before the hard-coded library search path?
21159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21160
21161 # How to hardcode a shared library path into an executable.
21162 hardcode_action=$hardcode_action_F77
21163
21164 # Whether we should hardcode library paths into libraries.
21165 hardcode_into_libs=$hardcode_into_libs
21166
21167 # Flag to hardcode \$libdir into a binary during linking.
21168 # This must work even if \$libdir does not exist.
21169 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21170
21171 # If ld is used when linking, flag to hardcode \$libdir into
21172 # a binary during linking. This must work even if \$libdir does
21173 # not exist.
21174 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21175
21176 # Whether we need a single -rpath flag with a separated argument.
21177 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21178
21179 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21180 # resulting binary.
21181 hardcode_direct=$hardcode_direct_F77
21182
21183 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21184 # resulting binary.
21185 hardcode_minus_L=$hardcode_minus_L_F77
21186
21187 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21188 # the resulting binary.
21189 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21190
21191 # Set to yes if building a shared library automatically hardcodes DIR into the library
21192 # and all subsequent libraries and executables linked against it.
21193 hardcode_automatic=$hardcode_automatic_F77
21194
21195 # Variables whose values should be saved in libtool wrapper scripts and
21196 # restored at relink time.
21197 variables_saved_for_relink="$variables_saved_for_relink"
21198
21199 # Whether libtool must link a program against all its dependency libraries.
21200 link_all_deplibs=$link_all_deplibs_F77
21201
21202 # Compile-time system search path for libraries
21203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21204
21205 # Run-time system search path for libraries
21206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21207
21208 # Fix the shell variable \$srcfile for the compiler.
21209 fix_srcfile_path="$fix_srcfile_path_F77"
21210
21211 # Set to yes if exported symbols are required.
21212 always_export_symbols=$always_export_symbols_F77
21213
21214 # The commands to list exported symbols.
21215 export_symbols_cmds=$lt_export_symbols_cmds_F77
21216
21217 # The commands to extract the exported symbol list from a shared archive.
21218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21219
21220 # Symbols that should not be listed in the preloaded symbols.
21221 exclude_expsyms=$lt_exclude_expsyms_F77
21222
21223 # Symbols that must always be exported.
21224 include_expsyms=$lt_include_expsyms_F77
21225
21226 # ### END LIBTOOL TAG CONFIG: $tagname
21227
21228 __EOF__
21229
21230
21231 else
21232   # If there is no Makefile yet, we rely on a make rule to execute
21233   # `config.status --recheck' to rerun these tests and create the
21234   # libtool script then.
21235   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21236   if test -f "$ltmain_in"; then
21237     test -f Makefile && make "$ltmain"
21238   fi
21239 fi
21240
21241
21242 ac_ext=c
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248 CC="$lt_save_CC"
21249
21250         else
21251           tagname=""
21252         fi
21253         ;;
21254
21255       GCJ)
21256         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21257           ac_ext=c
21258 ac_cpp='$CPP $CPPFLAGS'
21259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262
21263
21264 # Source file extension for Java test sources.
21265 ac_ext=java
21266
21267 # Object file extension for compiled Java test sources.
21268 objext=o
21269 objext_GCJ=$objext
21270
21271 # Code to be used in simple compile tests
21272 lt_simple_compile_test_code="class foo {}\n"
21273
21274 # Code to be used in simple link tests
21275 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21276
21277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21278
21279 # If no C compiler was specified, use CC.
21280 LTCC=${LTCC-"$CC"}
21281
21282 # Allow CC to be a program name with arguments.
21283 compiler=$CC
21284
21285
21286 # Allow CC to be a program name with arguments.
21287 lt_save_CC="$CC"
21288 CC=${GCJ-"gcj"}
21289 compiler=$CC
21290 compiler_GCJ=$CC
21291
21292 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21293 archive_cmds_need_lc_GCJ=no
21294
21295
21296 lt_prog_compiler_no_builtin_flag_GCJ=
21297
21298 if test "$GCC" = yes; then
21299   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21300
21301
21302 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21303 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21304 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307   lt_cv_prog_compiler_rtti_exceptions=no
21308   ac_outfile=conftest.$ac_objext
21309    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21310    lt_compiler_flag="-fno-rtti -fno-exceptions"
21311    # Insert the option either (1) after the last *FLAGS variable, or
21312    # (2) before a word containing "conftest.", or (3) at the end.
21313    # Note that $ac_compile itself does not contain backslashes and begins
21314    # with a dollar sign (not a hyphen), so the echo should work correctly.
21315    # The option is referenced via a variable to avoid confusing sed.
21316    lt_compile=`echo "$ac_compile" | $SED \
21317    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21319    -e 's:$: $lt_compiler_flag:'`
21320    (eval echo "\"\$as_me:21320: $lt_compile\"" >&5)
21321    (eval "$lt_compile" 2>conftest.err)
21322    ac_status=$?
21323    cat conftest.err >&5
21324    echo "$as_me:21324: \$? = $ac_status" >&5
21325    if (exit $ac_status) && test -s "$ac_outfile"; then
21326      # The compiler can only warn and ignore the option if not recognized
21327      # So say no if there are warnings
21328      if test ! -s conftest.err; then
21329        lt_cv_prog_compiler_rtti_exceptions=yes
21330      fi
21331    fi
21332    $rm conftest*
21333
21334 fi
21335 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21336 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21337
21338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21339     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21340 else
21341     :
21342 fi
21343
21344 fi
21345
21346 lt_prog_compiler_wl_GCJ=
21347 lt_prog_compiler_pic_GCJ=
21348 lt_prog_compiler_static_GCJ=
21349
21350 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21351 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21352
21353   if test "$GCC" = yes; then
21354     lt_prog_compiler_wl_GCJ='-Wl,'
21355     lt_prog_compiler_static_GCJ='-static'
21356
21357     case $host_os in
21358       aix*)
21359       # All AIX code is PIC.
21360       if test "$host_cpu" = ia64; then
21361         # AIX 5 now supports IA64 processor
21362         lt_prog_compiler_static_GCJ='-Bstatic'
21363       fi
21364       ;;
21365
21366     amigaos*)
21367       # FIXME: we need at least 68020 code to build shared libraries, but
21368       # adding the `-m68020' flag to GCC prevents building anything better,
21369       # like `-m68040'.
21370       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21371       ;;
21372
21373     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21374       # PIC is the default for these OSes.
21375       ;;
21376
21377     mingw* | pw32* | os2*)
21378       # This hack is so that the source file can tell whether it is being
21379       # built for inclusion in a dll (and should export symbols for example).
21380       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21381       ;;
21382
21383     darwin* | rhapsody*)
21384       # PIC is the default on this platform
21385       # Common symbols not allowed in MH_DYLIB files
21386       lt_prog_compiler_pic_GCJ='-fno-common'
21387       ;;
21388
21389     msdosdjgpp*)
21390       # Just because we use GCC doesn't mean we suddenly get shared libraries
21391       # on systems that don't support them.
21392       lt_prog_compiler_can_build_shared_GCJ=no
21393       enable_shared=no
21394       ;;
21395
21396     sysv4*MP*)
21397       if test -d /usr/nec; then
21398         lt_prog_compiler_pic_GCJ=-Kconform_pic
21399       fi
21400       ;;
21401
21402     hpux*)
21403       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21404       # not for PA HP-UX.
21405       case "$host_cpu" in
21406       hppa*64*|ia64*)
21407         # +Z the default
21408         ;;
21409       *)
21410         lt_prog_compiler_pic_GCJ='-fPIC'
21411         ;;
21412       esac
21413       ;;
21414
21415     *)
21416       lt_prog_compiler_pic_GCJ='-fPIC'
21417       ;;
21418     esac
21419   else
21420     # PORTME Check for flag to pass linker flags through the system compiler.
21421     case $host_os in
21422     aix*)
21423       lt_prog_compiler_wl_GCJ='-Wl,'
21424       if test "$host_cpu" = ia64; then
21425         # AIX 5 now supports IA64 processor
21426         lt_prog_compiler_static_GCJ='-Bstatic'
21427       else
21428         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21429       fi
21430       ;;
21431       darwin*)
21432         # PIC is the default on this platform
21433         # Common symbols not allowed in MH_DYLIB files
21434        case "$cc_basename" in
21435          xlc*)
21436          lt_prog_compiler_pic_GCJ='-qnocommon'
21437          lt_prog_compiler_wl_GCJ='-Wl,'
21438          ;;
21439        esac
21440        ;;
21441
21442     mingw* | pw32* | os2*)
21443       # This hack is so that the source file can tell whether it is being
21444       # built for inclusion in a dll (and should export symbols for example).
21445       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21446       ;;
21447
21448     hpux9* | hpux10* | hpux11*)
21449       lt_prog_compiler_wl_GCJ='-Wl,'
21450       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21451       # not for PA HP-UX.
21452       case "$host_cpu" in
21453       hppa*64*|ia64*)
21454         # +Z the default
21455         ;;
21456       *)
21457         lt_prog_compiler_pic_GCJ='+Z'
21458         ;;
21459       esac
21460       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21461       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21462       ;;
21463
21464     irix5* | irix6* | nonstopux*)
21465       lt_prog_compiler_wl_GCJ='-Wl,'
21466       # PIC (with -KPIC) is the default.
21467       lt_prog_compiler_static_GCJ='-non_shared'
21468       ;;
21469
21470     newsos6)
21471       lt_prog_compiler_pic_GCJ='-KPIC'
21472       lt_prog_compiler_static_GCJ='-Bstatic'
21473       ;;
21474
21475     linux*)
21476       case $CC in
21477       icc* | ecc*)
21478         lt_prog_compiler_wl_GCJ='-Wl,'
21479         lt_prog_compiler_pic_GCJ='-KPIC'
21480         lt_prog_compiler_static_GCJ='-static'
21481         ;;
21482       ccc*)
21483         lt_prog_compiler_wl_GCJ='-Wl,'
21484         # All Alpha code is PIC.
21485         lt_prog_compiler_static_GCJ='-non_shared'
21486         ;;
21487       esac
21488       ;;
21489
21490     osf3* | osf4* | osf5*)
21491       lt_prog_compiler_wl_GCJ='-Wl,'
21492       # All OSF/1 code is PIC.
21493       lt_prog_compiler_static_GCJ='-non_shared'
21494       ;;
21495
21496     sco3.2v5*)
21497       lt_prog_compiler_pic_GCJ='-Kpic'
21498       lt_prog_compiler_static_GCJ='-dn'
21499       ;;
21500
21501     solaris*)
21502       lt_prog_compiler_wl_GCJ='-Wl,'
21503       lt_prog_compiler_pic_GCJ='-KPIC'
21504       lt_prog_compiler_static_GCJ='-Bstatic'
21505       ;;
21506
21507     sunos4*)
21508       lt_prog_compiler_wl_GCJ='-Qoption ld '
21509       lt_prog_compiler_pic_GCJ='-PIC'
21510       lt_prog_compiler_static_GCJ='-Bstatic'
21511       ;;
21512
21513     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21514       lt_prog_compiler_wl_GCJ='-Wl,'
21515       lt_prog_compiler_pic_GCJ='-KPIC'
21516       lt_prog_compiler_static_GCJ='-Bstatic'
21517       ;;
21518
21519     sysv4*MP*)
21520       if test -d /usr/nec ;then
21521         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21522         lt_prog_compiler_static_GCJ='-Bstatic'
21523       fi
21524       ;;
21525
21526     uts4*)
21527       lt_prog_compiler_pic_GCJ='-pic'
21528       lt_prog_compiler_static_GCJ='-Bstatic'
21529       ;;
21530
21531     *)
21532       lt_prog_compiler_can_build_shared_GCJ=no
21533       ;;
21534     esac
21535   fi
21536
21537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21538 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21539
21540 #
21541 # Check to make sure the PIC flag actually works.
21542 #
21543 if test -n "$lt_prog_compiler_pic_GCJ"; then
21544
21545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21547 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   lt_prog_compiler_pic_works_GCJ=no
21551   ac_outfile=conftest.$ac_objext
21552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21553    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21554    # Insert the option either (1) after the last *FLAGS variable, or
21555    # (2) before a word containing "conftest.", or (3) at the end.
21556    # Note that $ac_compile itself does not contain backslashes and begins
21557    # with a dollar sign (not a hyphen), so the echo should work correctly.
21558    # The option is referenced via a variable to avoid confusing sed.
21559    lt_compile=`echo "$ac_compile" | $SED \
21560    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562    -e 's:$: $lt_compiler_flag:'`
21563    (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
21564    (eval "$lt_compile" 2>conftest.err)
21565    ac_status=$?
21566    cat conftest.err >&5
21567    echo "$as_me:21567: \$? = $ac_status" >&5
21568    if (exit $ac_status) && test -s "$ac_outfile"; then
21569      # The compiler can only warn and ignore the option if not recognized
21570      # So say no if there are warnings
21571      if test ! -s conftest.err; then
21572        lt_prog_compiler_pic_works_GCJ=yes
21573      fi
21574    fi
21575    $rm conftest*
21576
21577 fi
21578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21579 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21580
21581 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21582     case $lt_prog_compiler_pic_GCJ in
21583      "" | " "*) ;;
21584      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21585      esac
21586 else
21587     lt_prog_compiler_pic_GCJ=
21588      lt_prog_compiler_can_build_shared_GCJ=no
21589 fi
21590
21591 fi
21592 case "$host_os" in
21593   # For platforms which do not support PIC, -DPIC is meaningless:
21594   *djgpp*)
21595     lt_prog_compiler_pic_GCJ=
21596     ;;
21597   *)
21598     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21599     ;;
21600 esac
21601
21602 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21604 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607   lt_cv_prog_compiler_c_o_GCJ=no
21608    $rm -r conftest 2>/dev/null
21609    mkdir conftest
21610    cd conftest
21611    mkdir out
21612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21613
21614    lt_compiler_flag="-o out/conftest2.$ac_objext"
21615    # Insert the option either (1) after the last *FLAGS variable, or
21616    # (2) before a word containing "conftest.", or (3) at the end.
21617    # Note that $ac_compile itself does not contain backslashes and begins
21618    # with a dollar sign (not a hyphen), so the echo should work correctly.
21619    lt_compile=`echo "$ac_compile" | $SED \
21620    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21622    -e 's:$: $lt_compiler_flag:'`
21623    (eval echo "\"\$as_me:21623: $lt_compile\"" >&5)
21624    (eval "$lt_compile" 2>out/conftest.err)
21625    ac_status=$?
21626    cat out/conftest.err >&5
21627    echo "$as_me:21627: \$? = $ac_status" >&5
21628    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21629    then
21630      # The compiler can only warn and ignore the option if not recognized
21631      # So say no if there are warnings
21632      if test ! -s out/conftest.err; then
21633        lt_cv_prog_compiler_c_o_GCJ=yes
21634      fi
21635    fi
21636    chmod u+w .
21637    $rm conftest*
21638    # SGI C++ compiler will create directory out/ii_files/ for
21639    # template instantiation
21640    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21641    $rm out/* && rmdir out
21642    cd ..
21643    rmdir conftest
21644    $rm conftest*
21645
21646 fi
21647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21649
21650
21651 hard_links="nottested"
21652 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21653   # do not overwrite the value of need_locks provided by the user
21654   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21656   hard_links=yes
21657   $rm conftest*
21658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21659   touch conftest.a
21660   ln conftest.a conftest.b 2>&5 || hard_links=no
21661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21662   echo "$as_me:$LINENO: result: $hard_links" >&5
21663 echo "${ECHO_T}$hard_links" >&6
21664   if test "$hard_links" = no; then
21665     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21667     need_locks=warn
21668   fi
21669 else
21670   need_locks=no
21671 fi
21672
21673 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21675
21676   runpath_var=
21677   allow_undefined_flag_GCJ=
21678   enable_shared_with_static_runtimes_GCJ=no
21679   archive_cmds_GCJ=
21680   archive_expsym_cmds_GCJ=
21681   old_archive_From_new_cmds_GCJ=
21682   old_archive_from_expsyms_cmds_GCJ=
21683   export_dynamic_flag_spec_GCJ=
21684   whole_archive_flag_spec_GCJ=
21685   thread_safe_flag_spec_GCJ=
21686   hardcode_libdir_flag_spec_GCJ=
21687   hardcode_libdir_flag_spec_ld_GCJ=
21688   hardcode_libdir_separator_GCJ=
21689   hardcode_direct_GCJ=no
21690   hardcode_minus_L_GCJ=no
21691   hardcode_shlibpath_var_GCJ=unsupported
21692   link_all_deplibs_GCJ=unknown
21693   hardcode_automatic_GCJ=no
21694   module_cmds_GCJ=
21695   module_expsym_cmds_GCJ=
21696   always_export_symbols_GCJ=no
21697   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21698   # include_expsyms should be a list of space-separated symbols to be *always*
21699   # included in the symbol list
21700   include_expsyms_GCJ=
21701   # exclude_expsyms can be an extended regexp of symbols to exclude
21702   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21703   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21704   # as well as any symbol that contains `d'.
21705   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21706   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21707   # platforms (ab)use it in PIC code, but their linkers get confused if
21708   # the symbol is explicitly referenced.  Since portable code cannot
21709   # rely on this symbol name, it's probably fine to never include it in
21710   # preloaded symbol tables.
21711   extract_expsyms_cmds=
21712
21713   case $host_os in
21714   cygwin* | mingw* | pw32*)
21715     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21716     # When not using gcc, we currently assume that we are using
21717     # Microsoft Visual C++.
21718     if test "$GCC" != yes; then
21719       with_gnu_ld=no
21720     fi
21721     ;;
21722   openbsd*)
21723     with_gnu_ld=no
21724     ;;
21725   esac
21726
21727   ld_shlibs_GCJ=yes
21728   if test "$with_gnu_ld" = yes; then
21729     # If archive_cmds runs LD, not CC, wlarc should be empty
21730     wlarc='${wl}'
21731
21732     # See if GNU ld supports shared libraries.
21733     case $host_os in
21734     aix3* | aix4* | aix5*)
21735       # On AIX/PPC, the GNU linker is very broken
21736       if test "$host_cpu" != ia64; then
21737         ld_shlibs_GCJ=no
21738         cat <<EOF 1>&2
21739
21740 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21741 *** to be unable to reliably create shared libraries on AIX.
21742 *** Therefore, libtool is disabling shared libraries support.  If you
21743 *** really care for shared libraries, you may want to modify your PATH
21744 *** so that a non-GNU linker is found, and then restart.
21745
21746 EOF
21747       fi
21748       ;;
21749
21750     amigaos*)
21751       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)'
21752       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21753       hardcode_minus_L_GCJ=yes
21754
21755       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21756       # that the semantics of dynamic libraries on AmigaOS, at least up
21757       # to version 4, is to share data among multiple programs linked
21758       # with the same dynamic library.  Since this doesn't match the
21759       # behavior of shared libraries on other platforms, we can't use
21760       # them.
21761       ld_shlibs_GCJ=no
21762       ;;
21763
21764     beos*)
21765       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21766         allow_undefined_flag_GCJ=unsupported
21767         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21768         # support --undefined.  This deserves some investigation.  FIXME
21769         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21770       else
21771         ld_shlibs_GCJ=no
21772       fi
21773       ;;
21774
21775     cygwin* | mingw* | pw32*)
21776       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21777       # as there is no search path for DLLs.
21778       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21779       allow_undefined_flag_GCJ=unsupported
21780       always_export_symbols_GCJ=no
21781       enable_shared_with_static_runtimes_GCJ=yes
21782       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21783
21784       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21785         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21786         # If the export-symbols file already is a .def file (1st line
21787         # is EXPORTS), use it as is; otherwise, prepend...
21788         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21789           cp $export_symbols $output_objdir/$soname.def;
21790         else
21791           echo EXPORTS > $output_objdir/$soname.def;
21792           cat $export_symbols >> $output_objdir/$soname.def;
21793         fi~
21794         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21795       else
21796         ld_shlibs=no
21797       fi
21798       ;;
21799
21800     netbsd*)
21801       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21802         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21803         wlarc=
21804       else
21805         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21807       fi
21808       ;;
21809
21810     solaris* | sysv5*)
21811       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21812         ld_shlibs_GCJ=no
21813         cat <<EOF 1>&2
21814
21815 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21816 *** create shared libraries on Solaris systems.  Therefore, libtool
21817 *** is disabling shared libraries support.  We urge you to upgrade GNU
21818 *** binutils to release 2.9.1 or newer.  Another option is to modify
21819 *** your PATH or compiler configuration so that the native linker is
21820 *** used, and then restart.
21821
21822 EOF
21823       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21824         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21825         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21826       else
21827         ld_shlibs_GCJ=no
21828       fi
21829       ;;
21830
21831     sunos4*)
21832       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21833       wlarc=
21834       hardcode_direct_GCJ=yes
21835       hardcode_shlibpath_var_GCJ=no
21836       ;;
21837
21838   linux*)
21839     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21840         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21841         archive_cmds_GCJ="$tmp_archive_cmds"
21842       supports_anon_versioning=no
21843       case `$LD -v 2>/dev/null` in
21844         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21845         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21846         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21847         *\ 2.11.*) ;; # other 2.11 versions
21848         *) supports_anon_versioning=yes ;;
21849       esac
21850       if test $supports_anon_versioning = yes; then
21851         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21853 $echo "local: *; };" >> $output_objdir/$libname.ver~
21854         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21855       else
21856         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21857       fi
21858     else
21859       ld_shlibs_GCJ=no
21860     fi
21861     ;;
21862
21863     *)
21864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21865         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21866         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21867       else
21868         ld_shlibs_GCJ=no
21869       fi
21870       ;;
21871     esac
21872
21873     if test "$ld_shlibs_GCJ" = yes; then
21874       runpath_var=LD_RUN_PATH
21875       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21876       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21877       # ancient GNU ld didn't support --whole-archive et. al.
21878       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21879         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21880       else
21881         whole_archive_flag_spec_GCJ=
21882       fi
21883     fi
21884   else
21885     # PORTME fill in a description of your system's linker (not GNU ld)
21886     case $host_os in
21887     aix3*)
21888       allow_undefined_flag_GCJ=unsupported
21889       always_export_symbols_GCJ=yes
21890       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'
21891       # Note: this linker hardcodes the directories in LIBPATH if there
21892       # are no directories specified by -L.
21893       hardcode_minus_L_GCJ=yes
21894       if test "$GCC" = yes && test -z "$link_static_flag"; then
21895         # Neither direct hardcoding nor static linking is supported with a
21896         # broken collect2.
21897         hardcode_direct_GCJ=unsupported
21898       fi
21899       ;;
21900
21901     aix4* | aix5*)
21902       if test "$host_cpu" = ia64; then
21903         # On IA64, the linker does run time linking by default, so we don't
21904         # have to do anything special.
21905         aix_use_runtimelinking=no
21906         exp_sym_flag='-Bexport'
21907         no_entry_flag=""
21908       else
21909         # If we're using GNU nm, then we don't want the "-C" option.
21910         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21911         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21912           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'
21913         else
21914           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'
21915         fi
21916         aix_use_runtimelinking=no
21917
21918         # Test if we are trying to use run time linking or normal
21919         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21920         # need to do runtime linking.
21921         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21922           for ld_flag in $LDFLAGS; do
21923           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21924             aix_use_runtimelinking=yes
21925             break
21926           fi
21927           done
21928         esac
21929
21930         exp_sym_flag='-bexport'
21931         no_entry_flag='-bnoentry'
21932       fi
21933
21934       # When large executables or shared objects are built, AIX ld can
21935       # have problems creating the table of contents.  If linking a library
21936       # or program results in "error TOC overflow" add -mminimal-toc to
21937       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21938       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21939
21940       archive_cmds_GCJ=''
21941       hardcode_direct_GCJ=yes
21942       hardcode_libdir_separator_GCJ=':'
21943       link_all_deplibs_GCJ=yes
21944
21945       if test "$GCC" = yes; then
21946         case $host_os in aix4.012|aix4.012.*)
21947         # We only want to do this on AIX 4.2 and lower, the check
21948         # below for broken collect2 doesn't work under 4.3+
21949           collect2name=`${CC} -print-prog-name=collect2`
21950           if test -f "$collect2name" && \
21951            strings "$collect2name" | grep resolve_lib_name >/dev/null
21952           then
21953           # We have reworked collect2
21954           hardcode_direct_GCJ=yes
21955           else
21956           # We have old collect2
21957           hardcode_direct_GCJ=unsupported
21958           # It fails to find uninstalled libraries when the uninstalled
21959           # path is not listed in the libpath.  Setting hardcode_minus_L
21960           # to unsupported forces relinking
21961           hardcode_minus_L_GCJ=yes
21962           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21963           hardcode_libdir_separator_GCJ=
21964           fi
21965         esac
21966         shared_flag='-shared'
21967       else
21968         # not using gcc
21969         if test "$host_cpu" = ia64; then
21970         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21971         # chokes on -Wl,-G. The following line is correct:
21972           shared_flag='-G'
21973         else
21974         if test "$aix_use_runtimelinking" = yes; then
21975             shared_flag='${wl}-G'
21976           else
21977             shared_flag='${wl}-bM:SRE'
21978         fi
21979         fi
21980       fi
21981
21982       # It seems that -bexpall does not export symbols beginning with
21983       # underscore (_), so it is better to generate a list of symbols to export.
21984       always_export_symbols_GCJ=yes
21985       if test "$aix_use_runtimelinking" = yes; then
21986         # Warning - without using the other runtime loading flags (-brtl),
21987         # -berok will link without error, but may produce a broken library.
21988         allow_undefined_flag_GCJ='-berok'
21989        # Determine the default libpath from the value encoded in an empty executable.
21990        cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996
21997 int
21998 main ()
21999 {
22000
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007   (eval $ac_link) 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } &&
22014          { ac_try='test -z "$ac_c_werror_flag"
22015                          || test ! -s conftest.err'
22016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017   (eval $ac_try) 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; } &&
22021          { ac_try='test -s conftest$ac_exeext'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; }; then
22027
22028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22029 }'`
22030 # Check for a 64-bit object if we didn't find anything.
22031 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; }
22032 }'`; fi
22033 else
22034   echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 fi
22038 rm -f conftest.err conftest.$ac_objext \
22039       conftest$ac_exeext conftest.$ac_ext
22040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22041
22042        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22043         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"
22044        else
22045         if test "$host_cpu" = ia64; then
22046           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22047           allow_undefined_flag_GCJ="-z nodefs"
22048           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"
22049         else
22050          # Determine the default libpath from the value encoded in an empty executable.
22051          cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057
22058 int
22059 main ()
22060 {
22061
22062   ;
22063   return 0;
22064 }
22065 _ACEOF
22066 rm -f conftest.$ac_objext conftest$ac_exeext
22067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22068   (eval $ac_link) 2>conftest.er1
22069   ac_status=$?
22070   grep -v '^ *+' conftest.er1 >conftest.err
22071   rm -f conftest.er1
22072   cat conftest.err >&5
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } &&
22075          { ac_try='test -z "$ac_c_werror_flag"
22076                          || test ! -s conftest.err'
22077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078   (eval $ac_try) 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); }; } &&
22082          { ac_try='test -s conftest$ac_exeext'
22083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084   (eval $ac_try) 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; }; then
22088
22089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22090 }'`
22091 # Check for a 64-bit object if we didn't find anything.
22092 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; }
22093 }'`; fi
22094 else
22095   echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098 fi
22099 rm -f conftest.err conftest.$ac_objext \
22100       conftest$ac_exeext conftest.$ac_ext
22101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22102
22103          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22104           # Warning - without using the other run time loading flags,
22105           # -berok will link without error, but may produce a broken library.
22106           no_undefined_flag_GCJ=' ${wl}-bernotok'
22107           allow_undefined_flag_GCJ=' ${wl}-berok'
22108           # -bexpall does not export symbols beginning with underscore (_)
22109           always_export_symbols_GCJ=yes
22110           # Exported symbols can be pulled into shared objects from archives
22111           whole_archive_flag_spec_GCJ=' '
22112           archive_cmds_need_lc_GCJ=yes
22113           # This is similar to how AIX traditionally builds it's shared libraries.
22114           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'
22115         fi
22116       fi
22117       ;;
22118
22119     amigaos*)
22120       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)'
22121       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22122       hardcode_minus_L_GCJ=yes
22123       # see comment about different semantics on the GNU ld section
22124       ld_shlibs_GCJ=no
22125       ;;
22126
22127     bsdi[45]*)
22128       export_dynamic_flag_spec_GCJ=-rdynamic
22129       ;;
22130
22131     cygwin* | mingw* | pw32*)
22132       # When not using gcc, we currently assume that we are using
22133       # Microsoft Visual C++.
22134       # hardcode_libdir_flag_spec is actually meaningless, as there is
22135       # no search path for DLLs.
22136       hardcode_libdir_flag_spec_GCJ=' '
22137       allow_undefined_flag_GCJ=unsupported
22138       # Tell ltmain to make .lib files, not .a files.
22139       libext=lib
22140       # Tell ltmain to make .dll files, not .so files.
22141       shrext_cmds=".dll"
22142       # FIXME: Setting linknames here is a bad hack.
22143       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22144       # The linker will automatically build a .lib file if we build a DLL.
22145       old_archive_From_new_cmds_GCJ='true'
22146       # FIXME: Should let the user specify the lib program.
22147       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22148       fix_srcfile_path='`cygpath -w "$srcfile"`'
22149       enable_shared_with_static_runtimes_GCJ=yes
22150       ;;
22151
22152     darwin* | rhapsody*)
22153       case "$host_os" in
22154         rhapsody* | darwin1.[012])
22155          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22156          ;;
22157        *) # Darwin 1.3 on
22158          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22159            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22160          else
22161            case ${MACOSX_DEPLOYMENT_TARGET} in
22162              10.[012])
22163                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22164                ;;
22165              10.*)
22166                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22167                ;;
22168            esac
22169          fi
22170          ;;
22171       esac
22172       archive_cmds_need_lc_GCJ=no
22173       hardcode_direct_GCJ=no
22174       hardcode_automatic_GCJ=yes
22175       hardcode_shlibpath_var_GCJ=unsupported
22176       whole_archive_flag_spec_GCJ=''
22177       link_all_deplibs_GCJ=yes
22178     if test "$GCC" = yes ; then
22179         output_verbose_link_cmd='echo'
22180         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22181       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22182       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22183       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}'
22184       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}'
22185     else
22186       case "$cc_basename" in
22187         xlc*)
22188          output_verbose_link_cmd='echo'
22189          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22190          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22191           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22192          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}'
22193           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}'
22194           ;;
22195        *)
22196          ld_shlibs_GCJ=no
22197           ;;
22198       esac
22199     fi
22200       ;;
22201
22202     dgux*)
22203       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205       hardcode_shlibpath_var_GCJ=no
22206       ;;
22207
22208     freebsd1*)
22209       ld_shlibs_GCJ=no
22210       ;;
22211
22212     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22213     # support.  Future versions do this automatically, but an explicit c++rt0.o
22214     # does not break anything, and helps significantly (at the cost of a little
22215     # extra space).
22216     freebsd2.2*)
22217       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22218       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22219       hardcode_direct_GCJ=yes
22220       hardcode_shlibpath_var_GCJ=no
22221       ;;
22222
22223     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22224     freebsd2*)
22225       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22226       hardcode_direct_GCJ=yes
22227       hardcode_minus_L_GCJ=yes
22228       hardcode_shlibpath_var_GCJ=no
22229       ;;
22230
22231     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22232     freebsd* | kfreebsd*-gnu)
22233       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22234       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22235       hardcode_direct_GCJ=yes
22236       hardcode_shlibpath_var_GCJ=no
22237       ;;
22238
22239     hpux9*)
22240       if test "$GCC" = yes; then
22241         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'
22242       else
22243         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'
22244       fi
22245       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22246       hardcode_libdir_separator_GCJ=:
22247       hardcode_direct_GCJ=yes
22248
22249       # hardcode_minus_L: Not really in the search PATH,
22250       # but as the default location of the library.
22251       hardcode_minus_L_GCJ=yes
22252       export_dynamic_flag_spec_GCJ='${wl}-E'
22253       ;;
22254
22255     hpux10* | hpux11*)
22256       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22257         case "$host_cpu" in
22258         hppa*64*|ia64*)
22259           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260           ;;
22261         *)
22262           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263           ;;
22264         esac
22265       else
22266         case "$host_cpu" in
22267         hppa*64*|ia64*)
22268           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22269           ;;
22270         *)
22271           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22272           ;;
22273         esac
22274       fi
22275       if test "$with_gnu_ld" = no; then
22276         case "$host_cpu" in
22277         hppa*64*)
22278           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22279           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22280           hardcode_libdir_separator_GCJ=:
22281           hardcode_direct_GCJ=no
22282           hardcode_shlibpath_var_GCJ=no
22283           ;;
22284         ia64*)
22285           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22286           hardcode_direct_GCJ=no
22287           hardcode_shlibpath_var_GCJ=no
22288
22289           # hardcode_minus_L: Not really in the search PATH,
22290           # but as the default location of the library.
22291           hardcode_minus_L_GCJ=yes
22292           ;;
22293         *)
22294           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22295           hardcode_libdir_separator_GCJ=:
22296           hardcode_direct_GCJ=yes
22297           export_dynamic_flag_spec_GCJ='${wl}-E'
22298
22299           # hardcode_minus_L: Not really in the search PATH,
22300           # but as the default location of the library.
22301           hardcode_minus_L_GCJ=yes
22302           ;;
22303         esac
22304       fi
22305       ;;
22306
22307     irix5* | irix6* | nonstopux*)
22308       if test "$GCC" = yes; then
22309         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'
22310       else
22311         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'
22312         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22313       fi
22314       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22315       hardcode_libdir_separator_GCJ=:
22316       link_all_deplibs_GCJ=yes
22317       ;;
22318
22319     netbsd*)
22320       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22321         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22322       else
22323         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22324       fi
22325       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22326       hardcode_direct_GCJ=yes
22327       hardcode_shlibpath_var_GCJ=no
22328       ;;
22329
22330     newsos6)
22331       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22332       hardcode_direct_GCJ=yes
22333       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22334       hardcode_libdir_separator_GCJ=:
22335       hardcode_shlibpath_var_GCJ=no
22336       ;;
22337
22338     openbsd*)
22339       hardcode_direct_GCJ=yes
22340       hardcode_shlibpath_var_GCJ=no
22341       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22342         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22343         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22344         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22345         export_dynamic_flag_spec_GCJ='${wl}-E'
22346       else
22347        case $host_os in
22348          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22349            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22350            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22351            ;;
22352          *)
22353            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22354            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22355            ;;
22356        esac
22357       fi
22358       ;;
22359
22360     os2*)
22361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22362       hardcode_minus_L_GCJ=yes
22363       allow_undefined_flag_GCJ=unsupported
22364       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'
22365       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22366       ;;
22367
22368     osf3*)
22369       if test "$GCC" = yes; then
22370         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22371         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'
22372       else
22373         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22374         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'
22375       fi
22376       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22377       hardcode_libdir_separator_GCJ=:
22378       ;;
22379
22380     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22381       if test "$GCC" = yes; then
22382         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22383         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'
22384         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22385       else
22386         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22387         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'
22388         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~
22389         $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'
22390
22391         # Both c and cxx compiler support -rpath directly
22392         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22393       fi
22394       hardcode_libdir_separator_GCJ=:
22395       ;;
22396
22397     sco3.2v5*)
22398       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399       hardcode_shlibpath_var_GCJ=no
22400       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22401       runpath_var=LD_RUN_PATH
22402       hardcode_runpath_var=yes
22403       ;;
22404
22405     solaris*)
22406       no_undefined_flag_GCJ=' -z text'
22407       if test "$GCC" = yes; then
22408         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22411       else
22412         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22413         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22414         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22415       fi
22416       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22417       hardcode_shlibpath_var_GCJ=no
22418       case $host_os in
22419       solaris2.[0-5] | solaris2.[0-5].*) ;;
22420       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22421         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22422       esac
22423       link_all_deplibs_GCJ=yes
22424       ;;
22425
22426     sunos4*)
22427       if test "x$host_vendor" = xsequent; then
22428         # Use $CC to link under sequent, because it throws in some extra .o
22429         # files that make .init and .fini sections work.
22430         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22431       else
22432         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22433       fi
22434       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22435       hardcode_direct_GCJ=yes
22436       hardcode_minus_L_GCJ=yes
22437       hardcode_shlibpath_var_GCJ=no
22438       ;;
22439
22440     sysv4)
22441       case $host_vendor in
22442         sni)
22443           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22444           hardcode_direct_GCJ=yes # is this really true???
22445         ;;
22446         siemens)
22447           ## LD is ld it makes a PLAMLIB
22448           ## CC just makes a GrossModule.
22449           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22450           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22451           hardcode_direct_GCJ=no
22452         ;;
22453         motorola)
22454           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22456         ;;
22457       esac
22458       runpath_var='LD_RUN_PATH'
22459       hardcode_shlibpath_var_GCJ=no
22460       ;;
22461
22462     sysv4.3*)
22463       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22464       hardcode_shlibpath_var_GCJ=no
22465       export_dynamic_flag_spec_GCJ='-Bexport'
22466       ;;
22467
22468     sysv4*MP*)
22469       if test -d /usr/nec; then
22470         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22471         hardcode_shlibpath_var_GCJ=no
22472         runpath_var=LD_RUN_PATH
22473         hardcode_runpath_var=yes
22474         ld_shlibs_GCJ=yes
22475       fi
22476       ;;
22477
22478     sysv4.2uw2*)
22479       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22480       hardcode_direct_GCJ=yes
22481       hardcode_minus_L_GCJ=no
22482       hardcode_shlibpath_var_GCJ=no
22483       hardcode_runpath_var=yes
22484       runpath_var=LD_RUN_PATH
22485       ;;
22486
22487    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22488       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22489       if test "$GCC" = yes; then
22490         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22491       else
22492         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22493       fi
22494       runpath_var='LD_RUN_PATH'
22495       hardcode_shlibpath_var_GCJ=no
22496       ;;
22497
22498     sysv5*)
22499       no_undefined_flag_GCJ=' -z text'
22500       # $CC -shared without GNU ld will not create a library from C++
22501       # object files and a static libstdc++, better avoid it by now
22502       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22503       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22504                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22505       hardcode_libdir_flag_spec_GCJ=
22506       hardcode_shlibpath_var_GCJ=no
22507       runpath_var='LD_RUN_PATH'
22508       ;;
22509
22510     uts4*)
22511       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22513       hardcode_shlibpath_var_GCJ=no
22514       ;;
22515
22516     *)
22517       ld_shlibs_GCJ=no
22518       ;;
22519     esac
22520   fi
22521
22522 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22523 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22524 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22525
22526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22527 if test "$GCC" = yes; then
22528   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22529 fi
22530
22531 #
22532 # Do we need to explicitly link libc?
22533 #
22534 case "x$archive_cmds_need_lc_GCJ" in
22535 x|xyes)
22536   # Assume -lc should be added
22537   archive_cmds_need_lc_GCJ=yes
22538
22539   if test "$enable_shared" = yes && test "$GCC" = yes; then
22540     case $archive_cmds_GCJ in
22541     *'~'*)
22542       # FIXME: we may have to deal with multi-command sequences.
22543       ;;
22544     '$CC '*)
22545       # Test whether the compiler implicitly links with -lc since on some
22546       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22547       # to ld, don't add -lc before -lgcc.
22548       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22550       $rm conftest*
22551       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22552
22553       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554   (eval $ac_compile) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } 2>conftest.err; then
22558         soname=conftest
22559         lib=conftest
22560         libobjs=conftest.$ac_objext
22561         deplibs=
22562         wl=$lt_prog_compiler_wl_GCJ
22563         compiler_flags=-v
22564         linker_flags=-v
22565         verstring=
22566         output_objdir=.
22567         libname=conftest
22568         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22569         allow_undefined_flag_GCJ=
22570         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22571   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }
22575         then
22576           archive_cmds_need_lc_GCJ=no
22577         else
22578           archive_cmds_need_lc_GCJ=yes
22579         fi
22580         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22581       else
22582         cat conftest.err 1>&5
22583       fi
22584       $rm conftest*
22585       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22586 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22587       ;;
22588     esac
22589   fi
22590   ;;
22591 esac
22592
22593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22595 library_names_spec=
22596 libname_spec='lib$name'
22597 soname_spec=
22598 shrext_cmds=".so"
22599 postinstall_cmds=
22600 postuninstall_cmds=
22601 finish_cmds=
22602 finish_eval=
22603 shlibpath_var=
22604 shlibpath_overrides_runpath=unknown
22605 version_type=none
22606 dynamic_linker="$host_os ld.so"
22607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22608 if test "$GCC" = yes; then
22609   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22610   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22611     # if the path contains ";" then we assume it to be the separator
22612     # otherwise default to the standard path separator (i.e. ":") - it is
22613     # assumed that no part of a normal pathname contains ";" but that should
22614     # okay in the real world where ";" in dirpaths is itself problematic.
22615     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22616   else
22617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22618   fi
22619 else
22620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22621 fi
22622 need_lib_prefix=unknown
22623 hardcode_into_libs=no
22624
22625 # when you set need_version to no, make sure it does not cause -set_version
22626 # flags to be left without arguments
22627 need_version=unknown
22628
22629 case $host_os in
22630 aix3*)
22631   version_type=linux
22632   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22633   shlibpath_var=LIBPATH
22634
22635   # AIX 3 has no versioning support, so we append a major version to the name.
22636   soname_spec='${libname}${release}${shared_ext}$major'
22637   ;;
22638
22639 aix4* | aix5*)
22640   version_type=linux
22641   need_lib_prefix=no
22642   need_version=no
22643   hardcode_into_libs=yes
22644   if test "$host_cpu" = ia64; then
22645     # AIX 5 supports IA64
22646     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22647     shlibpath_var=LD_LIBRARY_PATH
22648   else
22649     # With GCC up to 2.95.x, collect2 would create an import file
22650     # for dependence libraries.  The import file would start with
22651     # the line `#! .'.  This would cause the generated library to
22652     # depend on `.', always an invalid library.  This was fixed in
22653     # development snapshots of GCC prior to 3.0.
22654     case $host_os in
22655       aix4 | aix4.[01] | aix4.[01].*)
22656       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22657            echo ' yes '
22658            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22659         :
22660       else
22661         can_build_shared=no
22662       fi
22663       ;;
22664     esac
22665     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22666     # soname into executable. Probably we can add versioning support to
22667     # collect2, so additional links can be useful in future.
22668     if test "$aix_use_runtimelinking" = yes; then
22669       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22670       # instead of lib<name>.a to let people know that these are not
22671       # typical AIX shared libraries.
22672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673     else
22674       # We preserve .a as extension for shared libraries through AIX4.2
22675       # and later when we are not doing run time linking.
22676       library_names_spec='${libname}${release}.a $libname.a'
22677       soname_spec='${libname}${release}${shared_ext}$major'
22678     fi
22679     shlibpath_var=LIBPATH
22680   fi
22681   ;;
22682
22683 amigaos*)
22684   library_names_spec='$libname.ixlibrary $libname.a'
22685   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22686   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'
22687   ;;
22688
22689 beos*)
22690   library_names_spec='${libname}${shared_ext}'
22691   dynamic_linker="$host_os ld.so"
22692   shlibpath_var=LIBRARY_PATH
22693   ;;
22694
22695 bsdi[45]*)
22696   version_type=linux
22697   need_version=no
22698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699   soname_spec='${libname}${release}${shared_ext}$major'
22700   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22701   shlibpath_var=LD_LIBRARY_PATH
22702   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22703   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22704   # the default ld.so.conf also contains /usr/contrib/lib and
22705   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22706   # libtool to hard-code these into programs
22707   ;;
22708
22709 cygwin* | mingw* | pw32*)
22710   version_type=windows
22711   shrext_cmds=".dll"
22712   need_version=no
22713   need_lib_prefix=no
22714
22715   case $GCC,$host_os in
22716   yes,cygwin* | yes,mingw* | yes,pw32*)
22717     library_names_spec='$libname.dll.a'
22718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22719     postinstall_cmds='base_file=`basename \${file}`~
22720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22721       dldir=$destdir/`dirname \$dlpath`~
22722       test -d \$dldir || mkdir -p \$dldir~
22723       $install_prog $dir/$dlname \$dldir/$dlname'
22724     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22725       dlpath=$dir/\$dldll~
22726        $rm \$dlpath'
22727     shlibpath_overrides_runpath=yes
22728
22729     case $host_os in
22730     cygwin*)
22731       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22732       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22733       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22734       ;;
22735     mingw*)
22736       # MinGW DLLs use traditional 'lib' prefix
22737       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22739       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22740         # It is most probably a Windows format PATH printed by
22741         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22742         # path with ; separators, and with drive letters. We can handle the
22743         # drive letters (cygwin fileutils understands them), so leave them,
22744         # especially as we might pass files found there to a mingw objdump,
22745         # which wouldn't understand a cygwinified path. Ahh.
22746         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22747       else
22748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22749       fi
22750       ;;
22751     pw32*)
22752       # pw32 DLLs use 'pw' prefix rather than 'lib'
22753       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22754       ;;
22755     esac
22756     ;;
22757
22758   *)
22759     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22760     ;;
22761   esac
22762   dynamic_linker='Win32 ld.exe'
22763   # FIXME: first we should search . and the directory the executable is in
22764   shlibpath_var=PATH
22765   ;;
22766
22767 darwin* | rhapsody*)
22768   dynamic_linker="$host_os dyld"
22769   version_type=darwin
22770   need_lib_prefix=no
22771   need_version=no
22772   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22773   soname_spec='${libname}${release}${major}$shared_ext'
22774   shlibpath_overrides_runpath=yes
22775   shlibpath_var=DYLD_LIBRARY_PATH
22776   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22777   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22778   if test "$GCC" = yes; then
22779     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"`
22780   else
22781     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22782   fi
22783   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22784   ;;
22785
22786 dgux*)
22787   version_type=linux
22788   need_lib_prefix=no
22789   need_version=no
22790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22791   soname_spec='${libname}${release}${shared_ext}$major'
22792   shlibpath_var=LD_LIBRARY_PATH
22793   ;;
22794
22795 freebsd1*)
22796   dynamic_linker=no
22797   ;;
22798
22799 kfreebsd*-gnu)
22800   version_type=linux
22801   need_lib_prefix=no
22802   need_version=no
22803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22804   soname_spec='${libname}${release}${shared_ext}$major'
22805   shlibpath_var=LD_LIBRARY_PATH
22806   shlibpath_overrides_runpath=no
22807   hardcode_into_libs=yes
22808   dynamic_linker='GNU ld.so'
22809   ;;
22810
22811 freebsd*)
22812   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22813   version_type=freebsd-$objformat
22814   case $version_type in
22815     freebsd-elf*)
22816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22817       need_version=no
22818       need_lib_prefix=no
22819       ;;
22820     freebsd-*)
22821       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22822       need_version=yes
22823       ;;
22824   esac
22825   shlibpath_var=LD_LIBRARY_PATH
22826   case $host_os in
22827   freebsd2*)
22828     shlibpath_overrides_runpath=yes
22829     ;;
22830   freebsd3.01* | freebsdelf3.01*)
22831     shlibpath_overrides_runpath=yes
22832     hardcode_into_libs=yes
22833     ;;
22834   *) # from 3.2 on
22835     shlibpath_overrides_runpath=no
22836     hardcode_into_libs=yes
22837     ;;
22838   esac
22839   ;;
22840
22841 gnu*)
22842   version_type=linux
22843   need_lib_prefix=no
22844   need_version=no
22845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22846   soname_spec='${libname}${release}${shared_ext}$major'
22847   shlibpath_var=LD_LIBRARY_PATH
22848   hardcode_into_libs=yes
22849   ;;
22850
22851 hpux9* | hpux10* | hpux11*)
22852   # Give a soname corresponding to the major version so that dld.sl refuses to
22853   # link against other versions.
22854   version_type=sunos
22855   need_lib_prefix=no
22856   need_version=no
22857   case "$host_cpu" in
22858   ia64*)
22859     shrext_cmds='.so'
22860     hardcode_into_libs=yes
22861     dynamic_linker="$host_os dld.so"
22862     shlibpath_var=LD_LIBRARY_PATH
22863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865     soname_spec='${libname}${release}${shared_ext}$major'
22866     if test "X$HPUX_IA64_MODE" = X32; then
22867       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22868     else
22869       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22870     fi
22871     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22872     ;;
22873    hppa*64*)
22874      shrext_cmds='.sl'
22875      hardcode_into_libs=yes
22876      dynamic_linker="$host_os dld.sl"
22877      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22878      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22879      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880      soname_spec='${libname}${release}${shared_ext}$major'
22881      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22882      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22883      ;;
22884    *)
22885     shrext_cmds='.sl'
22886     dynamic_linker="$host_os dld.sl"
22887     shlibpath_var=SHLIB_PATH
22888     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22890     soname_spec='${libname}${release}${shared_ext}$major'
22891     ;;
22892   esac
22893   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22894   postinstall_cmds='chmod 555 $lib'
22895   ;;
22896
22897 irix5* | irix6* | nonstopux*)
22898   case $host_os in
22899     nonstopux*) version_type=nonstopux ;;
22900     *)
22901         if test "$lt_cv_prog_gnu_ld" = yes; then
22902                 version_type=linux
22903         else
22904                 version_type=irix
22905         fi ;;
22906   esac
22907   need_lib_prefix=no
22908   need_version=no
22909   soname_spec='${libname}${release}${shared_ext}$major'
22910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22911   case $host_os in
22912   irix5* | nonstopux*)
22913     libsuff= shlibsuff=
22914     ;;
22915   *)
22916     case $LD in # libtool.m4 will add one of these switches to LD
22917     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22918       libsuff= shlibsuff= libmagic=32-bit;;
22919     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22920       libsuff=32 shlibsuff=N32 libmagic=N32;;
22921     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22922       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22923     *) libsuff= shlibsuff= libmagic=never-match;;
22924     esac
22925     ;;
22926   esac
22927   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22928   shlibpath_overrides_runpath=no
22929   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22930   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22931   hardcode_into_libs=yes
22932   ;;
22933
22934 # No shared lib support for Linux oldld, aout, or coff.
22935 linux*oldld* | linux*aout* | linux*coff*)
22936   dynamic_linker=no
22937   ;;
22938
22939 # This must be Linux ELF.
22940 linux*)
22941   version_type=linux
22942   need_lib_prefix=no
22943   need_version=no
22944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22945   soname_spec='${libname}${release}${shared_ext}$major'
22946   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22947   shlibpath_var=LD_LIBRARY_PATH
22948   shlibpath_overrides_runpath=no
22949   # This implies no fast_install, which is unacceptable.
22950   # Some rework will be needed to allow for fast_install
22951   # before this can be enabled.
22952   hardcode_into_libs=yes
22953
22954   # Append ld.so.conf contents to the search path
22955   if test -f /etc/ld.so.conf; then
22956     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22957     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22958   fi
22959
22960   # We used to test for /lib/ld.so.1 and disable shared libraries on
22961   # powerpc, because MkLinux only supported shared libraries with the
22962   # GNU dynamic linker.  Since this was broken with cross compilers,
22963   # most powerpc-linux boxes support dynamic linking these days and
22964   # people can always --disable-shared, the test was removed, and we
22965   # assume the GNU/Linux dynamic linker is in use.
22966   dynamic_linker='GNU/Linux ld.so'
22967   ;;
22968
22969 knetbsd*-gnu)
22970   version_type=linux
22971   need_lib_prefix=no
22972   need_version=no
22973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974   soname_spec='${libname}${release}${shared_ext}$major'
22975   shlibpath_var=LD_LIBRARY_PATH
22976   shlibpath_overrides_runpath=no
22977   hardcode_into_libs=yes
22978   dynamic_linker='GNU ld.so'
22979   ;;
22980
22981 netbsd*)
22982   version_type=sunos
22983   need_lib_prefix=no
22984   need_version=no
22985   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22987     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22988     dynamic_linker='NetBSD (a.out) ld.so'
22989   else
22990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22991     soname_spec='${libname}${release}${shared_ext}$major'
22992     dynamic_linker='NetBSD ld.elf_so'
22993   fi
22994   shlibpath_var=LD_LIBRARY_PATH
22995   shlibpath_overrides_runpath=yes
22996   hardcode_into_libs=yes
22997   ;;
22998
22999 newsos6)
23000   version_type=linux
23001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002   shlibpath_var=LD_LIBRARY_PATH
23003   shlibpath_overrides_runpath=yes
23004   ;;
23005
23006 nto-qnx*)
23007   version_type=linux
23008   need_lib_prefix=no
23009   need_version=no
23010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011   soname_spec='${libname}${release}${shared_ext}$major'
23012   shlibpath_var=LD_LIBRARY_PATH
23013   shlibpath_overrides_runpath=yes
23014   ;;
23015
23016 openbsd*)
23017   version_type=sunos
23018   need_lib_prefix=no
23019   need_version=no
23020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23022   shlibpath_var=LD_LIBRARY_PATH
23023   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23024     case $host_os in
23025       openbsd2.[89] | openbsd2.[89].*)
23026         shlibpath_overrides_runpath=no
23027         ;;
23028       *)
23029         shlibpath_overrides_runpath=yes
23030         ;;
23031       esac
23032   else
23033     shlibpath_overrides_runpath=yes
23034   fi
23035   ;;
23036
23037 os2*)
23038   libname_spec='$name'
23039   shrext_cmds=".dll"
23040   need_lib_prefix=no
23041   library_names_spec='$libname${shared_ext} $libname.a'
23042   dynamic_linker='OS/2 ld.exe'
23043   shlibpath_var=LIBPATH
23044   ;;
23045
23046 osf3* | osf4* | osf5*)
23047   version_type=osf
23048   need_lib_prefix=no
23049   need_version=no
23050   soname_spec='${libname}${release}${shared_ext}$major'
23051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23052   shlibpath_var=LD_LIBRARY_PATH
23053   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23054   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23055   ;;
23056
23057 sco3.2v5*)
23058   version_type=osf
23059   soname_spec='${libname}${release}${shared_ext}$major'
23060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23061   shlibpath_var=LD_LIBRARY_PATH
23062   ;;
23063
23064 solaris*)
23065   version_type=linux
23066   need_lib_prefix=no
23067   need_version=no
23068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23069   soname_spec='${libname}${release}${shared_ext}$major'
23070   shlibpath_var=LD_LIBRARY_PATH
23071   shlibpath_overrides_runpath=yes
23072   hardcode_into_libs=yes
23073   # ldd complains unless libraries are executable
23074   postinstall_cmds='chmod +x $lib'
23075   ;;
23076
23077 sunos4*)
23078   version_type=sunos
23079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23081   shlibpath_var=LD_LIBRARY_PATH
23082   shlibpath_overrides_runpath=yes
23083   if test "$with_gnu_ld" = yes; then
23084     need_lib_prefix=no
23085   fi
23086   need_version=yes
23087   ;;
23088
23089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23090   version_type=linux
23091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092   soname_spec='${libname}${release}${shared_ext}$major'
23093   shlibpath_var=LD_LIBRARY_PATH
23094   case $host_vendor in
23095     sni)
23096       shlibpath_overrides_runpath=no
23097       need_lib_prefix=no
23098       export_dynamic_flag_spec='${wl}-Blargedynsym'
23099       runpath_var=LD_RUN_PATH
23100       ;;
23101     siemens)
23102       need_lib_prefix=no
23103       ;;
23104     motorola)
23105       need_lib_prefix=no
23106       need_version=no
23107       shlibpath_overrides_runpath=no
23108       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23109       ;;
23110   esac
23111   ;;
23112
23113 sysv4*MP*)
23114   if test -d /usr/nec ;then
23115     version_type=linux
23116     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23117     soname_spec='$libname${shared_ext}.$major'
23118     shlibpath_var=LD_LIBRARY_PATH
23119   fi
23120   ;;
23121
23122 uts4*)
23123   version_type=linux
23124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23125   soname_spec='${libname}${release}${shared_ext}$major'
23126   shlibpath_var=LD_LIBRARY_PATH
23127   ;;
23128
23129 *)
23130   dynamic_linker=no
23131   ;;
23132 esac
23133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23134 echo "${ECHO_T}$dynamic_linker" >&6
23135 test "$dynamic_linker" = no && can_build_shared=no
23136
23137 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23139 hardcode_action_GCJ=
23140 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23141    test -n "$runpath_var_GCJ" || \
23142    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23143
23144   # We can hardcode non-existant directories.
23145   if test "$hardcode_direct_GCJ" != no &&
23146      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23147      # have to relink, otherwise we might link with an installed library
23148      # when we should be linking with a yet-to-be-installed one
23149      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23150      test "$hardcode_minus_L_GCJ" != no; then
23151     # Linking always hardcodes the temporary library directory.
23152     hardcode_action_GCJ=relink
23153   else
23154     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23155     hardcode_action_GCJ=immediate
23156   fi
23157 else
23158   # We cannot hardcode anything, or else we can only hardcode existing
23159   # directories.
23160   hardcode_action_GCJ=unsupported
23161 fi
23162 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23163 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23164
23165 if test "$hardcode_action_GCJ" = relink; then
23166   # Fast installation is not supported
23167   enable_fast_install=no
23168 elif test "$shlibpath_overrides_runpath" = yes ||
23169      test "$enable_shared" = no; then
23170   # Fast installation is not necessary
23171   enable_fast_install=needless
23172 fi
23173
23174 striplib=
23175 old_striplib=
23176 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23179   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23180   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23181   echo "$as_me:$LINENO: result: yes" >&5
23182 echo "${ECHO_T}yes" >&6
23183 else
23184 # FIXME - insert some real tests, host_os isn't really good enough
23185   case $host_os in
23186    darwin*)
23187        if test -n "$STRIP" ; then
23188          striplib="$STRIP -x"
23189          echo "$as_me:$LINENO: result: yes" >&5
23190 echo "${ECHO_T}yes" >&6
23191        else
23192   echo "$as_me:$LINENO: result: no" >&5
23193 echo "${ECHO_T}no" >&6
23194 fi
23195        ;;
23196    *)
23197   echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6
23199     ;;
23200   esac
23201 fi
23202
23203 if test "x$enable_dlopen" != xyes; then
23204   enable_dlopen=unknown
23205   enable_dlopen_self=unknown
23206   enable_dlopen_self_static=unknown
23207 else
23208   lt_cv_dlopen=no
23209   lt_cv_dlopen_libs=
23210
23211   case $host_os in
23212   beos*)
23213     lt_cv_dlopen="load_add_on"
23214     lt_cv_dlopen_libs=
23215     lt_cv_dlopen_self=yes
23216     ;;
23217
23218   mingw* | pw32*)
23219     lt_cv_dlopen="LoadLibrary"
23220     lt_cv_dlopen_libs=
23221    ;;
23222
23223   cygwin*)
23224     lt_cv_dlopen="dlopen"
23225     lt_cv_dlopen_libs=
23226    ;;
23227
23228   darwin*)
23229   # if libdl is installed we need to link against it
23230     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_check_lib_save_LIBS=$LIBS
23236 LIBS="-ldl  $LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 /* Override any gcc2 internal prototype to avoid an error.  */
23245 #ifdef __cplusplus
23246 extern "C"
23247 #endif
23248 /* We use char because int might match the return type of a gcc2
23249    builtin and then its argument prototype would still apply.  */
23250 char dlopen ();
23251 int
23252 main ()
23253 {
23254 dlopen ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"
23269                          || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_cv_lib_dl_dlopen=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_lib_dl_dlopen=no
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23291 fi
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294 if test $ac_cv_lib_dl_dlopen = yes; then
23295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23296 else
23297
23298     lt_cv_dlopen="dyld"
23299     lt_cv_dlopen_libs=
23300     lt_cv_dlopen_self=yes
23301
23302 fi
23303
23304    ;;
23305
23306   *)
23307     echo "$as_me:$LINENO: checking for shl_load" >&5
23308 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23309 if test "${ac_cv_func_shl_load+set}" = set; then
23310   echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312   cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23320 #define shl_load innocuous_shl_load
23321
23322 /* System header to define __stub macros and hopefully few prototypes,
23323     which can conflict with char shl_load (); below.
23324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325     <limits.h> exists even on freestanding compilers.  */
23326
23327 #ifdef __STDC__
23328 # include <limits.h>
23329 #else
23330 # include <assert.h>
23331 #endif
23332
23333 #undef shl_load
23334
23335 /* Override any gcc2 internal prototype to avoid an error.  */
23336 #ifdef __cplusplus
23337 extern "C"
23338 {
23339 #endif
23340 /* We use char because int might match the return type of a gcc2
23341    builtin and then its argument prototype would still apply.  */
23342 char shl_load ();
23343 /* The GNU C library defines this for functions which it implements
23344     to always fail with ENOSYS.  Some functions are actually named
23345     something starting with __ and the normal name is an alias.  */
23346 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23347 choke me
23348 #else
23349 char (*f) () = shl_load;
23350 #endif
23351 #ifdef __cplusplus
23352 }
23353 #endif
23354
23355 int
23356 main ()
23357 {
23358 return f != shl_load;
23359   ;
23360   return 0;
23361 }
23362 _ACEOF
23363 rm -f conftest.$ac_objext conftest$ac_exeext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365   (eval $ac_link) 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } &&
23372          { ac_try='test -z "$ac_c_werror_flag"
23373                          || test ! -s conftest.err'
23374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375   (eval $ac_try) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); }; } &&
23379          { ac_try='test -s conftest$ac_exeext'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_cv_func_shl_load=yes
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ac_cv_func_shl_load=no
23391 fi
23392 rm -f conftest.err conftest.$ac_objext \
23393       conftest$ac_exeext conftest.$ac_ext
23394 fi
23395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23397 if test $ac_cv_func_shl_load = yes; then
23398   lt_cv_dlopen="shl_load"
23399 else
23400   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23403   echo $ECHO_N "(cached) $ECHO_C" >&6
23404 else
23405   ac_check_lib_save_LIBS=$LIBS
23406 LIBS="-ldld  $LIBS"
23407 cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h.  */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h.  */
23413
23414 /* Override any gcc2 internal prototype to avoid an error.  */
23415 #ifdef __cplusplus
23416 extern "C"
23417 #endif
23418 /* We use char because int might match the return type of a gcc2
23419    builtin and then its argument prototype would still apply.  */
23420 char shl_load ();
23421 int
23422 main ()
23423 {
23424 shl_load ();
23425   ;
23426   return 0;
23427 }
23428 _ACEOF
23429 rm -f conftest.$ac_objext conftest$ac_exeext
23430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23431   (eval $ac_link) 2>conftest.er1
23432   ac_status=$?
23433   grep -v '^ *+' conftest.er1 >conftest.err
23434   rm -f conftest.er1
23435   cat conftest.err >&5
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); } &&
23438          { ac_try='test -z "$ac_c_werror_flag"
23439                          || test ! -s conftest.err'
23440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441   (eval $ac_try) 2>&5
23442   ac_status=$?
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); }; } &&
23445          { ac_try='test -s conftest$ac_exeext'
23446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447   (eval $ac_try) 2>&5
23448   ac_status=$?
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); }; }; then
23451   ac_cv_lib_dld_shl_load=yes
23452 else
23453   echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456 ac_cv_lib_dld_shl_load=no
23457 fi
23458 rm -f conftest.err conftest.$ac_objext \
23459       conftest$ac_exeext conftest.$ac_ext
23460 LIBS=$ac_check_lib_save_LIBS
23461 fi
23462 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23463 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23464 if test $ac_cv_lib_dld_shl_load = yes; then
23465   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23466 else
23467   echo "$as_me:$LINENO: checking for dlopen" >&5
23468 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23469 if test "${ac_cv_func_dlopen+set}" = set; then
23470   echo $ECHO_N "(cached) $ECHO_C" >&6
23471 else
23472   cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23480 #define dlopen innocuous_dlopen
23481
23482 /* System header to define __stub macros and hopefully few prototypes,
23483     which can conflict with char dlopen (); below.
23484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23485     <limits.h> exists even on freestanding compilers.  */
23486
23487 #ifdef __STDC__
23488 # include <limits.h>
23489 #else
23490 # include <assert.h>
23491 #endif
23492
23493 #undef dlopen
23494
23495 /* Override any gcc2 internal prototype to avoid an error.  */
23496 #ifdef __cplusplus
23497 extern "C"
23498 {
23499 #endif
23500 /* We use char because int might match the return type of a gcc2
23501    builtin and then its argument prototype would still apply.  */
23502 char dlopen ();
23503 /* The GNU C library defines this for functions which it implements
23504     to always fail with ENOSYS.  Some functions are actually named
23505     something starting with __ and the normal name is an alias.  */
23506 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23507 choke me
23508 #else
23509 char (*f) () = dlopen;
23510 #endif
23511 #ifdef __cplusplus
23512 }
23513 #endif
23514
23515 int
23516 main ()
23517 {
23518 return f != dlopen;
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 rm -f conftest.$ac_objext conftest$ac_exeext
23524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23525   (eval $ac_link) 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } &&
23532          { ac_try='test -z "$ac_c_werror_flag"
23533                          || test ! -s conftest.err'
23534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535   (eval $ac_try) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; } &&
23539          { ac_try='test -s conftest$ac_exeext'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; }; then
23545   ac_cv_func_dlopen=yes
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_cv_func_dlopen=no
23551 fi
23552 rm -f conftest.err conftest.$ac_objext \
23553       conftest$ac_exeext conftest.$ac_ext
23554 fi
23555 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23556 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23557 if test $ac_cv_func_dlopen = yes; then
23558   lt_cv_dlopen="dlopen"
23559 else
23560   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23563   echo $ECHO_N "(cached) $ECHO_C" >&6
23564 else
23565   ac_check_lib_save_LIBS=$LIBS
23566 LIBS="-ldl  $LIBS"
23567 cat >conftest.$ac_ext <<_ACEOF
23568 /* confdefs.h.  */
23569 _ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h.  */
23573
23574 /* Override any gcc2 internal prototype to avoid an error.  */
23575 #ifdef __cplusplus
23576 extern "C"
23577 #endif
23578 /* We use char because int might match the return type of a gcc2
23579    builtin and then its argument prototype would still apply.  */
23580 char dlopen ();
23581 int
23582 main ()
23583 {
23584 dlopen ();
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext conftest$ac_exeext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23591   (eval $ac_link) 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } &&
23598          { ac_try='test -z "$ac_c_werror_flag"
23599                          || test ! -s conftest.err'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; } &&
23605          { ac_try='test -s conftest$ac_exeext'
23606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607   (eval $ac_try) 2>&5
23608   ac_status=$?
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); }; }; then
23611   ac_cv_lib_dl_dlopen=yes
23612 else
23613   echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616 ac_cv_lib_dl_dlopen=no
23617 fi
23618 rm -f conftest.err conftest.$ac_objext \
23619       conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23621 fi
23622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23624 if test $ac_cv_lib_dl_dlopen = yes; then
23625   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23626 else
23627   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23628 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23629 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23630   echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632   ac_check_lib_save_LIBS=$LIBS
23633 LIBS="-lsvld  $LIBS"
23634 cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640
23641 /* Override any gcc2 internal prototype to avoid an error.  */
23642 #ifdef __cplusplus
23643 extern "C"
23644 #endif
23645 /* We use char because int might match the return type of a gcc2
23646    builtin and then its argument prototype would still apply.  */
23647 char dlopen ();
23648 int
23649 main ()
23650 {
23651 dlopen ();
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext conftest$ac_exeext
23657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23658   (eval $ac_link) 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } &&
23665          { ac_try='test -z "$ac_c_werror_flag"
23666                          || test ! -s conftest.err'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; } &&
23672          { ac_try='test -s conftest$ac_exeext'
23673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674   (eval $ac_try) 2>&5
23675   ac_status=$?
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); }; }; then
23678   ac_cv_lib_svld_dlopen=yes
23679 else
23680   echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683 ac_cv_lib_svld_dlopen=no
23684 fi
23685 rm -f conftest.err conftest.$ac_objext \
23686       conftest$ac_exeext conftest.$ac_ext
23687 LIBS=$ac_check_lib_save_LIBS
23688 fi
23689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23691 if test $ac_cv_lib_svld_dlopen = yes; then
23692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23693 else
23694   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23697   echo $ECHO_N "(cached) $ECHO_C" >&6
23698 else
23699   ac_check_lib_save_LIBS=$LIBS
23700 LIBS="-ldld  $LIBS"
23701 cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707
23708 /* Override any gcc2 internal prototype to avoid an error.  */
23709 #ifdef __cplusplus
23710 extern "C"
23711 #endif
23712 /* We use char because int might match the return type of a gcc2
23713    builtin and then its argument prototype would still apply.  */
23714 char dld_link ();
23715 int
23716 main ()
23717 {
23718 dld_link ();
23719   ;
23720   return 0;
23721 }
23722 _ACEOF
23723 rm -f conftest.$ac_objext conftest$ac_exeext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725   (eval $ac_link) 2>conftest.er1
23726   ac_status=$?
23727   grep -v '^ *+' conftest.er1 >conftest.err
23728   rm -f conftest.er1
23729   cat conftest.err >&5
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); } &&
23732          { ac_try='test -z "$ac_c_werror_flag"
23733                          || test ! -s conftest.err'
23734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735   (eval $ac_try) 2>&5
23736   ac_status=$?
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); }; } &&
23739          { ac_try='test -s conftest$ac_exeext'
23740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741   (eval $ac_try) 2>&5
23742   ac_status=$?
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); }; }; then
23745   ac_cv_lib_dld_dld_link=yes
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750 ac_cv_lib_dld_dld_link=no
23751 fi
23752 rm -f conftest.err conftest.$ac_objext \
23753       conftest$ac_exeext conftest.$ac_ext
23754 LIBS=$ac_check_lib_save_LIBS
23755 fi
23756 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23757 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23758 if test $ac_cv_lib_dld_dld_link = yes; then
23759   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23760 fi
23761
23762
23763 fi
23764
23765
23766 fi
23767
23768
23769 fi
23770
23771
23772 fi
23773
23774
23775 fi
23776
23777     ;;
23778   esac
23779
23780   if test "x$lt_cv_dlopen" != xno; then
23781     enable_dlopen=yes
23782   else
23783     enable_dlopen=no
23784   fi
23785
23786   case $lt_cv_dlopen in
23787   dlopen)
23788     save_CPPFLAGS="$CPPFLAGS"
23789     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23790
23791     save_LDFLAGS="$LDFLAGS"
23792     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23793
23794     save_LIBS="$LIBS"
23795     LIBS="$lt_cv_dlopen_libs $LIBS"
23796
23797     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23798 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23799 if test "${lt_cv_dlopen_self+set}" = set; then
23800   echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802           if test "$cross_compiling" = yes; then :
23803   lt_cv_dlopen_self=cross
23804 else
23805   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23806   lt_status=$lt_dlunknown
23807   cat > conftest.$ac_ext <<EOF
23808 #line 23808 "configure"
23809 #include "confdefs.h"
23810
23811 #if HAVE_DLFCN_H
23812 #include <dlfcn.h>
23813 #endif
23814
23815 #include <stdio.h>
23816
23817 #ifdef RTLD_GLOBAL
23818 #  define LT_DLGLOBAL           RTLD_GLOBAL
23819 #else
23820 #  ifdef DL_GLOBAL
23821 #    define LT_DLGLOBAL         DL_GLOBAL
23822 #  else
23823 #    define LT_DLGLOBAL         0
23824 #  endif
23825 #endif
23826
23827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23828    find out it does not work in some platform. */
23829 #ifndef LT_DLLAZY_OR_NOW
23830 #  ifdef RTLD_LAZY
23831 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23832 #  else
23833 #    ifdef DL_LAZY
23834 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23835 #    else
23836 #      ifdef RTLD_NOW
23837 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23838 #      else
23839 #        ifdef DL_NOW
23840 #          define LT_DLLAZY_OR_NOW      DL_NOW
23841 #        else
23842 #          define LT_DLLAZY_OR_NOW      0
23843 #        endif
23844 #      endif
23845 #    endif
23846 #  endif
23847 #endif
23848
23849 #ifdef __cplusplus
23850 extern "C" void exit (int);
23851 #endif
23852
23853 void fnord() { int i=42;}
23854 int main ()
23855 {
23856   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23857   int status = $lt_dlunknown;
23858
23859   if (self)
23860     {
23861       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23862       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23863       /* dlclose (self); */
23864     }
23865
23866     exit (status);
23867 }
23868 EOF
23869   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870   (eval $ac_link) 2>&5
23871   ac_status=$?
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23874     (./conftest; exit; ) 2>/dev/null
23875     lt_status=$?
23876     case x$lt_status in
23877       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23878       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23879       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23880     esac
23881   else :
23882     # compilation failed
23883     lt_cv_dlopen_self=no
23884   fi
23885 fi
23886 rm -fr conftest*
23887
23888
23889 fi
23890 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23892
23893     if test "x$lt_cv_dlopen_self" = xyes; then
23894       LDFLAGS="$LDFLAGS $link_static_flag"
23895       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23897 if test "${lt_cv_dlopen_self_static+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900           if test "$cross_compiling" = yes; then :
23901   lt_cv_dlopen_self_static=cross
23902 else
23903   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23904   lt_status=$lt_dlunknown
23905   cat > conftest.$ac_ext <<EOF
23906 #line 23906 "configure"
23907 #include "confdefs.h"
23908
23909 #if HAVE_DLFCN_H
23910 #include <dlfcn.h>
23911 #endif
23912
23913 #include <stdio.h>
23914
23915 #ifdef RTLD_GLOBAL
23916 #  define LT_DLGLOBAL           RTLD_GLOBAL
23917 #else
23918 #  ifdef DL_GLOBAL
23919 #    define LT_DLGLOBAL         DL_GLOBAL
23920 #  else
23921 #    define LT_DLGLOBAL         0
23922 #  endif
23923 #endif
23924
23925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23926    find out it does not work in some platform. */
23927 #ifndef LT_DLLAZY_OR_NOW
23928 #  ifdef RTLD_LAZY
23929 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23930 #  else
23931 #    ifdef DL_LAZY
23932 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23933 #    else
23934 #      ifdef RTLD_NOW
23935 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23936 #      else
23937 #        ifdef DL_NOW
23938 #          define LT_DLLAZY_OR_NOW      DL_NOW
23939 #        else
23940 #          define LT_DLLAZY_OR_NOW      0
23941 #        endif
23942 #      endif
23943 #    endif
23944 #  endif
23945 #endif
23946
23947 #ifdef __cplusplus
23948 extern "C" void exit (int);
23949 #endif
23950
23951 void fnord() { int i=42;}
23952 int main ()
23953 {
23954   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23955   int status = $lt_dlunknown;
23956
23957   if (self)
23958     {
23959       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23960       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23961       /* dlclose (self); */
23962     }
23963
23964     exit (status);
23965 }
23966 EOF
23967   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23968   (eval $ac_link) 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23972     (./conftest; exit; ) 2>/dev/null
23973     lt_status=$?
23974     case x$lt_status in
23975       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23976       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23977       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23978     esac
23979   else :
23980     # compilation failed
23981     lt_cv_dlopen_self_static=no
23982   fi
23983 fi
23984 rm -fr conftest*
23985
23986
23987 fi
23988 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23990     fi
23991
23992     CPPFLAGS="$save_CPPFLAGS"
23993     LDFLAGS="$save_LDFLAGS"
23994     LIBS="$save_LIBS"
23995     ;;
23996   esac
23997
23998   case $lt_cv_dlopen_self in
23999   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24000   *) enable_dlopen_self=unknown ;;
24001   esac
24002
24003   case $lt_cv_dlopen_self_static in
24004   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24005   *) enable_dlopen_self_static=unknown ;;
24006   esac
24007 fi
24008
24009
24010 # The else clause should only fire when bootstrapping the
24011 # libtool distribution, otherwise you forgot to ship ltmain.sh
24012 # with your package, and you will get complaints that there are
24013 # no rules to generate ltmain.sh.
24014 if test -f "$ltmain"; then
24015   # See if we are running on zsh, and set the options which allow our commands through
24016   # without removal of \ escapes.
24017   if test -n "${ZSH_VERSION+set}" ; then
24018     setopt NO_GLOB_SUBST
24019   fi
24020   # Now quote all the things that may contain metacharacters while being
24021   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24022   # variables and quote the copies for generation of the libtool script.
24023   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24024     SED SHELL STRIP \
24025     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24026     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24027     deplibs_check_method reload_flag reload_cmds need_locks \
24028     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24029     lt_cv_sys_global_symbol_to_c_name_address \
24030     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24031     old_postinstall_cmds old_postuninstall_cmds \
24032     compiler_GCJ \
24033     CC_GCJ \
24034     LD_GCJ \
24035     lt_prog_compiler_wl_GCJ \
24036     lt_prog_compiler_pic_GCJ \
24037     lt_prog_compiler_static_GCJ \
24038     lt_prog_compiler_no_builtin_flag_GCJ \
24039     export_dynamic_flag_spec_GCJ \
24040     thread_safe_flag_spec_GCJ \
24041     whole_archive_flag_spec_GCJ \
24042     enable_shared_with_static_runtimes_GCJ \
24043     old_archive_cmds_GCJ \
24044     old_archive_from_new_cmds_GCJ \
24045     predep_objects_GCJ \
24046     postdep_objects_GCJ \
24047     predeps_GCJ \
24048     postdeps_GCJ \
24049     compiler_lib_search_path_GCJ \
24050     archive_cmds_GCJ \
24051     archive_expsym_cmds_GCJ \
24052     postinstall_cmds_GCJ \
24053     postuninstall_cmds_GCJ \
24054     old_archive_from_expsyms_cmds_GCJ \
24055     allow_undefined_flag_GCJ \
24056     no_undefined_flag_GCJ \
24057     export_symbols_cmds_GCJ \
24058     hardcode_libdir_flag_spec_GCJ \
24059     hardcode_libdir_flag_spec_ld_GCJ \
24060     hardcode_libdir_separator_GCJ \
24061     hardcode_automatic_GCJ \
24062     module_cmds_GCJ \
24063     module_expsym_cmds_GCJ \
24064     lt_cv_prog_compiler_c_o_GCJ \
24065     exclude_expsyms_GCJ \
24066     include_expsyms_GCJ; do
24067
24068     case $var in
24069     old_archive_cmds_GCJ | \
24070     old_archive_from_new_cmds_GCJ | \
24071     archive_cmds_GCJ | \
24072     archive_expsym_cmds_GCJ | \
24073     module_cmds_GCJ | \
24074     module_expsym_cmds_GCJ | \
24075     old_archive_from_expsyms_cmds_GCJ | \
24076     export_symbols_cmds_GCJ | \
24077     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24078     postinstall_cmds | postuninstall_cmds | \
24079     old_postinstall_cmds | old_postuninstall_cmds | \
24080     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24081       # Double-quote double-evaled strings.
24082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24083       ;;
24084     *)
24085       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24086       ;;
24087     esac
24088   done
24089
24090   case $lt_echo in
24091   *'\$0 --fallback-echo"')
24092     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24093     ;;
24094   esac
24095
24096 cfgfile="$ofile"
24097
24098   cat <<__EOF__ >> "$cfgfile"
24099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24100
24101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24102
24103 # Shell to use when invoking shell scripts.
24104 SHELL=$lt_SHELL
24105
24106 # Whether or not to build shared libraries.
24107 build_libtool_libs=$enable_shared
24108
24109 # Whether or not to build static libraries.
24110 build_old_libs=$enable_static
24111
24112 # Whether or not to add -lc for building shared libraries.
24113 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24114
24115 # Whether or not to disallow shared libs when runtime libs are static
24116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24117
24118 # Whether or not to optimize for fast installation.
24119 fast_install=$enable_fast_install
24120
24121 # The host system.
24122 host_alias=$host_alias
24123 host=$host
24124
24125 # An echo program that does not interpret backslashes.
24126 echo=$lt_echo
24127
24128 # The archiver.
24129 AR=$lt_AR
24130 AR_FLAGS=$lt_AR_FLAGS
24131
24132 # A C compiler.
24133 LTCC=$lt_LTCC
24134
24135 # A language-specific compiler.
24136 CC=$lt_compiler_GCJ
24137
24138 # Is the compiler the GNU C compiler?
24139 with_gcc=$GCC_GCJ
24140
24141 # An ERE matcher.
24142 EGREP=$lt_EGREP
24143
24144 # The linker used to build libraries.
24145 LD=$lt_LD_GCJ
24146
24147 # Whether we need hard or soft links.
24148 LN_S=$lt_LN_S
24149
24150 # A BSD-compatible nm program.
24151 NM=$lt_NM
24152
24153 # A symbol stripping program
24154 STRIP=$lt_STRIP
24155
24156 # Used to examine libraries when file_magic_cmd begins "file"
24157 MAGIC_CMD=$MAGIC_CMD
24158
24159 # Used on cygwin: DLL creation program.
24160 DLLTOOL="$DLLTOOL"
24161
24162 # Used on cygwin: object dumper.
24163 OBJDUMP="$OBJDUMP"
24164
24165 # Used on cygwin: assembler.
24166 AS="$AS"
24167
24168 # The name of the directory that contains temporary libtool files.
24169 objdir=$objdir
24170
24171 # How to create reloadable object files.
24172 reload_flag=$lt_reload_flag
24173 reload_cmds=$lt_reload_cmds
24174
24175 # How to pass a linker flag through the compiler.
24176 wl=$lt_lt_prog_compiler_wl_GCJ
24177
24178 # Object file suffix (normally "o").
24179 objext="$ac_objext"
24180
24181 # Old archive suffix (normally "a").
24182 libext="$libext"
24183
24184 # Shared library suffix (normally ".so").
24185 shrext_cmds='$shrext_cmds'
24186
24187 # Executable file suffix (normally "").
24188 exeext="$exeext"
24189
24190 # Additional compiler flags for building library objects.
24191 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24192 pic_mode=$pic_mode
24193
24194 # What is the maximum length of a command?
24195 max_cmd_len=$lt_cv_sys_max_cmd_len
24196
24197 # Does compiler simultaneously support -c and -o options?
24198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24199
24200 # Must we lock files when doing compilation ?
24201 need_locks=$lt_need_locks
24202
24203 # Do we need the lib prefix for modules?
24204 need_lib_prefix=$need_lib_prefix
24205
24206 # Do we need a version for libraries?
24207 need_version=$need_version
24208
24209 # Whether dlopen is supported.
24210 dlopen_support=$enable_dlopen
24211
24212 # Whether dlopen of programs is supported.
24213 dlopen_self=$enable_dlopen_self
24214
24215 # Whether dlopen of statically linked programs is supported.
24216 dlopen_self_static=$enable_dlopen_self_static
24217
24218 # Compiler flag to prevent dynamic linking.
24219 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24220
24221 # Compiler flag to turn off builtin functions.
24222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24223
24224 # Compiler flag to allow reflexive dlopens.
24225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24226
24227 # Compiler flag to generate shared objects directly from archives.
24228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24229
24230 # Compiler flag to generate thread-safe objects.
24231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24232
24233 # Library versioning type.
24234 version_type=$version_type
24235
24236 # Format of library name prefix.
24237 libname_spec=$lt_libname_spec
24238
24239 # List of archive names.  First name is the real one, the rest are links.
24240 # The last name is the one that the linker finds with -lNAME.
24241 library_names_spec=$lt_library_names_spec
24242
24243 # The coded name of the library, if different from the real name.
24244 soname_spec=$lt_soname_spec
24245
24246 # Commands used to build and install an old-style archive.
24247 RANLIB=$lt_RANLIB
24248 old_archive_cmds=$lt_old_archive_cmds_GCJ
24249 old_postinstall_cmds=$lt_old_postinstall_cmds
24250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24251
24252 # Create an old-style archive from a shared archive.
24253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24254
24255 # Create a temporary old-style archive to link instead of a shared archive.
24256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24257
24258 # Commands used to build and install a shared archive.
24259 archive_cmds=$lt_archive_cmds_GCJ
24260 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24261 postinstall_cmds=$lt_postinstall_cmds
24262 postuninstall_cmds=$lt_postuninstall_cmds
24263
24264 # Commands used to build a loadable module (assumed same as above if empty)
24265 module_cmds=$lt_module_cmds_GCJ
24266 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24267
24268 # Commands to strip libraries.
24269 old_striplib=$lt_old_striplib
24270 striplib=$lt_striplib
24271
24272 # Dependencies to place before the objects being linked to create a
24273 # shared library.
24274 predep_objects=$lt_predep_objects_GCJ
24275
24276 # Dependencies to place after the objects being linked to create a
24277 # shared library.
24278 postdep_objects=$lt_postdep_objects_GCJ
24279
24280 # Dependencies to place before the objects being linked to create a
24281 # shared library.
24282 predeps=$lt_predeps_GCJ
24283
24284 # Dependencies to place after the objects being linked to create a
24285 # shared library.
24286 postdeps=$lt_postdeps_GCJ
24287
24288 # The library search path used internally by the compiler when linking
24289 # a shared library.
24290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24291
24292 # Method to check whether dependent libraries are shared objects.
24293 deplibs_check_method=$lt_deplibs_check_method
24294
24295 # Command to use when deplibs_check_method == file_magic.
24296 file_magic_cmd=$lt_file_magic_cmd
24297
24298 # Flag that allows shared libraries with undefined symbols to be built.
24299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24300
24301 # Flag that forces no undefined symbols.
24302 no_undefined_flag=$lt_no_undefined_flag_GCJ
24303
24304 # Commands used to finish a libtool library installation in a directory.
24305 finish_cmds=$lt_finish_cmds
24306
24307 # Same as above, but a single script fragment to be evaled but not shown.
24308 finish_eval=$lt_finish_eval
24309
24310 # Take the output of nm and produce a listing of raw symbols and C names.
24311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24312
24313 # Transform the output of nm in a proper C declaration
24314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24315
24316 # Transform the output of nm in a C name address pair
24317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24318
24319 # This is the shared library runtime path variable.
24320 runpath_var=$runpath_var
24321
24322 # This is the shared library path variable.
24323 shlibpath_var=$shlibpath_var
24324
24325 # Is shlibpath searched before the hard-coded library search path?
24326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24327
24328 # How to hardcode a shared library path into an executable.
24329 hardcode_action=$hardcode_action_GCJ
24330
24331 # Whether we should hardcode library paths into libraries.
24332 hardcode_into_libs=$hardcode_into_libs
24333
24334 # Flag to hardcode \$libdir into a binary during linking.
24335 # This must work even if \$libdir does not exist.
24336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24337
24338 # If ld is used when linking, flag to hardcode \$libdir into
24339 # a binary during linking. This must work even if \$libdir does
24340 # not exist.
24341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24342
24343 # Whether we need a single -rpath flag with a separated argument.
24344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24345
24346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24347 # resulting binary.
24348 hardcode_direct=$hardcode_direct_GCJ
24349
24350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24351 # resulting binary.
24352 hardcode_minus_L=$hardcode_minus_L_GCJ
24353
24354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24355 # the resulting binary.
24356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24357
24358 # Set to yes if building a shared library automatically hardcodes DIR into the library
24359 # and all subsequent libraries and executables linked against it.
24360 hardcode_automatic=$hardcode_automatic_GCJ
24361
24362 # Variables whose values should be saved in libtool wrapper scripts and
24363 # restored at relink time.
24364 variables_saved_for_relink="$variables_saved_for_relink"
24365
24366 # Whether libtool must link a program against all its dependency libraries.
24367 link_all_deplibs=$link_all_deplibs_GCJ
24368
24369 # Compile-time system search path for libraries
24370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24371
24372 # Run-time system search path for libraries
24373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24374
24375 # Fix the shell variable \$srcfile for the compiler.
24376 fix_srcfile_path="$fix_srcfile_path_GCJ"
24377
24378 # Set to yes if exported symbols are required.
24379 always_export_symbols=$always_export_symbols_GCJ
24380
24381 # The commands to list exported symbols.
24382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24383
24384 # The commands to extract the exported symbol list from a shared archive.
24385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24386
24387 # Symbols that should not be listed in the preloaded symbols.
24388 exclude_expsyms=$lt_exclude_expsyms_GCJ
24389
24390 # Symbols that must always be exported.
24391 include_expsyms=$lt_include_expsyms_GCJ
24392
24393 # ### END LIBTOOL TAG CONFIG: $tagname
24394
24395 __EOF__
24396
24397
24398 else
24399   # If there is no Makefile yet, we rely on a make rule to execute
24400   # `config.status --recheck' to rerun these tests and create the
24401   # libtool script then.
24402   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24403   if test -f "$ltmain_in"; then
24404     test -f Makefile && make "$ltmain"
24405   fi
24406 fi
24407
24408
24409 ac_ext=c
24410 ac_cpp='$CPP $CPPFLAGS'
24411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24414
24415 CC="$lt_save_CC"
24416
24417         else
24418           tagname=""
24419         fi
24420         ;;
24421
24422       RC)
24423         ac_ext=c
24424 ac_cpp='$CPP $CPPFLAGS'
24425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24428
24429
24430 # Source file extension for RC test sources.
24431 ac_ext=rc
24432
24433 # Object file extension for compiled RC test sources.
24434 objext=o
24435 objext_RC=$objext
24436
24437 # Code to be used in simple compile tests
24438 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24439
24440 # Code to be used in simple link tests
24441 lt_simple_link_test_code="$lt_simple_compile_test_code"
24442
24443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24444
24445 # If no C compiler was specified, use CC.
24446 LTCC=${LTCC-"$CC"}
24447
24448 # Allow CC to be a program name with arguments.
24449 compiler=$CC
24450
24451
24452 # Allow CC to be a program name with arguments.
24453 lt_save_CC="$CC"
24454 CC=${RC-"windres"}
24455 compiler=$CC
24456 compiler_RC=$CC
24457 lt_cv_prog_compiler_c_o_RC=yes
24458
24459 # The else clause should only fire when bootstrapping the
24460 # libtool distribution, otherwise you forgot to ship ltmain.sh
24461 # with your package, and you will get complaints that there are
24462 # no rules to generate ltmain.sh.
24463 if test -f "$ltmain"; then
24464   # See if we are running on zsh, and set the options which allow our commands through
24465   # without removal of \ escapes.
24466   if test -n "${ZSH_VERSION+set}" ; then
24467     setopt NO_GLOB_SUBST
24468   fi
24469   # Now quote all the things that may contain metacharacters while being
24470   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24471   # variables and quote the copies for generation of the libtool script.
24472   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24473     SED SHELL STRIP \
24474     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24475     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24476     deplibs_check_method reload_flag reload_cmds need_locks \
24477     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24478     lt_cv_sys_global_symbol_to_c_name_address \
24479     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24480     old_postinstall_cmds old_postuninstall_cmds \
24481     compiler_RC \
24482     CC_RC \
24483     LD_RC \
24484     lt_prog_compiler_wl_RC \
24485     lt_prog_compiler_pic_RC \
24486     lt_prog_compiler_static_RC \
24487     lt_prog_compiler_no_builtin_flag_RC \
24488     export_dynamic_flag_spec_RC \
24489     thread_safe_flag_spec_RC \
24490     whole_archive_flag_spec_RC \
24491     enable_shared_with_static_runtimes_RC \
24492     old_archive_cmds_RC \
24493     old_archive_from_new_cmds_RC \
24494     predep_objects_RC \
24495     postdep_objects_RC \
24496     predeps_RC \
24497     postdeps_RC \
24498     compiler_lib_search_path_RC \
24499     archive_cmds_RC \
24500     archive_expsym_cmds_RC \
24501     postinstall_cmds_RC \
24502     postuninstall_cmds_RC \
24503     old_archive_from_expsyms_cmds_RC \
24504     allow_undefined_flag_RC \
24505     no_undefined_flag_RC \
24506     export_symbols_cmds_RC \
24507     hardcode_libdir_flag_spec_RC \
24508     hardcode_libdir_flag_spec_ld_RC \
24509     hardcode_libdir_separator_RC \
24510     hardcode_automatic_RC \
24511     module_cmds_RC \
24512     module_expsym_cmds_RC \
24513     lt_cv_prog_compiler_c_o_RC \
24514     exclude_expsyms_RC \
24515     include_expsyms_RC; do
24516
24517     case $var in
24518     old_archive_cmds_RC | \
24519     old_archive_from_new_cmds_RC | \
24520     archive_cmds_RC | \
24521     archive_expsym_cmds_RC | \
24522     module_cmds_RC | \
24523     module_expsym_cmds_RC | \
24524     old_archive_from_expsyms_cmds_RC | \
24525     export_symbols_cmds_RC | \
24526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24527     postinstall_cmds | postuninstall_cmds | \
24528     old_postinstall_cmds | old_postuninstall_cmds | \
24529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24530       # Double-quote double-evaled strings.
24531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24532       ;;
24533     *)
24534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24535       ;;
24536     esac
24537   done
24538
24539   case $lt_echo in
24540   *'\$0 --fallback-echo"')
24541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24542     ;;
24543   esac
24544
24545 cfgfile="$ofile"
24546
24547   cat <<__EOF__ >> "$cfgfile"
24548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24549
24550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24551
24552 # Shell to use when invoking shell scripts.
24553 SHELL=$lt_SHELL
24554
24555 # Whether or not to build shared libraries.
24556 build_libtool_libs=$enable_shared
24557
24558 # Whether or not to build static libraries.
24559 build_old_libs=$enable_static
24560
24561 # Whether or not to add -lc for building shared libraries.
24562 build_libtool_need_lc=$archive_cmds_need_lc_RC
24563
24564 # Whether or not to disallow shared libs when runtime libs are static
24565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24566
24567 # Whether or not to optimize for fast installation.
24568 fast_install=$enable_fast_install
24569
24570 # The host system.
24571 host_alias=$host_alias
24572 host=$host
24573
24574 # An echo program that does not interpret backslashes.
24575 echo=$lt_echo
24576
24577 # The archiver.
24578 AR=$lt_AR
24579 AR_FLAGS=$lt_AR_FLAGS
24580
24581 # A C compiler.
24582 LTCC=$lt_LTCC
24583
24584 # A language-specific compiler.
24585 CC=$lt_compiler_RC
24586
24587 # Is the compiler the GNU C compiler?
24588 with_gcc=$GCC_RC
24589
24590 # An ERE matcher.
24591 EGREP=$lt_EGREP
24592
24593 # The linker used to build libraries.
24594 LD=$lt_LD_RC
24595
24596 # Whether we need hard or soft links.
24597 LN_S=$lt_LN_S
24598
24599 # A BSD-compatible nm program.
24600 NM=$lt_NM
24601
24602 # A symbol stripping program
24603 STRIP=$lt_STRIP
24604
24605 # Used to examine libraries when file_magic_cmd begins "file"
24606 MAGIC_CMD=$MAGIC_CMD
24607
24608 # Used on cygwin: DLL creation program.
24609 DLLTOOL="$DLLTOOL"
24610
24611 # Used on cygwin: object dumper.
24612 OBJDUMP="$OBJDUMP"
24613
24614 # Used on cygwin: assembler.
24615 AS="$AS"
24616
24617 # The name of the directory that contains temporary libtool files.
24618 objdir=$objdir
24619
24620 # How to create reloadable object files.
24621 reload_flag=$lt_reload_flag
24622 reload_cmds=$lt_reload_cmds
24623
24624 # How to pass a linker flag through the compiler.
24625 wl=$lt_lt_prog_compiler_wl_RC
24626
24627 # Object file suffix (normally "o").
24628 objext="$ac_objext"
24629
24630 # Old archive suffix (normally "a").
24631 libext="$libext"
24632
24633 # Shared library suffix (normally ".so").
24634 shrext_cmds='$shrext_cmds'
24635
24636 # Executable file suffix (normally "").
24637 exeext="$exeext"
24638
24639 # Additional compiler flags for building library objects.
24640 pic_flag=$lt_lt_prog_compiler_pic_RC
24641 pic_mode=$pic_mode
24642
24643 # What is the maximum length of a command?
24644 max_cmd_len=$lt_cv_sys_max_cmd_len
24645
24646 # Does compiler simultaneously support -c and -o options?
24647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24648
24649 # Must we lock files when doing compilation ?
24650 need_locks=$lt_need_locks
24651
24652 # Do we need the lib prefix for modules?
24653 need_lib_prefix=$need_lib_prefix
24654
24655 # Do we need a version for libraries?
24656 need_version=$need_version
24657
24658 # Whether dlopen is supported.
24659 dlopen_support=$enable_dlopen
24660
24661 # Whether dlopen of programs is supported.
24662 dlopen_self=$enable_dlopen_self
24663
24664 # Whether dlopen of statically linked programs is supported.
24665 dlopen_self_static=$enable_dlopen_self_static
24666
24667 # Compiler flag to prevent dynamic linking.
24668 link_static_flag=$lt_lt_prog_compiler_static_RC
24669
24670 # Compiler flag to turn off builtin functions.
24671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24672
24673 # Compiler flag to allow reflexive dlopens.
24674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24675
24676 # Compiler flag to generate shared objects directly from archives.
24677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24678
24679 # Compiler flag to generate thread-safe objects.
24680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24681
24682 # Library versioning type.
24683 version_type=$version_type
24684
24685 # Format of library name prefix.
24686 libname_spec=$lt_libname_spec
24687
24688 # List of archive names.  First name is the real one, the rest are links.
24689 # The last name is the one that the linker finds with -lNAME.
24690 library_names_spec=$lt_library_names_spec
24691
24692 # The coded name of the library, if different from the real name.
24693 soname_spec=$lt_soname_spec
24694
24695 # Commands used to build and install an old-style archive.
24696 RANLIB=$lt_RANLIB
24697 old_archive_cmds=$lt_old_archive_cmds_RC
24698 old_postinstall_cmds=$lt_old_postinstall_cmds
24699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24700
24701 # Create an old-style archive from a shared archive.
24702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24703
24704 # Create a temporary old-style archive to link instead of a shared archive.
24705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24706
24707 # Commands used to build and install a shared archive.
24708 archive_cmds=$lt_archive_cmds_RC
24709 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24710 postinstall_cmds=$lt_postinstall_cmds
24711 postuninstall_cmds=$lt_postuninstall_cmds
24712
24713 # Commands used to build a loadable module (assumed same as above if empty)
24714 module_cmds=$lt_module_cmds_RC
24715 module_expsym_cmds=$lt_module_expsym_cmds_RC
24716
24717 # Commands to strip libraries.
24718 old_striplib=$lt_old_striplib
24719 striplib=$lt_striplib
24720
24721 # Dependencies to place before the objects being linked to create a
24722 # shared library.
24723 predep_objects=$lt_predep_objects_RC
24724
24725 # Dependencies to place after the objects being linked to create a
24726 # shared library.
24727 postdep_objects=$lt_postdep_objects_RC
24728
24729 # Dependencies to place before the objects being linked to create a
24730 # shared library.
24731 predeps=$lt_predeps_RC
24732
24733 # Dependencies to place after the objects being linked to create a
24734 # shared library.
24735 postdeps=$lt_postdeps_RC
24736
24737 # The library search path used internally by the compiler when linking
24738 # a shared library.
24739 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24740
24741 # Method to check whether dependent libraries are shared objects.
24742 deplibs_check_method=$lt_deplibs_check_method
24743
24744 # Command to use when deplibs_check_method == file_magic.
24745 file_magic_cmd=$lt_file_magic_cmd
24746
24747 # Flag that allows shared libraries with undefined symbols to be built.
24748 allow_undefined_flag=$lt_allow_undefined_flag_RC
24749
24750 # Flag that forces no undefined symbols.
24751 no_undefined_flag=$lt_no_undefined_flag_RC
24752
24753 # Commands used to finish a libtool library installation in a directory.
24754 finish_cmds=$lt_finish_cmds
24755
24756 # Same as above, but a single script fragment to be evaled but not shown.
24757 finish_eval=$lt_finish_eval
24758
24759 # Take the output of nm and produce a listing of raw symbols and C names.
24760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24761
24762 # Transform the output of nm in a proper C declaration
24763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24764
24765 # Transform the output of nm in a C name address pair
24766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24767
24768 # This is the shared library runtime path variable.
24769 runpath_var=$runpath_var
24770
24771 # This is the shared library path variable.
24772 shlibpath_var=$shlibpath_var
24773
24774 # Is shlibpath searched before the hard-coded library search path?
24775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24776
24777 # How to hardcode a shared library path into an executable.
24778 hardcode_action=$hardcode_action_RC
24779
24780 # Whether we should hardcode library paths into libraries.
24781 hardcode_into_libs=$hardcode_into_libs
24782
24783 # Flag to hardcode \$libdir into a binary during linking.
24784 # This must work even if \$libdir does not exist.
24785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24786
24787 # If ld is used when linking, flag to hardcode \$libdir into
24788 # a binary during linking. This must work even if \$libdir does
24789 # not exist.
24790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24791
24792 # Whether we need a single -rpath flag with a separated argument.
24793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24794
24795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24796 # resulting binary.
24797 hardcode_direct=$hardcode_direct_RC
24798
24799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24800 # resulting binary.
24801 hardcode_minus_L=$hardcode_minus_L_RC
24802
24803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24804 # the resulting binary.
24805 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24806
24807 # Set to yes if building a shared library automatically hardcodes DIR into the library
24808 # and all subsequent libraries and executables linked against it.
24809 hardcode_automatic=$hardcode_automatic_RC
24810
24811 # Variables whose values should be saved in libtool wrapper scripts and
24812 # restored at relink time.
24813 variables_saved_for_relink="$variables_saved_for_relink"
24814
24815 # Whether libtool must link a program against all its dependency libraries.
24816 link_all_deplibs=$link_all_deplibs_RC
24817
24818 # Compile-time system search path for libraries
24819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24820
24821 # Run-time system search path for libraries
24822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24823
24824 # Fix the shell variable \$srcfile for the compiler.
24825 fix_srcfile_path="$fix_srcfile_path_RC"
24826
24827 # Set to yes if exported symbols are required.
24828 always_export_symbols=$always_export_symbols_RC
24829
24830 # The commands to list exported symbols.
24831 export_symbols_cmds=$lt_export_symbols_cmds_RC
24832
24833 # The commands to extract the exported symbol list from a shared archive.
24834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24835
24836 # Symbols that should not be listed in the preloaded symbols.
24837 exclude_expsyms=$lt_exclude_expsyms_RC
24838
24839 # Symbols that must always be exported.
24840 include_expsyms=$lt_include_expsyms_RC
24841
24842 # ### END LIBTOOL TAG CONFIG: $tagname
24843
24844 __EOF__
24845
24846
24847 else
24848   # If there is no Makefile yet, we rely on a make rule to execute
24849   # `config.status --recheck' to rerun these tests and create the
24850   # libtool script then.
24851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24852   if test -f "$ltmain_in"; then
24853     test -f Makefile && make "$ltmain"
24854   fi
24855 fi
24856
24857
24858 ac_ext=c
24859 ac_cpp='$CPP $CPPFLAGS'
24860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24863
24864 CC="$lt_save_CC"
24865
24866         ;;
24867
24868       *)
24869         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24870 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24871    { (exit 1); exit 1; }; }
24872         ;;
24873       esac
24874
24875       # Append the new tag name to the list of available tags.
24876       if test -n "$tagname" ; then
24877       available_tags="$available_tags $tagname"
24878     fi
24879     fi
24880   done
24881   IFS="$lt_save_ifs"
24882
24883   # Now substitute the updated list of available tags.
24884   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24885     mv "${ofile}T" "$ofile"
24886     chmod +x "$ofile"
24887   else
24888     rm -f "${ofile}T"
24889     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24890 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24891    { (exit 1); exit 1; }; }
24892   fi
24893 fi
24894
24895
24896
24897 # This can be used to rebuild libtool when needed
24898 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24899
24900 # Always use our own libtool.
24901 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24902
24903 # Prevent multiple expansion
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925 if test "$lt_cv_dlopen_self" = "yes" ; then
24926
24927 cat >>confdefs.h <<\_ACEOF
24928 #define CAN_DLOPEN_SELF 1
24929 _ACEOF
24930
24931 fi
24932
24933 etags_version=`$ETAGS --version 2>&1`
24934 case "$etags_version" in
24935         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24936         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24937         *) ETAGSFLAGS="" ;;
24938 esac
24939 ETAGSFLAGS=$ETAGSFLAGS
24940
24941
24942 if test "$WITH_LLVMGCCDIR" = "default" ; then
24943   LLVMGCC="llvm-gcc${EXEEXT}"
24944   LLVMGXX="llvm-g++${EXEEXT}"
24945   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24946 set dummy $LLVMGCC; ac_word=$2
24947 echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24949 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24950   echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952   case $LLVMGCC in
24953   [\\/]* | ?:[\\/]*)
24954   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24955   ;;
24956   *)
24957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24958 for as_dir in $PATH
24959 do
24960   IFS=$as_save_IFS
24961   test -z "$as_dir" && as_dir=.
24962   for ac_exec_ext in '' $ac_executable_extensions; do
24963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24964     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24966     break 2
24967   fi
24968 done
24969 done
24970
24971   ;;
24972 esac
24973 fi
24974 LLVMGCC=$ac_cv_path_LLVMGCC
24975
24976 if test -n "$LLVMGCC"; then
24977   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24978 echo "${ECHO_T}$LLVMGCC" >&6
24979 else
24980   echo "$as_me:$LINENO: result: no" >&5
24981 echo "${ECHO_T}no" >&6
24982 fi
24983
24984   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24985 set dummy $LLVMGXX; ac_word=$2
24986 echo "$as_me:$LINENO: checking for $ac_word" >&5
24987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24988 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24989   echo $ECHO_N "(cached) $ECHO_C" >&6
24990 else
24991   case $LLVMGXX in
24992   [\\/]* | ?:[\\/]*)
24993   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24994   ;;
24995   *)
24996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24997 for as_dir in $PATH
24998 do
24999   IFS=$as_save_IFS
25000   test -z "$as_dir" && as_dir=.
25001   for ac_exec_ext in '' $ac_executable_extensions; do
25002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25003     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25005     break 2
25006   fi
25007 done
25008 done
25009
25010   ;;
25011 esac
25012 fi
25013 LLVMGXX=$ac_cv_path_LLVMGXX
25014
25015 if test -n "$LLVMGXX"; then
25016   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25017 echo "${ECHO_T}$LLVMGXX" >&6
25018 else
25019   echo "$as_me:$LINENO: result: no" >&5
25020 echo "${ECHO_T}no" >&6
25021 fi
25022
25023 else
25024   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25025   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25026   LLVMGCC=$LLVMGCC
25027
25028   LLVMGXX=$LLVMGXX
25029
25030 fi
25031
25032 echo "$as_me:$LINENO: checking tool compatibility" >&5
25033 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25034
25035 ICC=no
25036 IXX=no
25037 case $CC in
25038   icc*|icpc*)
25039     ICC=yes
25040     IXX=yes
25041     ;;
25042    *)
25043     ;;
25044 esac
25045
25046 if test "$GCC" != "yes" && test "$ICC" != "yes"
25047 then
25048   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25049 echo "$as_me: error: gcc|icc required but not found" >&2;}
25050    { (exit 1); exit 1; }; }
25051 fi
25052
25053 if test "$GXX" != "yes" && test "$IXX" != "yes"
25054 then
25055   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25056 echo "$as_me: error: g++|icc required but not found" >&2;}
25057    { (exit 1); exit 1; }; }
25058 fi
25059
25060 if test "$GCC" = "yes"
25061 then
25062   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25063   if test "$gccmajor" -lt "3"
25064   then
25065     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25066 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25067    { (exit 1); exit 1; }; }
25068   fi
25069 fi
25070
25071 if test -z "$llvm_cv_gnu_make_command"
25072 then
25073   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25074 echo "$as_me: error: GNU Make required but not found" >&2;}
25075    { (exit 1); exit 1; }; }
25076 fi
25077
25078 echo "$as_me:$LINENO: result: ok" >&5
25079 echo "${ECHO_T}ok" >&6
25080
25081
25082
25083 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25084 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25085 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25086   echo $ECHO_N "(cached) $ECHO_C" >&6
25087 else
25088   ac_check_lib_save_LIBS=$LIBS
25089 LIBS="-lelf  $LIBS"
25090 cat >conftest.$ac_ext <<_ACEOF
25091 /* confdefs.h.  */
25092 _ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h.  */
25096
25097 /* Override any gcc2 internal prototype to avoid an error.  */
25098 #ifdef __cplusplus
25099 extern "C"
25100 #endif
25101 /* We use char because int might match the return type of a gcc2
25102    builtin and then its argument prototype would still apply.  */
25103 char elf_begin ();
25104 int
25105 main ()
25106 {
25107 elf_begin ();
25108   ;
25109   return 0;
25110 }
25111 _ACEOF
25112 rm -f conftest.$ac_objext conftest$ac_exeext
25113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25114   (eval $ac_link) 2>conftest.er1
25115   ac_status=$?
25116   grep -v '^ *+' conftest.er1 >conftest.err
25117   rm -f conftest.er1
25118   cat conftest.err >&5
25119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120   (exit $ac_status); } &&
25121          { ac_try='test -z "$ac_c_werror_flag"
25122                          || test ! -s conftest.err'
25123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124   (eval $ac_try) 2>&5
25125   ac_status=$?
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); }; } &&
25128          { ac_try='test -s conftest$ac_exeext'
25129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130   (eval $ac_try) 2>&5
25131   ac_status=$?
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); }; }; then
25134   ac_cv_lib_elf_elf_begin=yes
25135 else
25136   echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.$ac_ext >&5
25138
25139 ac_cv_lib_elf_elf_begin=no
25140 fi
25141 rm -f conftest.err conftest.$ac_objext \
25142       conftest$ac_exeext conftest.$ac_ext
25143 LIBS=$ac_check_lib_save_LIBS
25144 fi
25145 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25146 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25147 if test $ac_cv_lib_elf_elf_begin = yes; then
25148   cat >>confdefs.h <<_ACEOF
25149 #define HAVE_LIBELF 1
25150 _ACEOF
25151
25152   LIBS="-lelf $LIBS"
25153
25154 fi
25155
25156
25157 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25158 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25159 if test "${ac_cv_lib_m_sin+set}" = set; then
25160   echo $ECHO_N "(cached) $ECHO_C" >&6
25161 else
25162   ac_check_lib_save_LIBS=$LIBS
25163 LIBS="-lm  $LIBS"
25164 cat >conftest.$ac_ext <<_ACEOF
25165 /* confdefs.h.  */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h.  */
25170
25171 /* Override any gcc2 internal prototype to avoid an error.  */
25172 #ifdef __cplusplus
25173 extern "C"
25174 #endif
25175 /* We use char because int might match the return type of a gcc2
25176    builtin and then its argument prototype would still apply.  */
25177 char sin ();
25178 int
25179 main ()
25180 {
25181 sin ();
25182   ;
25183   return 0;
25184 }
25185 _ACEOF
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188   (eval $ac_link) 2>conftest.er1
25189   ac_status=$?
25190   grep -v '^ *+' conftest.er1 >conftest.err
25191   rm -f conftest.er1
25192   cat conftest.err >&5
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); } &&
25195          { ac_try='test -z "$ac_c_werror_flag"
25196                          || test ! -s conftest.err'
25197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198   (eval $ac_try) 2>&5
25199   ac_status=$?
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); }; } &&
25202          { ac_try='test -s conftest$ac_exeext'
25203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204   (eval $ac_try) 2>&5
25205   ac_status=$?
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); }; }; then
25208   ac_cv_lib_m_sin=yes
25209 else
25210   echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213 ac_cv_lib_m_sin=no
25214 fi
25215 rm -f conftest.err conftest.$ac_objext \
25216       conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_check_lib_save_LIBS
25218 fi
25219 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25220 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25221 if test $ac_cv_lib_m_sin = yes; then
25222   cat >>confdefs.h <<_ACEOF
25223 #define HAVE_LIBM 1
25224 _ACEOF
25225
25226   LIBS="-lm $LIBS"
25227
25228 fi
25229
25230 if test "$llvm_cv_os_type" == "MingW" ; then
25231
25232 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25233 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25234 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25235   echo $ECHO_N "(cached) $ECHO_C" >&6
25236 else
25237   ac_check_lib_save_LIBS=$LIBS
25238 LIBS="-limagehlp  $LIBS"
25239 cat >conftest.$ac_ext <<_ACEOF
25240 /* confdefs.h.  */
25241 _ACEOF
25242 cat confdefs.h >>conftest.$ac_ext
25243 cat >>conftest.$ac_ext <<_ACEOF
25244 /* end confdefs.h.  */
25245
25246
25247 int
25248 main ()
25249 {
25250 main ();
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257   (eval $ac_link) 2>conftest.er1
25258   ac_status=$?
25259   grep -v '^ *+' conftest.er1 >conftest.err
25260   rm -f conftest.er1
25261   cat conftest.err >&5
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); } &&
25264          { ac_try='test -z "$ac_c_werror_flag"
25265                          || test ! -s conftest.err'
25266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267   (eval $ac_try) 2>&5
25268   ac_status=$?
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); }; } &&
25271          { ac_try='test -s conftest$ac_exeext'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; }; then
25277   ac_cv_lib_imagehlp_main=yes
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ac_cv_lib_imagehlp_main=no
25283 fi
25284 rm -f conftest.err conftest.$ac_objext \
25285       conftest$ac_exeext conftest.$ac_ext
25286 LIBS=$ac_check_lib_save_LIBS
25287 fi
25288 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25289 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25290 if test $ac_cv_lib_imagehlp_main = yes; then
25291   cat >>confdefs.h <<_ACEOF
25292 #define HAVE_LIBIMAGEHLP 1
25293 _ACEOF
25294
25295   LIBS="-limagehlp $LIBS"
25296
25297 fi
25298
25299
25300 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25301 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25302 if test "${ac_cv_lib_psapi_main+set}" = set; then
25303   echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305   ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lpsapi  $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
25315 int
25316 main ()
25317 {
25318 main ();
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25325   (eval $ac_link) 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } &&
25332          { ac_try='test -z "$ac_c_werror_flag"
25333                          || test ! -s conftest.err'
25334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335   (eval $ac_try) 2>&5
25336   ac_status=$?
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); }; } &&
25339          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25345   ac_cv_lib_psapi_main=yes
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350 ac_cv_lib_psapi_main=no
25351 fi
25352 rm -f conftest.err conftest.$ac_objext \
25353       conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25355 fi
25356 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25357 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25358 if test $ac_cv_lib_psapi_main = yes; then
25359   cat >>confdefs.h <<_ACEOF
25360 #define HAVE_LIBPSAPI 1
25361 _ACEOF
25362
25363   LIBS="-lpsapi $LIBS"
25364
25365 fi
25366
25367 fi
25368
25369 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25370 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25371 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25372   echo $ECHO_N "(cached) $ECHO_C" >&6
25373 else
25374   ac_func_search_save_LIBS=$LIBS
25375 ac_cv_search_lt_dlopen=no
25376 cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382
25383 /* Override any gcc2 internal prototype to avoid an error.  */
25384 #ifdef __cplusplus
25385 extern "C"
25386 #endif
25387 /* We use char because int might match the return type of a gcc2
25388    builtin and then its argument prototype would still apply.  */
25389 char lt_dlopen ();
25390 int
25391 main ()
25392 {
25393 lt_dlopen ();
25394   ;
25395   return 0;
25396 }
25397 _ACEOF
25398 rm -f conftest.$ac_objext conftest$ac_exeext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400   (eval $ac_link) 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } &&
25407          { ac_try='test -z "$ac_c_werror_flag"
25408                          || test ! -s conftest.err'
25409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410   (eval $ac_try) 2>&5
25411   ac_status=$?
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; } &&
25414          { ac_try='test -s conftest$ac_exeext'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; }; then
25420   ac_cv_search_lt_dlopen="none required"
25421 else
25422   echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425 fi
25426 rm -f conftest.err conftest.$ac_objext \
25427       conftest$ac_exeext conftest.$ac_ext
25428 if test "$ac_cv_search_lt_dlopen" = no; then
25429   for ac_lib in ltdl; do
25430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25431     cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437
25438 /* Override any gcc2 internal prototype to avoid an error.  */
25439 #ifdef __cplusplus
25440 extern "C"
25441 #endif
25442 /* We use char because int might match the return type of a gcc2
25443    builtin and then its argument prototype would still apply.  */
25444 char lt_dlopen ();
25445 int
25446 main ()
25447 {
25448 lt_dlopen ();
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455   (eval $ac_link) 2>conftest.er1
25456   ac_status=$?
25457   grep -v '^ *+' conftest.er1 >conftest.err
25458   rm -f conftest.er1
25459   cat conftest.err >&5
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); } &&
25462          { ac_try='test -z "$ac_c_werror_flag"
25463                          || test ! -s conftest.err'
25464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465   (eval $ac_try) 2>&5
25466   ac_status=$?
25467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); }; } &&
25469          { ac_try='test -s conftest$ac_exeext'
25470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471   (eval $ac_try) 2>&5
25472   ac_status=$?
25473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); }; }; then
25475   ac_cv_search_lt_dlopen="-l$ac_lib"
25476 break
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 fi
25482 rm -f conftest.err conftest.$ac_objext \
25483       conftest$ac_exeext conftest.$ac_ext
25484   done
25485 fi
25486 LIBS=$ac_func_search_save_LIBS
25487 fi
25488 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25489 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25490 if test "$ac_cv_search_lt_dlopen" != no; then
25491   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25492
25493 cat >>confdefs.h <<\_ACEOF
25494 #define HAVE_LT_DLOPEN 1
25495 _ACEOF
25496
25497 else
25498   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25499                            not be available" >&5
25500 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25501                            not be available" >&2;}
25502 fi
25503
25504
25505 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25506 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25507 if test "${ac_cv_search_dlopen+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   ac_func_search_save_LIBS=$LIBS
25511 ac_cv_search_dlopen=no
25512 cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h.  */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h.  */
25518
25519 /* Override any gcc2 internal prototype to avoid an error.  */
25520 #ifdef __cplusplus
25521 extern "C"
25522 #endif
25523 /* We use char because int might match the return type of a gcc2
25524    builtin and then its argument prototype would still apply.  */
25525 char dlopen ();
25526 int
25527 main ()
25528 {
25529 dlopen ();
25530   ;
25531   return 0;
25532 }
25533 _ACEOF
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536   (eval $ac_link) 2>conftest.er1
25537   ac_status=$?
25538   grep -v '^ *+' conftest.er1 >conftest.err
25539   rm -f conftest.er1
25540   cat conftest.err >&5
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); } &&
25543          { ac_try='test -z "$ac_c_werror_flag"
25544                          || test ! -s conftest.err'
25545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546   (eval $ac_try) 2>&5
25547   ac_status=$?
25548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549   (exit $ac_status); }; } &&
25550          { ac_try='test -s conftest$ac_exeext'
25551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552   (eval $ac_try) 2>&5
25553   ac_status=$?
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); }; }; then
25556   ac_cv_search_dlopen="none required"
25557 else
25558   echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25560
25561 fi
25562 rm -f conftest.err conftest.$ac_objext \
25563       conftest$ac_exeext conftest.$ac_ext
25564 if test "$ac_cv_search_dlopen" = no; then
25565   for ac_lib in dl; do
25566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25567     cat >conftest.$ac_ext <<_ACEOF
25568 /* confdefs.h.  */
25569 _ACEOF
25570 cat confdefs.h >>conftest.$ac_ext
25571 cat >>conftest.$ac_ext <<_ACEOF
25572 /* end confdefs.h.  */
25573
25574 /* Override any gcc2 internal prototype to avoid an error.  */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 /* We use char because int might match the return type of a gcc2
25579    builtin and then its argument prototype would still apply.  */
25580 char dlopen ();
25581 int
25582 main ()
25583 {
25584 dlopen ();
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591   (eval $ac_link) 2>conftest.er1
25592   ac_status=$?
25593   grep -v '^ *+' conftest.er1 >conftest.err
25594   rm -f conftest.er1
25595   cat conftest.err >&5
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } &&
25598          { ac_try='test -z "$ac_c_werror_flag"
25599                          || test ! -s conftest.err'
25600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601   (eval $ac_try) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); }; } &&
25605          { ac_try='test -s conftest$ac_exeext'
25606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607   (eval $ac_try) 2>&5
25608   ac_status=$?
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); }; }; then
25611   ac_cv_search_dlopen="-l$ac_lib"
25612 break
25613 else
25614   echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25616
25617 fi
25618 rm -f conftest.err conftest.$ac_objext \
25619       conftest$ac_exeext conftest.$ac_ext
25620   done
25621 fi
25622 LIBS=$ac_func_search_save_LIBS
25623 fi
25624 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25625 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25626 if test "$ac_cv_search_dlopen" != no; then
25627   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25628
25629 cat >>confdefs.h <<\_ACEOF
25630 #define HAVE_DLOPEN 1
25631 _ACEOF
25632
25633 else
25634   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25635 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25636 fi
25637
25638
25639 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25640 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25641 if test "${ac_cv_search_mallinfo+set}" = set; then
25642   echo $ECHO_N "(cached) $ECHO_C" >&6
25643 else
25644   ac_func_search_save_LIBS=$LIBS
25645 ac_cv_search_mallinfo=no
25646 cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h.  */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h.  */
25652
25653 /* Override any gcc2 internal prototype to avoid an error.  */
25654 #ifdef __cplusplus
25655 extern "C"
25656 #endif
25657 /* We use char because int might match the return type of a gcc2
25658    builtin and then its argument prototype would still apply.  */
25659 char mallinfo ();
25660 int
25661 main ()
25662 {
25663 mallinfo ();
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest.$ac_objext conftest$ac_exeext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25670   (eval $ac_link) 2>conftest.er1
25671   ac_status=$?
25672   grep -v '^ *+' conftest.er1 >conftest.err
25673   rm -f conftest.er1
25674   cat conftest.err >&5
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); } &&
25677          { ac_try='test -z "$ac_c_werror_flag"
25678                          || test ! -s conftest.err'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; } &&
25684          { ac_try='test -s conftest$ac_exeext'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690   ac_cv_search_mallinfo="none required"
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695 fi
25696 rm -f conftest.err conftest.$ac_objext \
25697       conftest$ac_exeext conftest.$ac_ext
25698 if test "$ac_cv_search_mallinfo" = no; then
25699   for ac_lib in malloc; do
25700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25701     cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707
25708 /* Override any gcc2 internal prototype to avoid an error.  */
25709 #ifdef __cplusplus
25710 extern "C"
25711 #endif
25712 /* We use char because int might match the return type of a gcc2
25713    builtin and then its argument prototype would still apply.  */
25714 char mallinfo ();
25715 int
25716 main ()
25717 {
25718 mallinfo ();
25719   ;
25720   return 0;
25721 }
25722 _ACEOF
25723 rm -f conftest.$ac_objext conftest$ac_exeext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25725   (eval $ac_link) 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } &&
25732          { ac_try='test -z "$ac_c_werror_flag"
25733                          || test ! -s conftest.err'
25734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735   (eval $ac_try) 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; } &&
25739          { ac_try='test -s conftest$ac_exeext'
25740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741   (eval $ac_try) 2>&5
25742   ac_status=$?
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); }; }; then
25745   ac_cv_search_mallinfo="-l$ac_lib"
25746 break
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 fi
25752 rm -f conftest.err conftest.$ac_objext \
25753       conftest$ac_exeext conftest.$ac_ext
25754   done
25755 fi
25756 LIBS=$ac_func_search_save_LIBS
25757 fi
25758 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25759 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25760 if test "$ac_cv_search_mallinfo" != no; then
25761   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25762
25763 cat >>confdefs.h <<\_ACEOF
25764 #define HAVE_MALLINFO 1
25765 _ACEOF
25766
25767 fi
25768
25769
25770 if test "$ENABLE_THREADS" -eq 1 ; then
25771
25772 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25773 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25774 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   ac_check_lib_save_LIBS=$LIBS
25778 LIBS="-lpthread  $LIBS"
25779 cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785
25786 /* Override any gcc2 internal prototype to avoid an error.  */
25787 #ifdef __cplusplus
25788 extern "C"
25789 #endif
25790 /* We use char because int might match the return type of a gcc2
25791    builtin and then its argument prototype would still apply.  */
25792 char pthread_mutex_init ();
25793 int
25794 main ()
25795 {
25796 pthread_mutex_init ();
25797   ;
25798   return 0;
25799 }
25800 _ACEOF
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803   (eval $ac_link) 2>conftest.er1
25804   ac_status=$?
25805   grep -v '^ *+' conftest.er1 >conftest.err
25806   rm -f conftest.er1
25807   cat conftest.err >&5
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); } &&
25810          { ac_try='test -z "$ac_c_werror_flag"
25811                          || test ! -s conftest.err'
25812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813   (eval $ac_try) 2>&5
25814   ac_status=$?
25815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); }; } &&
25817          { ac_try='test -s conftest$ac_exeext'
25818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819   (eval $ac_try) 2>&5
25820   ac_status=$?
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); }; }; then
25823   ac_cv_lib_pthread_pthread_mutex_init=yes
25824 else
25825   echo "$as_me: failed program was:" >&5
25826 sed 's/^/| /' conftest.$ac_ext >&5
25827
25828 ac_cv_lib_pthread_pthread_mutex_init=no
25829 fi
25830 rm -f conftest.err conftest.$ac_objext \
25831       conftest$ac_exeext conftest.$ac_ext
25832 LIBS=$ac_check_lib_save_LIBS
25833 fi
25834 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25835 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25836 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25837   cat >>confdefs.h <<_ACEOF
25838 #define HAVE_LIBPTHREAD 1
25839 _ACEOF
25840
25841   LIBS="-lpthread $LIBS"
25842
25843 fi
25844
25845   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25846 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25847 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850   ac_func_search_save_LIBS=$LIBS
25851 ac_cv_search_pthread_mutex_lock=no
25852 cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h.  */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h.  */
25858
25859 /* Override any gcc2 internal prototype to avoid an error.  */
25860 #ifdef __cplusplus
25861 extern "C"
25862 #endif
25863 /* We use char because int might match the return type of a gcc2
25864    builtin and then its argument prototype would still apply.  */
25865 char pthread_mutex_lock ();
25866 int
25867 main ()
25868 {
25869 pthread_mutex_lock ();
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 rm -f conftest.$ac_objext conftest$ac_exeext
25875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25876   (eval $ac_link) 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } &&
25883          { ac_try='test -z "$ac_c_werror_flag"
25884                          || test ! -s conftest.err'
25885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886   (eval $ac_try) 2>&5
25887   ac_status=$?
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); }; } &&
25890          { ac_try='test -s conftest$ac_exeext'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; }; then
25896   ac_cv_search_pthread_mutex_lock="none required"
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901 fi
25902 rm -f conftest.err conftest.$ac_objext \
25903       conftest$ac_exeext conftest.$ac_ext
25904 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25905   for ac_lib in pthread; do
25906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25907     cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913
25914 /* Override any gcc2 internal prototype to avoid an error.  */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 /* We use char because int might match the return type of a gcc2
25919    builtin and then its argument prototype would still apply.  */
25920 char pthread_mutex_lock ();
25921 int
25922 main ()
25923 {
25924 pthread_mutex_lock ();
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25931   (eval $ac_link) 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } &&
25938          { ac_try='test -z "$ac_c_werror_flag"
25939                          || test ! -s conftest.err'
25940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941   (eval $ac_try) 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; } &&
25945          { ac_try='test -s conftest$ac_exeext'
25946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947   (eval $ac_try) 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); }; }; then
25951   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25952 break
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957 fi
25958 rm -f conftest.err conftest.$ac_objext \
25959       conftest$ac_exeext conftest.$ac_ext
25960   done
25961 fi
25962 LIBS=$ac_func_search_save_LIBS
25963 fi
25964 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25965 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25966 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25967   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25968
25969 cat >>confdefs.h <<\_ACEOF
25970 #define HAVE_PTHREAD_MUTEX_LOCK 1
25971 _ACEOF
25972
25973 fi
25974
25975 fi
25976
25977
25978
25979
25980
25981
25982
25983 ac_header_dirent=no
25984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25985   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 #include <sys/types.h>
25998 #include <$ac_hdr>
25999
26000 int
26001 main ()
26002 {
26003 if ((DIR *) 0)
26004 return 0;
26005   ;
26006   return 0;
26007 }
26008 _ACEOF
26009 rm -f conftest.$ac_objext
26010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011   (eval $ac_compile) 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } &&
26018          { ac_try='test -z "$ac_c_werror_flag"
26019                          || test ! -s conftest.err'
26020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021   (eval $ac_try) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); }; } &&
26025          { ac_try='test -s conftest.$ac_objext'
26026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031   eval "$as_ac_Header=yes"
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 eval "$as_ac_Header=no"
26037 fi
26038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26039 fi
26040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26043   cat >>confdefs.h <<_ACEOF
26044 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26045 _ACEOF
26046
26047 ac_header_dirent=$ac_hdr; break
26048 fi
26049
26050 done
26051 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26052 if test $ac_header_dirent = dirent.h; then
26053   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26055 if test "${ac_cv_search_opendir+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058   ac_func_search_save_LIBS=$LIBS
26059 ac_cv_search_opendir=no
26060 cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066
26067 /* Override any gcc2 internal prototype to avoid an error.  */
26068 #ifdef __cplusplus
26069 extern "C"
26070 #endif
26071 /* We use char because int might match the return type of a gcc2
26072    builtin and then its argument prototype would still apply.  */
26073 char opendir ();
26074 int
26075 main ()
26076 {
26077 opendir ();
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084   (eval $ac_link) 2>conftest.er1
26085   ac_status=$?
26086   grep -v '^ *+' conftest.er1 >conftest.err
26087   rm -f conftest.er1
26088   cat conftest.err >&5
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } &&
26091          { ac_try='test -z "$ac_c_werror_flag"
26092                          || test ! -s conftest.err'
26093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094   (eval $ac_try) 2>&5
26095   ac_status=$?
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); }; } &&
26098          { ac_try='test -s conftest$ac_exeext'
26099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100   (eval $ac_try) 2>&5
26101   ac_status=$?
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); }; }; then
26104   ac_cv_search_opendir="none required"
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 fi
26110 rm -f conftest.err conftest.$ac_objext \
26111       conftest$ac_exeext conftest.$ac_ext
26112 if test "$ac_cv_search_opendir" = no; then
26113   for ac_lib in dir; do
26114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26115     cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121
26122 /* Override any gcc2 internal prototype to avoid an error.  */
26123 #ifdef __cplusplus
26124 extern "C"
26125 #endif
26126 /* We use char because int might match the return type of a gcc2
26127    builtin and then its argument prototype would still apply.  */
26128 char opendir ();
26129 int
26130 main ()
26131 {
26132 opendir ();
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139   (eval $ac_link) 2>conftest.er1
26140   ac_status=$?
26141   grep -v '^ *+' conftest.er1 >conftest.err
26142   rm -f conftest.er1
26143   cat conftest.err >&5
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -z "$ac_c_werror_flag"
26147                          || test ! -s conftest.err'
26148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149   (eval $ac_try) 2>&5
26150   ac_status=$?
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); }; } &&
26153          { ac_try='test -s conftest$ac_exeext'
26154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155   (eval $ac_try) 2>&5
26156   ac_status=$?
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); }; }; then
26159   ac_cv_search_opendir="-l$ac_lib"
26160 break
26161 else
26162   echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165 fi
26166 rm -f conftest.err conftest.$ac_objext \
26167       conftest$ac_exeext conftest.$ac_ext
26168   done
26169 fi
26170 LIBS=$ac_func_search_save_LIBS
26171 fi
26172 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26173 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26174 if test "$ac_cv_search_opendir" != no; then
26175   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26176
26177 fi
26178
26179 else
26180   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26181 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26182 if test "${ac_cv_search_opendir+set}" = set; then
26183   echo $ECHO_N "(cached) $ECHO_C" >&6
26184 else
26185   ac_func_search_save_LIBS=$LIBS
26186 ac_cv_search_opendir=no
26187 cat >conftest.$ac_ext <<_ACEOF
26188 /* confdefs.h.  */
26189 _ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h.  */
26193
26194 /* Override any gcc2 internal prototype to avoid an error.  */
26195 #ifdef __cplusplus
26196 extern "C"
26197 #endif
26198 /* We use char because int might match the return type of a gcc2
26199    builtin and then its argument prototype would still apply.  */
26200 char opendir ();
26201 int
26202 main ()
26203 {
26204 opendir ();
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26211   (eval $ac_link) 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } &&
26218          { ac_try='test -z "$ac_c_werror_flag"
26219                          || test ! -s conftest.err'
26220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221   (eval $ac_try) 2>&5
26222   ac_status=$?
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); }; } &&
26225          { ac_try='test -s conftest$ac_exeext'
26226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227   (eval $ac_try) 2>&5
26228   ac_status=$?
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); }; }; then
26231   ac_cv_search_opendir="none required"
26232 else
26233   echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26235
26236 fi
26237 rm -f conftest.err conftest.$ac_objext \
26238       conftest$ac_exeext conftest.$ac_ext
26239 if test "$ac_cv_search_opendir" = no; then
26240   for ac_lib in x; do
26241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26242     cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h.  */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h.  */
26248
26249 /* Override any gcc2 internal prototype to avoid an error.  */
26250 #ifdef __cplusplus
26251 extern "C"
26252 #endif
26253 /* We use char because int might match the return type of a gcc2
26254    builtin and then its argument prototype would still apply.  */
26255 char opendir ();
26256 int
26257 main ()
26258 {
26259 opendir ();
26260   ;
26261   return 0;
26262 }
26263 _ACEOF
26264 rm -f conftest.$ac_objext conftest$ac_exeext
26265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26266   (eval $ac_link) 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } &&
26273          { ac_try='test -z "$ac_c_werror_flag"
26274                          || test ! -s conftest.err'
26275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26276   (eval $ac_try) 2>&5
26277   ac_status=$?
26278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279   (exit $ac_status); }; } &&
26280          { ac_try='test -s conftest$ac_exeext'
26281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26282   (eval $ac_try) 2>&5
26283   ac_status=$?
26284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285   (exit $ac_status); }; }; then
26286   ac_cv_search_opendir="-l$ac_lib"
26287 break
26288 else
26289   echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26291
26292 fi
26293 rm -f conftest.err conftest.$ac_objext \
26294       conftest$ac_exeext conftest.$ac_ext
26295   done
26296 fi
26297 LIBS=$ac_func_search_save_LIBS
26298 fi
26299 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26300 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26301 if test "$ac_cv_search_opendir" != no; then
26302   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26303
26304 fi
26305
26306 fi
26307
26308 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26309 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26310 if test "${ac_cv_header_mmap_anon+set}" = set; then
26311   echo $ECHO_N "(cached) $ECHO_C" >&6
26312 else
26313    ac_ext=c
26314 ac_cpp='$CPP $CPPFLAGS'
26315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26318
26319   cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325 #include <sys/mman.h>
26326 #include <unistd.h>
26327 #include <fcntl.h>
26328 int
26329 main ()
26330 {
26331 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338   (eval $ac_compile) 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } &&
26345          { ac_try='test -z "$ac_c_werror_flag"
26346                          || test ! -s conftest.err'
26347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348   (eval $ac_try) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); }; } &&
26352          { ac_try='test -s conftest.$ac_objext'
26353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354   (eval $ac_try) 2>&5
26355   ac_status=$?
26356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); }; }; then
26358   ac_cv_header_mmap_anon=yes
26359 else
26360   echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ac_cv_header_mmap_anon=no
26364 fi
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366   ac_ext=c
26367 ac_cpp='$CPP $CPPFLAGS'
26368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26371
26372
26373 fi
26374 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26375 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26376 if test "$ac_cv_header_mmap_anon" = yes; then
26377
26378 cat >>confdefs.h <<\_ACEOF
26379 #define HAVE_MMAP_ANONYMOUS 1
26380 _ACEOF
26381
26382 fi
26383
26384 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26386 if test "${ac_cv_header_stat_broken+set}" = set; then
26387   echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389   cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395 #include <sys/types.h>
26396 #include <sys/stat.h>
26397
26398 #if defined(S_ISBLK) && defined(S_IFDIR)
26399 # if S_ISBLK (S_IFDIR)
26400 You lose.
26401 # endif
26402 #endif
26403
26404 #if defined(S_ISBLK) && defined(S_IFCHR)
26405 # if S_ISBLK (S_IFCHR)
26406 You lose.
26407 # endif
26408 #endif
26409
26410 #if defined(S_ISLNK) && defined(S_IFREG)
26411 # if S_ISLNK (S_IFREG)
26412 You lose.
26413 # endif
26414 #endif
26415
26416 #if defined(S_ISSOCK) && defined(S_IFREG)
26417 # if S_ISSOCK (S_IFREG)
26418 You lose.
26419 # endif
26420 #endif
26421
26422 _ACEOF
26423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26424   $EGREP "You lose" >/dev/null 2>&1; then
26425   ac_cv_header_stat_broken=yes
26426 else
26427   ac_cv_header_stat_broken=no
26428 fi
26429 rm -f conftest*
26430
26431 fi
26432 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26434 if test $ac_cv_header_stat_broken = yes; then
26435
26436 cat >>confdefs.h <<\_ACEOF
26437 #define STAT_MACROS_BROKEN 1
26438 _ACEOF
26439
26440 fi
26441
26442 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26443 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26444 if test "${ac_cv_header_stdc+set}" = set; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447   cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h.  */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h.  */
26453 #include <stdlib.h>
26454 #include <stdarg.h>
26455 #include <string.h>
26456 #include <float.h>
26457
26458 int
26459 main ()
26460 {
26461
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 rm -f conftest.$ac_objext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26468   (eval $ac_compile) 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } &&
26475          { ac_try='test -z "$ac_c_werror_flag"
26476                          || test ! -s conftest.err'
26477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478   (eval $ac_try) 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; } &&
26482          { ac_try='test -s conftest.$ac_objext'
26483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; }; then
26488   ac_cv_header_stdc=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 ac_cv_header_stdc=no
26494 fi
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496
26497 if test $ac_cv_header_stdc = yes; then
26498   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26499   cat >conftest.$ac_ext <<_ACEOF
26500 /* confdefs.h.  */
26501 _ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h.  */
26505 #include <string.h>
26506
26507 _ACEOF
26508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26509   $EGREP "memchr" >/dev/null 2>&1; then
26510   :
26511 else
26512   ac_cv_header_stdc=no
26513 fi
26514 rm -f conftest*
26515
26516 fi
26517
26518 if test $ac_cv_header_stdc = yes; then
26519   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26520   cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526 #include <stdlib.h>
26527
26528 _ACEOF
26529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26530   $EGREP "free" >/dev/null 2>&1; then
26531   :
26532 else
26533   ac_cv_header_stdc=no
26534 fi
26535 rm -f conftest*
26536
26537 fi
26538
26539 if test $ac_cv_header_stdc = yes; then
26540   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26541   if test "$cross_compiling" = yes; then
26542   :
26543 else
26544   cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550 #include <ctype.h>
26551 #if ((' ' & 0x0FF) == 0x020)
26552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26554 #else
26555 # define ISLOWER(c) \
26556                    (('a' <= (c) && (c) <= 'i') \
26557                      || ('j' <= (c) && (c) <= 'r') \
26558                      || ('s' <= (c) && (c) <= 'z'))
26559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26560 #endif
26561
26562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26563 int
26564 main ()
26565 {
26566   int i;
26567   for (i = 0; i < 256; i++)
26568     if (XOR (islower (i), ISLOWER (i))
26569         || toupper (i) != TOUPPER (i))
26570       exit(2);
26571   exit (0);
26572 }
26573 _ACEOF
26574 rm -f conftest$ac_exeext
26575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26576   (eval $ac_link) 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581   (eval $ac_try) 2>&5
26582   ac_status=$?
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); }; }; then
26585   :
26586 else
26587   echo "$as_me: program exited with status $ac_status" >&5
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ( exit $ac_status )
26592 ac_cv_header_stdc=no
26593 fi
26594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26595 fi
26596 fi
26597 fi
26598 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26599 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26600 if test $ac_cv_header_stdc = yes; then
26601
26602 cat >>confdefs.h <<\_ACEOF
26603 #define STDC_HEADERS 1
26604 _ACEOF
26605
26606 fi
26607
26608 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26609 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26610 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26611   echo $ECHO_N "(cached) $ECHO_C" >&6
26612 else
26613   cat >conftest.$ac_ext <<_ACEOF
26614 /* confdefs.h.  */
26615 _ACEOF
26616 cat confdefs.h >>conftest.$ac_ext
26617 cat >>conftest.$ac_ext <<_ACEOF
26618 /* end confdefs.h.  */
26619 #include <sys/types.h>
26620 #include <sys/wait.h>
26621 #ifndef WEXITSTATUS
26622 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26623 #endif
26624 #ifndef WIFEXITED
26625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26626 #endif
26627
26628 int
26629 main ()
26630 {
26631   int s;
26632   wait (&s);
26633   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest.$ac_objext
26639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26640   (eval $ac_compile) 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } &&
26647          { ac_try='test -z "$ac_c_werror_flag"
26648                          || test ! -s conftest.err'
26649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650   (eval $ac_try) 2>&5
26651   ac_status=$?
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); }; } &&
26654          { ac_try='test -s conftest.$ac_objext'
26655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656   (eval $ac_try) 2>&5
26657   ac_status=$?
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); }; }; then
26660   ac_cv_header_sys_wait_h=yes
26661 else
26662   echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26664
26665 ac_cv_header_sys_wait_h=no
26666 fi
26667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26668 fi
26669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26670 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26671 if test $ac_cv_header_sys_wait_h = yes; then
26672
26673 cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_SYS_WAIT_H 1
26675 _ACEOF
26676
26677 fi
26678
26679 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26680 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26681 if test "${ac_cv_header_time+set}" = set; then
26682   echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684   cat >conftest.$ac_ext <<_ACEOF
26685 /* confdefs.h.  */
26686 _ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h.  */
26690 #include <sys/types.h>
26691 #include <sys/time.h>
26692 #include <time.h>
26693
26694 int
26695 main ()
26696 {
26697 if ((struct tm *) 0)
26698 return 0;
26699   ;
26700   return 0;
26701 }
26702 _ACEOF
26703 rm -f conftest.$ac_objext
26704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26705   (eval $ac_compile) 2>conftest.er1
26706   ac_status=$?
26707   grep -v '^ *+' conftest.er1 >conftest.err
26708   rm -f conftest.er1
26709   cat conftest.err >&5
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); } &&
26712          { ac_try='test -z "$ac_c_werror_flag"
26713                          || test ! -s conftest.err'
26714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715   (eval $ac_try) 2>&5
26716   ac_status=$?
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); }; } &&
26719          { ac_try='test -s conftest.$ac_objext'
26720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721   (eval $ac_try) 2>&5
26722   ac_status=$?
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); }; }; then
26725   ac_cv_header_time=yes
26726 else
26727   echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26729
26730 ac_cv_header_time=no
26731 fi
26732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26733 fi
26734 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26735 echo "${ECHO_T}$ac_cv_header_time" >&6
26736 if test $ac_cv_header_time = yes; then
26737
26738 cat >>confdefs.h <<\_ACEOF
26739 #define TIME_WITH_SYS_TIME 1
26740 _ACEOF
26741
26742 fi
26743
26744
26745
26746
26747
26748
26749
26750
26751 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26752 do
26753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755   echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 fi
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26762 else
26763   # Is the header compilable?
26764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
26774 _ACEOF
26775 rm -f conftest.$ac_objext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26777   (eval $ac_compile) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } &&
26784          { ac_try='test -z "$ac_c_werror_flag"
26785                          || test ! -s conftest.err'
26786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787   (eval $ac_try) 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; } &&
26791          { ac_try='test -s conftest.$ac_objext'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; }; then
26797   ac_header_compiler=yes
26798 else
26799   echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 ac_header_compiler=no
26803 fi
26804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6
26807
26808 # Is the header present?
26809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 #include <$ac_header>
26818 _ACEOF
26819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } >/dev/null; then
26827   if test -s conftest.err; then
26828     ac_cpp_err=$ac_c_preproc_warn_flag
26829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26830   else
26831     ac_cpp_err=
26832   fi
26833 else
26834   ac_cpp_err=yes
26835 fi
26836 if test -z "$ac_cpp_err"; then
26837   ac_header_preproc=yes
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842   ac_header_preproc=no
26843 fi
26844 rm -f conftest.err conftest.$ac_ext
26845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26846 echo "${ECHO_T}$ac_header_preproc" >&6
26847
26848 # So?  What about this header?
26849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26850   yes:no: )
26851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26855     ac_header_preproc=yes
26856     ;;
26857   no:yes:* )
26858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870     (
26871       cat <<\_ASBOX
26872 ## ----------------------------------- ##
26873 ## Report this to llvmbugs@cs.uiuc.edu ##
26874 ## ----------------------------------- ##
26875 _ASBOX
26876     ) |
26877       sed "s/^/$as_me: WARNING:     /" >&2
26878     ;;
26879 esac
26880 echo "$as_me:$LINENO: checking for $ac_header" >&5
26881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   eval "$as_ac_Header=\$ac_header_preproc"
26886 fi
26887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889
26890 fi
26891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26892   cat >>confdefs.h <<_ACEOF
26893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26894 _ACEOF
26895
26896 fi
26897
26898 done
26899
26900
26901
26902
26903
26904
26905
26906 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
26907 do
26908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910   echo "$as_me:$LINENO: checking for $ac_header" >&5
26911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26913   echo $ECHO_N "(cached) $ECHO_C" >&6
26914 fi
26915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26917 else
26918   # Is the header compilable?
26919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26921 cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927 $ac_includes_default
26928 #include <$ac_header>
26929 _ACEOF
26930 rm -f conftest.$ac_objext
26931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26932   (eval $ac_compile) 2>conftest.er1
26933   ac_status=$?
26934   grep -v '^ *+' conftest.er1 >conftest.err
26935   rm -f conftest.er1
26936   cat conftest.err >&5
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); } &&
26939          { ac_try='test -z "$ac_c_werror_flag"
26940                          || test ! -s conftest.err'
26941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942   (eval $ac_try) 2>&5
26943   ac_status=$?
26944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945   (exit $ac_status); }; } &&
26946          { ac_try='test -s conftest.$ac_objext'
26947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948   (eval $ac_try) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); }; }; then
26952   ac_header_compiler=yes
26953 else
26954   echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26956
26957 ac_header_compiler=no
26958 fi
26959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26961 echo "${ECHO_T}$ac_header_compiler" >&6
26962
26963 # Is the header present?
26964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26966 cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h.  */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h.  */
26972 #include <$ac_header>
26973 _ACEOF
26974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26976   ac_status=$?
26977   grep -v '^ *+' conftest.er1 >conftest.err
26978   rm -f conftest.er1
26979   cat conftest.err >&5
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); } >/dev/null; then
26982   if test -s conftest.err; then
26983     ac_cpp_err=$ac_c_preproc_warn_flag
26984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26985   else
26986     ac_cpp_err=
26987   fi
26988 else
26989   ac_cpp_err=yes
26990 fi
26991 if test -z "$ac_cpp_err"; then
26992   ac_header_preproc=yes
26993 else
26994   echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997   ac_header_preproc=no
26998 fi
26999 rm -f conftest.err conftest.$ac_ext
27000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27001 echo "${ECHO_T}$ac_header_preproc" >&6
27002
27003 # So?  What about this header?
27004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27005   yes:no: )
27006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27010     ac_header_preproc=yes
27011     ;;
27012   no:yes:* )
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27025     (
27026       cat <<\_ASBOX
27027 ## ----------------------------------- ##
27028 ## Report this to llvmbugs@cs.uiuc.edu ##
27029 ## ----------------------------------- ##
27030 _ASBOX
27031     ) |
27032       sed "s/^/$as_me: WARNING:     /" >&2
27033     ;;
27034 esac
27035 echo "$as_me:$LINENO: checking for $ac_header" >&5
27036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040   eval "$as_ac_Header=\$ac_header_preproc"
27041 fi
27042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27044
27045 fi
27046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27047   cat >>confdefs.h <<_ACEOF
27048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27049 _ACEOF
27050
27051 fi
27052
27053 done
27054
27055
27056
27057
27058
27059
27060 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27061 do
27062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27064   echo "$as_me:$LINENO: checking for $ac_header" >&5
27065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27067   echo $ECHO_N "(cached) $ECHO_C" >&6
27068 fi
27069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27071 else
27072   # Is the header compilable?
27073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27075 cat >conftest.$ac_ext <<_ACEOF
27076 /* confdefs.h.  */
27077 _ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h.  */
27081 $ac_includes_default
27082 #include <$ac_header>
27083 _ACEOF
27084 rm -f conftest.$ac_objext
27085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27086   (eval $ac_compile) 2>conftest.er1
27087   ac_status=$?
27088   grep -v '^ *+' conftest.er1 >conftest.err
27089   rm -f conftest.er1
27090   cat conftest.err >&5
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } &&
27093          { ac_try='test -z "$ac_c_werror_flag"
27094                          || test ! -s conftest.err'
27095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096   (eval $ac_try) 2>&5
27097   ac_status=$?
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); }; } &&
27100          { ac_try='test -s conftest.$ac_objext'
27101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102   (eval $ac_try) 2>&5
27103   ac_status=$?
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); }; }; then
27106   ac_header_compiler=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111 ac_header_compiler=no
27112 fi
27113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27115 echo "${ECHO_T}$ac_header_compiler" >&6
27116
27117 # Is the header present?
27118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126 #include <$ac_header>
27127 _ACEOF
27128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27130   ac_status=$?
27131   grep -v '^ *+' conftest.er1 >conftest.err
27132   rm -f conftest.er1
27133   cat conftest.err >&5
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); } >/dev/null; then
27136   if test -s conftest.err; then
27137     ac_cpp_err=$ac_c_preproc_warn_flag
27138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27139   else
27140     ac_cpp_err=
27141   fi
27142 else
27143   ac_cpp_err=yes
27144 fi
27145 if test -z "$ac_cpp_err"; then
27146   ac_header_preproc=yes
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151   ac_header_preproc=no
27152 fi
27153 rm -f conftest.err conftest.$ac_ext
27154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27155 echo "${ECHO_T}$ac_header_preproc" >&6
27156
27157 # So?  What about this header?
27158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27159   yes:no: )
27160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27164     ac_header_preproc=yes
27165     ;;
27166   no:yes:* )
27167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27169     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27170 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27171     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27173     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27174 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27177     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27179     (
27180       cat <<\_ASBOX
27181 ## ----------------------------------- ##
27182 ## Report this to llvmbugs@cs.uiuc.edu ##
27183 ## ----------------------------------- ##
27184 _ASBOX
27185     ) |
27186       sed "s/^/$as_me: WARNING:     /" >&2
27187     ;;
27188 esac
27189 echo "$as_me:$LINENO: checking for $ac_header" >&5
27190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27192   echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194   eval "$as_ac_Header=\$ac_header_preproc"
27195 fi
27196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27198
27199 fi
27200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27201   cat >>confdefs.h <<_ACEOF
27202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27203 _ACEOF
27204
27205 fi
27206
27207 done
27208
27209
27210
27211 for ac_header in sys/types.h malloc/malloc.h
27212 do
27213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27215   echo "$as_me:$LINENO: checking for $ac_header" >&5
27216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27218   echo $ECHO_N "(cached) $ECHO_C" >&6
27219 fi
27220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27222 else
27223   # Is the header compilable?
27224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27226 cat >conftest.$ac_ext <<_ACEOF
27227 /* confdefs.h.  */
27228 _ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h.  */
27232 $ac_includes_default
27233 #include <$ac_header>
27234 _ACEOF
27235 rm -f conftest.$ac_objext
27236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27237   (eval $ac_compile) 2>conftest.er1
27238   ac_status=$?
27239   grep -v '^ *+' conftest.er1 >conftest.err
27240   rm -f conftest.er1
27241   cat conftest.err >&5
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); } &&
27244          { ac_try='test -z "$ac_c_werror_flag"
27245                          || test ! -s conftest.err'
27246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247   (eval $ac_try) 2>&5
27248   ac_status=$?
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); }; } &&
27251          { ac_try='test -s conftest.$ac_objext'
27252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27253   (eval $ac_try) 2>&5
27254   ac_status=$?
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); }; }; then
27257   ac_header_compiler=yes
27258 else
27259   echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262 ac_header_compiler=no
27263 fi
27264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27266 echo "${ECHO_T}$ac_header_compiler" >&6
27267
27268 # Is the header present?
27269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27271 cat >conftest.$ac_ext <<_ACEOF
27272 /* confdefs.h.  */
27273 _ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h.  */
27277 #include <$ac_header>
27278 _ACEOF
27279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27281   ac_status=$?
27282   grep -v '^ *+' conftest.er1 >conftest.err
27283   rm -f conftest.er1
27284   cat conftest.err >&5
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); } >/dev/null; then
27287   if test -s conftest.err; then
27288     ac_cpp_err=$ac_c_preproc_warn_flag
27289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27290   else
27291     ac_cpp_err=
27292   fi
27293 else
27294   ac_cpp_err=yes
27295 fi
27296 if test -z "$ac_cpp_err"; then
27297   ac_header_preproc=yes
27298 else
27299   echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302   ac_header_preproc=no
27303 fi
27304 rm -f conftest.err conftest.$ac_ext
27305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27306 echo "${ECHO_T}$ac_header_preproc" >&6
27307
27308 # So?  What about this header?
27309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27310   yes:no: )
27311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27315     ac_header_preproc=yes
27316     ;;
27317   no:yes:* )
27318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27330     (
27331       cat <<\_ASBOX
27332 ## ----------------------------------- ##
27333 ## Report this to llvmbugs@cs.uiuc.edu ##
27334 ## ----------------------------------- ##
27335 _ASBOX
27336     ) |
27337       sed "s/^/$as_me: WARNING:     /" >&2
27338     ;;
27339 esac
27340 echo "$as_me:$LINENO: checking for $ac_header" >&5
27341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27343   echo $ECHO_N "(cached) $ECHO_C" >&6
27344 else
27345   eval "$as_ac_Header=\$ac_header_preproc"
27346 fi
27347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27349
27350 fi
27351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27352   cat >>confdefs.h <<_ACEOF
27353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27354 _ACEOF
27355
27356 fi
27357
27358 done
27359
27360 if test "$ENABLE_THREADS" -eq 1 ; then
27361
27362 for ac_header in pthread.h
27363 do
27364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27366   echo "$as_me:$LINENO: checking for $ac_header" >&5
27367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27369   echo $ECHO_N "(cached) $ECHO_C" >&6
27370 fi
27371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27373 else
27374   # Is the header compilable?
27375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27377 cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h.  */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h.  */
27383 $ac_includes_default
27384 #include <$ac_header>
27385 _ACEOF
27386 rm -f conftest.$ac_objext
27387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27388   (eval $ac_compile) 2>conftest.er1
27389   ac_status=$?
27390   grep -v '^ *+' conftest.er1 >conftest.err
27391   rm -f conftest.er1
27392   cat conftest.err >&5
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); } &&
27395          { ac_try='test -z "$ac_c_werror_flag"
27396                          || test ! -s conftest.err'
27397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); }; } &&
27402          { ac_try='test -s conftest.$ac_objext'
27403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404   (eval $ac_try) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; }; then
27408   ac_header_compiler=yes
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ac_header_compiler=no
27414 fi
27415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27417 echo "${ECHO_T}$ac_header_compiler" >&6
27418
27419 # Is the header present?
27420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27422 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428 #include <$ac_header>
27429 _ACEOF
27430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27432   ac_status=$?
27433   grep -v '^ *+' conftest.er1 >conftest.err
27434   rm -f conftest.er1
27435   cat conftest.err >&5
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); } >/dev/null; then
27438   if test -s conftest.err; then
27439     ac_cpp_err=$ac_c_preproc_warn_flag
27440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27441   else
27442     ac_cpp_err=
27443   fi
27444 else
27445   ac_cpp_err=yes
27446 fi
27447 if test -z "$ac_cpp_err"; then
27448   ac_header_preproc=yes
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453   ac_header_preproc=no
27454 fi
27455 rm -f conftest.err conftest.$ac_ext
27456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27457 echo "${ECHO_T}$ac_header_preproc" >&6
27458
27459 # So?  What about this header?
27460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27461   yes:no: )
27462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27466     ac_header_preproc=yes
27467     ;;
27468   no:yes:* )
27469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27481     (
27482       cat <<\_ASBOX
27483 ## ----------------------------------- ##
27484 ## Report this to llvmbugs@cs.uiuc.edu ##
27485 ## ----------------------------------- ##
27486 _ASBOX
27487     ) |
27488       sed "s/^/$as_me: WARNING:     /" >&2
27489     ;;
27490 esac
27491 echo "$as_me:$LINENO: checking for $ac_header" >&5
27492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27494   echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27496   eval "$as_ac_Header=\$ac_header_preproc"
27497 fi
27498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27500
27501 fi
27502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27503   cat >>confdefs.h <<_ACEOF
27504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27505 _ACEOF
27506
27507 fi
27508
27509 done
27510
27511 fi
27512
27513
27514 echo "$as_me:$LINENO: checking for pid_t" >&5
27515 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27516 if test "${ac_cv_type_pid_t+set}" = set; then
27517   echo $ECHO_N "(cached) $ECHO_C" >&6
27518 else
27519   cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 $ac_includes_default
27526 int
27527 main ()
27528 {
27529 if ((pid_t *) 0)
27530   return 0;
27531 if (sizeof (pid_t))
27532   return 0;
27533   ;
27534   return 0;
27535 }
27536 _ACEOF
27537 rm -f conftest.$ac_objext
27538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27539   (eval $ac_compile) 2>conftest.er1
27540   ac_status=$?
27541   grep -v '^ *+' conftest.er1 >conftest.err
27542   rm -f conftest.er1
27543   cat conftest.err >&5
27544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545   (exit $ac_status); } &&
27546          { ac_try='test -z "$ac_c_werror_flag"
27547                          || test ! -s conftest.err'
27548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549   (eval $ac_try) 2>&5
27550   ac_status=$?
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); }; } &&
27553          { ac_try='test -s conftest.$ac_objext'
27554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555   (eval $ac_try) 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; }; then
27559   ac_cv_type_pid_t=yes
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564 ac_cv_type_pid_t=no
27565 fi
27566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27567 fi
27568 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27569 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27570 if test $ac_cv_type_pid_t = yes; then
27571   :
27572 else
27573
27574 cat >>confdefs.h <<_ACEOF
27575 #define pid_t int
27576 _ACEOF
27577
27578 fi
27579
27580 echo "$as_me:$LINENO: checking for size_t" >&5
27581 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27582 if test "${ac_cv_type_size_t+set}" = set; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h.  */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h.  */
27591 $ac_includes_default
27592 int
27593 main ()
27594 {
27595 if ((size_t *) 0)
27596   return 0;
27597 if (sizeof (size_t))
27598   return 0;
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext
27604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27605   (eval $ac_compile) 2>conftest.er1
27606   ac_status=$?
27607   grep -v '^ *+' conftest.er1 >conftest.err
27608   rm -f conftest.er1
27609   cat conftest.err >&5
27610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611   (exit $ac_status); } &&
27612          { ac_try='test -z "$ac_c_werror_flag"
27613                          || test ! -s conftest.err'
27614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27615   (eval $ac_try) 2>&5
27616   ac_status=$?
27617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618   (exit $ac_status); }; } &&
27619          { ac_try='test -s conftest.$ac_objext'
27620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621   (eval $ac_try) 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; }; then
27625   ac_cv_type_size_t=yes
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630 ac_cv_type_size_t=no
27631 fi
27632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27633 fi
27634 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27635 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27636 if test $ac_cv_type_size_t = yes; then
27637   :
27638 else
27639
27640 cat >>confdefs.h <<_ACEOF
27641 #define size_t unsigned
27642 _ACEOF
27643
27644 fi
27645
27646 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27647 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27648 if test "${ac_cv_type_signal+set}" = set; then
27649   echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651   cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h.  */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h.  */
27657 #include <sys/types.h>
27658 #include <signal.h>
27659 #ifdef signal
27660 # undef signal
27661 #endif
27662 #ifdef __cplusplus
27663 extern "C" void (*signal (int, void (*)(int)))(int);
27664 #else
27665 void (*signal ()) ();
27666 #endif
27667
27668 int
27669 main ()
27670 {
27671 int i;
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678   (eval $ac_compile) 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag"
27686                          || test ! -s conftest.err'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; } &&
27692          { ac_try='test -s conftest.$ac_objext'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; }; then
27698   ac_cv_type_signal=void
27699 else
27700   echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ac_cv_type_signal=int
27704 fi
27705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27706 fi
27707 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27708 echo "${ECHO_T}$ac_cv_type_signal" >&6
27709
27710 cat >>confdefs.h <<_ACEOF
27711 #define RETSIGTYPE $ac_cv_type_signal
27712 _ACEOF
27713
27714
27715 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27716 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27717 if test "${ac_cv_struct_tm+set}" = set; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 #include <sys/types.h>
27727 #include <time.h>
27728
27729 int
27730 main ()
27731 {
27732 struct tm *tp; tp->tm_sec;
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739   (eval $ac_compile) 2>conftest.er1
27740   ac_status=$?
27741   grep -v '^ *+' conftest.er1 >conftest.err
27742   rm -f conftest.er1
27743   cat conftest.err >&5
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } &&
27746          { ac_try='test -z "$ac_c_werror_flag"
27747                          || test ! -s conftest.err'
27748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749   (eval $ac_try) 2>&5
27750   ac_status=$?
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); }; } &&
27753          { ac_try='test -s conftest.$ac_objext'
27754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755   (eval $ac_try) 2>&5
27756   ac_status=$?
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); }; }; then
27759   ac_cv_struct_tm=time.h
27760 else
27761   echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764 ac_cv_struct_tm=sys/time.h
27765 fi
27766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767 fi
27768 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27769 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27770 if test $ac_cv_struct_tm = sys/time.h; then
27771
27772 cat >>confdefs.h <<\_ACEOF
27773 #define TM_IN_SYS_TIME 1
27774 _ACEOF
27775
27776 fi
27777
27778 echo "$as_me:$LINENO: checking for int64_t" >&5
27779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27780 if test "${ac_cv_type_int64_t+set}" = set; then
27781   echo $ECHO_N "(cached) $ECHO_C" >&6
27782 else
27783   cat >conftest.$ac_ext <<_ACEOF
27784 /* confdefs.h.  */
27785 _ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h.  */
27789 $ac_includes_default
27790 int
27791 main ()
27792 {
27793 if ((int64_t *) 0)
27794   return 0;
27795 if (sizeof (int64_t))
27796   return 0;
27797   ;
27798   return 0;
27799 }
27800 _ACEOF
27801 rm -f conftest.$ac_objext
27802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27803   (eval $ac_compile) 2>conftest.er1
27804   ac_status=$?
27805   grep -v '^ *+' conftest.er1 >conftest.err
27806   rm -f conftest.er1
27807   cat conftest.err >&5
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); } &&
27810          { ac_try='test -z "$ac_c_werror_flag"
27811                          || test ! -s conftest.err'
27812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813   (eval $ac_try) 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); }; } &&
27817          { ac_try='test -s conftest.$ac_objext'
27818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27819   (eval $ac_try) 2>&5
27820   ac_status=$?
27821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822   (exit $ac_status); }; }; then
27823   ac_cv_type_int64_t=yes
27824 else
27825   echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27827
27828 ac_cv_type_int64_t=no
27829 fi
27830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27831 fi
27832 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27833 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27834 if test $ac_cv_type_int64_t = yes; then
27835
27836 cat >>confdefs.h <<_ACEOF
27837 #define HAVE_INT64_T 1
27838 _ACEOF
27839
27840
27841 else
27842   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27843 echo "$as_me: error: Type int64_t required but not found" >&2;}
27844    { (exit 1); exit 1; }; }
27845 fi
27846
27847 echo "$as_me:$LINENO: checking for uint64_t" >&5
27848 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27849 if test "${ac_cv_type_uint64_t+set}" = set; then
27850   echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852   cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 $ac_includes_default
27859 int
27860 main ()
27861 {
27862 if ((uint64_t *) 0)
27863   return 0;
27864 if (sizeof (uint64_t))
27865   return 0;
27866   ;
27867   return 0;
27868 }
27869 _ACEOF
27870 rm -f conftest.$ac_objext
27871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27872   (eval $ac_compile) 2>conftest.er1
27873   ac_status=$?
27874   grep -v '^ *+' conftest.er1 >conftest.err
27875   rm -f conftest.er1
27876   cat conftest.err >&5
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } &&
27879          { ac_try='test -z "$ac_c_werror_flag"
27880                          || test ! -s conftest.err'
27881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882   (eval $ac_try) 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; } &&
27886          { ac_try='test -s conftest.$ac_objext'
27887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888   (eval $ac_try) 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; }; then
27892   ac_cv_type_uint64_t=yes
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897 ac_cv_type_uint64_t=no
27898 fi
27899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27900 fi
27901 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27902 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27903 if test $ac_cv_type_uint64_t = yes; then
27904
27905 cat >>confdefs.h <<_ACEOF
27906 #define HAVE_UINT64_T 1
27907 _ACEOF
27908
27909
27910 else
27911   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27912 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27913 if test "${ac_cv_type_u_int64_t+set}" = set; then
27914   echo $ECHO_N "(cached) $ECHO_C" >&6
27915 else
27916   cat >conftest.$ac_ext <<_ACEOF
27917 /* confdefs.h.  */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h.  */
27922 $ac_includes_default
27923 int
27924 main ()
27925 {
27926 if ((u_int64_t *) 0)
27927   return 0;
27928 if (sizeof (u_int64_t))
27929   return 0;
27930   ;
27931   return 0;
27932 }
27933 _ACEOF
27934 rm -f conftest.$ac_objext
27935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27936   (eval $ac_compile) 2>conftest.er1
27937   ac_status=$?
27938   grep -v '^ *+' conftest.er1 >conftest.err
27939   rm -f conftest.er1
27940   cat conftest.err >&5
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); } &&
27943          { ac_try='test -z "$ac_c_werror_flag"
27944                          || test ! -s conftest.err'
27945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27946   (eval $ac_try) 2>&5
27947   ac_status=$?
27948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949   (exit $ac_status); }; } &&
27950          { ac_try='test -s conftest.$ac_objext'
27951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952   (eval $ac_try) 2>&5
27953   ac_status=$?
27954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955   (exit $ac_status); }; }; then
27956   ac_cv_type_u_int64_t=yes
27957 else
27958   echo "$as_me: failed program was:" >&5
27959 sed 's/^/| /' conftest.$ac_ext >&5
27960
27961 ac_cv_type_u_int64_t=no
27962 fi
27963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27964 fi
27965 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27966 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27967 if test $ac_cv_type_u_int64_t = yes; then
27968
27969 cat >>confdefs.h <<_ACEOF
27970 #define HAVE_U_INT64_T 1
27971 _ACEOF
27972
27973
27974 else
27975   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27976 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27977    { (exit 1); exit 1; }; }
27978 fi
27979
27980 fi
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27992 do
27993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27994 echo "$as_me:$LINENO: checking for $ac_func" >&5
27995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27996 if eval "test \"\${$as_ac_var+set}\" = set"; then
27997   echo $ECHO_N "(cached) $ECHO_C" >&6
27998 else
27999   cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28007 #define $ac_func innocuous_$ac_func
28008
28009 /* System header to define __stub macros and hopefully few prototypes,
28010     which can conflict with char $ac_func (); below.
28011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28012     <limits.h> exists even on freestanding compilers.  */
28013
28014 #ifdef __STDC__
28015 # include <limits.h>
28016 #else
28017 # include <assert.h>
28018 #endif
28019
28020 #undef $ac_func
28021
28022 /* Override any gcc2 internal prototype to avoid an error.  */
28023 #ifdef __cplusplus
28024 extern "C"
28025 {
28026 #endif
28027 /* We use char because int might match the return type of a gcc2
28028    builtin and then its argument prototype would still apply.  */
28029 char $ac_func ();
28030 /* The GNU C library defines this for functions which it implements
28031     to always fail with ENOSYS.  Some functions are actually named
28032     something starting with __ and the normal name is an alias.  */
28033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28034 choke me
28035 #else
28036 char (*f) () = $ac_func;
28037 #endif
28038 #ifdef __cplusplus
28039 }
28040 #endif
28041
28042 int
28043 main ()
28044 {
28045 return f != $ac_func;
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28052   (eval $ac_link) 2>conftest.er1
28053   ac_status=$?
28054   grep -v '^ *+' conftest.er1 >conftest.err
28055   rm -f conftest.er1
28056   cat conftest.err >&5
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); } &&
28059          { ac_try='test -z "$ac_c_werror_flag"
28060                          || test ! -s conftest.err'
28061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062   (eval $ac_try) 2>&5
28063   ac_status=$?
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); }; } &&
28066          { ac_try='test -s conftest$ac_exeext'
28067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068   (eval $ac_try) 2>&5
28069   ac_status=$?
28070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); }; }; then
28072   eval "$as_ac_var=yes"
28073 else
28074   echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28076
28077 eval "$as_ac_var=no"
28078 fi
28079 rm -f conftest.err conftest.$ac_objext \
28080       conftest$ac_exeext conftest.$ac_ext
28081 fi
28082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28084 if test `eval echo '${'$as_ac_var'}'` = yes; then
28085   cat >>confdefs.h <<_ACEOF
28086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28087 _ACEOF
28088
28089 fi
28090 done
28091
28092
28093
28094
28095
28096
28097
28098 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28099 do
28100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28101 echo "$as_me:$LINENO: checking for $ac_func" >&5
28102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28103 if eval "test \"\${$as_ac_var+set}\" = set"; then
28104   echo $ECHO_N "(cached) $ECHO_C" >&6
28105 else
28106   cat >conftest.$ac_ext <<_ACEOF
28107 /* confdefs.h.  */
28108 _ACEOF
28109 cat confdefs.h >>conftest.$ac_ext
28110 cat >>conftest.$ac_ext <<_ACEOF
28111 /* end confdefs.h.  */
28112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28114 #define $ac_func innocuous_$ac_func
28115
28116 /* System header to define __stub macros and hopefully few prototypes,
28117     which can conflict with char $ac_func (); below.
28118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28119     <limits.h> exists even on freestanding compilers.  */
28120
28121 #ifdef __STDC__
28122 # include <limits.h>
28123 #else
28124 # include <assert.h>
28125 #endif
28126
28127 #undef $ac_func
28128
28129 /* Override any gcc2 internal prototype to avoid an error.  */
28130 #ifdef __cplusplus
28131 extern "C"
28132 {
28133 #endif
28134 /* We use char because int might match the return type of a gcc2
28135    builtin and then its argument prototype would still apply.  */
28136 char $ac_func ();
28137 /* The GNU C library defines this for functions which it implements
28138     to always fail with ENOSYS.  Some functions are actually named
28139     something starting with __ and the normal name is an alias.  */
28140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28141 choke me
28142 #else
28143 char (*f) () = $ac_func;
28144 #endif
28145 #ifdef __cplusplus
28146 }
28147 #endif
28148
28149 int
28150 main ()
28151 {
28152 return f != $ac_func;
28153   ;
28154   return 0;
28155 }
28156 _ACEOF
28157 rm -f conftest.$ac_objext conftest$ac_exeext
28158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28159   (eval $ac_link) 2>conftest.er1
28160   ac_status=$?
28161   grep -v '^ *+' conftest.er1 >conftest.err
28162   rm -f conftest.er1
28163   cat conftest.err >&5
28164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165   (exit $ac_status); } &&
28166          { ac_try='test -z "$ac_c_werror_flag"
28167                          || test ! -s conftest.err'
28168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169   (eval $ac_try) 2>&5
28170   ac_status=$?
28171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172   (exit $ac_status); }; } &&
28173          { ac_try='test -s conftest$ac_exeext'
28174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175   (eval $ac_try) 2>&5
28176   ac_status=$?
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); }; }; then
28179   eval "$as_ac_var=yes"
28180 else
28181   echo "$as_me: failed program was:" >&5
28182 sed 's/^/| /' conftest.$ac_ext >&5
28183
28184 eval "$as_ac_var=no"
28185 fi
28186 rm -f conftest.err conftest.$ac_objext \
28187       conftest$ac_exeext conftest.$ac_ext
28188 fi
28189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28191 if test `eval echo '${'$as_ac_var'}'` = yes; then
28192   cat >>confdefs.h <<_ACEOF
28193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28194 _ACEOF
28195
28196 fi
28197 done
28198
28199
28200
28201
28202
28203
28204
28205
28206 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28207 do
28208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28209 echo "$as_me:$LINENO: checking for $ac_func" >&5
28210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28211 if eval "test \"\${$as_ac_var+set}\" = set"; then
28212   echo $ECHO_N "(cached) $ECHO_C" >&6
28213 else
28214   cat >conftest.$ac_ext <<_ACEOF
28215 /* confdefs.h.  */
28216 _ACEOF
28217 cat confdefs.h >>conftest.$ac_ext
28218 cat >>conftest.$ac_ext <<_ACEOF
28219 /* end confdefs.h.  */
28220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28222 #define $ac_func innocuous_$ac_func
28223
28224 /* System header to define __stub macros and hopefully few prototypes,
28225     which can conflict with char $ac_func (); below.
28226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28227     <limits.h> exists even on freestanding compilers.  */
28228
28229 #ifdef __STDC__
28230 # include <limits.h>
28231 #else
28232 # include <assert.h>
28233 #endif
28234
28235 #undef $ac_func
28236
28237 /* Override any gcc2 internal prototype to avoid an error.  */
28238 #ifdef __cplusplus
28239 extern "C"
28240 {
28241 #endif
28242 /* We use char because int might match the return type of a gcc2
28243    builtin and then its argument prototype would still apply.  */
28244 char $ac_func ();
28245 /* The GNU C library defines this for functions which it implements
28246     to always fail with ENOSYS.  Some functions are actually named
28247     something starting with __ and the normal name is an alias.  */
28248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28249 choke me
28250 #else
28251 char (*f) () = $ac_func;
28252 #endif
28253 #ifdef __cplusplus
28254 }
28255 #endif
28256
28257 int
28258 main ()
28259 {
28260 return f != $ac_func;
28261   ;
28262   return 0;
28263 }
28264 _ACEOF
28265 rm -f conftest.$ac_objext conftest$ac_exeext
28266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28267   (eval $ac_link) 2>conftest.er1
28268   ac_status=$?
28269   grep -v '^ *+' conftest.er1 >conftest.err
28270   rm -f conftest.er1
28271   cat conftest.err >&5
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); } &&
28274          { ac_try='test -z "$ac_c_werror_flag"
28275                          || test ! -s conftest.err'
28276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277   (eval $ac_try) 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); }; } &&
28281          { ac_try='test -s conftest$ac_exeext'
28282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283   (eval $ac_try) 2>&5
28284   ac_status=$?
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); }; }; then
28287   eval "$as_ac_var=yes"
28288 else
28289   echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28291
28292 eval "$as_ac_var=no"
28293 fi
28294 rm -f conftest.err conftest.$ac_objext \
28295       conftest$ac_exeext conftest.$ac_ext
28296 fi
28297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28299 if test `eval echo '${'$as_ac_var'}'` = yes; then
28300   cat >>confdefs.h <<_ACEOF
28301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28302 _ACEOF
28303
28304 fi
28305 done
28306
28307
28308
28309
28310
28311 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28312 do
28313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28314 echo "$as_me:$LINENO: checking for $ac_func" >&5
28315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28316 if eval "test \"\${$as_ac_var+set}\" = set"; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319   cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h.  */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h.  */
28325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28327 #define $ac_func innocuous_$ac_func
28328
28329 /* System header to define __stub macros and hopefully few prototypes,
28330     which can conflict with char $ac_func (); below.
28331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28332     <limits.h> exists even on freestanding compilers.  */
28333
28334 #ifdef __STDC__
28335 # include <limits.h>
28336 #else
28337 # include <assert.h>
28338 #endif
28339
28340 #undef $ac_func
28341
28342 /* Override any gcc2 internal prototype to avoid an error.  */
28343 #ifdef __cplusplus
28344 extern "C"
28345 {
28346 #endif
28347 /* We use char because int might match the return type of a gcc2
28348    builtin and then its argument prototype would still apply.  */
28349 char $ac_func ();
28350 /* The GNU C library defines this for functions which it implements
28351     to always fail with ENOSYS.  Some functions are actually named
28352     something starting with __ and the normal name is an alias.  */
28353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28354 choke me
28355 #else
28356 char (*f) () = $ac_func;
28357 #endif
28358 #ifdef __cplusplus
28359 }
28360 #endif
28361
28362 int
28363 main ()
28364 {
28365 return f != $ac_func;
28366   ;
28367   return 0;
28368 }
28369 _ACEOF
28370 rm -f conftest.$ac_objext conftest$ac_exeext
28371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28372   (eval $ac_link) 2>conftest.er1
28373   ac_status=$?
28374   grep -v '^ *+' conftest.er1 >conftest.err
28375   rm -f conftest.er1
28376   cat conftest.err >&5
28377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378   (exit $ac_status); } &&
28379          { ac_try='test -z "$ac_c_werror_flag"
28380                          || test ! -s conftest.err'
28381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382   (eval $ac_try) 2>&5
28383   ac_status=$?
28384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385   (exit $ac_status); }; } &&
28386          { ac_try='test -s conftest$ac_exeext'
28387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388   (eval $ac_try) 2>&5
28389   ac_status=$?
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); }; }; then
28392   eval "$as_ac_var=yes"
28393 else
28394   echo "$as_me: failed program was:" >&5
28395 sed 's/^/| /' conftest.$ac_ext >&5
28396
28397 eval "$as_ac_var=no"
28398 fi
28399 rm -f conftest.err conftest.$ac_objext \
28400       conftest$ac_exeext conftest.$ac_ext
28401 fi
28402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28404 if test `eval echo '${'$as_ac_var'}'` = yes; then
28405   cat >>confdefs.h <<_ACEOF
28406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28407 _ACEOF
28408
28409 fi
28410 done
28411
28412
28413
28414
28415
28416
28417
28418 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28419 do
28420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28421 echo "$as_me:$LINENO: checking for $ac_func" >&5
28422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28423 if eval "test \"\${$as_ac_var+set}\" = set"; then
28424   echo $ECHO_N "(cached) $ECHO_C" >&6
28425 else
28426   cat >conftest.$ac_ext <<_ACEOF
28427 /* confdefs.h.  */
28428 _ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h.  */
28432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28434 #define $ac_func innocuous_$ac_func
28435
28436 /* System header to define __stub macros and hopefully few prototypes,
28437     which can conflict with char $ac_func (); below.
28438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28439     <limits.h> exists even on freestanding compilers.  */
28440
28441 #ifdef __STDC__
28442 # include <limits.h>
28443 #else
28444 # include <assert.h>
28445 #endif
28446
28447 #undef $ac_func
28448
28449 /* Override any gcc2 internal prototype to avoid an error.  */
28450 #ifdef __cplusplus
28451 extern "C"
28452 {
28453 #endif
28454 /* We use char because int might match the return type of a gcc2
28455    builtin and then its argument prototype would still apply.  */
28456 char $ac_func ();
28457 /* The GNU C library defines this for functions which it implements
28458     to always fail with ENOSYS.  Some functions are actually named
28459     something starting with __ and the normal name is an alias.  */
28460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28461 choke me
28462 #else
28463 char (*f) () = $ac_func;
28464 #endif
28465 #ifdef __cplusplus
28466 }
28467 #endif
28468
28469 int
28470 main ()
28471 {
28472 return f != $ac_func;
28473   ;
28474   return 0;
28475 }
28476 _ACEOF
28477 rm -f conftest.$ac_objext conftest$ac_exeext
28478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28479   (eval $ac_link) 2>conftest.er1
28480   ac_status=$?
28481   grep -v '^ *+' conftest.er1 >conftest.err
28482   rm -f conftest.er1
28483   cat conftest.err >&5
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); } &&
28486          { ac_try='test -z "$ac_c_werror_flag"
28487                          || test ! -s conftest.err'
28488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489   (eval $ac_try) 2>&5
28490   ac_status=$?
28491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492   (exit $ac_status); }; } &&
28493          { ac_try='test -s conftest$ac_exeext'
28494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28495   (eval $ac_try) 2>&5
28496   ac_status=$?
28497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); }; }; then
28499   eval "$as_ac_var=yes"
28500 else
28501   echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28503
28504 eval "$as_ac_var=no"
28505 fi
28506 rm -f conftest.err conftest.$ac_objext \
28507       conftest$ac_exeext conftest.$ac_ext
28508 fi
28509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28511 if test `eval echo '${'$as_ac_var'}'` = yes; then
28512   cat >>confdefs.h <<_ACEOF
28513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28514 _ACEOF
28515
28516 fi
28517 done
28518
28519 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28520 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28521 if test "${llvm_cv_c_printf_a+set}" = set; then
28522   echo $ECHO_N "(cached) $ECHO_C" >&6
28523 else
28524   ac_ext=c
28525 ac_cpp='$CPP $CPPFLAGS'
28526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28529
28530  if test "$cross_compiling" = yes; then
28531   llvmac_cv_c_printf_a=no
28532 else
28533   cat >conftest.$ac_ext <<_ACEOF
28534
28535   /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540
28541 #include <stdio.h>
28542 #include <stdlib.h>
28543
28544 int
28545 main ()
28546 {
28547
28548 volatile double A, B;
28549 char Buffer[100];
28550 A = 1;
28551 A /= 10.0;
28552 sprintf(Buffer, "%a", A);
28553 B = atof(Buffer);
28554 if (A != B)
28555   return (1);
28556 if (A != 0x1.999999999999ap-4)
28557   return (1);
28558 return (0);
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest$ac_exeext
28564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28565   (eval $ac_link) 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570   (eval $ac_try) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; }; then
28574   llvm_cv_c_printf_a=yes
28575 else
28576   echo "$as_me: program exited with status $ac_status" >&5
28577 echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580 ( exit $ac_status )
28581 llvmac_cv_c_printf_a=no
28582 fi
28583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28584 fi
28585  ac_ext=c
28586 ac_cpp='$CPP $CPPFLAGS'
28587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28590
28591 fi
28592 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28593 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28594  if test "$llvm_cv_c_printf_a" = "yes"; then
28595
28596 cat >>confdefs.h <<\_ACEOF
28597 #define HAVE_PRINTF_A 1
28598 _ACEOF
28599
28600  fi
28601
28602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28603 # for constant arguments.  Useless!
28604 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28605 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28606 if test "${ac_cv_working_alloca_h+set}" = set; then
28607   echo $ECHO_N "(cached) $ECHO_C" >&6
28608 else
28609   cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h.  */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h.  */
28615 #include <alloca.h>
28616 int
28617 main ()
28618 {
28619 char *p = (char *) alloca (2 * sizeof (int));
28620   ;
28621   return 0;
28622 }
28623 _ACEOF
28624 rm -f conftest.$ac_objext conftest$ac_exeext
28625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28626   (eval $ac_link) 2>conftest.er1
28627   ac_status=$?
28628   grep -v '^ *+' conftest.er1 >conftest.err
28629   rm -f conftest.er1
28630   cat conftest.err >&5
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); } &&
28633          { ac_try='test -z "$ac_c_werror_flag"
28634                          || test ! -s conftest.err'
28635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636   (eval $ac_try) 2>&5
28637   ac_status=$?
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); }; } &&
28640          { ac_try='test -s conftest$ac_exeext'
28641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642   (eval $ac_try) 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; }; then
28646   ac_cv_working_alloca_h=yes
28647 else
28648   echo "$as_me: failed program was:" >&5
28649 sed 's/^/| /' conftest.$ac_ext >&5
28650
28651 ac_cv_working_alloca_h=no
28652 fi
28653 rm -f conftest.err conftest.$ac_objext \
28654       conftest$ac_exeext conftest.$ac_ext
28655 fi
28656 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28657 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28658 if test $ac_cv_working_alloca_h = yes; then
28659
28660 cat >>confdefs.h <<\_ACEOF
28661 #define HAVE_ALLOCA_H 1
28662 _ACEOF
28663
28664 fi
28665
28666 echo "$as_me:$LINENO: checking for alloca" >&5
28667 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28668 if test "${ac_cv_func_alloca_works+set}" = set; then
28669   echo $ECHO_N "(cached) $ECHO_C" >&6
28670 else
28671   cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677 #ifdef __GNUC__
28678 # define alloca __builtin_alloca
28679 #else
28680 # ifdef _MSC_VER
28681 #  include <malloc.h>
28682 #  define alloca _alloca
28683 # else
28684 #  if HAVE_ALLOCA_H
28685 #   include <alloca.h>
28686 #  else
28687 #   ifdef _AIX
28688  #pragma alloca
28689 #   else
28690 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28691 char *alloca ();
28692 #    endif
28693 #   endif
28694 #  endif
28695 # endif
28696 #endif
28697
28698 int
28699 main ()
28700 {
28701 char *p = (char *) alloca (1);
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708   (eval $ac_link) 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_c_werror_flag"
28716                          || test ! -s conftest.err'
28717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718   (eval $ac_try) 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; } &&
28722          { ac_try='test -s conftest$ac_exeext'
28723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724   (eval $ac_try) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; }; then
28728   ac_cv_func_alloca_works=yes
28729 else
28730   echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28732
28733 ac_cv_func_alloca_works=no
28734 fi
28735 rm -f conftest.err conftest.$ac_objext \
28736       conftest$ac_exeext conftest.$ac_ext
28737 fi
28738 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28739 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28740
28741 if test $ac_cv_func_alloca_works = yes; then
28742
28743 cat >>confdefs.h <<\_ACEOF
28744 #define HAVE_ALLOCA 1
28745 _ACEOF
28746
28747 else
28748   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28749 # that cause trouble.  Some versions do not even contain alloca or
28750 # contain a buggy version.  If you still want to use their alloca,
28751 # use ar to extract alloca.o from them instead of compiling alloca.c.
28752
28753 ALLOCA=alloca.$ac_objext
28754
28755 cat >>confdefs.h <<\_ACEOF
28756 #define C_ALLOCA 1
28757 _ACEOF
28758
28759
28760 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28761 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28762 if test "${ac_cv_os_cray+set}" = set; then
28763   echo $ECHO_N "(cached) $ECHO_C" >&6
28764 else
28765   cat >conftest.$ac_ext <<_ACEOF
28766 /* confdefs.h.  */
28767 _ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h.  */
28771 #if defined(CRAY) && ! defined(CRAY2)
28772 webecray
28773 #else
28774 wenotbecray
28775 #endif
28776
28777 _ACEOF
28778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28779   $EGREP "webecray" >/dev/null 2>&1; then
28780   ac_cv_os_cray=yes
28781 else
28782   ac_cv_os_cray=no
28783 fi
28784 rm -f conftest*
28785
28786 fi
28787 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28788 echo "${ECHO_T}$ac_cv_os_cray" >&6
28789 if test $ac_cv_os_cray = yes; then
28790   for ac_func in _getb67 GETB67 getb67; do
28791     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28792 echo "$as_me:$LINENO: checking for $ac_func" >&5
28793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28794 if eval "test \"\${$as_ac_var+set}\" = set"; then
28795   echo $ECHO_N "(cached) $ECHO_C" >&6
28796 else
28797   cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28805 #define $ac_func innocuous_$ac_func
28806
28807 /* System header to define __stub macros and hopefully few prototypes,
28808     which can conflict with char $ac_func (); below.
28809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28810     <limits.h> exists even on freestanding compilers.  */
28811
28812 #ifdef __STDC__
28813 # include <limits.h>
28814 #else
28815 # include <assert.h>
28816 #endif
28817
28818 #undef $ac_func
28819
28820 /* Override any gcc2 internal prototype to avoid an error.  */
28821 #ifdef __cplusplus
28822 extern "C"
28823 {
28824 #endif
28825 /* We use char because int might match the return type of a gcc2
28826    builtin and then its argument prototype would still apply.  */
28827 char $ac_func ();
28828 /* The GNU C library defines this for functions which it implements
28829     to always fail with ENOSYS.  Some functions are actually named
28830     something starting with __ and the normal name is an alias.  */
28831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28832 choke me
28833 #else
28834 char (*f) () = $ac_func;
28835 #endif
28836 #ifdef __cplusplus
28837 }
28838 #endif
28839
28840 int
28841 main ()
28842 {
28843 return f != $ac_func;
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28850   (eval $ac_link) 2>conftest.er1
28851   ac_status=$?
28852   grep -v '^ *+' conftest.er1 >conftest.err
28853   rm -f conftest.er1
28854   cat conftest.err >&5
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); } &&
28857          { ac_try='test -z "$ac_c_werror_flag"
28858                          || test ! -s conftest.err'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; } &&
28864          { ac_try='test -s conftest$ac_exeext'
28865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866   (eval $ac_try) 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   eval "$as_ac_var=yes"
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 eval "$as_ac_var=no"
28876 fi
28877 rm -f conftest.err conftest.$ac_objext \
28878       conftest$ac_exeext conftest.$ac_ext
28879 fi
28880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28882 if test `eval echo '${'$as_ac_var'}'` = yes; then
28883
28884 cat >>confdefs.h <<_ACEOF
28885 #define CRAY_STACKSEG_END $ac_func
28886 _ACEOF
28887
28888     break
28889 fi
28890
28891   done
28892 fi
28893
28894 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28895 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28896 if test "${ac_cv_c_stack_direction+set}" = set; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899   if test "$cross_compiling" = yes; then
28900   ac_cv_c_stack_direction=0
28901 else
28902   cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h.  */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h.  */
28908 int
28909 find_stack_direction ()
28910 {
28911   static char *addr = 0;
28912   auto char dummy;
28913   if (addr == 0)
28914     {
28915       addr = &dummy;
28916       return find_stack_direction ();
28917     }
28918   else
28919     return (&dummy > addr) ? 1 : -1;
28920 }
28921
28922 int
28923 main ()
28924 {
28925   exit (find_stack_direction () < 0);
28926 }
28927 _ACEOF
28928 rm -f conftest$ac_exeext
28929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28930   (eval $ac_link) 2>&5
28931   ac_status=$?
28932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; }; then
28939   ac_cv_c_stack_direction=1
28940 else
28941   echo "$as_me: program exited with status $ac_status" >&5
28942 echo "$as_me: failed program was:" >&5
28943 sed 's/^/| /' conftest.$ac_ext >&5
28944
28945 ( exit $ac_status )
28946 ac_cv_c_stack_direction=-1
28947 fi
28948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28949 fi
28950 fi
28951 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28952 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28953
28954 cat >>confdefs.h <<_ACEOF
28955 #define STACK_DIRECTION $ac_cv_c_stack_direction
28956 _ACEOF
28957
28958
28959 fi
28960
28961
28962 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28963 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28964 if test "${ac_cv_func_rand48+set}" = set; then
28965   echo $ECHO_N "(cached) $ECHO_C" >&6
28966 else
28967   ac_ext=cc
28968 ac_cpp='$CXXCPP $CPPFLAGS'
28969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28972
28973    cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979 #include <stdlib.h>
28980 int
28981 main ()
28982 {
28983 srand48(0);lrand48();drand48();
28984   ;
28985   return 0;
28986 }
28987 _ACEOF
28988 rm -f conftest.$ac_objext
28989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28990   (eval $ac_compile) 2>conftest.er1
28991   ac_status=$?
28992   grep -v '^ *+' conftest.er1 >conftest.err
28993   rm -f conftest.er1
28994   cat conftest.err >&5
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); } &&
28997          { ac_try='test -z "$ac_cxx_werror_flag"
28998                          || test ! -s conftest.err'
28999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000   (eval $ac_try) 2>&5
29001   ac_status=$?
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); }; } &&
29004          { ac_try='test -s conftest.$ac_objext'
29005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006   (eval $ac_try) 2>&5
29007   ac_status=$?
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); }; }; then
29010   ac_cv_func_rand48=yes
29011 else
29012   echo "$as_me: failed program was:" >&5
29013 sed 's/^/| /' conftest.$ac_ext >&5
29014
29015 ac_cv_func_rand48=no
29016 fi
29017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29018   ac_ext=c
29019 ac_cpp='$CPP $CPPFLAGS'
29020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29023
29024 fi
29025 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29026 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29027
29028 if test "$ac_cv_func_rand48" = "yes" ; then
29029
29030 cat >>confdefs.h <<\_ACEOF
29031 #define HAVE_RAND48 1
29032 _ACEOF
29033
29034 fi
29035
29036
29037 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29038 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29039 if test "${ac_cv_cxx_namespaces+set}" = set; then
29040   echo $ECHO_N "(cached) $ECHO_C" >&6
29041 else
29042   ac_ext=cc
29043 ac_cpp='$CXXCPP $CPPFLAGS'
29044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29047
29048  cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054 namespace Outer { namespace Inner { int i = 0; }}
29055 int
29056 main ()
29057 {
29058 using namespace Outer::Inner; return i;
29059   ;
29060   return 0;
29061 }
29062 _ACEOF
29063 rm -f conftest.$ac_objext
29064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29065   (eval $ac_compile) 2>conftest.er1
29066   ac_status=$?
29067   grep -v '^ *+' conftest.er1 >conftest.err
29068   rm -f conftest.er1
29069   cat conftest.err >&5
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); } &&
29072          { ac_try='test -z "$ac_cxx_werror_flag"
29073                          || test ! -s conftest.err'
29074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075   (eval $ac_try) 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; } &&
29079          { ac_try='test -s conftest.$ac_objext'
29080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081   (eval $ac_try) 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; }; then
29085   ac_cv_cxx_namespaces=yes
29086 else
29087   echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29089
29090 ac_cv_cxx_namespaces=no
29091 fi
29092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29093  ac_ext=c
29094 ac_cpp='$CPP $CPPFLAGS'
29095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29098
29099
29100 fi
29101 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29102 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29103 if test "$ac_cv_cxx_namespaces" = yes; then
29104
29105 cat >>confdefs.h <<\_ACEOF
29106 #define HAVE_NAMESPACES
29107 _ACEOF
29108
29109 fi
29110
29111 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29112 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29113 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29114   echo $ECHO_N "(cached) $ECHO_C" >&6
29115 else
29116
29117   ac_ext=cc
29118 ac_cpp='$CXXCPP $CPPFLAGS'
29119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29122
29123   cat >conftest.$ac_ext <<_ACEOF
29124 /* confdefs.h.  */
29125 _ACEOF
29126 cat confdefs.h >>conftest.$ac_ext
29127 cat >>conftest.$ac_ext <<_ACEOF
29128 /* end confdefs.h.  */
29129 #include <ext/hash_map>
29130 #ifdef HAVE_NAMESPACES
29131 using namespace std;
29132 #endif
29133 int
29134 main ()
29135 {
29136 hash_map<int, int> t;
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest.$ac_objext
29142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29143   (eval $ac_compile) 2>conftest.er1
29144   ac_status=$?
29145   grep -v '^ *+' conftest.er1 >conftest.err
29146   rm -f conftest.er1
29147   cat conftest.err >&5
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } &&
29150          { ac_try='test -z "$ac_cxx_werror_flag"
29151                          || test ! -s conftest.err'
29152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153   (eval $ac_try) 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); }; } &&
29157          { ac_try='test -s conftest.$ac_objext'
29158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159   (eval $ac_try) 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; }; then
29163   ac_cv_cxx_have_std_ext_hash_map=yes
29164 else
29165   echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29167
29168 ac_cv_cxx_have_std_ext_hash_map=no
29169 fi
29170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29171   ac_ext=c
29172 ac_cpp='$CPP $CPPFLAGS'
29173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29176
29177 fi
29178 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29179 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29180  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29181  then
29182
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_STD_EXT_HASH_MAP 1
29185 _ACEOF
29186
29187  else
29188
29189 cat >>confdefs.h <<\_ACEOF
29190 #define HAVE_STD_EXT_HASH_MAP 0
29191 _ACEOF
29192
29193  fi
29194
29195  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29196 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29197 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200
29201   ac_ext=cc
29202 ac_cpp='$CXXCPP $CPPFLAGS'
29203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29206
29207   cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h.  */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h.  */
29213 #include <ext/hash_map>
29214 #ifdef HAVE_NAMESPACES
29215 using namespace __gnu_cxx;
29216 #endif
29217 int
29218 main ()
29219 {
29220 hash_map<int,int> t;
29221   ;
29222   return 0;
29223 }
29224 _ACEOF
29225 rm -f conftest.$ac_objext
29226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29227   (eval $ac_compile) 2>conftest.er1
29228   ac_status=$?
29229   grep -v '^ *+' conftest.er1 >conftest.err
29230   rm -f conftest.er1
29231   cat conftest.err >&5
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); } &&
29234          { ac_try='test -z "$ac_cxx_werror_flag"
29235                          || test ! -s conftest.err'
29236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237   (eval $ac_try) 2>&5
29238   ac_status=$?
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); }; } &&
29241          { ac_try='test -s conftest.$ac_objext'
29242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243   (eval $ac_try) 2>&5
29244   ac_status=$?
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); }; }; then
29247   ac_cv_cxx_have_gnu_ext_hash_map=yes
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252 ac_cv_cxx_have_gnu_ext_hash_map=no
29253 fi
29254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29255   ac_ext=c
29256 ac_cpp='$CPP $CPPFLAGS'
29257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29260
29261 fi
29262 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29263 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29264  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29265  then
29266
29267 cat >>confdefs.h <<\_ACEOF
29268 #define HAVE_GNU_EXT_HASH_MAP 1
29269 _ACEOF
29270
29271  else
29272
29273 cat >>confdefs.h <<\_ACEOF
29274 #define HAVE_GNU_EXT_HASH_MAP 0
29275 _ACEOF
29276
29277  fi
29278
29279  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29280 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29281 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29282   echo $ECHO_N "(cached) $ECHO_C" >&6
29283 else
29284
29285   ac_ext=cc
29286 ac_cpp='$CXXCPP $CPPFLAGS'
29287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29290
29291   cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 #include <hash_map>
29298 int
29299 main ()
29300 {
29301 hash_map<int,int> t;
29302   ;
29303   return 0;
29304 }
29305 _ACEOF
29306 rm -f conftest.$ac_objext
29307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29308   (eval $ac_compile) 2>conftest.er1
29309   ac_status=$?
29310   grep -v '^ *+' conftest.er1 >conftest.err
29311   rm -f conftest.er1
29312   cat conftest.err >&5
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); } &&
29315          { ac_try='test -z "$ac_cxx_werror_flag"
29316                          || test ! -s conftest.err'
29317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318   (eval $ac_try) 2>&5
29319   ac_status=$?
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); }; } &&
29322          { ac_try='test -s conftest.$ac_objext'
29323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324   (eval $ac_try) 2>&5
29325   ac_status=$?
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); }; }; then
29328   ac_cv_cxx_have_global_hash_map=yes
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333 ac_cv_cxx_have_global_hash_map=no
29334 fi
29335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29336   ac_ext=c
29337 ac_cpp='$CPP $CPPFLAGS'
29338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29341
29342 fi
29343 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29344 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29345  if test "$ac_cv_cxx_have_global_hash_map" = yes
29346  then
29347
29348 cat >>confdefs.h <<\_ACEOF
29349 #define HAVE_GLOBAL_HASH_MAP 1
29350 _ACEOF
29351
29352  else
29353
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_GLOBAL_HASH_MAP 0
29356 _ACEOF
29357
29358  fi
29359
29360 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29361 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29362 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365
29366   ac_ext=cc
29367 ac_cpp='$CXXCPP $CPPFLAGS'
29368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371
29372   cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h.  */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h.  */
29378 #include <ext/hash_set>
29379 #ifdef HAVE_NAMESPACES
29380 using namespace std;
29381 #endif
29382 int
29383 main ()
29384 {
29385 hash_set<int> t;
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29392   (eval $ac_compile) 2>conftest.er1
29393   ac_status=$?
29394   grep -v '^ *+' conftest.er1 >conftest.err
29395   rm -f conftest.er1
29396   cat conftest.err >&5
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } &&
29399          { ac_try='test -z "$ac_cxx_werror_flag"
29400                          || test ! -s conftest.err'
29401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402   (eval $ac_try) 2>&5
29403   ac_status=$?
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); }; } &&
29406          { ac_try='test -s conftest.$ac_objext'
29407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408   (eval $ac_try) 2>&5
29409   ac_status=$?
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); }; }; then
29412   ac_cv_cxx_have_std_ext_hash_set=yes
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417 ac_cv_cxx_have_std_ext_hash_set=no
29418 fi
29419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29420   ac_ext=c
29421 ac_cpp='$CPP $CPPFLAGS'
29422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426 fi
29427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29428 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29429  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29430  then
29431
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_STD_EXT_HASH_SET 1
29434 _ACEOF
29435
29436  else
29437
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_STD_EXT_HASH_SET 0
29440 _ACEOF
29441
29442  fi
29443
29444  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29445 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29446 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 else
29449
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 <ext/hash_set>
29463 #ifdef HAVE_NAMESPACES
29464 using namespace __gnu_cxx;
29465 #endif
29466 int
29467 main ()
29468 {
29469 hash_set<int> t;
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 rm -f conftest.$ac_objext
29475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29476   (eval $ac_compile) 2>conftest.er1
29477   ac_status=$?
29478   grep -v '^ *+' conftest.er1 >conftest.err
29479   rm -f conftest.er1
29480   cat conftest.err >&5
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); } &&
29483          { ac_try='test -z "$ac_cxx_werror_flag"
29484                          || test ! -s conftest.err'
29485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486   (eval $ac_try) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest.$ac_objext'
29491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492   (eval $ac_try) 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   ac_cv_cxx_have_gnu_ext_hash_set=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501 ac_cv_cxx_have_gnu_ext_hash_set=no
29502 fi
29503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29504   ac_ext=c
29505 ac_cpp='$CPP $CPPFLAGS'
29506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29509
29510 fi
29511 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29512 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29513  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29514  then
29515
29516 cat >>confdefs.h <<\_ACEOF
29517 #define HAVE_GNU_EXT_HASH_SET 1
29518 _ACEOF
29519
29520  else
29521
29522 cat >>confdefs.h <<\_ACEOF
29523 #define HAVE_GNU_EXT_HASH_SET 0
29524 _ACEOF
29525
29526  fi
29527
29528  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29529 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29530 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29531   echo $ECHO_N "(cached) $ECHO_C" >&6
29532 else
29533
29534   ac_ext=cc
29535 ac_cpp='$CXXCPP $CPPFLAGS'
29536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29539
29540   cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h.  */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h.  */
29546 #include <hash_set>
29547 int
29548 main ()
29549 {
29550 hash_set<int> t; return 0;
29551   ;
29552   return 0;
29553 }
29554 _ACEOF
29555 rm -f conftest.$ac_objext
29556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29557   (eval $ac_compile) 2>conftest.er1
29558   ac_status=$?
29559   grep -v '^ *+' conftest.er1 >conftest.err
29560   rm -f conftest.er1
29561   cat conftest.err >&5
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); } &&
29564          { ac_try='test -z "$ac_cxx_werror_flag"
29565                          || test ! -s conftest.err'
29566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567   (eval $ac_try) 2>&5
29568   ac_status=$?
29569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570   (exit $ac_status); }; } &&
29571          { ac_try='test -s conftest.$ac_objext'
29572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573   (eval $ac_try) 2>&5
29574   ac_status=$?
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); }; }; then
29577   ac_cv_cxx_have_global_hash_set=yes
29578 else
29579   echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29581
29582 ac_cv_cxx_have_global_hash_set=no
29583 fi
29584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29585   ac_ext=c
29586 ac_cpp='$CPP $CPPFLAGS'
29587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29590
29591 fi
29592 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29593 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29594  if test "$ac_cv_cxx_have_global_hash_set" = yes
29595  then
29596
29597 cat >>confdefs.h <<\_ACEOF
29598 #define HAVE_GLOBAL_HASH_SET 1
29599 _ACEOF
29600
29601  else
29602
29603 cat >>confdefs.h <<\_ACEOF
29604 #define HAVE_GLOBAL_HASH_SET 0
29605 _ACEOF
29606
29607  fi
29608
29609 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29610 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29611 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29612   echo $ECHO_N "(cached) $ECHO_C" >&6
29613 else
29614
29615   ac_ext=cc
29616 ac_cpp='$CXXCPP $CPPFLAGS'
29617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29620
29621   cat >conftest.$ac_ext <<_ACEOF
29622 /* confdefs.h.  */
29623 _ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h.  */
29627 #include <iterator>
29628 #ifdef HAVE_NAMESPACES
29629 using namespace std;
29630 #endif
29631 int
29632 main ()
29633 {
29634 iterator<int,int,int> t; return 0;
29635   ;
29636   return 0;
29637 }
29638 _ACEOF
29639 rm -f conftest.$ac_objext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29641   (eval $ac_compile) 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } &&
29648          { ac_try='test -z "$ac_cxx_werror_flag"
29649                          || test ! -s conftest.err'
29650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651   (eval $ac_try) 2>&5
29652   ac_status=$?
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); }; } &&
29655          { ac_try='test -s conftest.$ac_objext'
29656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657   (eval $ac_try) 2>&5
29658   ac_status=$?
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); }; }; then
29661   ac_cv_cxx_have_std_iterator=yes
29662 else
29663   echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29665
29666 ac_cv_cxx_have_std_iterator=no
29667 fi
29668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29669   ac_ext=c
29670 ac_cpp='$CPP $CPPFLAGS'
29671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29674
29675
29676 fi
29677 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29678 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29679 if test "$ac_cv_cxx_have_std_iterator" = yes
29680 then
29681
29682 cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_STD_ITERATOR 1
29684 _ACEOF
29685
29686 else
29687
29688 cat >>confdefs.h <<\_ACEOF
29689 #define HAVE_STD_ITERATOR 0
29690 _ACEOF
29691
29692 fi
29693
29694 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29695 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29696 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29697   echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699
29700   ac_ext=cc
29701 ac_cpp='$CXXCPP $CPPFLAGS'
29702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29705
29706   cat >conftest.$ac_ext <<_ACEOF
29707 /* confdefs.h.  */
29708 _ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h.  */
29712 #include <iterator>
29713 #ifdef HAVE_NAMESPACES
29714 using namespace std;
29715 #endif
29716 int
29717 main ()
29718 {
29719 bidirectional_iterator<int,int> t; return 0;
29720   ;
29721   return 0;
29722 }
29723 _ACEOF
29724 rm -f conftest.$ac_objext
29725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29726   (eval $ac_compile) 2>conftest.er1
29727   ac_status=$?
29728   grep -v '^ *+' conftest.er1 >conftest.err
29729   rm -f conftest.er1
29730   cat conftest.err >&5
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); } &&
29733          { ac_try='test -z "$ac_cxx_werror_flag"
29734                          || test ! -s conftest.err'
29735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736   (eval $ac_try) 2>&5
29737   ac_status=$?
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); }; } &&
29740          { ac_try='test -s conftest.$ac_objext'
29741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742   (eval $ac_try) 2>&5
29743   ac_status=$?
29744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745   (exit $ac_status); }; }; then
29746   ac_cv_cxx_have_bi_iterator=yes
29747 else
29748   echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29750
29751 ac_cv_cxx_have_bi_iterator=no
29752 fi
29753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29754   ac_ext=c
29755 ac_cpp='$CPP $CPPFLAGS'
29756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29759
29760
29761 fi
29762 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29763 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29764 if test "$ac_cv_cxx_have_bi_iterator" = yes
29765 then
29766
29767 cat >>confdefs.h <<\_ACEOF
29768 #define HAVE_BI_ITERATOR 1
29769 _ACEOF
29770
29771 else
29772
29773 cat >>confdefs.h <<\_ACEOF
29774 #define HAVE_BI_ITERATOR 0
29775 _ACEOF
29776
29777 fi
29778
29779 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29780 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29781 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29782   echo $ECHO_N "(cached) $ECHO_C" >&6
29783 else
29784
29785   ac_ext=cc
29786 ac_cpp='$CXXCPP $CPPFLAGS'
29787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29790
29791   cat >conftest.$ac_ext <<_ACEOF
29792 /* confdefs.h.  */
29793 _ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h.  */
29797 #include <iterator>
29798 #ifdef HAVE_NAMESPACES
29799 using namespace std;
29800 #endif
29801 int
29802 main ()
29803 {
29804 forward_iterator<int,int> t; return 0;
29805   ;
29806   return 0;
29807 }
29808 _ACEOF
29809 rm -f conftest.$ac_objext
29810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29811   (eval $ac_compile) 2>conftest.er1
29812   ac_status=$?
29813   grep -v '^ *+' conftest.er1 >conftest.err
29814   rm -f conftest.er1
29815   cat conftest.err >&5
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } &&
29818          { ac_try='test -z "$ac_cxx_werror_flag"
29819                          || test ! -s conftest.err'
29820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29821   (eval $ac_try) 2>&5
29822   ac_status=$?
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); }; } &&
29825          { ac_try='test -s conftest.$ac_objext'
29826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827   (eval $ac_try) 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; }; then
29831   ac_cv_cxx_have_fwd_iterator=yes
29832 else
29833   echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29835
29836 ac_cv_cxx_have_fwd_iterator=no
29837 fi
29838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29839   ac_ext=c
29840 ac_cpp='$CPP $CPPFLAGS'
29841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844
29845
29846 fi
29847 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29848 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29849 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29850 then
29851
29852 cat >>confdefs.h <<\_ACEOF
29853 #define HAVE_FWD_ITERATOR 1
29854 _ACEOF
29855
29856 else
29857
29858 cat >>confdefs.h <<\_ACEOF
29859 #define HAVE_FWD_ITERATOR 0
29860 _ACEOF
29861
29862 fi
29863
29864
29865 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29866 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29867 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29868   echo $ECHO_N "(cached) $ECHO_C" >&6
29869 else
29870   ac_ext=cc
29871 ac_cpp='$CXXCPP $CPPFLAGS'
29872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29875
29876    cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 #include <math.h>
29883 int
29884 main ()
29885 {
29886 float f; isnan(f);
29887   ;
29888   return 0;
29889 }
29890 _ACEOF
29891 rm -f conftest.$ac_objext
29892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29893   (eval $ac_compile) 2>conftest.er1
29894   ac_status=$?
29895   grep -v '^ *+' conftest.er1 >conftest.err
29896   rm -f conftest.er1
29897   cat conftest.err >&5
29898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899   (exit $ac_status); } &&
29900          { ac_try='test -z "$ac_cxx_werror_flag"
29901                          || test ! -s conftest.err'
29902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903   (eval $ac_try) 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); }; } &&
29907          { ac_try='test -s conftest.$ac_objext'
29908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909   (eval $ac_try) 2>&5
29910   ac_status=$?
29911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); }; }; then
29913   ac_cv_func_isnan_in_math_h=yes
29914 else
29915   echo "$as_me: failed program was:" >&5
29916 sed 's/^/| /' conftest.$ac_ext >&5
29917
29918 ac_cv_func_isnan_in_math_h=no
29919 fi
29920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29921   ac_ext=c
29922 ac_cpp='$CPP $CPPFLAGS'
29923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29926
29927 fi
29928 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29929 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29930
29931
29932 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29933
29934 cat >>confdefs.h <<\_ACEOF
29935 #define HAVE_ISNAN_IN_MATH_H 1
29936 _ACEOF
29937
29938 fi
29939
29940 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29941 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29942 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29943   echo $ECHO_N "(cached) $ECHO_C" >&6
29944 else
29945   ac_ext=cc
29946 ac_cpp='$CXXCPP $CPPFLAGS'
29947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29950
29951    cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957 #include <cmath>
29958 int
29959 main ()
29960 {
29961 float f; isnan(f);
29962   ;
29963   return 0;
29964 }
29965 _ACEOF
29966 rm -f conftest.$ac_objext
29967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29968   (eval $ac_compile) 2>conftest.er1
29969   ac_status=$?
29970   grep -v '^ *+' conftest.er1 >conftest.err
29971   rm -f conftest.er1
29972   cat conftest.err >&5
29973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974   (exit $ac_status); } &&
29975          { ac_try='test -z "$ac_cxx_werror_flag"
29976                          || test ! -s conftest.err'
29977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978   (eval $ac_try) 2>&5
29979   ac_status=$?
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); }; } &&
29982          { ac_try='test -s conftest.$ac_objext'
29983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984   (eval $ac_try) 2>&5
29985   ac_status=$?
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); }; }; then
29988   ac_cv_func_isnan_in_cmath=yes
29989 else
29990   echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29992
29993 ac_cv_func_isnan_in_cmath=no
29994 fi
29995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29996   ac_ext=c
29997 ac_cpp='$CPP $CPPFLAGS'
29998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30001
30002 fi
30003 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30004 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30005
30006 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30007
30008 cat >>confdefs.h <<\_ACEOF
30009 #define HAVE_ISNAN_IN_CMATH 1
30010 _ACEOF
30011
30012 fi
30013
30014 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30015 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30016 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30017   echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019   ac_ext=cc
30020 ac_cpp='$CXXCPP $CPPFLAGS'
30021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30024
30025    cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031 #include <cmath>
30032 int
30033 main ()
30034 {
30035 float f; std::isnan(f);
30036   ;
30037   return 0;
30038 }
30039 _ACEOF
30040 rm -f conftest.$ac_objext
30041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30042   (eval $ac_compile) 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } &&
30049          { ac_try='test -z "$ac_cxx_werror_flag"
30050                          || test ! -s conftest.err'
30051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30052   (eval $ac_try) 2>&5
30053   ac_status=$?
30054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055   (exit $ac_status); }; } &&
30056          { ac_try='test -s conftest.$ac_objext'
30057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30058   (eval $ac_try) 2>&5
30059   ac_status=$?
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); }; }; then
30062   ac_cv_func_std_isnan_in_cmath=yes
30063 else
30064   echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30066
30067 ac_cv_func_std_isnan_in_cmath=no
30068 fi
30069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30070   ac_ext=c
30071 ac_cpp='$CPP $CPPFLAGS'
30072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30075
30076 fi
30077 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30078 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30079
30080 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30081
30082 cat >>confdefs.h <<\_ACEOF
30083 #define HAVE_STD_ISNAN_IN_CMATH 1
30084 _ACEOF
30085
30086 fi
30087
30088
30089 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30090 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30091 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30092   echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094   ac_ext=cc
30095 ac_cpp='$CXXCPP $CPPFLAGS'
30096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30099
30100    cat >conftest.$ac_ext <<_ACEOF
30101 /* confdefs.h.  */
30102 _ACEOF
30103 cat confdefs.h >>conftest.$ac_ext
30104 cat >>conftest.$ac_ext <<_ACEOF
30105 /* end confdefs.h.  */
30106 #include <math.h>
30107 int
30108 main ()
30109 {
30110 float f; isinf(f);
30111   ;
30112   return 0;
30113 }
30114 _ACEOF
30115 rm -f conftest.$ac_objext
30116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30117   (eval $ac_compile) 2>conftest.er1
30118   ac_status=$?
30119   grep -v '^ *+' conftest.er1 >conftest.err
30120   rm -f conftest.er1
30121   cat conftest.err >&5
30122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123   (exit $ac_status); } &&
30124          { ac_try='test -z "$ac_cxx_werror_flag"
30125                          || test ! -s conftest.err'
30126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127   (eval $ac_try) 2>&5
30128   ac_status=$?
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); }; } &&
30131          { ac_try='test -s conftest.$ac_objext'
30132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133   (eval $ac_try) 2>&5
30134   ac_status=$?
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); }; }; then
30137   ac_cv_func_isinf_in_math_h=yes
30138 else
30139   echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30141
30142 ac_cv_func_isinf_in_math_h=no
30143 fi
30144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30145   ac_ext=c
30146 ac_cpp='$CPP $CPPFLAGS'
30147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30150
30151 fi
30152 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30153 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30154
30155 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30156
30157 cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_ISINF_IN_MATH_H 1
30159 _ACEOF
30160
30161 fi
30162
30163 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30164 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30165 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30166   echo $ECHO_N "(cached) $ECHO_C" >&6
30167 else
30168   ac_ext=cc
30169 ac_cpp='$CXXCPP $CPPFLAGS'
30170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30173
30174    cat >conftest.$ac_ext <<_ACEOF
30175 /* confdefs.h.  */
30176 _ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h.  */
30180 #include <cmath>
30181 int
30182 main ()
30183 {
30184 float f; isinf(f);
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30191   (eval $ac_compile) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_cxx_werror_flag"
30199                          || test ! -s conftest.err'
30200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201   (eval $ac_try) 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; } &&
30205          { ac_try='test -s conftest.$ac_objext'
30206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207   (eval $ac_try) 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); }; }; then
30211   ac_cv_func_isinf_in_cmath=yes
30212 else
30213   echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216 ac_cv_func_isinf_in_cmath=no
30217 fi
30218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30219   ac_ext=c
30220 ac_cpp='$CPP $CPPFLAGS'
30221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30224
30225 fi
30226 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30227 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30228
30229 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30230
30231 cat >>confdefs.h <<\_ACEOF
30232 #define HAVE_ISINF_IN_CMATH 1
30233 _ACEOF
30234
30235 fi
30236
30237 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30238 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30239 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30240   echo $ECHO_N "(cached) $ECHO_C" >&6
30241 else
30242   ac_ext=cc
30243 ac_cpp='$CXXCPP $CPPFLAGS'
30244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30247
30248    cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254 #include <cmath>
30255 int
30256 main ()
30257 {
30258 float f; std::isinf(f)}
30259   ;
30260   return 0;
30261 }
30262 _ACEOF
30263 rm -f conftest.$ac_objext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30265   (eval $ac_compile) 2>conftest.er1
30266   ac_status=$?
30267   grep -v '^ *+' conftest.er1 >conftest.err
30268   rm -f conftest.er1
30269   cat conftest.err >&5
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); } &&
30272          { ac_try='test -z "$ac_cxx_werror_flag"
30273                          || test ! -s conftest.err'
30274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275   (eval $ac_try) 2>&5
30276   ac_status=$?
30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); }; } &&
30279          { ac_try='test -s conftest.$ac_objext'
30280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281   (eval $ac_try) 2>&5
30282   ac_status=$?
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); }; }; then
30285   ac_cv_func_std_isinf_in_cmath=yes
30286 else
30287   echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30289
30290 ac_cv_func_std_isinf_in_cmath=no
30291 fi
30292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30293   ac_ext=c
30294 ac_cpp='$CPP $CPPFLAGS'
30295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30298
30299 fi
30300 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30301 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30302
30303 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30304
30305 cat >>confdefs.h <<\_ACEOF
30306 #define HAVE_STD_ISINF_IN_CMATH 1
30307 _ACEOF
30308
30309 fi
30310
30311 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30312 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30313 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316   ac_ext=cc
30317 ac_cpp='$CXXCPP $CPPFLAGS'
30318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30321
30322    cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h.  */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h.  */
30328 #include <ieeefp.h>
30329 int
30330 main ()
30331 {
30332 float f; finite(f);
30333   ;
30334   return 0;
30335 }
30336 _ACEOF
30337 rm -f conftest.$ac_objext
30338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30339   (eval $ac_compile) 2>conftest.er1
30340   ac_status=$?
30341   grep -v '^ *+' conftest.er1 >conftest.err
30342   rm -f conftest.er1
30343   cat conftest.err >&5
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); } &&
30346          { ac_try='test -z "$ac_cxx_werror_flag"
30347                          || test ! -s conftest.err'
30348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349   (eval $ac_try) 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); }; } &&
30353          { ac_try='test -s conftest.$ac_objext'
30354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355   (eval $ac_try) 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; }; then
30359   ac_cv_func_finite_in_ieeefp_h=yes
30360 else
30361   echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364 ac_cv_func_finite_in_ieeefp_h=no
30365 fi
30366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30367   ac_ext=c
30368 ac_cpp='$CPP $CPPFLAGS'
30369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30372
30373 fi
30374 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30375 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30376
30377 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30378
30379 cat >>confdefs.h <<\_ACEOF
30380 #define HAVE_FINITE_IN_IEEEFP_H 1
30381 _ACEOF
30382
30383 fi
30384
30385
30386
30387
30388
30389 for ac_header in stdlib.h unistd.h
30390 do
30391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30393   echo "$as_me:$LINENO: checking for $ac_header" >&5
30394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30396   echo $ECHO_N "(cached) $ECHO_C" >&6
30397 fi
30398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30400 else
30401   # Is the header compilable?
30402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30404 cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410 $ac_includes_default
30411 #include <$ac_header>
30412 _ACEOF
30413 rm -f conftest.$ac_objext
30414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30415   (eval $ac_compile) 2>conftest.er1
30416   ac_status=$?
30417   grep -v '^ *+' conftest.er1 >conftest.err
30418   rm -f conftest.er1
30419   cat conftest.err >&5
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); } &&
30422          { ac_try='test -z "$ac_c_werror_flag"
30423                          || test ! -s conftest.err'
30424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425   (eval $ac_try) 2>&5
30426   ac_status=$?
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); }; } &&
30429          { ac_try='test -s conftest.$ac_objext'
30430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431   (eval $ac_try) 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; }; then
30435   ac_header_compiler=yes
30436 else
30437   echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30439
30440 ac_header_compiler=no
30441 fi
30442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30444 echo "${ECHO_T}$ac_header_compiler" >&6
30445
30446 # Is the header present?
30447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30449 cat >conftest.$ac_ext <<_ACEOF
30450 /* confdefs.h.  */
30451 _ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h.  */
30455 #include <$ac_header>
30456 _ACEOF
30457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30459   ac_status=$?
30460   grep -v '^ *+' conftest.er1 >conftest.err
30461   rm -f conftest.er1
30462   cat conftest.err >&5
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); } >/dev/null; then
30465   if test -s conftest.err; then
30466     ac_cpp_err=$ac_c_preproc_warn_flag
30467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30468   else
30469     ac_cpp_err=
30470   fi
30471 else
30472   ac_cpp_err=yes
30473 fi
30474 if test -z "$ac_cpp_err"; then
30475   ac_header_preproc=yes
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480   ac_header_preproc=no
30481 fi
30482 rm -f conftest.err conftest.$ac_ext
30483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30484 echo "${ECHO_T}$ac_header_preproc" >&6
30485
30486 # So?  What about this header?
30487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30488   yes:no: )
30489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30493     ac_header_preproc=yes
30494     ;;
30495   no:yes:* )
30496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30508     (
30509       cat <<\_ASBOX
30510 ## ----------------------------------- ##
30511 ## Report this to llvmbugs@cs.uiuc.edu ##
30512 ## ----------------------------------- ##
30513 _ASBOX
30514     ) |
30515       sed "s/^/$as_me: WARNING:     /" >&2
30516     ;;
30517 esac
30518 echo "$as_me:$LINENO: checking for $ac_header" >&5
30519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30521   echo $ECHO_N "(cached) $ECHO_C" >&6
30522 else
30523   eval "$as_ac_Header=\$ac_header_preproc"
30524 fi
30525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30527
30528 fi
30529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30530   cat >>confdefs.h <<_ACEOF
30531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30532 _ACEOF
30533
30534 fi
30535
30536 done
30537
30538
30539 for ac_func in getpagesize
30540 do
30541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30542 echo "$as_me:$LINENO: checking for $ac_func" >&5
30543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30544 if eval "test \"\${$as_ac_var+set}\" = set"; then
30545   echo $ECHO_N "(cached) $ECHO_C" >&6
30546 else
30547   cat >conftest.$ac_ext <<_ACEOF
30548 /* confdefs.h.  */
30549 _ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h.  */
30553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30555 #define $ac_func innocuous_$ac_func
30556
30557 /* System header to define __stub macros and hopefully few prototypes,
30558     which can conflict with char $ac_func (); below.
30559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30560     <limits.h> exists even on freestanding compilers.  */
30561
30562 #ifdef __STDC__
30563 # include <limits.h>
30564 #else
30565 # include <assert.h>
30566 #endif
30567
30568 #undef $ac_func
30569
30570 /* Override any gcc2 internal prototype to avoid an error.  */
30571 #ifdef __cplusplus
30572 extern "C"
30573 {
30574 #endif
30575 /* We use char because int might match the return type of a gcc2
30576    builtin and then its argument prototype would still apply.  */
30577 char $ac_func ();
30578 /* The GNU C library defines this for functions which it implements
30579     to always fail with ENOSYS.  Some functions are actually named
30580     something starting with __ and the normal name is an alias.  */
30581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30582 choke me
30583 #else
30584 char (*f) () = $ac_func;
30585 #endif
30586 #ifdef __cplusplus
30587 }
30588 #endif
30589
30590 int
30591 main ()
30592 {
30593 return f != $ac_func;
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 rm -f conftest.$ac_objext conftest$ac_exeext
30599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30600   (eval $ac_link) 2>conftest.er1
30601   ac_status=$?
30602   grep -v '^ *+' conftest.er1 >conftest.err
30603   rm -f conftest.er1
30604   cat conftest.err >&5
30605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606   (exit $ac_status); } &&
30607          { ac_try='test -z "$ac_c_werror_flag"
30608                          || test ! -s conftest.err'
30609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610   (eval $ac_try) 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }; } &&
30614          { ac_try='test -s conftest$ac_exeext'
30615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616   (eval $ac_try) 2>&5
30617   ac_status=$?
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); }; }; then
30620   eval "$as_ac_var=yes"
30621 else
30622   echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30624
30625 eval "$as_ac_var=no"
30626 fi
30627 rm -f conftest.err conftest.$ac_objext \
30628       conftest$ac_exeext conftest.$ac_ext
30629 fi
30630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30632 if test `eval echo '${'$as_ac_var'}'` = yes; then
30633   cat >>confdefs.h <<_ACEOF
30634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635 _ACEOF
30636
30637 fi
30638 done
30639
30640 echo "$as_me:$LINENO: checking for working mmap" >&5
30641 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30642 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645   if test "$cross_compiling" = yes; then
30646   ac_cv_func_mmap_fixed_mapped=no
30647 else
30648   cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h.  */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h.  */
30654 $ac_includes_default
30655 /* malloc might have been renamed as rpl_malloc. */
30656 #undef malloc
30657
30658 /* Thanks to Mike Haertel and Jim Avera for this test.
30659    Here is a matrix of mmap possibilities:
30660         mmap private not fixed
30661         mmap private fixed at somewhere currently unmapped
30662         mmap private fixed at somewhere already mapped
30663         mmap shared not fixed
30664         mmap shared fixed at somewhere currently unmapped
30665         mmap shared fixed at somewhere already mapped
30666    For private mappings, we should verify that changes cannot be read()
30667    back from the file, nor mmap's back from the file at a different
30668    address.  (There have been systems where private was not correctly
30669    implemented like the infamous i386 svr4.0, and systems where the
30670    VM page cache was not coherent with the file system buffer cache
30671    like early versions of FreeBSD and possibly contemporary NetBSD.)
30672    For shared mappings, we should conversely verify that changes get
30673    propagated back to all the places they're supposed to be.
30674
30675    Grep wants private fixed already mapped.
30676    The main things grep needs to know about mmap are:
30677    * does it exist and is it safe to write into the mmap'd area
30678    * how to use it (BSD variants)  */
30679
30680 #include <fcntl.h>
30681 #include <sys/mman.h>
30682
30683 #if !STDC_HEADERS && !HAVE_STDLIB_H
30684 char *malloc ();
30685 #endif
30686
30687 /* This mess was copied from the GNU getpagesize.h.  */
30688 #if !HAVE_GETPAGESIZE
30689 /* Assume that all systems that can run configure have sys/param.h.  */
30690 # if !HAVE_SYS_PARAM_H
30691 #  define HAVE_SYS_PARAM_H 1
30692 # endif
30693
30694 # ifdef _SC_PAGESIZE
30695 #  define getpagesize() sysconf(_SC_PAGESIZE)
30696 # else /* no _SC_PAGESIZE */
30697 #  if HAVE_SYS_PARAM_H
30698 #   include <sys/param.h>
30699 #   ifdef EXEC_PAGESIZE
30700 #    define getpagesize() EXEC_PAGESIZE
30701 #   else /* no EXEC_PAGESIZE */
30702 #    ifdef NBPG
30703 #     define getpagesize() NBPG * CLSIZE
30704 #     ifndef CLSIZE
30705 #      define CLSIZE 1
30706 #     endif /* no CLSIZE */
30707 #    else /* no NBPG */
30708 #     ifdef NBPC
30709 #      define getpagesize() NBPC
30710 #     else /* no NBPC */
30711 #      ifdef PAGESIZE
30712 #       define getpagesize() PAGESIZE
30713 #      endif /* PAGESIZE */
30714 #     endif /* no NBPC */
30715 #    endif /* no NBPG */
30716 #   endif /* no EXEC_PAGESIZE */
30717 #  else /* no HAVE_SYS_PARAM_H */
30718 #   define getpagesize() 8192   /* punt totally */
30719 #  endif /* no HAVE_SYS_PARAM_H */
30720 # endif /* no _SC_PAGESIZE */
30721
30722 #endif /* no HAVE_GETPAGESIZE */
30723
30724 int
30725 main ()
30726 {
30727   char *data, *data2, *data3;
30728   int i, pagesize;
30729   int fd;
30730
30731   pagesize = getpagesize ();
30732
30733   /* First, make a file with some known garbage in it. */
30734   data = (char *) malloc (pagesize);
30735   if (!data)
30736     exit (1);
30737   for (i = 0; i < pagesize; ++i)
30738     *(data + i) = rand ();
30739   umask (0);
30740   fd = creat ("conftest.mmap", 0600);
30741   if (fd < 0)
30742     exit (1);
30743   if (write (fd, data, pagesize) != pagesize)
30744     exit (1);
30745   close (fd);
30746
30747   /* Next, try to mmap the file at a fixed address which already has
30748      something else allocated at it.  If we can, also make sure that
30749      we see the same garbage.  */
30750   fd = open ("conftest.mmap", O_RDWR);
30751   if (fd < 0)
30752     exit (1);
30753   data2 = (char *) malloc (2 * pagesize);
30754   if (!data2)
30755     exit (1);
30756   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30757   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30758                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30759     exit (1);
30760   for (i = 0; i < pagesize; ++i)
30761     if (*(data + i) != *(data2 + i))
30762       exit (1);
30763
30764   /* Finally, make sure that changes to the mapped area do not
30765      percolate back to the file as seen by read().  (This is a bug on
30766      some variants of i386 svr4.0.)  */
30767   for (i = 0; i < pagesize; ++i)
30768     *(data2 + i) = *(data2 + i) + 1;
30769   data3 = (char *) malloc (pagesize);
30770   if (!data3)
30771     exit (1);
30772   if (read (fd, data3, pagesize) != pagesize)
30773     exit (1);
30774   for (i = 0; i < pagesize; ++i)
30775     if (*(data + i) != *(data3 + i))
30776       exit (1);
30777   close (fd);
30778   exit (0);
30779 }
30780 _ACEOF
30781 rm -f conftest$ac_exeext
30782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30783   (eval $ac_link) 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788   (eval $ac_try) 2>&5
30789   ac_status=$?
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); }; }; then
30792   ac_cv_func_mmap_fixed_mapped=yes
30793 else
30794   echo "$as_me: program exited with status $ac_status" >&5
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 ( exit $ac_status )
30799 ac_cv_func_mmap_fixed_mapped=no
30800 fi
30801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30802 fi
30803 fi
30804 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30805 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30806 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30807
30808 cat >>confdefs.h <<\_ACEOF
30809 #define HAVE_MMAP 1
30810 _ACEOF
30811
30812 fi
30813 rm -f conftest.mmap
30814
30815 echo "$as_me:$LINENO: checking for mmap of files" >&5
30816 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30817 if test "${ac_cv_func_mmap_file+set}" = set; then
30818   echo $ECHO_N "(cached) $ECHO_C" >&6
30819 else
30820    ac_ext=c
30821 ac_cpp='$CPP $CPPFLAGS'
30822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30825
30826   if test "$cross_compiling" = yes; then
30827   ac_cv_func_mmap_file=no
30828 else
30829   cat >conftest.$ac_ext <<_ACEOF
30830
30831     /* confdefs.h.  */
30832 _ACEOF
30833 cat confdefs.h >>conftest.$ac_ext
30834 cat >>conftest.$ac_ext <<_ACEOF
30835 /* end confdefs.h.  */
30836
30837 #include <sys/types.h>
30838 #include <sys/mman.h>
30839 #include <fcntl.h>
30840
30841 int
30842 main ()
30843 {
30844
30845   int fd;
30846   fd = creat ("foo",0777);
30847   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30848   unlink ("foo");
30849   return (fd != (int) MAP_FAILED);
30850   ;
30851   return 0;
30852 }
30853 _ACEOF
30854 rm -f conftest$ac_exeext
30855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30856   (eval $ac_link) 2>&5
30857   ac_status=$?
30858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861   (eval $ac_try) 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); }; }; then
30865   ac_cv_func_mmap_file=yes
30866 else
30867   echo "$as_me: program exited with status $ac_status" >&5
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30870
30871 ( exit $ac_status )
30872 ac_cv_func_mmap_file=no
30873 fi
30874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30875 fi
30876   ac_ext=c
30877 ac_cpp='$CPP $CPPFLAGS'
30878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30881
30882
30883 fi
30884 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30885 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30886 if test "$ac_cv_func_mmap_file" = yes; then
30887
30888 cat >>confdefs.h <<\_ACEOF
30889 #define HAVE_MMAP_FILE
30890 _ACEOF
30891
30892    MMAP_FILE=yes
30893
30894 fi
30895
30896 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30897 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30898 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30899   echo $ECHO_N "(cached) $ECHO_C" >&6
30900 else
30901   if test "$llvm_cv_os_type" = "Interix" ; then
30902    ac_cv_need_dev_zero_for_mmap=yes
30903  else
30904    ac_cv_need_dev_zero_for_mmap=no
30905  fi
30906
30907 fi
30908 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30909 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30910 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30911
30912 cat >>confdefs.h <<\_ACEOF
30913 #define NEED_DEV_ZERO_FOR_MMAP 1
30914 _ACEOF
30915
30916 fi
30917 echo "$as_me:$LINENO: checking for mprotect" >&5
30918 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30919 if test "${ac_cv_func_mprotect+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30930 #define mprotect innocuous_mprotect
30931
30932 /* System header to define __stub macros and hopefully few prototypes,
30933     which can conflict with char mprotect (); below.
30934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935     <limits.h> exists even on freestanding compilers.  */
30936
30937 #ifdef __STDC__
30938 # include <limits.h>
30939 #else
30940 # include <assert.h>
30941 #endif
30942
30943 #undef mprotect
30944
30945 /* Override any gcc2 internal prototype to avoid an error.  */
30946 #ifdef __cplusplus
30947 extern "C"
30948 {
30949 #endif
30950 /* We use char because int might match the return type of a gcc2
30951    builtin and then its argument prototype would still apply.  */
30952 char mprotect ();
30953 /* The GNU C library defines this for functions which it implements
30954     to always fail with ENOSYS.  Some functions are actually named
30955     something starting with __ and the normal name is an alias.  */
30956 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30957 choke me
30958 #else
30959 char (*f) () = mprotect;
30960 #endif
30961 #ifdef __cplusplus
30962 }
30963 #endif
30964
30965 int
30966 main ()
30967 {
30968 return f != mprotect;
30969   ;
30970   return 0;
30971 }
30972 _ACEOF
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30975   (eval $ac_link) 2>conftest.er1
30976   ac_status=$?
30977   grep -v '^ *+' conftest.er1 >conftest.err
30978   rm -f conftest.er1
30979   cat conftest.err >&5
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); } &&
30982          { ac_try='test -z "$ac_c_werror_flag"
30983                          || test ! -s conftest.err'
30984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985   (eval $ac_try) 2>&5
30986   ac_status=$?
30987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988   (exit $ac_status); }; } &&
30989          { ac_try='test -s conftest$ac_exeext'
30990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991   (eval $ac_try) 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; }; then
30995   ac_cv_func_mprotect=yes
30996 else
30997   echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.$ac_ext >&5
30999
31000 ac_cv_func_mprotect=no
31001 fi
31002 rm -f conftest.err conftest.$ac_objext \
31003       conftest$ac_exeext conftest.$ac_ext
31004 fi
31005 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31006 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31007 if test $ac_cv_func_mprotect = yes; then
31008   :
31009 else
31010   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31011 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31012    { (exit 1); exit 1; }; }
31013 fi
31014
31015
31016 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31017 then
31018   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31019 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31020 fi
31021 if test "$ac_cv_func_mmap_file" = "no"
31022 then
31023   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31024 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31025 fi
31026
31027
31028 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31029 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31030 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31031   echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033   llvm_cv_llvmgcc_sanity="no"
31034 if test -x "$LLVMGCC" ; then
31035   cp /dev/null conftest.c
31036   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31037   if test $? -eq 0 ; then
31038     llvm_cv_llvmgcc_sanity="yes"
31039   fi
31040   rm conftest.c
31041 fi
31042 fi
31043 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31044 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31045
31046 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31047   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31048   LLVMCC1=$llvmcc1path
31049
31050   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31051   LLVMCC1PLUS=$llvmcc1pluspath
31052
31053   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31054   LLVMGCCDIR=$llvmgccdir
31055
31056   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31057   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31058   LLVMGCC_VERSION=$llvmgccversion
31059
31060   LLVMGCC_MAJVERS=$llvmgccmajvers
31061
31062 fi
31063
31064 SHLIBEXT=$libltdl_cv_shlibext
31065
31066
31067 # Translate the various configuration directories and other basic
31068 # information into substitutions that will end up in Makefile.config.in
31069 # that these configured values can be used by the makefiles
31070 if test "${prefix}" == "NONE" ; then
31071   prefix="/usr/local"
31072 fi
31073 eval LLVM_PREFIX="${prefix}";
31074 eval LLVM_BINDIR="${prefix}/bin";
31075 eval LLVM_LIBDIR="${prefix}/lib";
31076 eval LLVM_DATADIR="${prefix}/share/llvm";
31077 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31078 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31079 eval LLVM_INCLUDEDIR="${prefix}/include";
31080 eval LLVM_INFODIR="${prefix}/info";
31081 eval LLVM_MANDIR="${prefix}/man";
31082 LLVM_CONFIGTIME=`date`
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094 # Place the various directores into the config.h file as #defines so that we
31095 # can know about the installation paths within LLVM.
31096
31097 cat >>confdefs.h <<_ACEOF
31098 #define LLVM_PREFIX "$LLVM_PREFIX"
31099 _ACEOF
31100
31101
31102 cat >>confdefs.h <<_ACEOF
31103 #define LLVM_BINDIR "$LLVM_BINDIR"
31104 _ACEOF
31105
31106
31107 cat >>confdefs.h <<_ACEOF
31108 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31109 _ACEOF
31110
31111
31112 cat >>confdefs.h <<_ACEOF
31113 #define LLVM_DATADIR "$LLVM_DATADIR"
31114 _ACEOF
31115
31116
31117 cat >>confdefs.h <<_ACEOF
31118 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31119 _ACEOF
31120
31121
31122 cat >>confdefs.h <<_ACEOF
31123 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31124 _ACEOF
31125
31126
31127 cat >>confdefs.h <<_ACEOF
31128 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31129 _ACEOF
31130
31131
31132 cat >>confdefs.h <<_ACEOF
31133 #define LLVM_INFODIR "$LLVM_INFODIR"
31134 _ACEOF
31135
31136
31137 cat >>confdefs.h <<_ACEOF
31138 #define LLVM_MANDIR "$LLVM_MANDIR"
31139 _ACEOF
31140
31141
31142 cat >>confdefs.h <<_ACEOF
31143 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31144 _ACEOF
31145
31146
31147
31148           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31149
31150           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31151
31152           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31153
31154           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31155
31156           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31157
31158
31159           ac_config_files="$ac_config_files Makefile.config"
31160
31161
31162           ac_config_files="$ac_config_files docs/doxygen.cfg"
31163
31164
31165           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31166
31167
31168           ac_config_commands="$ac_config_commands setup"
31169
31170           ac_config_commands="$ac_config_commands Makefile"
31171
31172
31173           ac_config_commands="$ac_config_commands Makefile.common"
31174
31175
31176           ac_config_commands="$ac_config_commands examples/Makefile"
31177
31178
31179           ac_config_commands="$ac_config_commands lib/Makefile"
31180
31181
31182           ac_config_commands="$ac_config_commands runtime/Makefile"
31183
31184
31185           ac_config_commands="$ac_config_commands test/Makefile"
31186
31187
31188           ac_config_commands="$ac_config_commands test/Makefile.tests"
31189
31190
31191           ac_config_commands="$ac_config_commands tools/Makefile"
31192
31193
31194           ac_config_commands="$ac_config_commands utils/Makefile"
31195
31196
31197           ac_config_commands="$ac_config_commands projects/Makefile"
31198
31199
31200
31201 cat >confcache <<\_ACEOF
31202 # This file is a shell script that caches the results of configure
31203 # tests run on this system so they can be shared between configure
31204 # scripts and configure runs, see configure's option --config-cache.
31205 # It is not useful on other systems.  If it contains results you don't
31206 # want to keep, you may remove or edit it.
31207 #
31208 # config.status only pays attention to the cache file if you give it
31209 # the --recheck option to rerun configure.
31210 #
31211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31213 # following values.
31214
31215 _ACEOF
31216
31217 # The following way of writing the cache mishandles newlines in values,
31218 # but we know of no workaround that is simple, portable, and efficient.
31219 # So, don't put newlines in cache variables' values.
31220 # Ultrix sh set writes to stderr and can't be redirected directly,
31221 # and sets the high bit in the cache file unless we assign to the vars.
31222 {
31223   (set) 2>&1 |
31224     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31225     *ac_space=\ *)
31226       # `set' does not quote correctly, so add quotes (double-quote
31227       # substitution turns \\\\ into \\, and sed turns \\ into \).
31228       sed -n \
31229         "s/'/'\\\\''/g;
31230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31231       ;;
31232     *)
31233       # `set' quotes correctly as required by POSIX, so do not add quotes.
31234       sed -n \
31235         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31236       ;;
31237     esac;
31238 } |
31239   sed '
31240      t clear
31241      : clear
31242      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31243      t end
31244      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31245      : end' >>confcache
31246 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31247   if test -w $cache_file; then
31248     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31249     cat confcache >$cache_file
31250   else
31251     echo "not updating unwritable cache $cache_file"
31252   fi
31253 fi
31254 rm -f confcache
31255
31256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31257 # Let make expand exec_prefix.
31258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31259
31260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31262 # trailing colons and then remove the whole line if VPATH becomes empty
31263 # (actually we leave an empty line to preserve line numbers).
31264 if test "x$srcdir" = x.; then
31265   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31266 s/:*\$(srcdir):*/:/;
31267 s/:*\${srcdir}:*/:/;
31268 s/:*@srcdir@:*/:/;
31269 s/^\([^=]*=[     ]*\):*/\1/;
31270 s/:*$//;
31271 s/^[^=]*=[       ]*$//;
31272 }'
31273 fi
31274
31275 DEFS=-DHAVE_CONFIG_H
31276
31277 ac_libobjs=
31278 ac_ltlibobjs=
31279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31280   # 1. Remove the extension, and $U if already installed.
31281   ac_i=`echo "$ac_i" |
31282          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31283   # 2. Add them.
31284   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31285   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31286 done
31287 LIBOBJS=$ac_libobjs
31288
31289 LTLIBOBJS=$ac_ltlibobjs
31290
31291
31292 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31293   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31294 Usually this means the macro was only invoked conditionally." >&5
31295 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31296 Usually this means the macro was only invoked conditionally." >&2;}
31297    { (exit 1); exit 1; }; }
31298 fi
31299 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31300   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31301 Usually this means the macro was only invoked conditionally." >&5
31302 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31303 Usually this means the macro was only invoked conditionally." >&2;}
31304    { (exit 1); exit 1; }; }
31305 fi
31306
31307 : ${CONFIG_STATUS=./config.status}
31308 ac_clean_files_save=$ac_clean_files
31309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31310 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31311 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31312 cat >$CONFIG_STATUS <<_ACEOF
31313 #! $SHELL
31314 # Generated by $as_me.
31315 # Run this file to recreate the current configuration.
31316 # Compiler output produced by configure, useful for debugging
31317 # configure, is in config.log if it exists.
31318
31319 debug=false
31320 ac_cs_recheck=false
31321 ac_cs_silent=false
31322 SHELL=\${CONFIG_SHELL-$SHELL}
31323 _ACEOF
31324
31325 cat >>$CONFIG_STATUS <<\_ACEOF
31326 ## --------------------- ##
31327 ## M4sh Initialization.  ##
31328 ## --------------------- ##
31329
31330 # Be Bourne compatible
31331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31332   emulate sh
31333   NULLCMD=:
31334   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31335   # is contrary to our usage.  Disable this feature.
31336   alias -g '${1+"$@"}'='"$@"'
31337 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31338   set -o posix
31339 fi
31340 DUALCASE=1; export DUALCASE # for MKS sh
31341
31342 # Support unset when possible.
31343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31344   as_unset=unset
31345 else
31346   as_unset=false
31347 fi
31348
31349
31350 # Work around bugs in pre-3.0 UWIN ksh.
31351 $as_unset ENV MAIL MAILPATH
31352 PS1='$ '
31353 PS2='> '
31354 PS4='+ '
31355
31356 # NLS nuisances.
31357 for as_var in \
31358   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31359   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31360   LC_TELEPHONE LC_TIME
31361 do
31362   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31363     eval $as_var=C; export $as_var
31364   else
31365     $as_unset $as_var
31366   fi
31367 done
31368
31369 # Required to use basename.
31370 if expr a : '\(a\)' >/dev/null 2>&1; then
31371   as_expr=expr
31372 else
31373   as_expr=false
31374 fi
31375
31376 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31377   as_basename=basename
31378 else
31379   as_basename=false
31380 fi
31381
31382
31383 # Name of the executable.
31384 as_me=`$as_basename "$0" ||
31385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31386          X"$0" : 'X\(//\)$' \| \
31387          X"$0" : 'X\(/\)$' \| \
31388          .     : '\(.\)' 2>/dev/null ||
31389 echo X/"$0" |
31390     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31391           /^X\/\(\/\/\)$/{ s//\1/; q; }
31392           /^X\/\(\/\).*/{ s//\1/; q; }
31393           s/.*/./; q'`
31394
31395
31396 # PATH needs CR, and LINENO needs CR and PATH.
31397 # Avoid depending upon Character Ranges.
31398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31401 as_cr_digits='0123456789'
31402 as_cr_alnum=$as_cr_Letters$as_cr_digits
31403
31404 # The user is always right.
31405 if test "${PATH_SEPARATOR+set}" != set; then
31406   echo "#! /bin/sh" >conf$$.sh
31407   echo  "exit 0"   >>conf$$.sh
31408   chmod +x conf$$.sh
31409   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31410     PATH_SEPARATOR=';'
31411   else
31412     PATH_SEPARATOR=:
31413   fi
31414   rm -f conf$$.sh
31415 fi
31416
31417
31418   as_lineno_1=$LINENO
31419   as_lineno_2=$LINENO
31420   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31421   test "x$as_lineno_1" != "x$as_lineno_2" &&
31422   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31423   # Find who we are.  Look in the path if we contain no path at all
31424   # relative or not.
31425   case $0 in
31426     *[\\/]* ) as_myself=$0 ;;
31427     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31428 for as_dir in $PATH
31429 do
31430   IFS=$as_save_IFS
31431   test -z "$as_dir" && as_dir=.
31432   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31433 done
31434
31435        ;;
31436   esac
31437   # We did not find ourselves, most probably we were run as `sh COMMAND'
31438   # in which case we are not to be found in the path.
31439   if test "x$as_myself" = x; then
31440     as_myself=$0
31441   fi
31442   if test ! -f "$as_myself"; then
31443     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31444 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31445    { (exit 1); exit 1; }; }
31446   fi
31447   case $CONFIG_SHELL in
31448   '')
31449     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31450 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31451 do
31452   IFS=$as_save_IFS
31453   test -z "$as_dir" && as_dir=.
31454   for as_base in sh bash ksh sh5; do
31455          case $as_dir in
31456          /*)
31457            if ("$as_dir/$as_base" -c '
31458   as_lineno_1=$LINENO
31459   as_lineno_2=$LINENO
31460   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31461   test "x$as_lineno_1" != "x$as_lineno_2" &&
31462   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31463              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31464              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31465              CONFIG_SHELL=$as_dir/$as_base
31466              export CONFIG_SHELL
31467              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31468            fi;;
31469          esac
31470        done
31471 done
31472 ;;
31473   esac
31474
31475   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31476   # uniformly replaced by the line number.  The first 'sed' inserts a
31477   # line-number line before each line; the second 'sed' does the real
31478   # work.  The second script uses 'N' to pair each line-number line
31479   # with the numbered line, and appends trailing '-' during
31480   # substitution so that $LINENO is not a special case at line end.
31481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31482   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31483   sed '=' <$as_myself |
31484     sed '
31485       N
31486       s,$,-,
31487       : loop
31488       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31489       t loop
31490       s,-$,,
31491       s,^['$as_cr_digits']*\n,,
31492     ' >$as_me.lineno &&
31493   chmod +x $as_me.lineno ||
31494     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31495 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31496    { (exit 1); exit 1; }; }
31497
31498   # Don't try to exec as it changes $[0], causing all sort of problems
31499   # (the dirname of $[0] is not the place where we might find the
31500   # original and so on.  Autoconf is especially sensible to this).
31501   . ./$as_me.lineno
31502   # Exit status is that of the last command.
31503   exit
31504 }
31505
31506
31507 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31508   *c*,-n*) ECHO_N= ECHO_C='
31509 ' ECHO_T='      ' ;;
31510   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31511   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31512 esac
31513
31514 if expr a : '\(a\)' >/dev/null 2>&1; then
31515   as_expr=expr
31516 else
31517   as_expr=false
31518 fi
31519
31520 rm -f conf$$ conf$$.exe conf$$.file
31521 echo >conf$$.file
31522 if ln -s conf$$.file conf$$ 2>/dev/null; then
31523   # We could just check for DJGPP; but this test a) works b) is more generic
31524   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31525   if test -f conf$$.exe; then
31526     # Don't use ln at all; we don't have any links
31527     as_ln_s='cp -p'
31528   else
31529     as_ln_s='ln -s'
31530   fi
31531 elif ln conf$$.file conf$$ 2>/dev/null; then
31532   as_ln_s=ln
31533 else
31534   as_ln_s='cp -p'
31535 fi
31536 rm -f conf$$ conf$$.exe conf$$.file
31537
31538 if mkdir -p . 2>/dev/null; then
31539   as_mkdir_p=:
31540 else
31541   test -d ./-p && rmdir ./-p
31542   as_mkdir_p=false
31543 fi
31544
31545 as_executable_p="test -f"
31546
31547 # Sed expression to map a string onto a valid CPP name.
31548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31549
31550 # Sed expression to map a string onto a valid variable name.
31551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31552
31553
31554 # IFS
31555 # We need space, tab and new line, in precisely that order.
31556 as_nl='
31557 '
31558 IFS="   $as_nl"
31559
31560 # CDPATH.
31561 $as_unset CDPATH
31562
31563 exec 6>&1
31564
31565 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31566 # report actual input values of CONFIG_FILES etc. instead of their
31567 # values after options handling.  Logging --version etc. is OK.
31568 exec 5>>config.log
31569 {
31570   echo
31571   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31572 ## Running $as_me. ##
31573 _ASBOX
31574 } >&5
31575 cat >&5 <<_CSEOF
31576
31577 This file was extended by llvm $as_me 1.8cvs, which was
31578 generated by GNU Autoconf 2.59.  Invocation command line was
31579
31580   CONFIG_FILES    = $CONFIG_FILES
31581   CONFIG_HEADERS  = $CONFIG_HEADERS
31582   CONFIG_LINKS    = $CONFIG_LINKS
31583   CONFIG_COMMANDS = $CONFIG_COMMANDS
31584   $ $0 $@
31585
31586 _CSEOF
31587 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31588 echo >&5
31589 _ACEOF
31590
31591 # Files that config.status was made for.
31592 if test -n "$ac_config_files"; then
31593   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31594 fi
31595
31596 if test -n "$ac_config_headers"; then
31597   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31598 fi
31599
31600 if test -n "$ac_config_links"; then
31601   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31602 fi
31603
31604 if test -n "$ac_config_commands"; then
31605   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31606 fi
31607
31608 cat >>$CONFIG_STATUS <<\_ACEOF
31609
31610 ac_cs_usage="\
31611 \`$as_me' instantiates files from templates according to the
31612 current configuration.
31613
31614 Usage: $0 [OPTIONS] [FILE]...
31615
31616   -h, --help       print this help, then exit
31617   -V, --version    print version number, then exit
31618   -q, --quiet      do not print progress messages
31619   -d, --debug      don't remove temporary files
31620       --recheck    update $as_me by reconfiguring in the same conditions
31621   --file=FILE[:TEMPLATE]
31622                    instantiate the configuration file FILE
31623   --header=FILE[:TEMPLATE]
31624                    instantiate the configuration header FILE
31625
31626 Configuration files:
31627 $config_files
31628
31629 Configuration headers:
31630 $config_headers
31631
31632 Configuration commands:
31633 $config_commands
31634
31635 Report bugs to <bug-autoconf@gnu.org>."
31636 _ACEOF
31637
31638 cat >>$CONFIG_STATUS <<_ACEOF
31639 ac_cs_version="\\
31640 llvm config.status 1.8cvs
31641 configured by $0, generated by GNU Autoconf 2.59,
31642   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31643
31644 Copyright (C) 2003 Free Software Foundation, Inc.
31645 This config.status script is free software; the Free Software Foundation
31646 gives unlimited permission to copy, distribute and modify it."
31647 srcdir=$srcdir
31648 INSTALL="$INSTALL"
31649 _ACEOF
31650
31651 cat >>$CONFIG_STATUS <<\_ACEOF
31652 # If no file are specified by the user, then we need to provide default
31653 # value.  By we need to know if files were specified by the user.
31654 ac_need_defaults=:
31655 while test $# != 0
31656 do
31657   case $1 in
31658   --*=*)
31659     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31660     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31661     ac_shift=:
31662     ;;
31663   -*)
31664     ac_option=$1
31665     ac_optarg=$2
31666     ac_shift=shift
31667     ;;
31668   *) # This is not an option, so the user has probably given explicit
31669      # arguments.
31670      ac_option=$1
31671      ac_need_defaults=false;;
31672   esac
31673
31674   case $ac_option in
31675   # Handling of the options.
31676 _ACEOF
31677 cat >>$CONFIG_STATUS <<\_ACEOF
31678   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31679     ac_cs_recheck=: ;;
31680   --version | --vers* | -V )
31681     echo "$ac_cs_version"; exit 0 ;;
31682   --he | --h)
31683     # Conflict between --help and --header
31684     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31685 Try \`$0 --help' for more information." >&5
31686 echo "$as_me: error: ambiguous option: $1
31687 Try \`$0 --help' for more information." >&2;}
31688    { (exit 1); exit 1; }; };;
31689   --help | --hel | -h )
31690     echo "$ac_cs_usage"; exit 0 ;;
31691   --debug | --d* | -d )
31692     debug=: ;;
31693   --file | --fil | --fi | --f )
31694     $ac_shift
31695     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31696     ac_need_defaults=false;;
31697   --header | --heade | --head | --hea )
31698     $ac_shift
31699     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31700     ac_need_defaults=false;;
31701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31702   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31703     ac_cs_silent=: ;;
31704
31705   # This is an error.
31706   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31707 Try \`$0 --help' for more information." >&5
31708 echo "$as_me: error: unrecognized option: $1
31709 Try \`$0 --help' for more information." >&2;}
31710    { (exit 1); exit 1; }; } ;;
31711
31712   *) ac_config_targets="$ac_config_targets $1" ;;
31713
31714   esac
31715   shift
31716 done
31717
31718 ac_configure_extra_args=
31719
31720 if $ac_cs_silent; then
31721   exec 6>/dev/null
31722   ac_configure_extra_args="$ac_configure_extra_args --silent"
31723 fi
31724
31725 _ACEOF
31726 cat >>$CONFIG_STATUS <<_ACEOF
31727 if \$ac_cs_recheck; then
31728   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31729   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31730 fi
31731
31732 _ACEOF
31733
31734 cat >>$CONFIG_STATUS <<_ACEOF
31735 #
31736 # INIT-COMMANDS section.
31737 #
31738
31739 llvm_src="${srcdir}"
31740
31741 _ACEOF
31742
31743
31744
31745 cat >>$CONFIG_STATUS <<\_ACEOF
31746 for ac_config_target in $ac_config_targets
31747 do
31748   case "$ac_config_target" in
31749   # Handling of arguments.
31750   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31751   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31752   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31753   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31754   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31755   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31756   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31757   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31758   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31759   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31760   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31761   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31762   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31763   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31764   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31765   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31766   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31767   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31768   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31769   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31771    { (exit 1); exit 1; }; };;
31772   esac
31773 done
31774
31775 # If the user did not use the arguments to specify the items to instantiate,
31776 # then the envvar interface is used.  Set only those that are not.
31777 # We use the long form for the default assignment because of an extremely
31778 # bizarre bug on SunOS 4.1.3.
31779 if $ac_need_defaults; then
31780   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31781   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31782   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31783 fi
31784
31785 # Have a temporary directory for convenience.  Make it in the build tree
31786 # simply because there is no reason to put it here, and in addition,
31787 # creating and moving files from /tmp can sometimes cause problems.
31788 # Create a temporary directory, and hook for its removal unless debugging.
31789 $debug ||
31790 {
31791   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31792   trap '{ (exit 1); exit 1; }' 1 2 13 15
31793 }
31794
31795 # Create a (secure) tmp directory for tmp files.
31796
31797 {
31798   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31799   test -n "$tmp" && test -d "$tmp"
31800 }  ||
31801 {
31802   tmp=./confstat$$-$RANDOM
31803   (umask 077 && mkdir $tmp)
31804 } ||
31805 {
31806    echo "$me: cannot create a temporary directory in ." >&2
31807    { (exit 1); exit 1; }
31808 }
31809
31810 _ACEOF
31811
31812 cat >>$CONFIG_STATUS <<_ACEOF
31813
31814 #
31815 # CONFIG_FILES section.
31816 #
31817
31818 # No need to generate the scripts if there are no CONFIG_FILES.
31819 # This happens for instance when ./config.status config.h
31820 if test -n "\$CONFIG_FILES"; then
31821   # Protect against being on the right side of a sed subst in config.status.
31822   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31823    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31824 s,@SHELL@,$SHELL,;t t
31825 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31831 s,@exec_prefix@,$exec_prefix,;t t
31832 s,@prefix@,$prefix,;t t
31833 s,@program_transform_name@,$program_transform_name,;t t
31834 s,@bindir@,$bindir,;t t
31835 s,@sbindir@,$sbindir,;t t
31836 s,@libexecdir@,$libexecdir,;t t
31837 s,@datadir@,$datadir,;t t
31838 s,@sysconfdir@,$sysconfdir,;t t
31839 s,@sharedstatedir@,$sharedstatedir,;t t
31840 s,@localstatedir@,$localstatedir,;t t
31841 s,@libdir@,$libdir,;t t
31842 s,@includedir@,$includedir,;t t
31843 s,@oldincludedir@,$oldincludedir,;t t
31844 s,@infodir@,$infodir,;t t
31845 s,@mandir@,$mandir,;t t
31846 s,@build_alias@,$build_alias,;t t
31847 s,@host_alias@,$host_alias,;t t
31848 s,@target_alias@,$target_alias,;t t
31849 s,@DEFS@,$DEFS,;t t
31850 s,@ECHO_C@,$ECHO_C,;t t
31851 s,@ECHO_N@,$ECHO_N,;t t
31852 s,@ECHO_T@,$ECHO_T,;t t
31853 s,@LIBS@,$LIBS,;t t
31854 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31855 s,@subdirs@,$subdirs,;t t
31856 s,@build@,$build,;t t
31857 s,@build_cpu@,$build_cpu,;t t
31858 s,@build_vendor@,$build_vendor,;t t
31859 s,@build_os@,$build_os,;t t
31860 s,@host@,$host,;t t
31861 s,@host_cpu@,$host_cpu,;t t
31862 s,@host_vendor@,$host_vendor,;t t
31863 s,@host_os@,$host_os,;t t
31864 s,@target@,$target,;t t
31865 s,@target_cpu@,$target_cpu,;t t
31866 s,@target_vendor@,$target_vendor,;t t
31867 s,@target_os@,$target_os,;t t
31868 s,@OS@,$OS,;t t
31869 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31870 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31871 s,@ARCH@,$ARCH,;t t
31872 s,@ENDIAN@,$ENDIAN,;t t
31873 s,@CC@,$CC,;t t
31874 s,@CFLAGS@,$CFLAGS,;t t
31875 s,@LDFLAGS@,$LDFLAGS,;t t
31876 s,@CPPFLAGS@,$CPPFLAGS,;t t
31877 s,@ac_ct_CC@,$ac_ct_CC,;t t
31878 s,@EXEEXT@,$EXEEXT,;t t
31879 s,@OBJEXT@,$OBJEXT,;t t
31880 s,@CVSBUILD@,$CVSBUILD,;t t
31881 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31882 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31883 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31884 s,@JIT@,$JIT,;t t
31885 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31886 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31887 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31888 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31889 s,@CPP@,$CPP,;t t
31890 s,@CXX@,$CXX,;t t
31891 s,@CXXFLAGS@,$CXXFLAGS,;t t
31892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31893 s,@LEX@,$LEX,;t t
31894 s,@LEXLIB@,$LEXLIB,;t t
31895 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31896 s,@FLEX@,$FLEX,;t t
31897 s,@YACC@,$YACC,;t t
31898 s,@BISON@,$BISON,;t t
31899 s,@ifGNUmake@,$ifGNUmake,;t t
31900 s,@LN_S@,$LN_S,;t t
31901 s,@CMP@,$CMP,;t t
31902 s,@CP@,$CP,;t t
31903 s,@DATE@,$DATE,;t t
31904 s,@FIND@,$FIND,;t t
31905 s,@GREP@,$GREP,;t t
31906 s,@MKDIR@,$MKDIR,;t t
31907 s,@MV@,$MV,;t t
31908 s,@RANLIB@,$RANLIB,;t t
31909 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31910 s,@RM@,$RM,;t t
31911 s,@SED@,$SED,;t t
31912 s,@TAR@,$TAR,;t t
31913 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31914 s,@DOT@,$DOT,;t t
31915 s,@GV@,$GV,;t t
31916 s,@DOTTY@,$DOTTY,;t t
31917 s,@PERL@,$PERL,;t t
31918 s,@HAVE_PERL@,$HAVE_PERL,;t t
31919 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31920 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31921 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31922 s,@BZIP2@,$BZIP2,;t t
31923 s,@DOXYGEN@,$DOXYGEN,;t t
31924 s,@ETAGS@,$ETAGS,;t t
31925 s,@GROFF@,$GROFF,;t t
31926 s,@GZIP@,$GZIP,;t t
31927 s,@POD2HTML@,$POD2HTML,;t t
31928 s,@POD2MAN@,$POD2MAN,;t t
31929 s,@RUNTEST@,$RUNTEST,;t t
31930 s,@TCLSH@,$TCLSH,;t t
31931 s,@ZIP@,$ZIP,;t t
31932 s,@EGREP@,$EGREP,;t t
31933 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31934 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31935 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31936 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31937 s,@LIBADD_DL@,$LIBADD_DL,;t t
31938 s,@ECHO@,$ECHO,;t t
31939 s,@AR@,$AR,;t t
31940 s,@ac_ct_AR@,$ac_ct_AR,;t t
31941 s,@STRIP@,$STRIP,;t t
31942 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31943 s,@CXXCPP@,$CXXCPP,;t t
31944 s,@F77@,$F77,;t t
31945 s,@FFLAGS@,$FFLAGS,;t t
31946 s,@ac_ct_F77@,$ac_ct_F77,;t t
31947 s,@LIBTOOL@,$LIBTOOL,;t t
31948 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31949 s,@LLVMGCC@,$LLVMGCC,;t t
31950 s,@LLVMGXX@,$LLVMGXX,;t t
31951 s,@ALLOCA@,$ALLOCA,;t t
31952 s,@MMAP_FILE@,$MMAP_FILE,;t t
31953 s,@LLVMCC1@,$LLVMCC1,;t t
31954 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31955 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31956 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31957 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31958 s,@SHLIBEXT@,$SHLIBEXT,;t t
31959 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31960 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31961 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31962 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31963 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31964 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31965 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31966 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31967 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31968 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31969 s,@LIBOBJS@,$LIBOBJS,;t t
31970 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31971 CEOF
31972
31973 _ACEOF
31974
31975   cat >>$CONFIG_STATUS <<\_ACEOF
31976   # Split the substitutions into bite-sized pieces for seds with
31977   # small command number limits, like on Digital OSF/1 and HP-UX.
31978   ac_max_sed_lines=48
31979   ac_sed_frag=1 # Number of current file.
31980   ac_beg=1 # First line for current file.
31981   ac_end=$ac_max_sed_lines # Line after last line for current file.
31982   ac_more_lines=:
31983   ac_sed_cmds=
31984   while $ac_more_lines; do
31985     if test $ac_beg -gt 1; then
31986       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31987     else
31988       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31989     fi
31990     if test ! -s $tmp/subs.frag; then
31991       ac_more_lines=false
31992     else
31993       # The purpose of the label and of the branching condition is to
31994       # speed up the sed processing (if there are no `@' at all, there
31995       # is no need to browse any of the substitutions).
31996       # These are the two extra sed commands mentioned above.
31997       (echo ':t
31998   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31999       if test -z "$ac_sed_cmds"; then
32000         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32001       else
32002         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32003       fi
32004       ac_sed_frag=`expr $ac_sed_frag + 1`
32005       ac_beg=$ac_end
32006       ac_end=`expr $ac_end + $ac_max_sed_lines`
32007     fi
32008   done
32009   if test -z "$ac_sed_cmds"; then
32010     ac_sed_cmds=cat
32011   fi
32012 fi # test -n "$CONFIG_FILES"
32013
32014 _ACEOF
32015 cat >>$CONFIG_STATUS <<\_ACEOF
32016 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32017   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32018   case $ac_file in
32019   - | *:- | *:-:* ) # input from stdin
32020         cat >$tmp/stdin
32021         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32022         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32023   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32024         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32025   * )   ac_file_in=$ac_file.in ;;
32026   esac
32027
32028   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32029   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32031          X"$ac_file" : 'X\(//\)[^/]' \| \
32032          X"$ac_file" : 'X\(//\)$' \| \
32033          X"$ac_file" : 'X\(/\)' \| \
32034          .     : '\(.\)' 2>/dev/null ||
32035 echo X"$ac_file" |
32036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32038           /^X\(\/\/\)$/{ s//\1/; q; }
32039           /^X\(\/\).*/{ s//\1/; q; }
32040           s/.*/./; q'`
32041   { if $as_mkdir_p; then
32042     mkdir -p "$ac_dir"
32043   else
32044     as_dir="$ac_dir"
32045     as_dirs=
32046     while test ! -d "$as_dir"; do
32047       as_dirs="$as_dir $as_dirs"
32048       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32050          X"$as_dir" : 'X\(//\)[^/]' \| \
32051          X"$as_dir" : 'X\(//\)$' \| \
32052          X"$as_dir" : 'X\(/\)' \| \
32053          .     : '\(.\)' 2>/dev/null ||
32054 echo X"$as_dir" |
32055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32057           /^X\(\/\/\)$/{ s//\1/; q; }
32058           /^X\(\/\).*/{ s//\1/; q; }
32059           s/.*/./; q'`
32060     done
32061     test ! -n "$as_dirs" || mkdir $as_dirs
32062   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32063 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32064    { (exit 1); exit 1; }; }; }
32065
32066   ac_builddir=.
32067
32068 if test "$ac_dir" != .; then
32069   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32070   # A "../" for each directory in $ac_dir_suffix.
32071   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32072 else
32073   ac_dir_suffix= ac_top_builddir=
32074 fi
32075
32076 case $srcdir in
32077   .)  # No --srcdir option.  We are building in place.
32078     ac_srcdir=.
32079     if test -z "$ac_top_builddir"; then
32080        ac_top_srcdir=.
32081     else
32082        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32083     fi ;;
32084   [\\/]* | ?:[\\/]* )  # Absolute path.
32085     ac_srcdir=$srcdir$ac_dir_suffix;
32086     ac_top_srcdir=$srcdir ;;
32087   *) # Relative path.
32088     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32089     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32090 esac
32091
32092 # Do not use `cd foo && pwd` to compute absolute paths, because
32093 # the directories may not exist.
32094 case `pwd` in
32095 .) ac_abs_builddir="$ac_dir";;
32096 *)
32097   case "$ac_dir" in
32098   .) ac_abs_builddir=`pwd`;;
32099   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32100   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32101   esac;;
32102 esac
32103 case $ac_abs_builddir in
32104 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32105 *)
32106   case ${ac_top_builddir}. in
32107   .) ac_abs_top_builddir=$ac_abs_builddir;;
32108   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32109   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32110   esac;;
32111 esac
32112 case $ac_abs_builddir in
32113 .) ac_abs_srcdir=$ac_srcdir;;
32114 *)
32115   case $ac_srcdir in
32116   .) ac_abs_srcdir=$ac_abs_builddir;;
32117   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32118   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32119   esac;;
32120 esac
32121 case $ac_abs_builddir in
32122 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32123 *)
32124   case $ac_top_srcdir in
32125   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32126   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32127   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32128   esac;;
32129 esac
32130
32131
32132   case $INSTALL in
32133   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32134   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32135   esac
32136
32137   if test x"$ac_file" != x-; then
32138     { echo "$as_me:$LINENO: creating $ac_file" >&5
32139 echo "$as_me: creating $ac_file" >&6;}
32140     rm -f "$ac_file"
32141   fi
32142   # Let's still pretend it is `configure' which instantiates (i.e., don't
32143   # use $as_me), people would be surprised to read:
32144   #    /* config.h.  Generated by config.status.  */
32145   if test x"$ac_file" = x-; then
32146     configure_input=
32147   else
32148     configure_input="$ac_file.  "
32149   fi
32150   configure_input=$configure_input"Generated from `echo $ac_file_in |
32151                                      sed 's,.*/,,'` by configure."
32152
32153   # First look for the input files in the build tree, otherwise in the
32154   # src tree.
32155   ac_file_inputs=`IFS=:
32156     for f in $ac_file_in; do
32157       case $f in
32158       -) echo $tmp/stdin ;;
32159       [\\/$]*)
32160          # Absolute (can't be DOS-style, as IFS=:)
32161          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32162 echo "$as_me: error: cannot find input file: $f" >&2;}
32163    { (exit 1); exit 1; }; }
32164          echo "$f";;
32165       *) # Relative
32166          if test -f "$f"; then
32167            # Build tree
32168            echo "$f"
32169          elif test -f "$srcdir/$f"; then
32170            # Source tree
32171            echo "$srcdir/$f"
32172          else
32173            # /dev/null tree
32174            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32175 echo "$as_me: error: cannot find input file: $f" >&2;}
32176    { (exit 1); exit 1; }; }
32177          fi;;
32178       esac
32179     done` || { (exit 1); exit 1; }
32180 _ACEOF
32181 cat >>$CONFIG_STATUS <<_ACEOF
32182   sed "$ac_vpsub
32183 $extrasub
32184 _ACEOF
32185 cat >>$CONFIG_STATUS <<\_ACEOF
32186 :t
32187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32188 s,@configure_input@,$configure_input,;t t
32189 s,@srcdir@,$ac_srcdir,;t t
32190 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32191 s,@top_srcdir@,$ac_top_srcdir,;t t
32192 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32193 s,@builddir@,$ac_builddir,;t t
32194 s,@abs_builddir@,$ac_abs_builddir,;t t
32195 s,@top_builddir@,$ac_top_builddir,;t t
32196 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32197 s,@INSTALL@,$ac_INSTALL,;t t
32198 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32199   rm -f $tmp/stdin
32200   if test x"$ac_file" != x-; then
32201     mv $tmp/out $ac_file
32202   else
32203     cat $tmp/out
32204     rm -f $tmp/out
32205   fi
32206
32207 done
32208 _ACEOF
32209 cat >>$CONFIG_STATUS <<\_ACEOF
32210
32211 #
32212 # CONFIG_HEADER section.
32213 #
32214
32215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32217 #
32218 # ac_d sets the value in "#define NAME VALUE" lines.
32219 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32220 ac_dB='[         ].*$,\1#\2'
32221 ac_dC=' '
32222 ac_dD=',;t'
32223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32224 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32225 ac_uB='$,\1#\2define\3'
32226 ac_uC=' '
32227 ac_uD=',;t'
32228
32229 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32230   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32231   case $ac_file in
32232   - | *:- | *:-:* ) # input from stdin
32233         cat >$tmp/stdin
32234         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32235         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32236   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32238   * )   ac_file_in=$ac_file.in ;;
32239   esac
32240
32241   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32242 echo "$as_me: creating $ac_file" >&6;}
32243
32244   # First look for the input files in the build tree, otherwise in the
32245   # src tree.
32246   ac_file_inputs=`IFS=:
32247     for f in $ac_file_in; do
32248       case $f in
32249       -) echo $tmp/stdin ;;
32250       [\\/$]*)
32251          # Absolute (can't be DOS-style, as IFS=:)
32252          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32253 echo "$as_me: error: cannot find input file: $f" >&2;}
32254    { (exit 1); exit 1; }; }
32255          # Do quote $f, to prevent DOS paths from being IFS'd.
32256          echo "$f";;
32257       *) # Relative
32258          if test -f "$f"; then
32259            # Build tree
32260            echo "$f"
32261          elif test -f "$srcdir/$f"; then
32262            # Source tree
32263            echo "$srcdir/$f"
32264          else
32265            # /dev/null tree
32266            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32267 echo "$as_me: error: cannot find input file: $f" >&2;}
32268    { (exit 1); exit 1; }; }
32269          fi;;
32270       esac
32271     done` || { (exit 1); exit 1; }
32272   # Remove the trailing spaces.
32273   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32274
32275 _ACEOF
32276
32277 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32278 # `conftest.undefs', that substitutes the proper values into
32279 # config.h.in to produce config.h.  The first handles `#define'
32280 # templates, and the second `#undef' templates.
32281 # And first: Protect against being on the right side of a sed subst in
32282 # config.status.  Protect against being in an unquoted here document
32283 # in config.status.
32284 rm -f conftest.defines conftest.undefs
32285 # Using a here document instead of a string reduces the quoting nightmare.
32286 # Putting comments in sed scripts is not portable.
32287 #
32288 # `end' is used to avoid that the second main sed command (meant for
32289 # 0-ary CPP macros) applies to n-ary macro definitions.
32290 # See the Autoconf documentation for `clear'.
32291 cat >confdef2sed.sed <<\_ACEOF
32292 s/[\\&,]/\\&/g
32293 s,[\\$`],\\&,g
32294 t clear
32295 : clear
32296 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32297 t end
32298 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32299 : end
32300 _ACEOF
32301 # If some macros were called several times there might be several times
32302 # the same #defines, which is useless.  Nevertheless, we may not want to
32303 # sort them, since we want the *last* AC-DEFINE to be honored.
32304 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32305 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32306 rm -f confdef2sed.sed
32307
32308 # This sed command replaces #undef with comments.  This is necessary, for
32309 # example, in the case of _POSIX_SOURCE, which is predefined and required
32310 # on some systems where configure will not decide to define it.
32311 cat >>conftest.undefs <<\_ACEOF
32312 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32313 _ACEOF
32314
32315 # Break up conftest.defines because some shells have a limit on the size
32316 # of here documents, and old seds have small limits too (100 cmds).
32317 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32318 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32319 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32320 echo '  :' >>$CONFIG_STATUS
32321 rm -f conftest.tail
32322 while grep . conftest.defines >/dev/null
32323 do
32324   # Write a limited-size here document to $tmp/defines.sed.
32325   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32326   # Speed up: don't consider the non `#define' lines.
32327   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32328   # Work around the forget-to-reset-the-flag bug.
32329   echo 't clr' >>$CONFIG_STATUS
32330   echo ': clr' >>$CONFIG_STATUS
32331   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32332   echo 'CEOF
32333   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32334   rm -f $tmp/in
32335   mv $tmp/out $tmp/in
32336 ' >>$CONFIG_STATUS
32337   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32338   rm -f conftest.defines
32339   mv conftest.tail conftest.defines
32340 done
32341 rm -f conftest.defines
32342 echo '  fi # grep' >>$CONFIG_STATUS
32343 echo >>$CONFIG_STATUS
32344
32345 # Break up conftest.undefs because some shells have a limit on the size
32346 # of here documents, and old seds have small limits too (100 cmds).
32347 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32348 rm -f conftest.tail
32349 while grep . conftest.undefs >/dev/null
32350 do
32351   # Write a limited-size here document to $tmp/undefs.sed.
32352   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32353   # Speed up: don't consider the non `#undef'
32354   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32355   # Work around the forget-to-reset-the-flag bug.
32356   echo 't clr' >>$CONFIG_STATUS
32357   echo ': clr' >>$CONFIG_STATUS
32358   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32359   echo 'CEOF
32360   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32361   rm -f $tmp/in
32362   mv $tmp/out $tmp/in
32363 ' >>$CONFIG_STATUS
32364   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32365   rm -f conftest.undefs
32366   mv conftest.tail conftest.undefs
32367 done
32368 rm -f conftest.undefs
32369
32370 cat >>$CONFIG_STATUS <<\_ACEOF
32371   # Let's still pretend it is `configure' which instantiates (i.e., don't
32372   # use $as_me), people would be surprised to read:
32373   #    /* config.h.  Generated by config.status.  */
32374   if test x"$ac_file" = x-; then
32375     echo "/* Generated by configure.  */" >$tmp/config.h
32376   else
32377     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32378   fi
32379   cat $tmp/in >>$tmp/config.h
32380   rm -f $tmp/in
32381   if test x"$ac_file" != x-; then
32382     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32383       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32384 echo "$as_me: $ac_file is unchanged" >&6;}
32385     else
32386       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32388          X"$ac_file" : 'X\(//\)[^/]' \| \
32389          X"$ac_file" : 'X\(//\)$' \| \
32390          X"$ac_file" : 'X\(/\)' \| \
32391          .     : '\(.\)' 2>/dev/null ||
32392 echo X"$ac_file" |
32393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32395           /^X\(\/\/\)$/{ s//\1/; q; }
32396           /^X\(\/\).*/{ s//\1/; q; }
32397           s/.*/./; q'`
32398       { if $as_mkdir_p; then
32399     mkdir -p "$ac_dir"
32400   else
32401     as_dir="$ac_dir"
32402     as_dirs=
32403     while test ! -d "$as_dir"; do
32404       as_dirs="$as_dir $as_dirs"
32405       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32407          X"$as_dir" : 'X\(//\)[^/]' \| \
32408          X"$as_dir" : 'X\(//\)$' \| \
32409          X"$as_dir" : 'X\(/\)' \| \
32410          .     : '\(.\)' 2>/dev/null ||
32411 echo X"$as_dir" |
32412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32414           /^X\(\/\/\)$/{ s//\1/; q; }
32415           /^X\(\/\).*/{ s//\1/; q; }
32416           s/.*/./; q'`
32417     done
32418     test ! -n "$as_dirs" || mkdir $as_dirs
32419   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32421    { (exit 1); exit 1; }; }; }
32422
32423       rm -f $ac_file
32424       mv $tmp/config.h $ac_file
32425     fi
32426   else
32427     cat $tmp/config.h
32428     rm -f $tmp/config.h
32429   fi
32430 done
32431 _ACEOF
32432 cat >>$CONFIG_STATUS <<\_ACEOF
32433
32434 #
32435 # CONFIG_COMMANDS section.
32436 #
32437 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32438   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32439   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32440   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32441 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32442          X"$ac_dest" : 'X\(//\)[^/]' \| \
32443          X"$ac_dest" : 'X\(//\)$' \| \
32444          X"$ac_dest" : 'X\(/\)' \| \
32445          .     : '\(.\)' 2>/dev/null ||
32446 echo X"$ac_dest" |
32447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32448           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32449           /^X\(\/\/\)$/{ s//\1/; q; }
32450           /^X\(\/\).*/{ s//\1/; q; }
32451           s/.*/./; q'`
32452   { if $as_mkdir_p; then
32453     mkdir -p "$ac_dir"
32454   else
32455     as_dir="$ac_dir"
32456     as_dirs=
32457     while test ! -d "$as_dir"; do
32458       as_dirs="$as_dir $as_dirs"
32459       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32461          X"$as_dir" : 'X\(//\)[^/]' \| \
32462          X"$as_dir" : 'X\(//\)$' \| \
32463          X"$as_dir" : 'X\(/\)' \| \
32464          .     : '\(.\)' 2>/dev/null ||
32465 echo X"$as_dir" |
32466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32468           /^X\(\/\/\)$/{ s//\1/; q; }
32469           /^X\(\/\).*/{ s//\1/; q; }
32470           s/.*/./; q'`
32471     done
32472     test ! -n "$as_dirs" || mkdir $as_dirs
32473   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32475    { (exit 1); exit 1; }; }; }
32476
32477   ac_builddir=.
32478
32479 if test "$ac_dir" != .; then
32480   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32481   # A "../" for each directory in $ac_dir_suffix.
32482   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32483 else
32484   ac_dir_suffix= ac_top_builddir=
32485 fi
32486
32487 case $srcdir in
32488   .)  # No --srcdir option.  We are building in place.
32489     ac_srcdir=.
32490     if test -z "$ac_top_builddir"; then
32491        ac_top_srcdir=.
32492     else
32493        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32494     fi ;;
32495   [\\/]* | ?:[\\/]* )  # Absolute path.
32496     ac_srcdir=$srcdir$ac_dir_suffix;
32497     ac_top_srcdir=$srcdir ;;
32498   *) # Relative path.
32499     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32500     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32501 esac
32502
32503 # Do not use `cd foo && pwd` to compute absolute paths, because
32504 # the directories may not exist.
32505 case `pwd` in
32506 .) ac_abs_builddir="$ac_dir";;
32507 *)
32508   case "$ac_dir" in
32509   .) ac_abs_builddir=`pwd`;;
32510   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32511   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32512   esac;;
32513 esac
32514 case $ac_abs_builddir in
32515 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32516 *)
32517   case ${ac_top_builddir}. in
32518   .) ac_abs_top_builddir=$ac_abs_builddir;;
32519   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32520   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32521   esac;;
32522 esac
32523 case $ac_abs_builddir in
32524 .) ac_abs_srcdir=$ac_srcdir;;
32525 *)
32526   case $ac_srcdir in
32527   .) ac_abs_srcdir=$ac_abs_builddir;;
32528   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32529   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32530   esac;;
32531 esac
32532 case $ac_abs_builddir in
32533 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32534 *)
32535   case $ac_top_srcdir in
32536   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32537   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32538   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32539   esac;;
32540 esac
32541
32542
32543   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32544 echo "$as_me: executing $ac_dest commands" >&6;}
32545   case $ac_dest in
32546     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32547    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32548     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32549    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32550     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32551    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32552     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32553    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32554     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32555    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32556     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32557    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32558     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32559    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32560     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32561    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32562     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32563    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32564     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32565    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32566   esac
32567 done
32568 _ACEOF
32569
32570 cat >>$CONFIG_STATUS <<\_ACEOF
32571
32572 { (exit 0); exit 0; }
32573 _ACEOF
32574 chmod +x $CONFIG_STATUS
32575 ac_clean_files=$ac_clean_files_save
32576
32577
32578 # configure is writing to config.log, and then calls config.status.
32579 # config.status does its own redirection, appending to config.log.
32580 # Unfortunately, on DOS this fails, as config.log is still kept open
32581 # by configure, so config.status won't be able to write to it; its
32582 # output is simply discarded.  So we exec the FD to /dev/null,
32583 # effectively closing config.log, so it can be properly (re)opened and
32584 # appended to by config.status.  When coming back to configure, we
32585 # need to make the FD available again.
32586 if test "$no_create" != yes; then
32587   ac_cs_success=:
32588   ac_config_status_args=
32589   test "$silent" = yes &&
32590     ac_config_status_args="$ac_config_status_args --quiet"
32591   exec 5>/dev/null
32592   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32593   exec 5>>config.log
32594   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32595   # would make configure fail if this is the last instruction.
32596   $ac_cs_success || { (exit 1); exit 1; }
32597 fi
32598
32599 #
32600 # CONFIG_SUBDIRS section.
32601 #
32602 if test "$no_recursion" != yes; then
32603
32604   # Remove --cache-file and --srcdir arguments so they do not pile up.
32605   ac_sub_configure_args=
32606   ac_prev=
32607   for ac_arg in $ac_configure_args; do
32608     if test -n "$ac_prev"; then
32609       ac_prev=
32610       continue
32611     fi
32612     case $ac_arg in
32613     -cache-file | --cache-file | --cache-fil | --cache-fi \
32614     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32615       ac_prev=cache_file ;;
32616     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32617     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32618     | --c=*)
32619       ;;
32620     --config-cache | -C)
32621       ;;
32622     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32623       ac_prev=srcdir ;;
32624     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32625       ;;
32626     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32627       ac_prev=prefix ;;
32628     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32629       ;;
32630     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32631     esac
32632   done
32633
32634   # Always prepend --prefix to ensure using the same prefix
32635   # in subdir configurations.
32636   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32637
32638   ac_popdir=`pwd`
32639   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32640
32641     # Do not complain, so a configure script can configure whichever
32642     # parts of a large source tree are present.
32643     test -d $srcdir/$ac_dir || continue
32644
32645     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32646 echo "$as_me: configuring in $ac_dir" >&6;}
32647     { if $as_mkdir_p; then
32648     mkdir -p "$ac_dir"
32649   else
32650     as_dir="$ac_dir"
32651     as_dirs=
32652     while test ! -d "$as_dir"; do
32653       as_dirs="$as_dir $as_dirs"
32654       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32656          X"$as_dir" : 'X\(//\)[^/]' \| \
32657          X"$as_dir" : 'X\(//\)$' \| \
32658          X"$as_dir" : 'X\(/\)' \| \
32659          .     : '\(.\)' 2>/dev/null ||
32660 echo X"$as_dir" |
32661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32663           /^X\(\/\/\)$/{ s//\1/; q; }
32664           /^X\(\/\).*/{ s//\1/; q; }
32665           s/.*/./; q'`
32666     done
32667     test ! -n "$as_dirs" || mkdir $as_dirs
32668   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32670    { (exit 1); exit 1; }; }; }
32671
32672     ac_builddir=.
32673
32674 if test "$ac_dir" != .; then
32675   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32676   # A "../" for each directory in $ac_dir_suffix.
32677   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32678 else
32679   ac_dir_suffix= ac_top_builddir=
32680 fi
32681
32682 case $srcdir in
32683   .)  # No --srcdir option.  We are building in place.
32684     ac_srcdir=.
32685     if test -z "$ac_top_builddir"; then
32686        ac_top_srcdir=.
32687     else
32688        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32689     fi ;;
32690   [\\/]* | ?:[\\/]* )  # Absolute path.
32691     ac_srcdir=$srcdir$ac_dir_suffix;
32692     ac_top_srcdir=$srcdir ;;
32693   *) # Relative path.
32694     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32695     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32696 esac
32697
32698 # Do not use `cd foo && pwd` to compute absolute paths, because
32699 # the directories may not exist.
32700 case `pwd` in
32701 .) ac_abs_builddir="$ac_dir";;
32702 *)
32703   case "$ac_dir" in
32704   .) ac_abs_builddir=`pwd`;;
32705   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32706   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32707   esac;;
32708 esac
32709 case $ac_abs_builddir in
32710 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32711 *)
32712   case ${ac_top_builddir}. in
32713   .) ac_abs_top_builddir=$ac_abs_builddir;;
32714   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32715   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32716   esac;;
32717 esac
32718 case $ac_abs_builddir in
32719 .) ac_abs_srcdir=$ac_srcdir;;
32720 *)
32721   case $ac_srcdir in
32722   .) ac_abs_srcdir=$ac_abs_builddir;;
32723   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32724   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32725   esac;;
32726 esac
32727 case $ac_abs_builddir in
32728 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32729 *)
32730   case $ac_top_srcdir in
32731   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32732   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32733   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32734   esac;;
32735 esac
32736
32737
32738     cd $ac_dir
32739
32740     # Check for guested configure; otherwise get Cygnus style configure.
32741     if test -f $ac_srcdir/configure.gnu; then
32742       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32743     elif test -f $ac_srcdir/configure; then
32744       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32745     elif test -f $ac_srcdir/configure.in; then
32746       ac_sub_configure=$ac_configure
32747     else
32748       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32749 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32750       ac_sub_configure=
32751     fi
32752
32753     # The recursion is here.
32754     if test -n "$ac_sub_configure"; then
32755       # Make the cache file name correct relative to the subdirectory.
32756       case $cache_file in
32757       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32758       *) # Relative path.
32759         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32760       esac
32761
32762       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32763 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32764       # The eval makes quoting arguments work.
32765       eval $ac_sub_configure $ac_sub_configure_args \
32766            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32767         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32768 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32769    { (exit 1); exit 1; }; }
32770     fi
32771
32772     cd $ac_popdir
32773   done
32774 fi
32775
32776
32777 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32778  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32779 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32780  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32781 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32782  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32783 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32784  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32785 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32786  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32787 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32788 fi